Displaying 20 results from an estimated 800 matches similar to: "[LLVMdev] r98459 break of ExceptionDemo"
2010 Mar 22
2
[LLVMdev] r98459 break of ExceptionDemo
Ok, I've isolated the recent additions that cause the issue and supplied a patch which is NOT meant
to be applied, but instead solely exists for identification purposes for those who know what they are doing. :-)
The patch is offset from HEAD.
The patch is a hack which removes use of the MCSymbol::isDefined(...) method, as its use happens to break
in the exception JIT context; both in
2010 Mar 18
0
[LLVMdev] r98459 break of ExceptionDemo
Forgot to add platform with issue: OS X 10.6.2. I have not tested elsewhere.
Garrison
On Mar 18, 2010, at 14:20, Garrison Venn wrote:
> Hi Chris,
>
> The MCSymbol r98459 patch of llvm seems to have broken the ExceptionDemo example. As the example is dying in the
> associated personality's first unwind search phase, which happens to have no language specific context, and is
2010 Apr 16
0
[LLVMdev] r98459 break of ExceptionDemo
Hi Garrison,
Does r101453 fix this?
-Chris
On Mar 22, 2010, at 12:35 PM, Garrison Venn wrote:
> Ok, I've isolated the recent additions that cause the issue and supplied a patch which is NOT meant
> to be applied, but instead solely exists for identification purposes for those who know what they are doing. :-)
> The patch is offset from HEAD.
>
> The patch is a hack which
2011 Jul 21
0
[LLVMdev] Catching exceptions passed through a JIT ExecutionEngine
Ok, see llvm/examples/ExceptionDemo/ExceptionDemo.cpp
For OS X and Linux, build llvm with the environmental variable BUILD_EXAMPLES set to 1(csh: setenv BUILD_EXAMPLES 1). If llvm is already built, it will only build the examples from clang and llvm, ExceptionDemo being one of those.
If I understand your case, running ExceptionDemo with an arg of -1 emulates your scenario. Note that the
2011 Apr 11
1
[LLVMdev] Some sort of DAG lowering error
I'm seeing the following result on code which has run successfully before on Linux, and
currently successfully runs on OS X 10.6.x:
Stack dump:
0. Running pass 'X86 DAG->DAG Instruction Selection' on function '@outerCatchFunct'
Segmentation fault
This process was built as part of the LLVM tree with:
setenv CC /usr/local/bin/gcc
setenv CFLAGS -march=i686
setenv CXX
2011 Jul 21
2
[LLVMdev] Catching exceptions passed through a JIT ExecutionEngine
Yes, I did -- it made no difference. Should it?
Note that I have since discovered that this is not a problem on Windows -- the exception drops through as expected.
pz
On 2011-07-21, at 5:45 PM, Garrison Venn wrote:
> Sorry Peter, just saw this.
>
> If you are still having the problem:
>
> Did you set: llvm::JITExceptionHandling = true; ?
>
> Garrison
>
> On Jul
2012 Nov 07
1
[LLVMdev] accessing personality and other exception related functions
Hi,
in ExceptionDemo code (
https://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp?view=markup&sortby=file
) the function "ourPersonality" is defined. a llvm::Function is
created with the same name inside function
"createStandardUtilityFunctions". The llvm::Function is retrieved in
function "createCatchWrappedInvokeFunction".
2010 Jan 16
0
[LLVMdev] ExceptionDemo patch
Attached is a patch which will add an exception handling example to the examples directory.
This patch is a version of what I added to the wiki which in addition meets the LLVM build and coding standards
requirements.
The patch was tested for a debug build on CentOS LINUX, and both a debug and release build on OS X 10.6.2.
Because of an #include <unwind.h>, I do not know if the patch
2012 Dec 13
2
[LLVMdev] Fwd: error while linking modules with exception handling demo code
---------- Forwarded message ----------
From: charles quarra <charllsnotieneningunputocorreo at gmail.com>
Date: 2012/12/13
Subject: error while linking modules with exception handling demo code
To: llvmdev at cs.uiuc.edu
Hi,
I am building a module X with an arithmetic function foo, a module Y
with an arithmetic function foo2 that invokes foo. For the invocation
be a proper one (being
2011 Jul 11
0
[LLVMdev] type-system-rewrite branch landing tomorrow
Attached is a patch for the non ExceptionDemo demos which gets rid of the old
const qualifier usage for Type. Although I recently commited the ExceptionDemo
changes, I did not want to touch code that I did not "own" without other's approval.
Even though trivial, I did not test this patch.
Garrison
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2011 Jul 21
0
[LLVMdev] Catching exceptions passed through a JIT ExecutionEngine
On Tue, Jul 12, 2011 at 07:25:16PM -0400, Peter Zion said
> Hi All,
>
> I'm trying to catch an exception that is "passed through" an LLVM ExecutionEngine but I am unable to do so. Specifically, in C++ code, inside a try/catch block, I call a JITted function, which in turn calls back into my code. Everything works fine unless an exception is thrown; I would except the
2011 Jul 12
5
[LLVMdev] Catching exceptions passed through a JIT ExecutionEngine
Hi All,
I'm trying to catch an exception that is "passed through" an LLVM ExecutionEngine but I am unable to do so. Specifically, in C++ code, inside a try/catch block, I call a JITted function, which in turn calls back into my code. Everything works fine unless an exception is thrown; I would except the outermost try/catch(...) block to catch the exception thrown in my innermost
2008 Feb 01
2
[LLVMdev] Exception handling in JIT
Dear all,
Here's a new patch with Evan's comments (thx Evan!) and some cleanups.
Now the (duplicated) exception handling code is in a new file:
lib/ExecutionEngine/JIT/JITDwarfEmitter.
This patch should work on linux/x86 and linux/ppc (tested).
Nicolas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jit-exceptions.patch
URL:
2016 Jan 21
2
Propagation of foreign c++ exceptions (msvc, x64, llvm 3.7.1, MCJIT) through IR code
Hi all,
I have the following code:
[use llvm to generate ir_func() ]
in side the ir_func() there's a call to a native cpp function that throws
an exception.
(Just imagine changing the fibonacci example and calling a native c++ func
that throws inside the fibonacci body)
I can't seem to catch "foreign" exception or any exception using the
following pseudo code:
try {
// cast
2010 Oct 26
3
[LLVMdev] Throwing C++ exception through LLVM JITed code
I am using LLVM to compile script code and then executing using the JIT
compiler via the runFunction() method. The script code is contained with a
C++ program compiled with G++. I am having a problem when an intrinsic
function (i.e. a function implemented in C++ which is called from the LLVM
compiled script) throws a C++ exception. I want the exception to be caught
by the C++ code that invoked the
2012 Apr 09
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Apr 8, 2012, at 10:40 PM, Bill Wendling wrote:
> What gets returned by the landingpad instruction (%0 here) is normally a structure. LLVM doesn't typically treat aggregates as first-class citizens. In particular, you shouldn't store the whole structure to memory like you do to %5. You can use 'extractvalue' to get the different elements of the structure. If you need to
2012 May 08
0
[LLVMdev] 3.1 API Breakage
Hello Albert,
> Any help is much appreciated.
I believe examples/ExceptionDemo contains sample code which sets
TargetOptions flags.
In particular, llvm::EngineBuilder class has setTargetOptions() method
which does all necessary magic here.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2010 Feb 02
0
[LLVMdev] Updated ExceptionDemo patch
The attached patch is an updated version of a previous example patch submitted to the list.
Although the previous patch was never added to the repository, I'm submitting the new
version for consistency sake, and to see if anyone is interested in porting this to windows.
This version conforms to the latest mainline (2.7), and no longer includes any system include files.
However there is a
2012 Apr 09
5
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Apr 8, 2012, at 8:47 AM, Paul J. Lucas wrote:
> On Apr 8, 2012, at 4:20 AM, Bill Wendling wrote:
>
>> On Apr 4, 2012, at 9:32 PM, Paul J. Lucas wrote:
>>
>>> This all seems to work just fine. I can throw a C++ exception either in a C++ object's constructor or in an ordinary member function and the stack unwinds correctly (the object's destructors are
2012 Apr 08
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Apr 8, 2012, at 4:20 AM, Bill Wendling wrote:
> On Apr 4, 2012, at 9:32 PM, Paul J. Lucas wrote:
>
>> This all seems to work just fine. I can throw a C++ exception either in a C++ object's constructor or in an ordinary member function and the stack unwinds correctly (the object's destructors are called) and the exception is propagated back up the C++ code that called the