Displaying 4 results from an estimated 4 matches for "myaddinst".
Did you mean:
addinst
2013 Jul 24
0
[LLVMdev] Steps to addDestination
...ing to a string name, and is only really important for
clarity and debugging the IR being produced. It means you could start
out with something like
[...]
%1 = add i32 %lhs, %rhs
ret i32 %1
[...]
(where the %1 is just an automatically incrementing label provided by
LLVM) then call MyAddInst.setName("theSum") and LLVM would
automatically convert this to:
%theSum = add i32 %lhs, %rhs
ret i32 %theSum
You still have to have an initialised, valid Value pointer to be able
to do this.
> 3- I'm not sure about "select" instruction, you mean that the addres...
2013 Jul 23
2
[LLVMdev] Steps to addDestination
1- I need the first example.
2- I set the Address uninitialized according to the documentation
" Setting the name on the Value automatically updates the module's symbol
table"
from Value.h source code
3- I'm not sure about "select" instruction, you mean that the address is
the new destination (basic block)that will be added
Thanks
On 23 July 2013 16:38, Tim Northover
2010 Jul 17
1
[LLVMdev] replace instruction
Hello all,
Suppose I have an Instruction like
%1 = add i32 %a, %b
and I want to convert it like
%t = add i32 %a, %b
and assign the value of %t to %1 (something like %1 <- %t )
how can I accomplish this?
Regards,
Chayan
2013 Jul 24
2
[LLVMdev] Steps to addDestination
...nt for
> clarity and debugging the IR being produced. It means you could start
> out with something like
>
> [...]
> %1 = add i32 %lhs, %rhs
> ret i32 %1
> [...]
>
> (where the %1 is just an automatically incrementing label provided by
> LLVM) then call MyAddInst.setName("theSum") and LLVM would
> automatically convert this to:
>
> %theSum = add i32 %lhs, %rhs
> ret i32 %theSum
>
> You still have to have an initialised, valid Value pointer to be able
> to do this.
>
> > 3- I'm not sure about "select&q...