search for: voidtype

Displaying 6 results from an estimated 6 matches for "voidtype".

Did you mean: void_type
2014 Aug 31
2
[LLVMdev] Inserting Calls to var args Functions
...nt32 function below. void recordInt32(int32_t val){ printf("%d, ", val); } I can get recodedInt32 function in my Module using getOrInsert Function. Function* RecordInt32 = cast<Function>(M.getOrInsertFunction("recordInt32", VoidType, Int32Type, NULL)); and insert at desired instPoint using: CallInst::Create(RecordInt32, args, "", instPoint); What should be the similar instructions for recoedVarInsputValues below: void reco...
2014 Jan 09
2
[LLVMdev] reference to non-static member function must be called
I'm using LLVM 3.3 Release. From the Class Reference Page. CallInst has a member function : static CallInst * Create (Value *Func, ArrayRef< Value * > Args, const Twine &NameStr="", Instruction *InsertBefore=0) This is what I want to use! the default name is "" and I also use that . Thanks! ----- Kind Regards! -JinHuang -- View this message in context:
2017 Jun 21
2
question about llvmlite
...t CFUNCTYPE, c_intimport archinfoimport llvmlite.ir as llimport llvmlite.binding as llvmimport pyvex CODE = b"\x55\x48\x8b\x05\xb8\x13\x00\x00"mehran = -100 llvm.initialize()llvm.initialize_native_target()llvm.initialize_native_asmprinter() module = ll.Module()func_ty = ll.FunctionType(ll.VoidType(), [])func = ll.Function(module, func_ty, name='read_instructions')a = func.argsbb_entry = func.append_basic_block('entry')irbuilder = ll.IRBuilder(bb_entry)int_type = ll.IntType(64);irsb = pyvex.block.IRSB(CODE, 0x400400, archinfo.ArchAMD64()) for stmt in irsb.statements: #if...
2014 Jan 08
3
[LLVMdev] reference to non-static member function must be called
...arent(); IntegerType* Int8Type = IntegerType::getInt8Ty(M->getContext()); IntegerType* Int32Type = IntegerType::getInt32Ty(M->getContext()); IntegerType* Int64Type = IntegerType::getInt64Ty(M->getContext()); PointerType* VoidPtrType = PointerType::getUnqual(Int8Type); Type* VoidType = Type::getVoidTy(M->getContext()); DataLayout *TD = &getAnalysis<DataLayout>(); Value *Pointer = SI.getPointerOperand(); Pointer = castTo(Pointer,VoidPtrType,Pointer->getName(),&SI); uint64_t size = TD->getTypeStoreSize(SI.getOperand(0)->getType()); Value...
2010 Nov 14
1
RCurl and cookies in POST requests
Hello. I know that it's usually possible to write cookies to a cookie file by removing the curl handle and doing a gc() call. I can do this with getURL(), but I just can't obtain the same results with postForm(). If I use: curlHandle <- getCurlHandle(cookiefile=FILE, cookiejar=FILE) and then do: getURL(http://example.com/script.cgi, curl=curlHandle) rm(curlHandle) gc() it's
2017 Nov 23
1
JIT and atexit crash
Hi, Not sure whether this matches your use case, but the Orc-based JIT used in LLI appears to be using `llvm::orc::LocalCXXRuntimeOverrides` (http://llvm.org/doxygen/classllvm_1_1orc_1_1LocalCXXRuntimeOverrides.html) to override `__cxa_atexit`: https://github.com/llvm-mirror/llvm/blob/release_50/tools/lli/OrcLazyJIT.h#L74