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()
202 if (Optional<CodeModel::Model> CM = unwrap(options.CodeModel, JIT)) in LLVMCreateMCJITCompilerForModule()
206 std::unique_ptr<RTDyldMemoryManager>(unwrap(options.MCJMM))); in LLVMCreateMCJITCompilerForModule()
216 delete unwrap(EE); in LLVMDisposeExecutionEngine()
220 unwrap(EE)->finalizeObject(); in LLVMRunStaticConstructors()
221 unwrap(EE)->runStaticConstructorsDestructors(false); in LLVMRunStaticConstructors()
225 unwrap(EE)->finalizeObject(); in LLVMRunStaticDestructors()
226 unwrap(EE)->runStaticConstructorsDestructors(true); in LLVMRunStaticDestructors()
232 unwrap(EE)->finalizeObject(); in LLVMRunFunctionAsMain()
235 return unwrap(EE)->runFunctionAsMain(unwrap<Function>(F), ArgVec, EnvP); in LLVMRunFunctionAsMain()
241 unwrap(EE)->finalizeObject(); in LLVMRunFunction()
246 ArgVec.push_back(*unwrap(Args[I])); in LLVMRunFunction()
249 *Result = unwrap(EE)->runFunction(unwrap<Function>(F), ArgVec); in LLVMRunFunction()
257 unwrap(EE)->addModule(std::unique_ptr<Module>(unwrap(M))); in LLVMAddModule()
262 Module *Mod = unwrap(M); in LLVMRemoveModule()
263 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule()
270 if (Function *F = unwrap(EE)->FindFunctionNamed(Name)) { in LLVMFindFunction()
283 return wrap(&unwrap(EE)->getDataLayout()); in LLVMGetExecutionEngineTargetData()
288 return wrap(unwrap(EE)->getTargetMachine()); in LLVMGetExecutionEngineTargetMachine()
293 unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); in LLVMAddGlobalMapping()
297 unwrap(EE)->finalizeObject(); in LLVMGetPointerToGlobal()
299 return unwrap(EE)->getPointerToGlobal(unwrap<GlobalValue>(Global)); in LLVMGetPointerToGlobal()
303 return unwrap(EE)->getGlobalValueAddress(Name); in LLVMGetGlobalValueAddress()
307 return unwrap(EE)->getFunctionAddress(Name); in LLVMGetFunctionAddress()
313 auto *ExecEngine = unwrap(EE); in LLVMExecutionEngineGetErrMsg()
422 delete unwrap(MM); in LLVMDisposeMCJITMemoryManager()