search for: llvmmodule

Displaying 4 results from an estimated 4 matches for "llvmmodule".

Did you mean: llvm_module
2013 Mar 17
0
[LLVMdev] LLVM ERROR: Program used external function 'X.foo' which could not be resolved!
...%"argument read1" = load i32* %bar %read = load i32* %g %"Code::Op::Mul" = mul i32 %"argument read1", %read ret i32 %"Code::Op::Mul" } I try to grab a function from it by this code dumpModulesToBitcodeFile( std::string("./executableModule"), llvmModule); llvm::Function* result = llvmModule->getFunction("X.foo"); OurFPM = new llvm::FunctionPassManager(llvmModule); llvm::EngineBuilder eB(llvmModule); eB.setEngineKind(llvm::EngineKind::JIT); llvmEngine = eB.create(); but it fails at the next line: llvmEngine->getPointerToFunction(r...
2016 Feb 16
2
DllImport: How to specify the library to link to?
Hi, I am absolutely new to LLVM. Currently reading through documentation and the C-API (which i want to use). As i am working on Windows, i was curios on how to specify an import which links to a function exported by a dll. The DLLStorageClass seems to be the wy to go, this seems clear. But after declaring a function for import, how do i specify the DLL the function is included in?
2007 Sep 12
0
[LLVMdev] C interface
...aming prefix is LLVM, > which may be a bit long. (Would LL be better?) LLVM seems fine to me, and the naming convention seems ok (using lowercase + underscores makes the name longer). I do find things like this slightly strange: /* Same as Module::addTypeName. */ int AddTypeNameToModule(LLVMModuleRef M, const char *Name, LLVMTypeRef Ty); I'd expect it to be named something like "LLVMModuleAddTypeName" or something, using NamespaceClassMethod uniformly. > Pointers are opaque, obviously. I find myself copying enums, which > is mildly scary. Copying the enums does s...
2007 Sep 12
7
[LLVMdev] C interface
Hi all, I'm authoring a C interface to the LLVM IR type system. Since this is Really Quite Tedious, I would like to solicit opinions before I get too far down any paths that seem offensive. I've attached the header, where I've mapped a portion of Module and most of Type and its subclasses. This is working, and I've built ocaml bindings on top of it.[1] My intent is to