search for: sjlj

Displaying 20 results from an estimated 222 matches for "sjlj".

2006 Aug 08
3
[LLVMdev] build error
>From CVS: llvm[3]: Compiling SJLJ-Exception.cpp for Debug build (bytecode) SJLJ-Exception.cpp:16:19: cstdlib: No such file or directory SJLJ-Exception.cpp:17:19: cassert: No such file or directory SJLJ-Exception.cpp: In function `void SJLJDestructor(llvm_exception*)': SJLJ-Exception.cpp:43: error: `free' undeclared (first u...
2013 Jul 12
2
[LLVMdev] setjmp/longjmp exception handling: how?
Dear list, I want to add SJLJ exception handling to my frontend. Unfortunately, there doesn't seem to be any examples in the documentation as to how to use the intrinsics @llvm.eh.sjlj.setjmp @llvm.eh.sjlj.longjmp @llvm.eh.sjlj.lsda @llvm.eh.sjlj.callsite Is there a way to force Clang to use SJLJ exception handling for C+...
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 approach : when the user use the option, e.g -enable-sjlj-eh, I will build the register and unreg...
2006 Aug 08
0
[LLVMdev] build error
Hi Simon, What version of llvm-gcc did you configure LLVM with? If you don't know, please send your configure.out file from your LLVM_OBJ_ROOT Thanks, Reid. On Tue, 2006-08-08 at 12:01 +1000, Simon Burton wrote: > >From CVS: > > llvm[3]: Compiling SJLJ-Exception.cpp for Debug build (bytecode) > SJLJ-Exception.cpp:16:19: cstdlib: No such file or directory > SJLJ-Exception.cpp:17:19: cassert: No such file or directory > SJLJ-Exception.cpp: In function `void SJLJDestructor(llvm_exception*)': > SJLJ-Exception.cpp:43: error: `free'...
2009 May 07
2
[LLVMdev] the different semantics between dwarf-eh and sjlj-eh
Hi, >> 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 ? >No. There should be support from llvm-gcc. sjlj eh and dwarf eh have >different semantics different semantics ? ! I think llvm-gcc generate the IR should not inc...
2007 Sep 11
2
gcc-sjlj
...ttached base packages: [1] stats graphics grDevices utils datasets methods base The check is failing with this error: * checking whether package 'caret' can be installed ... ERROR Installation failed. Specifically: making DLL ... making caret.d from caret.c make[3]: gcc-sjlj: Command not found make[3]: [caret.d] Error 127 (ignored) cat: caret.d: No such file or directory make[3]: [makeMakedeps] Error 1 (ignored) gcc-sjlj -std=gnu99 -Ic:/PROGRA~1/R/R260AL~1/include -Wall -O3 -c caret.c -o caret.o make[3]: gcc-sjlj: Command not found make[3]: *** [caret.o] Error 12...
2008 May 01
2
Error while making R package
...package using R 2.6.2 And I am getting following error. When I give R CMD check t1\ ---------- Making package t1 ------------ adding build stamp to DESCRIPTION making DLL ... making CGHseg_rewrite.d from CGHseg_rewrite.c making rowMedians.d from rowMedians.c making runavg.d from runavg.c gcc-sjlj -std=gnu99 -Ic:/R/R-2.6.2/include -O3 -Wall -c CGHseg_rewrite.c -o CGHseg_rewrite.o gcc-sjlj -std=gnu99 -Ic:/R/R-2.6.2/include -O3 -Wall -c rowMedians.c -o rowMedians.o gcc-sjlj -std=gnu99 -Ic:/R/R-2.6.2/include -O3 -Wall -c runavg.c -o runavg.o windres --preprocessor="gcc...
2013 Feb 11
1
[LLVMdev] Platform-independent Exception Handling
Hi Bill, Thanks for the response, I just have a couple more questions. On 11 February 2013 06:45, Bill Wendling <wendling at apple.com> wrote: > As far as which OS/architectures support zero-cost EH and which > support SJLJ, LLVM is designed to assume that Intel supports zero-cost > exceptions and ARM supports SjLj exceptions. However, it's all in the > personality function and unwind library. So it's not required that ARM > use only SJLJ, it's just how it works because of the personality > fun...
2009 May 05
1
[LLVMdev] how to resolve llvm exception IR?
hi, I'm doing to make llvm backend support sjlj-eh! I have try to use the llvm-IR to 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 &...
2013 Feb 10
3
[LLVMdev] Platform-independent Exception Handling
Greetings, I'm trying to implement exception handling in my front end. I have a prototype working using the Itanium ABI on Linux x86_64, but I'm not sure how to proceed for other platforms. So I was wondering: which OS/architecture combinations support zero-cost EH, and which support SJLJ? My main concern is keeping the IR for call sites platform independent. Right now, it looks like to do that I might have to write my own exception handling system (i.e. without invoke/landingpad) using just setjmp(), longjmp(), and some thread local variables - which I have a working prototype for...
2013 Feb 11
0
[LLVMdev] Platform-independent Exception Handling
...trying to implement exception handling in my front end. I have a > prototype working using the Itanium ABI on Linux x86_64, but I'm not > sure how to proceed for other platforms. > > So I was wondering: which OS/architecture combinations support > zero-cost EH, and which support SJLJ? > > My main concern is keeping the IR for call sites platform independent. > Right now, it looks like to do that I might have to write my own > exception handling system (i.e. without invoke/landingpad) using just > setjmp(), longjmp(), and some thread local variables - which I hav...
2009 Feb 18
0
[LLVMdev] sjlj-exceptions handlying
my ugly way about the sjlj-eh is: in the last part of the llvm codegen build some relative sjlj-eh runtime function. ok, why i do like that, because i want quick run of the sjlj-en for my target., above method,based on the dwarf-eh(llvm used), now the other work of my method are emit except table, also base on llvm, now i ha...
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
2009 May 07
0
[LLVMdev] llvm-gcc's sjlj-eh support
Hi, many people suggest that if we want llvm to support sjlj-eh, we should modify the llvm-gcc to generate sjlj-style IR. yeah, I'm digging into the llvm-gcc now. there are some functions, at the llvm-gcc e.g TreeToLLVM::CreateExceptionValues() , BasicBlock *TreeToLLVM::getPostPad(unsigned RegionNo), void TreeToLLVM::EmitLandingPads(), void TreeToLLVM:...
2013 Jul 12
0
[LLVMdev] setjmp/longjmp exception handling: how?
I strongly advise you not to use SjLj exception handling. Use zero-cost-exceptions via DWARF instead. If you really want to pursue sjlj anyway, look at the ARM backend. It uses them for darwin targets. -Jim On Jul 12, 2013, at 9:09 AM, Nicolas Ojeda Bar <N.Ojeda.Bar at dpmms.cam.ac.uk> wrote: > Dear list, > > I want...
2009 Mar 26
2
[LLVMdev] how to get the InvodInst 's Operand Name?
Hi Duncan, thanks ! hehe . >> 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 __cxa_throw, but it seems no ! in llvm-backend because it only suport dwarf-eh! so i have to build another node to store la...
2018 Dec 07
2
Should intrinsics llvm.eh.sjlj.setjmp be with isBarrier flag?
....end Predecessors according to CFG: BB#1 %vreg2<def> = ADDIStocHA %X2, <ga:@env_sigill>; G8RC_and_G8RC_NOX0:%vreg2 %vreg3<def> = LDtocL <ga:@env_sigill>, %vreg2<kill>; mem:LD8[GOT] G8RC:%vreg3 G8RC_and_G8RC_NOX0:%vreg2 %vreg4<def> = EH_SjLj_SetJmp64 %vreg3<kill>, %CTR8<imp-def,dead>; GPRC:%vreg4 G8RC:%vreg3 Currently Powerpc sets EH_SjLj_SetJmp64 with flag isBarrier. But it is also a fall-through instruction. So it fails in machineinstr verifying. I checked other platforms like X86 and ARM, they also set this intrinsics...
2009 Mar 26
1
[LLVMdev] how to get the InvodInst 's Operand Name?
Hi Duncan, >>I don't get it. Sorry my bad English! hehe. >>What has 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,...
2012 Nov 28
4
[LLVMdev] noreturn attribute on a call instruction vs noreturn on a function
...lding the following C code I get a call instruction that has no noreturn attribute, while the function itself does have it. void foo(void **b) { __builtin_longjmp(b, 1); } define void @_Z3fooPPv(i8** %b) noreturn nounwind uwtable { entry: %0 = bitcast i8** %b to i8* tail call void @llvm.eh.sjlj.longjmp(i8* %0) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< unreachable } declare void @llvm.eh.sjlj.longjmp(i8*) noreturn nounwind <<<<<<<<<<<<<<<&l...
2007 Dec 20
2
SHLIB steps on a Makefile
...tion process. My Makefile works fine in Linux but I am having trouble creating Makefile.win for MinGW. I first looked at the commands that Rcmd SHLIB appeared to be running and copied those onto the Makefile. But one step seems to be missing, the creation of the _res.rc file needed by windres g++-sjlj -I$(RHOME)/include -I../inst/include/ -O2 -Wall -c pkg.cpp -o pkg.o windres --preprocessor="gcc-sjlj -E -xc -DRC_INVOKED" -I$(RHOME)/include -I../inst/include -i pkg_res.rc -o pkg_res.o g++-sjlj -shared -s -o pkg.dll pkg.def pkg.o FL pkg_res.o -L$(RHOME)/bin -lR This might be fairly ob...