Lines Matching refs:unwrap
44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
56 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat()
70 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth()
75 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
83 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
87 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat()
89 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
91 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
98 delete unwrap(GenVal); in LLVMDisposeGenericValue()
107 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateExecutionEngineForModule()
122 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateInterpreterForModule()
138 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateJITCompilerForModule()
183 std::unique_ptr<Module> Mod(unwrap(M)); in LLVMCreateMCJITCompilerForModule()
201 .setCodeModel(unwrap(options.CodeModel)) in LLVMCreateMCJITCompilerForModule()
205 std::unique_ptr<RTDyldMemoryManager>(unwrap(options.MCJMM))); in LLVMCreateMCJITCompilerForModule()
215 delete unwrap(EE); in LLVMDisposeExecutionEngine()
219 unwrap(EE)->finalizeObject(); in LLVMRunStaticConstructors()
220 unwrap(EE)->runStaticConstructorsDestructors(false); in LLVMRunStaticConstructors()
224 unwrap(EE)->finalizeObject(); in LLVMRunStaticDestructors()
225 unwrap(EE)->runStaticConstructorsDestructors(true); in LLVMRunStaticDestructors()
231 unwrap(EE)->finalizeObject(); in LLVMRunFunctionAsMain()
234 return unwrap(EE)->runFunctionAsMain(unwrap<Function>(F), ArgVec, EnvP); in LLVMRunFunctionAsMain()
240 unwrap(EE)->finalizeObject(); in LLVMRunFunction()
245 ArgVec.push_back(*unwrap(Args[I])); in LLVMRunFunction()
248 *Result = unwrap(EE)->runFunction(unwrap<Function>(F), ArgVec); in LLVMRunFunction()
256 unwrap(EE)->addModule(std::unique_ptr<Module>(unwrap(M))); in LLVMAddModule()
261 Module *Mod = unwrap(M); in LLVMRemoveModule()
262 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule()
269 if (Function *F = unwrap(EE)->FindFunctionNamed(Name)) { in LLVMFindFunction()
282 return wrap(&unwrap(EE)->getDataLayout()); in LLVMGetExecutionEngineTargetData()
287 return wrap(unwrap(EE)->getTargetMachine()); in LLVMGetExecutionEngineTargetMachine()
292 unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); in LLVMAddGlobalMapping()
296 unwrap(EE)->finalizeObject(); in LLVMGetPointerToGlobal()
298 return unwrap(EE)->getPointerToGlobal(unwrap<GlobalValue>(Global)); in LLVMGetPointerToGlobal()
302 return unwrap(EE)->getGlobalValueAddress(Name); in LLVMGetGlobalValueAddress()
306 return unwrap(EE)->getFunctionAddress(Name); in LLVMGetFunctionAddress()
409 delete unwrap(MM); in LLVMDisposeMCJITMemoryManager()