Lines Matching refs:unwrap
45 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
57 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat()
71 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth()
76 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
84 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
88 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat()
90 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
92 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
99 delete unwrap(GenVal); in LLVMDisposeGenericValue()
108 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateExecutionEngineForModule()
123 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateInterpreterForModule()
139 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateJITCompilerForModule()
184 std::unique_ptr<Module> Mod(unwrap(M)); in LLVMCreateMCJITCompilerForModule()
203 if (std::optional<CodeModel::Model> CM = unwrap(options.CodeModel, JIT)) in LLVMCreateMCJITCompilerForModule()
207 std::unique_ptr<RTDyldMemoryManager>(unwrap(options.MCJMM))); in LLVMCreateMCJITCompilerForModule()
217 delete unwrap(EE); in LLVMDisposeExecutionEngine()
221 unwrap(EE)->finalizeObject(); in LLVMRunStaticConstructors()
222 unwrap(EE)->runStaticConstructorsDestructors(false); in LLVMRunStaticConstructors()
226 unwrap(EE)->finalizeObject(); in LLVMRunStaticDestructors()
227 unwrap(EE)->runStaticConstructorsDestructors(true); in LLVMRunStaticDestructors()
233 unwrap(EE)->finalizeObject(); in LLVMRunFunctionAsMain()
236 return unwrap(EE)->runFunctionAsMain(unwrap<Function>(F), ArgVec, EnvP); in LLVMRunFunctionAsMain()
242 unwrap(EE)->finalizeObject(); in LLVMRunFunction()
247 ArgVec.push_back(*unwrap(Args[I])); in LLVMRunFunction()
250 *Result = unwrap(EE)->runFunction(unwrap<Function>(F), ArgVec); in LLVMRunFunction()
258 unwrap(EE)->addModule(std::unique_ptr<Module>(unwrap(M))); in LLVMAddModule()
263 Module *Mod = unwrap(M); in LLVMRemoveModule()
264 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule()
271 if (Function *F = unwrap(EE)->FindFunctionNamed(Name)) { in LLVMFindFunction()
284 return wrap(&unwrap(EE)->getDataLayout()); in LLVMGetExecutionEngineTargetData()
289 return wrap(unwrap(EE)->getTargetMachine()); in LLVMGetExecutionEngineTargetMachine()
294 unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); in LLVMAddGlobalMapping()
298 unwrap(EE)->finalizeObject(); in LLVMGetPointerToGlobal()
300 return unwrap(EE)->getPointerToGlobal(unwrap<GlobalValue>(Global)); in LLVMGetPointerToGlobal()
304 return unwrap(EE)->getGlobalValueAddress(Name); in LLVMGetGlobalValueAddress()
308 return unwrap(EE)->getFunctionAddress(Name); in LLVMGetFunctionAddress()
314 auto *ExecEngine = unwrap(EE); in LLVMExecutionEngineGetErrMsg()
423 delete unwrap(MM); in LLVMDisposeMCJITMemoryManager()