Displaying 9 results from an estimated 9 matches for "lizhuo".
2006 Mar 27
1
[LLVMdev] could you give me some advice ?
...GlobalVariable* gv = cast<GlobalVariable>(c->getOperand(0));
ConstantArray* ca = cast<ConstantArray>(gv->getOperand(0));
std::string str = ca->getAsString();
I feel this code a little awkward .
I wonder whether it should to be improved ?
thanks again
>On Sat, 25 Mar 2006, lizhuo wrote:
>> ; define ConstantArray
>> "E1$str" = internal constant [3 x sbyte] c"E1\00"
>>
>> ; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray
>> "E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str&q...
2006 Jan 04
2
[LLVMdev] how to convert into SSA form
Dear All,
Could someone tell me how to convert LLVM bytecode into minimal SSA form ?
or just depend on GCC frontend ?
thanks
aqex
2006 Jan 11
0
[LLVMdev] how to convert into SSA form
llvm-as file.bc | opt -mem2reg | llvm-dis > file.ll
On Wed, 2006-01-04 at 09:12 +0800, lizhuo wrote:
> meone tell me how to convert LLVM bytecode into minimal SSA form ?
> or just depend on GCC frontend ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed mes...
2006 Jan 11
2
[LLVMdev] how to convert into SSA form
On Wed, 11 Jan 2006, Reid Spencer wrote:
> llvm-as file.bc | opt -mem2reg | llvm-dis > file.ll
llvm-as < file.bc | opt -mem2reg | llvm-dis > file.ll
Note the extra "<".
-Chris
> On Wed, 2006-01-04 at 09:12 +0800, lizhuo wrote:
>> meone tell me how to convert LLVM bytecode into minimal SSA form ?
>> or just depend on GCC frontend ?
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2006 Mar 25
1
[LLVMdev] could you give me some advice ?
hi
I have one llvm program like this :
...
; define ConstantArray
"E1$str" = internal constant [3 x sbyte] c"E1\00"
; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray
"E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0)
...
when i want to get std::string object from this declaration in
2006 Mar 26
1
[LLVMdev] A question about Module::getGlobalVariable()
I want to find a global variable by name in some module ,
I find LLVM function Module::getGlobalVariable(string name,Type* ty);
My question is , is it necessary to specify the global variable type (second param) ?
Why not just
getGlobalVariable(string name).
I look up the source , and find that it depend on SymbolTable.find()
and SymbolTable only support find with type .is it True ? or I make
2006 Mar 26
0
[LLVMdev] could you give me some advice ?
lizhuo,您好!
不是很明白你的意思,好像你想从一个ConstantExpr::getPtrPtrFromArrayPtr 指针得到这个ConstantExpr 的内容,
但你的困难在哪里?
======= 2006-03-25 22:04:14 您在来信中写道:=======
>hi
>I have one llvm program like this :
>..
>; define ConstantArray
>"E1$str" = internal constant [3 x sbyte] c"E1\00"...
2006 Mar 27
0
[LLVMdev] could you give me some advice ?
...all names ("E1","E2"...) , then print and save it.
of course, i only know the global variable table name . I can get E1$entry from table ,
I want to get the string pointed by E1$entry .
Now is there a simple solution to get the string object ?
thanks.
>On Sat, 25 Mar 2006, lizhuo wrote:
>> ; define ConstantArray
>> "E1$str" = internal constant [3 x sbyte] c"E1\00"
>>
>> ; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray
>> "E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str&q...
2006 Mar 27
0
[LLVMdev] could you give me some advice ?
I see now, Thanks very much again
I wish to express my gratitude to the developers of LLVM.
It's really a excellent design and with many optimization implementation .
great work !
I hope that someday I can do something for LLVM .
aqex