[LLVMdev] is this code really JITed and/or optimized =?koi8-r?Q?=3F=20?=..

Valery A.Khamenya khamenya at mail.ru
Fri Aug 13 15:39:51 PDT 2004


> If it's that slow, you're probably getting the interpreter instead of the
> JIT.  Try adding -print-machineinstr to the command line, or -debug, and
> see what happens.  If you're not getting the JIT, try stepping through the
> LLVM program to see where it makes the execution engine and decides which
> one to use...

(thanks for quick reply)

hm, here is the part of my code starting LLVM function:

///////////////////////////
  ExistingModuleProvider* MP = new ExistingModuleProvider(M);
  ExecutionEngine* EE = ExecutionEngine::create( MP, true );

  // Call the `foo' function with no arguments:
  std::vector<GenericValue> noargs;
  GenericValue gv = EE->runFunction(FooF, noargs);
///////////////////////////

for LLVM developers no debuging should be needed to make
quick and right diagnosis :)

--
Valery




More information about the llvm-dev mailing list