search for: createjit

Displaying 20 results from an estimated 81 matches for "createjit".

2009 Jun 13
2
[LLVMdev] What happened to the -fast flag for lli?
Hi, I've just installed llvm from trunk and lli seems to have lost the -fast option. Can we have it back please? Mark.
2009 Jun 13
0
[LLVMdev] What happened to the -fast flag for lli?
Hi, I'm slightly confused here. Not only, has -fast flag disappeared from lli, the ExecutionEngine:createJIT API has changed as well. I suspect these are related :) What will this do to the speed of JIT code generation? What effect do the new optimisation levels in ExecutionEngine:createJIT have? What lli flag (if any) corresponds to these optimisation levels? And is this documented anywhere? Mark.
2009 Dec 15
3
[LLVMdev] code generation for calls in JITted code after r88984
...been compiled. According to the comments for the commit, this was done to fix the large code model on amd64, but this affects JITs which can guarantee that both the caller and callee have 32 bit addresses, since the code model is set uncoditionally to Large, even if another code model was passed to createJIT (): http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?r1=86251&r2=88984&pathrev=88984 Would it be possible to fix this or make it configurable ? thanks Zoltan -------------- next part ---...
2010 Mar 18
1
[LLVMdev] Turning sub-target features on/off (e.g. Altivec on PowerPC)
...get sources but only found out that Altivec is disabled by default. Can I turn Altivec support on (and off, I need both cases) from the code? Some info: Mono's utilizes LLVM in this way: LLVMInitializePowerPCTarget (); LLVMInitializePowerPCTargetInfo (); ExecutionEngine *EE = ExecutionEngine::createJIT ( ... ); fpm = new FunctionPassManager ( ... ); fpm->add(new TargetData(*EE->getTargetData())); and then uses ExecutionEngine object for compiling functions. -- Regards, Sergei Dyshel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/p...
2008 Dec 17
1
[LLVMdev] Getting the start and end address of JITted code
...arth said: aph, you need to intercept the "endFunctionBody" call on the memory manager, it will tell you the start pointer and the end pointer But how can I do this? The obvious way would be for me to inherit from DefaultMemoryManager and pass an instance of my class to ExecutionEngine::createJIT. But DefaultMemoryManager isn't public so I can't inherit from it. It's not at all obvious to me how I'm supposed to intercept endFunctionBody. Thanks, Andrew.
2010 Nov 03
4
[LLVMdev] Fw: Forcing the Interpreter segfaults
...Török Edwin <edwintorok at gmail.com> > On Wed, 3 Nov 2010 11:18:34 +0000 > Salomon Brys <salomon.brys at gmail.com> wrote: > > > Jiting with no optimization does not reduce significantly the > > compilation with very small code... > > I mean the parameter to createJIT, OptLevel. Try setting it to None. > Or if you use EngineBuilder, setOptLevel(CodeGenOpt::None). > > > What is the local register allocator ??? > > -regalloc=fast, or -regalloc=local parameter to llc, or lli. > I think there was a programatic way to choose register allocator, b...
2009 Dec 15
0
[LLVMdev] code generation for calls in JITted code after r88984
...ding to the comments for the commit, this was done to fix the > large code model on amd64, but this affects JITs which can guarantee that > both the caller and callee have 32 bit addresses, since the code model is > set uncoditionally to Large, even if another code model was passed to > createJIT (): JIT::createJIT() intends to obey the CodeModel you pass it, but someone else was complaining of a bug there too. The CodeModel is definitely intended to be configurable, specifically so that users can specify the guarantees their JITMemoryManager provides. Still, it's supposed to be an opt...
2010 Mar 18
1
[LLVMdev] Turning on/off sub-target features (e.g. Altivec on PowerPC)
...get sources but only found out that Altivec is disabled by default. Can I turn Altivec support on (and off, I need both cases) from the code? Some info: Mono's utilizes LLVM in this way: LLVMInitializePowerPCTarget (); LLVMInitializePowerPCTargetInfo (); ExecutionEngine *EE = ExecutionEngine::createJIT ( ... ); fpm = new FunctionPassManager ( ... ); fpm->add(new TargetData(*EE->getTargetData())); and then uses ExecutionEngine object for compiling functions. -- Regards, Sergei Dyshel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/...
2011 Mar 24
2
[LLVMdev] Make PPC JIT support inline assembly?
...> http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html At the first glance, I think what llvm-mc does is, given an input, llvm-mc will disassemble the input into assembly. I don't know the MC-JIT you mentioned can be used as a JIT. Currently, a JIT is created by ExecutionEngine::createJIT. Can you give more information about the MC-JIT? Is it already included in llvm-2.8? Thank! Regards, chenwj -- Wei-Ren Chen (陳韋任) Parallel Processing Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
2011 Sep 19
1
[LLVMdev] Seg Fault when creating an execution engine
...llvm::LLVMTargetMachine::addCommonCodeGenPasses () (gdb) bt #0 0x0000000107c06643 in llvm::LLVMTargetMachine::addCommonCodeGenPasses () #1 0x0000000107c05c6b in llvm::LLVMTargetMachine::addPassesToEmitMachineCode () #2 0x0000000107ead7ab in llvm::JIT::JIT () #3 0x0000000107eaac21 in llvm::JIT::createJIT () #4 0x0000000107e2cbe4 in llvm::EngineBuilder::create () #5 0x0000000107e315b0 in LLVMCreateExecutionEngineForModule () #6 0x00000001002b1444 in ffi_call_unix64 () at darwin64.S:75 #7 0x00007fff5fbfc130 in ?? () (gdb) I have called LLVMLinkInJIT before this. Can anyone help? -Eric
2008 Dec 17
0
[LLVMdev] Getting the start and end address of JITted code
...uot; call on > the memory manager, it will tell you the start pointer and the end > pointer > Yep, that's what I said :) > But how can I do this? The obvious way would be for me to inherit > from DefaultMemoryManager and pass an instance of my class to > ExecutionEngine::createJIT. Correct. > But DefaultMemoryManager isn't public so > I can't inherit from it. You should inherit from JITMemoryManager. > It's not at all obvious to me how I'm > supposed to intercept endFunctionBody. > > Here's how vmkit does it: class MvmMemoryM...
2010 Nov 03
0
[LLVMdev] Fw: Forcing the Interpreter segfaults
...mon.brys at gmail.com <mailto:salomon.brys at gmail.com>> wrote: > >> > >>> Jiting with no optimization does not reduce significantly the > >>> compilation with very small code... > >> > >> I mean the parameter to createJIT, OptLevel. Try setting it to None. > >> Or if you use EngineBuilder, setOptLevel(CodeGenOpt::None). > >> > >>> What is the local register allocator ??? > >> > >> -regalloc=fast, or -regalloc=local parameter to llc, or lli. &gt...
2011 Jun 21
1
[LLVMdev] Instantiating a JIT on win64
...// ... std::string builderErr; llvm::EngineBuilder engineBuilder(&m_state.GetModule()); engineBuilder.setErrorStr(&builderErr); m_engine = engineBuilder.create(); Unfortunately, i can't seem to instantiate a JIT. I can get into the JIT::createJIT function, but i then fail to find an appropriate JIT for my architecture (which is actually X86_64-win64, via visual c++ compilation. I also had to fiddle around to get LLVM 2.9 to compile under the custom build system I'm working with). The JIT::selectTarget call infers a triple of "x86...
2013 Jul 20
1
[LLVMdev] Another memory alignment issue with SSE operations
Unfortunately, I've ran into a second issue where addpd is being performed on memory that isn't 16 byte aligned. Again, this only happens if the createJIT OptLevel is set to Default (vs None). According to http://www.jaist.ac.jp/iscenter-new/mpc/altix/altixdata/opt/intel/vtune/doc/users_guide/mergedProjects/analyzer_ec/mergedProjects/reference_olh/mergedProjects/instructions/instruct32_hh/vc8a.htm that will cause a GPF. I've attached the LLVM I...
2009 Dec 16
1
[LLVMdev] code generation for calls in JITted code after r88984
...ll, it's > supposed to be an optimization. The large code model should always > produce correct code. > > It does produce current code, its just that our code depends on LLVM generating normal direct calls and we would like a way to force it to do that. Passing CodeModel::Default to createJIT () used to do that, but it doesn't any more, since it is overwritten with Large. Zoltan > > > > > http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?r1=86251&r2=88984&pathrev=88984...
2011 Sep 03
0
[LLVMdev] LLVM: Cannot instantiate JIT execution engine
I see two problems in your code 1) you need to #include "llvm/ExecutionEngine/JIT.h" 2) you must pass an empty string to EngineBuilder::setErrorStr. See JIT::createJIT for the reason. Jeff On Sat, Sep 3, 2011 at 8:33 AM, Semion Prihodko <semion.ababo at gmail.com> wrote: > Isn't there someone to help me with this issue? I'm very upset about this > stupid problem which wasted the whole day. BTW, I can create JIT from > main.cpp, but not in...
2010 Feb 04
2
[LLVMdev] Jit singleton
Hi everyone ! If I call ExecutionEngine::createJIT (or EngineBuilder::create) more than one time, the second time fails on a assertion "Multiple JIT resolvers?". It seems that the JIT is designed to be a singleton in the process, and I was wondering if it was something mandatory. How hard will it be to make it a non-singleton object ? Is...
2011 Dec 17
2
[LLVMdev] Unable to build vmkit
Hello, I am using Ubuntu 11.10 64-bit. Following the instructions on the VMKit website I grabbed llvm, clang, and vmkit via svn (and GNU Classpath via the link of the page). Compilation of llvm, clang and classpath went fine. I had problems compiling vmkit, which seem to be related to a TargetOptions being required as a parameter when creating a TargetMachine in LLVM. This led to a couple other
2013 Oct 08
2
[LLVMdev] What makes register allocation expensive?
...n 294 RegisterCoalescer::runOnMachineFunction 116 RAGreedy::runOnMachineFunction llvm-3.3: 53683 total 52661 llvm::ExecutionEngine::runFunctionAsMain 16955 RAGreedy::runOnMachineFunction 15149 RegisterCoalescer::runOnMachineFunction 15072 SelectionDAGIsel::runOnMachineFunction Both cases use createJIT with default values, so optimization is presumably llvm::CodeGenOpt::Default. Disabling optimization yields a more reasonable run time with llvm-3.3: 1028 total 712 llvm::ExecutionEngine::runFunctionAsMain 491 SelectionDAGISel::runOnMachineFunction 85 RAFast::runOnMachineFunction But even llvm...
2008 Dec 17
5
[LLVMdev] Windows build problems
Folks, Is anyone else the failure below? On Mac OS X everything builds properly... Thanks for any help, snaroff -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 27.png Type: image/png Size: 18959 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081217/e7d37fee/attachment.png>