Displaying 6 results from an estimated 6 matches for "llvmsetdatalayout".
2015 Jan 08
2
[LLVMdev] JIT simple module and accessing the value fails
I'm using the llvm-c API and want to use the JIT. I've created the following
module
; ModuleID = '_tmp'
@a = global i64 5
define i64 @__tempfunc() {
entry:
%a_val = load i64* @a
ret i64 %a_val
}
This output is generated by LLVMDumpModule just before I call LLVMRunFunction.
Which yields a LLVMGenericValueRef. However converting the result to a 64bit
integer via
2012 Apr 25
2
[LLVMdev] Crash in JIT
...ROS
#include "llvm-c/Core.h"
#include "llvm-c/ExecutionEngine.h"
int main(int argc, const char * argv[])
{
LLVMContextRef llvm;
llvm = LLVMContextCreate();
LLVMModuleRef module;
module = LLVMModuleCreateWithNameInContext("MyModule", llvm);
//LLVMSetDataLayout(module, "i686-apple-darwin11"); <-- is needed? What is correct?
LLVMSetTarget(module, "i686-apple-darwin11");
LLVMTypeRef int32 = LLVMInt32TypeInContext(llvm);
LLVMTypeRef funcType;
LLVMTypeRef threeInts[] = {int32, int32, int32};
funcType = LLV...
2012 Apr 25
0
[LLVMdev] Crash in JIT
...MACROS
#include "llvm-c/Core.h"
#include "llvm-c/ExecutionEngine.h"
int main(int argc, const char * argv[])
{
LLVMContextRef llvm;
llvm = LLVMContextCreate();
LLVMModuleRef module;
module = LLVMModuleCreateWithNameInContext("MyModule", llvm);
//LLVMSetDataLayout(module, "i686-apple-darwin11"); <-- is needed? What is correct?
LLVMSetTarget(module, "i686-apple-darwin11");
LLVMTypeRef int32 = LLVMInt32TypeInContext(llvm);
LLVMTypeRef funcType;
LLVMTypeRef threeInts[] = {int32, int32, int32};
funcType = LLVMFunct...
2008 Mar 04
1
[LLVMdev] [PATCH] Prefer to use *.opt ocaml executables as they are more efficient.
I noticed that the ocaml compilation isn't using the .opt
executables if they're available. We might gain a slight
optimization in ocaml compile time by optionally using them
with this patch.
---
autoconf/configure.ac | 18 +++++
configure | 195 ++++++++++++++++++++++++++++++++++++++++++------
2 files changed, 188 insertions(+), 25 deletions(-)
-------------- next part
2008 Mar 04
0
[LLVMdev] [PATCH] Cleanup the c and ocaml binding documentation.
...ModuleRef LLVMModuleCreateWithName(const char *ModuleID);
> +
> +/** See [llvm::Module::~Module]. */
> void LLVMDisposeModule(LLVMModuleRef M);
>
> -/* Data layout */
> +/** Data layout. See [Module::getDataLayout]. */
> const char *LLVMGetDataLayout(LLVMModuleRef M);
> void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple);
>
> -/* Target triple */
> +/** Target triple. See [Module::getTargetTriple]. */
> const char *LLVMGetTarget(LLVMModuleRef M);
> void LLVMSetTarget(LLVMModuleRef M, const char *Triple);
>
> -/* Same as Module::addTypeName. */
> +/** See...
2008 Mar 04
1
[LLVMdev] [PATCH] Cleanup the c and ocaml binding documentation.
---
bindings/ocaml/llvm/llvm.ml | 2 +-
bindings/ocaml/llvm/llvm.mli | 2 +-
bindings/ocaml/llvm/llvm_ocaml.c | 2 +-
include/llvm-c/Core.h | 32 +++++++++++++++++++-------------
4 files changed, 22 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 316a84e85ed2363551149e65a227c8e7c8192624.diff
Type: