Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] does lli on x86-64 default to using MCJIT?"
2012 Sep 18
5
[LLVMdev] How to use MCJIT by default for a target
Hi, I'm looking into making MCJIT the default for the ARM-Linux-EABI target for lli.
(WHY? the old JIT doesn't really work on ARM, and in particular there are some regression tests of interesting things -- such as profiling -- that fail purely because the default old JIT doesn't work. So a consensus has been reached that the best way forward is to try to make the MCJIT the default for
2012 Sep 19
1
[LLVMdev] How to use MCJIT by default for a target
Anything to remove the current duplication in test code between
ExecutionEngine & ExecutionEngine/MCJIT is a step forward. While that
mess is tidied up, we may as well factor in a solution to allow
setting default JITs. IMO target support for MCJIT would improve
faster if at some point the transition was made completely. It's going
to happen eventually, and the sooner for those targets
2012 Sep 19
0
[LLVMdev] How to use MCJIT by default for a target
One possible way to solve the problem is to add an extra substitution argument to the lli invocation in the test files, then in the lit config files define that substitution to be "--use-mcjit" if the host OS architecture is ARM and empty otherwise.
It's not a particularly elegant solution, but I think it would work.
-Andy
-----Original Message-----
From: llvmdev-bounces at
2013 Jun 04
0
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Am 04.06.2013 16:05, schrieb David Tweed:
> | I am curious about JMM->invalidInstructionCache(), which I found in
> | lli.cpp implementation. lli.cpp contains also call finalizeObject(), I
> | just overlooked it. lli.cpp calls finalizeObject(), which calls
> | applyPermissions, which in turn calls invalidateInstructionCache. So why
> | lli.cpp does call
2013 Jun 04
1
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Hi Dmitri,
You're right. The lli code should be cleaned up. As David said, there was a time when the call to invalidate the instruction cache was necessary. It isn't necessary anymore.
-Andy
-----Original Message-----
From: Dmitri Rubinstein [mailto:dmitri.rubinstein at googlemail.com]
Sent: Tuesday, June 04, 2013 7:20 AM
To: David Tweed
Cc: Kaylor, Andrew; LLVM Dev
Subject: Re:
2012 Sep 19
4
[LLVMdev] How to use MCJIT by default for a target
Hi Andrew,
On 18/09/12 11:21, David Tweed wrote:
> in particular there are some regression tests of interesting things
> -- such as profiling -- that fail purely because the default old JIT
> doesn't work.
|I've actually got LLVM currently compiling within an ARM QEmu install to
|look at an assert within the ARM JIT code. Profiling tests that I
|submitted a few weeks ago are
2012 Sep 18
0
[LLVMdev] How to use MCJIT by default for a target
Hi David,
On 18/09/12 11:21, David Tweed wrote:
> in particular there are some regression tests of interesting things
> -- such as profiling -- that fail purely because the default old JIT
> doesn't work.
I've actually got LLVM currently compiling within an ARM QEmu install to
look at an assert within the ARM JIT code. Profiling tests that I
submitted a few weeks ago are
2012 Sep 19
0
[LLVMdev] How to use MCJIT by default for a target
It seems to me that MCJIT would be a nice default on the platforms that support it. On the other hand, I don't like the idea of the default behavior being platform dependent.
Perhaps the biggest obstacle to changing the default is that it would have complicated implications for the automated tests. The testing of JIT and MCJIT is already a bit of a mess, and changing the default to MCJIT
2015 Jan 20
2
[LLVMdev] [ LLI / MCJIT] re-initializing of lli ...
Hi Armin,
Argument parsing isn't handled by the JIT. This sounds like you're making
redundant calls to cl::ParseCommandLineOptions ?
Deleting the ExecutionEngine and any RTDyldMemoryManager instances that
you've created should be enough to reset the JIT.
Cheers,
Lang.
On Tue, Jan 20, 2015 at 12:38 PM, Armin Steinhoff <armin at steinhoff.de>
wrote:
>
> Hi,
>
>
2016 Mar 02
2
EH failures in MCJIT
After re-cmaking and rebuilding everything from scratch, I'm seeing
failures in MCJIT. It this something known or expected? I build
LLVM/clang with pre-packaged clang-3.7.0, with "-stdlib=libc++".
Example failure:
/w/bld/org/./bin/lli -remote-mcjit
-mcjit-remote-process=/w/bld/org/./bin/lli-child-target
/w/src/llvm.org/test/ExecutionEngine/MCJIT/remote/eh.ll
--
Exit Code:
2012 May 14
0
[LLVMdev] MCJIT
On 5/14/2012 10:40 AM, Ashok Nalkund wrote:
>>
>> Hm. OK, that's odd. It should change which constructor gets called in EngineBuilder::create() (which is in lib/ExecutionEngine/ExecutionEngine.cpp). Are you perhaps calling setUseMCJIT(true) after having already called create()? Can you step through EngineBuilder::create() and see what's happening there?
>>
>> -Jim
2011 Aug 31
1
[LLVMdev] Trouble using the MCJIT: "Target does not support MC emission" error
ons 2011-08-31 klockan 10:51 +0200 skrev Ralf Karrenberg:
> Hi Matt, hi Bruno,
>
> I am still struggling to use AVX via MCJIT on TOT... did you succeed yet?
>
> I seem to be unable to even get lli to run some code with the
> "use-mcjit" flag.
> I attached a test case that works fine for "lli y.bc" but exits with an
> error for "lli -use-mcjit
2016 Mar 03
2
EH failures in MCJIT
Hi Lang,
I am on Ubuntu 14.04.
I am building ToT: llvm, clang, polly, lld, compiler-rt, libcxx, libcxxabi.
The build compiler is: clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04
The failures show up during "make check-all".
My cmake command was:
cmake -G 'Unix Makefiles'
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/w/c/org
-DLLVM_TARGETS_TO_BUILD:STRING=all
2013 Jan 26
1
[LLVMdev] MCJIT/interpreter and iostream
As of LLVM 3.2, is it possible to use iostream with the MCJIT or interpreter execution engines? I'm getting some errors...
Each of these commands correctly prints "hello":
echo -e '#include <stdio.h>\nint main(){ printf("hello"); }' | clang -cc1 -emit-llvm-bc -x c++ | lli -use-mcjit
echo -e '#include <iostream>\nint main(){ std::cout <<
2013 Jun 03
5
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Hi all,
I tried to modify Kaleidoscope Tutorial (toy.cpp from
llvm/examples/Kaleidoscope/Chapter7, LLVM 3.3 release branch) in order
to use MCJIT instead of JIT. I get segmentation fault when running
toy.cpp with fibonacci example from the tutorial. My modified toy.cpp is
in attachment and still works with JIT (when #define USE_MCJIT line is
commented out).
I read discussions regarding
2012 May 14
2
[LLVMdev] MCJIT
On May 14, 2012, at 11:12 AM, Ashok Nalkund <ashoknn at qualcomm.com> wrote:
> On 5/14/2012 10:40 AM, Ashok Nalkund wrote:
>>>
>>> Hm. OK, that's odd. It should change which constructor gets called in EngineBuilder::create() (which is in lib/ExecutionEngine/ExecutionEngine.cpp). Are you perhaps calling setUseMCJIT(true) after having already called create()? Can
2011 Aug 31
0
[LLVMdev] Trouble using the MCJIT: "Target does not support MC emission" error
Hi Matt, hi Bruno,
I am still struggling to use AVX via MCJIT on TOT... did you succeed yet?
I seem to be unable to even get lli to run some code with the
"use-mcjit" flag.
I attached a test case that works fine for "lli y.bc" but exits with an
error for "lli -use-mcjit y.bc":
"LLVM ERROR: Unknown object format"
If I call InitializeAllTargetMCs() before
2013 Jan 08
0
[LLVMdev] [cfe-dev] ARM failures
On Tue, Jan 8, 2013 at 8:31 PM, David Tweed <David.Tweed at arm.com> wrote:
> The obvious difference is that you're using --enable-optimized and implicitly --disable-assertions. If you run the tests with
>
> make check-all VERBOSE=1 'LIT_ARGS=-v ' > logfile
>
> and grep for FAILED in logfile, does what's listed there give any more details? (Quite possible in
2012 May 14
2
[LLVMdev] MCJIT
On 5/14/2012 10:28 AM, Jim Grosbach wrote:
>
> On May 14, 2012, at 10:21 AM, Ashok Nalkund<ashoknn at qualcomm.com> wrote:
>
>> On 5/14/2012 9:51 AM, Jim Grosbach wrote:
>>>
>>>>>
>>>>> If you're hitting that code, you're running the old JIT (which does indeed not support inline assembly), not the MCJIT.
>>>>>
2013 Jan 08
1
[LLVMdev] [cfe-dev] ARM failures
You can compare your configure/build arguments + environment with the build
bot:
http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/4313/steps/configure/logs/stdio
I'll check how I built my LLVM on Chromebook tomorrow, but it didn't look
too different to yours.
--renato
On 8 January 2013 19:08, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Tue, Jan 8,