search for: mainf

Displaying 10 results from an estimated 10 matches for "mainf".

Did you mean: main
2013 Nov 21
1
[LLVMdev] Replacing C-style function
...eadbeef, ret); However, when i try to replace the use of print1 with print2, it doesn't seem to work correctly. This is the sequence of steps that I am following: llvm::Function *print2f = main->getFunction( "print2" ); print2f->takeName( print1f ); llvm::Function *mainf = main->getFunction( "mainOfLibrary" ); ee->freeMachineCodeForFunction( mainf ); ee->freeMachineCodeForFunction( print1f ); print1f->replaceAllUsesWith( print2f ); print1f->deleteBody(); print1f->dropAllReferences(); print1f->eraseFromParent();...
2015 Oct 27
3
Add a mapping to a C++ lambda
...meModule", Context); Module *M = Owner.get(); FunctionType *lambdaFT = FunctionType::get(Type::getInt32Ty(Context), false); Function *lambdaFN = Function::Create(lambdaFT, Function::ExternalLinkage, "lambda", Owner.get()); auto lambdaBody = []() { return 100; }; Function *mainF = cast<Function>(M->getOrInsertFunction("main", Type::getInt32Ty(Context), (Type *) 0)); BasicBlock *BB = BasicBlock::Create(Context, "EntryBlock", mainF); IRBuilder<> builder(BB); CallInst *lambdaRes = builder.CreateCall(lambdaFN, std::vector<Value *&g...
2008 Jan 06
2
Im looking for RubyOnRails Hosting, but with many sides.
...domainregistry and the hosting. i want to point one or many domains to this hosting without to register the domains with the hosting company. i will only point the dns A or CNAME record to the hosting. witch feature i need for this? witch hoster can serve this? thanks. PS: my current hoster D*mainf*ctory don''t support RoR and not allow "external" domains. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/...
2009 Aug 20
1
[LLVMdev] Get LLVM assembler for a function.
Hello Eli. Eli Friedman <eli.friedman at gmail.com> writes: >> Is there a method for obtaining the llvm assembler of a given Function? > > I think something like "F->print(f);" will do the right thing. Nope. It prints nothing at all. mainF->print(std::cout); -- Óscar
2011 Nov 25
2
[LLVMdev] JIT: Inlining introduces intrinsics.
...dn't cause any problems, as codegen should handle them. Nick before > executing the generated code: > > for (Module::iterator it = M->begin(); it != M->end(); ++it) > EE->getPointerToFunction(&*it); > > Function *mf = M->getFunction("mainf"); > > EE->runFunction(mf, args); > > This is done for establishing a clear distinction between compile time > and execution time (for benchmarking purposes) and for speeding up the > whole process, as it is quite faster to generate all code in advance > than to JI...
2011 Nov 25
0
[LLVMdev] JIT: Inlining introduces intrinsics.
...he cause is that the JIT compiler calls getPointerToFunction for all defined functions on the module before executing the generated code: for (Module::iterator it = M->begin(); it != M->end(); ++it) EE->getPointerToFunction(&*it); Function *mf = M->getFunction("mainf"); EE->runFunction(mf, args); This is done for establishing a clear distinction between compile time and execution time (for benchmarking purposes) and for speeding up the whole process, as it is quite faster to generate all code in advance than to JIT it as it is found (ExecutionEngi...
2011 Nov 23
2
[LLVMdev] JIT: Inlining introduces intrinsics.
Hello Eli. Eli Friedman <eli.friedman at gmail.com> writes: >> If I activate the Inliner pass: >> >>    Builder.Inliner = createFunctionInliningPass(Threshold); >> >> this is the result: >> >> LLVM ERROR: Program used external function 'llvm.lifetime.start' which could not be resolved! >> >> It happens on almost all my test
2009 Aug 20
6
[LLVMdev] Get LLVM assembler for a function.
We can get the llvm assembler for a Module with something as simple as std::ofstream f("code.llvm"); f << *M; Is there a method for obtaining the llvm assembler of a given Function? -- Óscar
2009 Aug 20
0
[LLVMdev] Get LLVM assembler for a function.
On Wed, Aug 19, 2009 at 10:30 PM, Óscar Fuentes<ofv at wanadoo.es> wrote: > We can get the llvm assembler for a Module with something as simple as > >      std::ofstream f("code.llvm"); >      f << *M; > > Is there a method for obtaining the llvm assembler of a given Function? I think something like "F->print(f);" will do the right thing. -Eli
2011 Nov 25
0
[LLVMdev] JIT: Inlining introduces intrinsics.
...ndle them. Are you suggesting that there should be no problem with this idiom so it is a LLVM bug? >> for (Module::iterator it = M->begin(); it != M->end(); ++it) >> EE->getPointerToFunction(&*it); >> >> Function *mf = M->getFunction("mainf"); >> >> EE->runFunction(mf, args);