Displaying 20 results from an estimated 50000 matches similar to: "[LLVMdev] Functions with unnamed parameters in LLVM IR"
2014 Aug 14
2
[LLVMdev] Functions with unnamed parameters in LLVM IR
On 13 August 2014 15:48, Tim Northover <t.p.northover at gmail.com> wrote:
>> The above LLVM IR was confusing to me because I usually see that
>> unnamed registers start counting from 1 (i.e. %1 = add ...).
>
> There's a (usually hidden) %0 representing the entry basic block
> there. The general rule is "start from 0 and keep counting; skip named
>
2014 Jan 14
2
[LLVMdev] Question About the LLVM IR unnamed values!
Hi.
I found that, in all the LLVM IR I get from the source C file. the unnamed
values all created by the "load" instruction. eg:
; Function Attrs: nounwind uwtable
define i32 @add(i32 %x, i32 %y) #0 {
entry:
%x.addr = alloca i32, align 4
%y.addr = alloca i32, align 4
%c = alloca i32, align 4
store i32 %x, i32* %x.addr, align 4
store i32 %y, i32* %y.addr, align 4
* %0 =
2014 Aug 15
2
[LLVMdev] Functions with unnamed parameters in LLVM IR
> I did mean the LangRef, but probably not there, and not to that degree.
For documentation I think being explicit is much better than being implicit.
> It's a fairly minor point, perhaps warranting a sentence where unnamed
> values are generally discussed and the basic-block case is mentioned
> (under the "Identifiers" section).
I took a look at the
2013 Apr 09
2
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hello guys:
I am in trouble with get the identifies of the unnamed temporaries from the
instruction of LLVM IR.
for example:
instruction: %4 = mul nsw i32 %1, %width
unnamed temporaries: %4, %1
how to get them?
I have tried several iterators(op_iterator,value_op_iterator) and
getOperand(int) function,but none of them works.
does anyone know how to get it? thanks very much
--
View this message
2013 Apr 09
0
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
Hi,
On 09/04/13 10:16, Dong Chen wrote:
> hello guys:
> I am in trouble with get the identifies of the unnamed temporaries from the
> instruction of LLVM IR.
this is a FAQ. Most names in the IR are just there to make it easier to read
and can safely be removed. You can't rely on instructions having names, and as
you saw often they do not have a name. Even if they start off with a
2013 Apr 09
2
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan Sands:
thanks for your reply old friend.
the reason why I want to get the unnamed value is that I am doing some
analysis based on the IR code. And IR is in the form of SSA(static single
assignment). so i need to get the operands of each instructions including a
lot of instructions like this (%4 = mul nsw i32 %1, %width).
the unnamed values are the connection of instructions, if i
2013 Apr 09
0
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
Hi,
On 09/04/13 11:19, Dong Chen wrote:
> hi, Duncan Sands:
> thanks for your reply old friend.
> the reason why I want to get the unnamed value is that I am doing some
> analysis based on the IR code. And IR is in the form of SSA(static single
> assignment). so i need to get the operands of each instructions including a
> lot of instructions like this (%4 = mul nsw i32 %1,
2016 May 26
1
Potential ambiguity in the grammar of LLVM IR assembly
Hello Tim,
Thank you for getting back to me.
The language grammar as defined by the LLVM Language Reference Manual
[1] does not include the details of the LLVM IR parser reference
implementation.
The following extract from "lib/AsmParser/LLParser.cpp" illustrates that
unnamed globals are allowed [2].
> /// ParseUnnamedGlobal:
> /// OptionalVisibility (ALIAS | IFUNC) ...
2014 Aug 15
2
[LLVMdev] Functions with unnamed parameters in LLVM IR
On 15 August 2014 11:01, Tim Northover <t.p.northover at gmail.com> wrote:
> On 15 August 2014 10:53, Dan Liew <dan at su-root.co.uk> wrote:
>>> I did mean the LangRef, but probably not there, and not to that degree.
>>
>> For documentation I think being explicit is much better than being implicit.
>
> Sure, but the entire section on functions is 61 lines.
2011 Feb 27
2
[LLVMdev] LLVM IR Type System Rewrite
On Feb 27, 2011, at 9:48 AM, Rafael Ávila de Espíndola wrote:
>> Comments welcome!
>
> Having fewer types makes the job of the passes easier. Right now we
> maintain a small number of types as we go, which is expensive. In the
> proposed change, would it still be legal to write a type merging pass?
> For example, lets say we have
>
> %Foo = type { i32 }
>
2011 Sep 22
2
[LLVMdev] Getting number of "unnamed temporory"
Hello,
I am trying to print out output name of "unnamed temporary". For instance,
for %3 = add i32 %21, i32 %index.01, I would like to print out %3. Can
anybody please let me know how I can get it?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110921/56a6991a/attachment.html>
2011 Feb 27
0
[LLVMdev] LLVM IR Type System Rewrite
Hi Chris
I have questions about new IR.
> Named structs.
> Unnamed structs (named structs with no names)
> Anonymous structs (things like complex, which cannot be cyclic)
>
>Given this, the rules above would be that "only non-anonymous structs can have
>cycles" for example. Arrays, pointers and other non-namable types can be
>considered to be anonymous as well.
2013 Apr 09
2
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi Sean Silva:
i really appriciate for your reply.
but you konw that "dump()" instruction can print "%4" in the screen and each
time print the same name "%4" not "%5" or "%6" for the same unnamed value.
so there must be a way to determinate it. if "dump()" instruction can print
it on the screen, can i find some way to store it in a char *
2011 Feb 27
0
[LLVMdev] LLVM IR Type System Rewrite
On 11-02-26 4:25 PM, Chris Lattner wrote:
> Several people have been proding me to write up my thoughts on how to fix the IR type system for LLVM 3.0. Here are some (fairly stream of conscious) thoughts on the matter:
> http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt
Thanks!
> Comments welcome!
Having fewer types makes the job of the passes easier. Right now we
maintain a
2013 Apr 09
2
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan:
thanks for your patience.
i have tried it.
using instuction: errs()<<i->getOperand(0);
but it prints the address: someting like 0x1139700;
i checked the defination of getOperand() is Value* getOperand( unsigned int
i);
so is there someting i missed?
--
View this message in context:
2013 Apr 09
3
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan,
thank you for your reply;
instruction "i->getOperand(0)->dump()" may print the %4 in the screen, but
how can i store it in a variable like char * oprand="%4" ?
--
View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56588.html
Sent from the LLVM - Dev mailing
2008 Sep 02
0
[LLVMdev] CloneBasicBlock and Unnamed Temporaries
Hi,
I was trying to use CloneBasicBlock() (in Cloning.h) to clone basic
blocks in one of my transform passes. For example, when I have a basic
block like:
bb1: ; preds = %bb
load i32* %i, align 4 ; <i32>:11 [#uses=2]
load i32* %n_addr, align 4 ; <i32>:12 [#uses=2]
icmp slt i32 %11, %12 ; <i1>:13 [#uses=2]
cloning it gives something like:
bb1_clone: ; preds = %entry
2016 May 26
0
Potential ambiguity in the grammar of LLVM IR assembly
Hello Mehdi,
Thank you for bringing this to our awareness. I've been looking into the
3.8 release of LLVM. Would you happen to know if r269096 was part of
this realese?
lli running on my system is capable of handling unnamed global
variables, so I'd imagine so.
u at x1 ~> lli -version
LLVM (http://llvm.org/):
LLVM version 3.8.0
Optimized build.
Built May 7 2016
2013 Apr 09
0
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
Hi,
On 09/04/13 11:56, Dong Chen wrote:
> hi, Duncan:
> thanks for your patience.
> i have tried it.
> using instuction: errs()<<i->getOperand(0);
errs()<<*i->getOperand(0);
You can also use: i->getOperand(0)->dump();
Ciao, Duncan.
> but it prints the address: someting like 0x1139700;
> i checked the defination of getOperand() is Value* getOperand(
2014 Aug 20
2
[LLVMdev] Functions with unnamed parameters in LLVM IR
Hi Dan,
On 20 August 2014 15:12, Dan Liew <dan at su-root.co.uk> wrote:
> Sorry for the delay on this. Is the attached patch any better?
Yep, that looks fine to me. Would you like me to commit it or do you
have access?
Cheers.
Tim.