search for: llvmfunction

Displaying 12 results from an estimated 12 matches for "llvmfunction".

2013 Nov 26
2
[LLVMdev] Disabling optimizations when using llvm::createPrintModulePass
...result, though. Can I somehow disable this optimization in the pass, leading to more verbose IR code? Here is the code I use to create the IR: llvm::LLVMContext c; llvm::Module module("test", c); llvm::Type * functionType = llvm::IntegerType::get(c, 16); llvm::Function * llvmFunction = llvm::cast <llvm::Function>(module.getOrInsertFunction("foo", functionType, nullptr)); llvmFunction->setCallingConv(llvm::CallingConv::C); llvm::BasicBlock * body = llvm::BasicBlock::Create(c, "__entry__", llvmFunction); llvm::IRBuilder <> builder(bo...
2013 Nov 28
0
[LLVMdev] Disabling optimizations when using llvm::createPrintModulePass
...e this optimization in the pass, leading to more > verbose IR code? > > Here is the code I use to create the IR: > > llvm::LLVMContext c; > llvm::Module module("test", c); > llvm::Type * functionType = llvm::IntegerType::get(c, 16); > llvm::Function * llvmFunction = llvm::cast > <llvm::Function>(module.getOrInsertFunction("foo", functionType, > nullptr)); > llvmFunction->setCallingConv(llvm::CallingConv::C); > llvm::BasicBlock * body = llvm::BasicBlock::Create(c, "__entry__", > llvmFunction); > llvm::IR...
2006 Sep 16
0
[LLVMdev] failed assertion in PPCJITInfo.cpp when calling native function
...() {} } int main() { Module* module = new Module("module"); FunctionType* funType = FunctionType::get(Type::VoidTy, vector<const Type*>(), false); Function* nativeFunction = new Function( funType, GlobalValue::ExternalLinkage, "native", module); Function* llvmFunction = new Function(funType, GlobalValue::ExternalLinkage, "llvmFunction", module); BasicBlock* block = new BasicBlock("Entry", llvmFunction); new CallInst(nativeFunction, vector<Value*>(), "", block); new ReturnInst(block); sys::DynamicLibrary dynamicLib...
2014 Apr 17
2
[LLVMdev] Importance of VMKit JIT function cache
Hi Gael I am sorry that I couldn't explain what I was trying to say, anyway I've got the answer :) . In the *parseFunction* method returns *llvmfunction* pointer of compiled method and then it will be stored in to cache. Could you please more elaborate on how those machine instructions ( native functions) executing by llvm. I was trying trace and I couldn't able to find out which component is taking those native functions and execute them o...
2013 Mar 08
1
[LLVMdev] [vmkit] Errors compiling vmkt
.... Hi Gael, does it mean vmkit will based on the latest llvm after the merge finished? I run into the same issue Chris meet when trying to verify tilegx backend by compiling vmkit. JavaJIT.cpp:1262:23: error: no member named 'removeFnAttr' in 'llvm::Function' llvmFunction->removeFnAttr( then I change to vmkit2, but found it's based on 3.2 only, failed compile with latest llvm > > See you, > Gaël > > > > 2013/2/24 Minas Abrahamyan <minas.subs at gmail.com>: >> Hi Harris, >> >> A question has arisen, what is t...
2016 Nov 07
2
[llvm] To link or not to link
Hi, I have migrated an LLVM front-end from LLVM 3.5 to 3.8 and now to 3.9 and ORC, and there is a concept which I could not transfer. Consider: extern "C" { void somefunc() {} } … auto llvmfunc = llvm::Function::Create(type, llvmFunction::PrivateLinkage, "bla", module)); executionengine.addGlobalMapping(llvmfunc, &somefunc); // now I have llvmfunc to work with and don't need to consider anything else The GlobalMappingLayer class seems to provide the functionality I want. I oriented myself on the example from http...
2013 Feb 12
2
[LLVMdev] [vmkit] Errors compiling vmkt
...ing JavaJIT.cpp for Release+Asserts build (bytecode) warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] JavaJIT.cpp:1262:23: error: no member named 'removeFnAttr' in 'llvm::Function' llvmFunction->removeFnAttr( ~~~~~~~~~~~~ ^ 1 warning and 1 error generated. make[3]: *** [/home/chris/vmkit/lib/j3/Compiler/Release+Asserts/JavaJIT.ll] Error 1 make[3]: Leaving directory `/home/chris/vmkit/lib/j3/Compiler' make[2]: *** [all] Error 1 make[2]: Leaving directory `/home/chris/vmkit/...
2014 Apr 16
3
[LLVMdev] Importance of VMKit JIT function cache
Hi VMKit JIT has a function cache to store compiled IR code , so, as soon as method is compiled , it will be stored in to function cache. My question is , who will use this compiled information from function cache. Since we are jitting , the llvm translate source code in to native code and executing them . So, how we relates this function cache with JIT ? Thanks Regards Sri.
2013 Feb 28
0
[LLVMdev] [vmkit] Errors compiling vmkt
Hi Minas, Basically, you should not have any difference between the two projects :) (it's not really the case, but we are working on this problem). To explain (sorry for my long email!), I work for a french research institution (Inria) and, as we have an Inria research project around VMKit, I had to create a repository inside my institution (a researcher has always to make his institution
2005 Jun 17
5
[LLVMdev] Re: Control flow graph
...ot" files that can be turned into a variety of graphics formats with the graphviz toolset that you can get on the net. If you're running on a system with graphviz installed and with 'gv' (ghostview), you can even call functions like this from your code or from the debugger: LLVMFunction->viewCFG() also ->viewCFGOnly(); > Also, when I compile a C file to llvm assembly code i.e using llvmgcc -S > option then the output file has lot of "declare" and "typedef" and then > the "main" starts. Sorry for my naive questions but can you tell me...
2013 Feb 12
0
[LLVMdev] [vmkit] Errors compiling vmkt
...+Asserts build (bytecode) > warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean > '-Wno-uninitialized'? [-Wunknown-warning-option] > JavaJIT.cpp:1262:23: error: no member named 'removeFnAttr' in > 'llvm::Function' > llvmFunction->removeFnAttr( > ~~~~~~~~~~~~ ^ > 1 warning and 1 error generated. > make[3]: *** > [/home/chris/vmkit/lib/j3/Compiler/Release+Asserts/JavaJIT.ll] Error 1 > make[3]: Leaving directory `/home/chris/vmkit/lib/j3/Compiler' > make[2]: *** [all] Error 1 > make[2]: L...
2013 Feb 24
2
[LLVMdev] [vmkit] Errors compiling vmkt
Hi Harris, A question has arisen, what is the difference between VMKit2 and VMKit, and why, in the first place the new VMKit2 fork was been created? Thanks for answer :) Best regards, Minas On Tue, Feb 12, 2013 at 2:36 PM, Harris Bakiras <h.bakiras at gmail.com> wrote: > Hi Chris, > > For the moment you can install VMKit following these instructions: > >