Lines Matching refs:unwrap

50 static TargetMachine *unwrap(LLVMTargetMachineRef P) {  in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
53 static Target *unwrap(LLVMTargetRef P) { in unwrap() function
72 return wrap(unwrap(T)->getNext()); in LLVMGetNextTarget()
99 return unwrap(T)->getName(); in LLVMGetTargetName()
103 return unwrap(T)->getShortDescription(); in LLVMGetTargetDescription()
107 return unwrap(T)->hasJIT(); in LLVMTargetHasJIT()
111 return unwrap(T)->hasTargetMachine(); in LLVMTargetHasTargetMachine()
115 return unwrap(T)->hasMCAsmBackend(); in LLVMTargetHasAsmBackend()
123 delete unwrap(Options); in LLVMDisposeTargetMachineOptions()
128 unwrap(Options)->CPU = CPU; in LLVMTargetMachineOptionsSetCPU()
133 unwrap(Options)->Features = Features; in LLVMTargetMachineOptionsSetFeatures()
138 unwrap(Options)->ABI = ABI; in LLVMTargetMachineOptionsSetABI()
160 unwrap(Options)->OL = OL; in LLVMTargetMachineOptionsSetCodeGenOptLevel()
190 unwrap(Options)->RM = RM; in LLVMTargetMachineOptionsSetRelocMode()
195 auto CM = unwrap(CodeModel, unwrap(Options)->JIT); in LLVMTargetMachineOptionsSetCodeModel()
196 unwrap(Options)->CM = CM; in LLVMTargetMachineOptionsSetCodeModel()
202 auto *Opt = unwrap(Options); in LLVMCreateTargetMachineWithOptions()
205 return wrap(unwrap(T)->createTargetMachine(Triple, Opt->CPU, Opt->Features, in LLVMCreateTargetMachineWithOptions()
228 void LLVMDisposeTargetMachine(LLVMTargetMachineRef T) { delete unwrap(T); } in LLVMDisposeTargetMachine()
231 const Target* target = &(unwrap(T)->getTarget()); in LLVMGetTargetMachineTarget()
236 std::string StringRep = unwrap(T)->getTargetTriple().str(); in LLVMGetTargetMachineTriple()
241 std::string StringRep = std::string(unwrap(T)->getTargetCPU()); in LLVMGetTargetMachineCPU()
246 std::string StringRep = std::string(unwrap(T)->getTargetFeatureString()); in LLVMGetTargetMachineFeatureString()
252 unwrap(T)->Options.MCOptions.AsmVerbose = VerboseAsm; in LLVMSetTargetMachineAsmVerbosity()
256 unwrap(T)->setFastISel(Enable); in LLVMSetTargetMachineFastISel()
260 unwrap(T)->setGlobalISel(Enable); in LLVMSetTargetMachineGlobalISel()
278 unwrap(T)->setGlobalISelAbort(AM); in LLVMSetTargetMachineGlobalISelAbort()
283 unwrap(T)->setMachineOutliner(Enable); in LLVMSetTargetMachineMachineOutliner()
287 return wrap(new DataLayout(unwrap(T)->createDataLayout())); in LLVMCreateTargetDataLayout()
294 TargetMachine* TM = unwrap(T); in LLVMTargetMachineEmit()
295 Module* Mod = unwrap(M); in LLVMTargetMachineEmit()
373 unwrap(PM)->add( in LLVMAddAnalysisPasses()
374 createTargetTransformInfoWrapperPass(unwrap(T)->getTargetIRAnalysis())); in LLVMAddAnalysisPasses()