Lines Matching defs:T
71 LLVMTargetRef LLVMGetNextTarget(LLVMTargetRef T) {
72 return wrap(unwrap(T)->getNext());
78 [&](const Target &T) { return T.getName() == NameRef; });
82 LLVMBool LLVMGetTargetFromTriple(const char* TripleStr, LLVMTargetRef *T,
86 *T = wrap(TargetRegistry::lookupTarget(TripleStr, Error));
88 if (!*T) {
98 const char * LLVMGetTargetName(LLVMTargetRef T) {
99 return unwrap(T)->getName();
102 const char * LLVMGetTargetDescription(LLVMTargetRef T) {
103 return unwrap(T)->getShortDescription();
106 LLVMBool LLVMTargetHasJIT(LLVMTargetRef T) {
107 return unwrap(T)->hasJIT();
110 LLVMBool LLVMTargetHasTargetMachine(LLVMTargetRef T) {
111 return unwrap(T)->hasTargetMachine();
114 LLVMBool LLVMTargetHasAsmBackend(LLVMTargetRef T) {
115 return unwrap(T)->hasMCAsmBackend();
200 LLVMCreateTargetMachineWithOptions(LLVMTargetRef T, const char *Triple,
205 return wrap(unwrap(T)->createTargetMachine(Triple, Opt->CPU, Opt->Features,
211 LLVMCreateTargetMachine(LLVMTargetRef T, const char *Triple, const char *CPU,
222 auto *Machine = LLVMCreateTargetMachineWithOptions(T, Triple, Options);
228 void LLVMDisposeTargetMachine(LLVMTargetMachineRef T) { delete unwrap(T); }
230 LLVMTargetRef LLVMGetTargetMachineTarget(LLVMTargetMachineRef T) {
231 const Target* target = &(unwrap(T)->getTarget());
235 char* LLVMGetTargetMachineTriple(LLVMTargetMachineRef T) {
236 std::string StringRep = unwrap(T)->getTargetTriple().str();
240 char* LLVMGetTargetMachineCPU(LLVMTargetMachineRef T) {
241 std::string StringRep = std::string(unwrap(T)->getTargetCPU());
245 char* LLVMGetTargetMachineFeatureString(LLVMTargetMachineRef T) {
246 std::string StringRep = std::string(unwrap(T)->getTargetFeatureString());
250 void LLVMSetTargetMachineAsmVerbosity(LLVMTargetMachineRef T,
252 unwrap(T)->Options.MCOptions.AsmVerbose = VerboseAsm;
255 void LLVMSetTargetMachineFastISel(LLVMTargetMachineRef T, LLVMBool Enable) {
256 unwrap(T)->setFastISel(Enable);
259 void LLVMSetTargetMachineGlobalISel(LLVMTargetMachineRef T, LLVMBool Enable) {
260 unwrap(T)->setGlobalISel(Enable);
263 void LLVMSetTargetMachineGlobalISelAbort(LLVMTargetMachineRef T,
278 unwrap(T)->setGlobalISelAbort(AM);
281 void LLVMSetTargetMachineMachineOutliner(LLVMTargetMachineRef T,
283 unwrap(T)->setMachineOutliner(Enable);
286 LLVMTargetDataRef LLVMCreateTargetDataLayout(LLVMTargetMachineRef T) {
287 return wrap(new DataLayout(unwrap(T)->createDataLayout()));
290 static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M,
294 TargetMachine* TM = unwrap(T);
324 LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M,
334 bool Result = LLVMTargetMachineEmit(T, M, dest, codegen, ErrorMessage);
339 LLVMBool LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
344 bool Result = LLVMTargetMachineEmit(T, M, OStream, codegen, ErrorMessage);
372 void LLVMAddAnalysisPasses(LLVMTargetMachineRef T, LLVMPassManagerRef PM) {
374 createTargetTransformInfoWrapperPass(unwrap(T)->getTargetIRAnalysis()));