Lines Matching refs:unwrap
42 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
54 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat()
68 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth()
73 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt()
81 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer()
85 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat()
87 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat()
89 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat()
96 delete unwrap(GenVal); in LLVMDisposeGenericValue()
105 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateExecutionEngineForModule()
120 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateInterpreterForModule()
136 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateJITCompilerForModule()
184 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateMCJITCompilerForModule()
188 .setCodeModel(unwrap(options.CodeModel)) in LLVMCreateMCJITCompilerForModule()
192 std::unique_ptr<RTDyldMemoryManager>(unwrap(options.MCJMM))); in LLVMCreateMCJITCompilerForModule()
231 delete unwrap(EE); in LLVMDisposeExecutionEngine()
235 unwrap(EE)->runStaticConstructorsDestructors(false); in LLVMRunStaticConstructors()
239 unwrap(EE)->runStaticConstructorsDestructors(true); in LLVMRunStaticDestructors()
245 unwrap(EE)->finalizeObject(); in LLVMRunFunctionAsMain()
251 return unwrap(EE)->runFunctionAsMain(unwrap<Function>(F), ArgVec, EnvP); in LLVMRunFunctionAsMain()
257 unwrap(EE)->finalizeObject(); in LLVMRunFunction()
262 ArgVec.push_back(*unwrap(Args[I])); in LLVMRunFunction()
265 *Result = unwrap(EE)->runFunction(unwrap<Function>(F), ArgVec); in LLVMRunFunction()
273 unwrap(EE)->addModule(std::unique_ptr<Module>(unwrap(M))); in LLVMAddModule()
283 Module *Mod = unwrap(M); in LLVMRemoveModule()
284 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule()
299 if (Function *F = unwrap(EE)->FindFunctionNamed(Name)) { in LLVMFindFunction()
312 return wrap(unwrap(EE)->getDataLayout()); in LLVMGetExecutionEngineTargetData()
317 return wrap(unwrap(EE)->getTargetMachine()); in LLVMGetExecutionEngineTargetMachine()
322 unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); in LLVMAddGlobalMapping()
326 unwrap(EE)->finalizeObject(); in LLVMGetPointerToGlobal()
328 return unwrap(EE)->getPointerToGlobal(unwrap<GlobalValue>(Global)); in LLVMGetPointerToGlobal()
332 return unwrap(EE)->getGlobalValueAddress(Name); in LLVMGetGlobalValueAddress()
336 return unwrap(EE)->getFunctionAddress(Name); in LLVMGetFunctionAddress()
439 delete unwrap(MM); in LLVMDisposeMCJITMemoryManager()