Displaying 20 results from an estimated 26 matches for "zhangzw".
2009 Mar 26
2
[LLVMdev] how to get the InvodInst 's Operand Name?
Hi Duncan,
>>are you trying to get the name "@_ZTIi" or "@__cxa_throw"?
yes! i want get the name @_ZTi or @__cxa_throw,
the latter @__cxa_throw i can get it throw value->getName(), but the
@_ZTi it did n't has name!
zhangzw
thanks
2009/3/26 Duncan Sands <baldrick at free.fr>:
> Hi zhangzw,
>
>> invoke void @__cxa_throw(i8* %7, i8* bitcast
>> (%struct.__fundamental_type_info_pseudo* @_ZTIi to i8*), void (i8*)*
>> null)
>> noreturn to label %invcont unwind label %lpad
>&g...
2009 Mar 26
2
[LLVMdev] how to get the InvodInst 's Operand Name?
...)*
null)
noreturn to label %invcont unwind label %lpad
say I want to get the Invoke's Operand's name, I use
getOperand(i)->getName(), it can work for that the Operand hasname,
but some Operand hasn't name,
So, My problem is how can i get all the Operand 's name ?
zhangzw
2009 Mar 26
2
[LLVMdev] how to get the InvodInst 's Operand Name?
...on sjlj-eh it's need store the landing pad index to stack before
call __cxa_throw,
but it seems no ! in llvm-backend because it only suport dwarf-eh!
so i have to build another node to store landingpad index to stack
before llvm invoke instruction.
am i write for the direction? hehe.
zhangzw
2009/3/26 Duncan Sands <baldrick at free.fr>:
> Hi zhangzw,
>
>>> invoke void @__cxa_throw(i8* %7, i8* bitcast
>>> (%struct.__fundamental_type_info_pseudo* @_ZTIi to i8*), void (i8*)*
>>> null)
>>> noreturn to label %invcont unwind label...
2009 Mar 26
0
[LLVMdev] how to get the InvodInst 's Operand Name?
Hi zhangzw,
> invoke void @__cxa_throw(i8* %7, i8* bitcast
> (%struct.__fundamental_type_info_pseudo* @_ZTIi to i8*), void (i8*)*
> null)
> noreturn to label %invcont unwind label %lpad
>
> say I want to get the Invoke's Operand's name
are you trying to get the name "...
2009 Mar 26
0
[LLVMdev] how to get the InvodInst 's Operand Name?
Hi zhangzw,
>> invoke void @__cxa_throw(i8* %7, i8* bitcast
>> (%struct.__fundamental_type_info_pseudo* @_ZTIi to i8*), void (i8*)*
>> null)
>> noreturn to label %invcont unwind label %lpad
>
> >>are you trying to get the name "@_ZTIi" or "@__cxa_thr...
2009 Feb 26
2
[LLVMdev] Question LowerSetJmp
Hi
In llvm src the file llvm/lib/Transforms/IPO/LowerSetJmp.cpp, it
seems for sjlj-eh ? but this pass has no effect about c++ sjlj-eh.
this pass is for future extend?
zhangzw
2009 Mar 26
0
[LLVMdev] how to get the InvodInst 's Operand Name?
Hi zhangzw,
> >> Why do you want the names anyway?
>
> because i 'am working on llvm to support sjlj-eh for my target.
> for my side, I lookup the llvm invoke instruction to build the sjlj-eh
> on sjlj-eh it's need store the landing pad index to stack before
> call __c...
2009 Mar 26
1
[LLVMdev] how to get the InvodInst 's Operand Name?
...this got to do with determining the
>>names "@__cxa_throw" and "@_ZTi"?
Record the Information into the MachineModule Info, so in Dwarfwriter
or SjLjWriter(my sjlj-eh name)
can build the except table correctly!
2009/3/26 Duncan Sands <baldrick at free.fr>:
> Hi zhangzw,
>
>> >> Why do you want the names anyway?
>>
>> because i 'am working on llvm to support sjlj-eh for my target.
>> for my side, I lookup the llvm invoke instruction to build the sjlj-eh
>> on sjlj-eh it's need store the landing pad index to sta...
2009 Mar 27
1
[LLVMdev] LLVMdev Digest, Vol 57, Issue 51
...but llvm-2.5 didn't , if implement it without using MachineModuleInfo, so
I should create another ADT, but that is mostly same to MachineModuleInfo,
that's repeat work! or less cost for me !
>> It's being removed.
if so, what's the replacement of the MachineModuleInfo ?
zhangzw
2009 Apr 28
0
[LLVMdev] how to resolve llvm exception IR?
Hi zhangzw,
...
> 59 %3 = invoke
> %"struct.std::basic_ostream<char,std::char_traits<char> >"*
> @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"struct.std::basic_ostream<char,std::char_traits<char>
> >"* @_ZSt4cout, i8* geteleme...
2009 May 12
2
[LLVMdev] catch all
...ch(all) has extra null arg,
eh_select = tail call i32 (i8*, i8*, ...)*
@llvm.eh.selector.i32(i8* %eh_ptr, i8* bitcast (i32 (...)*
@__gxx_personality_v0 to i8*), i8* null) ; <i32> [#uses=0]
I have doubt that :
the llvm-IR like above are all translated from catch(all) statement .
zhangzw
2009 May 12
1
[LLVMdev] catch all
...e only the catch(...) statement can be translate to the LLVM-IR :
eh_select = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32(i8*
%eh_ptr, i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i8*
null)
are there any other case can be translate to the same above LLVM-IR ?
best regards
zhangzw
2009 Apr 28
3
[LLVMdev] how to resolve llvm exception IR?
...d
72
73 Unwind: ; preds = %lpad
74 tail call void @_Unwind_Resume(i8* %eh_ptr)
75 unreachable
76 }
here at line 48 can throw an exception?
my another problem : are there any different of above two llmv-ir
on handle c++ exception ?
best regards
zhangzw
2009-4-28
2009 Feb 17
2
[LLVMdev] sjlj-exceptions handlying
in llvm-backend did't support sjlj-exceptions handlying,but support
dwarf-excceptions handlying,
my question is: if i want change llvm-backend to support, how should i Do ?
anyone can give some clue?
bestregards
zhangzw
2009 Feb 18
0
[LLVMdev] sjlj-exceptions handlying
...now i have problem about the emit except table for
sjlj. because llvm used dwarf-eh info
no use for sjlj-eh! may be i have to find another way do my work.
all are machine dependent ! it's very difficult port to other target.
if someone can add a general way do this
that would be help !
regards
zhangzw
2009 Feb 26
0
[LLVMdev] Question LowerSetJmp
Hi zhangzw,
> In llvm src the file llvm/lib/Transforms/IPO/LowerSetJmp.cpp, it
> seems for sjlj-eh ?
it's not for sjlj-eh. The problem with setjmp/longjmp is that they
can jump from one part of a function to any other part, which means
that the control-flow graph is pointless; this makes eve...
2009 Apr 08
1
[LLVMdev] libstdc++v3
...llvm leave
the libstc++v3 to the front-end(clang or llvm-gcc?).
another problem is if I compile libstdc++v3 as byte-code
(llvm-IR), just say libstdc++v3.bc , and link libstdc++v3.bc with
programs, are this action can solve the problem of llvm didn't
support sjlj-exception?
best regards
zhangzw
2009 May 05
1
[LLVMdev] how to resolve llvm exception IR?
...generate the sjlj-eh code,
but I'm totally despair !
my major problem is that llvm-ir , I mean exception instrinstics
are enough for codegen the sjlj-eh code? May I need to modify the
llvm-gcc ?
or someone can give some advice about llvm-backend 's support sjlj-eh ?
best regards
zhangzw
2009 May 06
2
[LLVMdev] SJLJ EH
Hi,
>There's definitely more to it than the current intrinsics, which are
>there to support dwarf.
that's to say we need modify the llvm-gcc so the front end can
generate the sjlj-style IR,
>SJLJ exceptions rely on runtime library
>functions to register and unregister call frames which require
>unwinding, so we need to modify LLVM to handle generating those call
my
2009 May 06
0
[LLVMdev] SJLJ EH
Hi,
>There's definitely more to it than the current intrinsics, which are
>there to support dwarf.
from the exist llvm-ir it seems there are some common info for sjlj-eh
and dwarf-eh!
are there possible use the exist llvm-ir to generate exception table
for sjlj-eh ?
zhangzw