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()
203 if (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()