OpenASIP  2.0
Functions | Variables
TCEStubTargetMachine.cc File Reference
#include "CompilerWarnings.hh"
#include "tce_config.h"
#include "TCEStubTargetMachine.hh"
#include "ADFSerializer.hh"
#include "TCEStubTargetTransformInfo.hh"
#include "TCEStubSubTarget.hh"
#include <llvm/Target/TargetLoweringObjectFile.h>
#include <llvm/Target/TargetMachine.h>
#include <llvm/CodeGen/Passes.h>
#include <llvm/IR/LegacyPassManager.h>
#include <llvm/Target/TargetOptions.h>
#include <llvm/CodeGen/TargetPassConfig.h>
Include dependency graph for TCEStubTargetMachine.cc:

Go to the source code of this file.

Functions

void LLVMInitializeTCETargetInfo ()
 
void LLVMInitializeTCEStubTarget ()
 
void LLVMInitializeTCEStubTargetMC ()
 
StringRef getTargetDesc (const Triple &TT)
 

Variables

StringRef DescriptionStringBE
 
StringRef DescriptionStringLE
 
StringRef DescriptionStringLE64
 

Function Documentation

◆ getTargetDesc()

StringRef getTargetDesc ( const Triple &  TT)

Definition at line 113 of file TCEStubTargetMachine.cc.

113  {
114  if (TT.getArchName().equals("tce"))
115  return DescriptionStringBE;
116  else {
117  if (TT.getArchName().equals("tcele"))
118  return DescriptionStringLE;
119  else
120  return DescriptionStringLE64;
121  }
122 }

References DescriptionStringBE, DescriptionStringLE, and DescriptionStringLE64.

◆ LLVMInitializeTCEStubTarget()

void LLVMInitializeTCEStubTarget ( )

Definition at line 80 of file TCEStubTargetMachine.cc.

80  {
81  // Register the targetmachine impl.
82  RegisterTargetMachine<TCEStubTargetMachine> X(TheTCETarget);
83  RegisterTargetMachine<TCEStubTargetMachine> Y(TheTCELETarget);
84  RegisterTargetMachine<TCEStubTargetMachine> Z(TheTCELE64Target);
85 }

References llvm::TheTCELE64Target, llvm::TheTCELETarget, llvm::TheTCETarget, and X().

Referenced by TCEPluginInitializer::TCEPluginInitializer().

Here is the call graph for this function:

◆ LLVMInitializeTCEStubTargetMC()

void LLVMInitializeTCEStubTargetMC ( )

Definition at line 87 of file TCEStubTargetMachine.cc.

87 {}

◆ LLVMInitializeTCETargetInfo()

void LLVMInitializeTCETargetInfo ( )

Definition at line 67 of file TCEStubTargetMachine.cc.

67  {
68  RegisterTarget<Triple::tce, /*HasJIT=*/false>
69  X(TheTCETarget, "tce-tut-llvm", "TCE custom processor",
70  "TODO: wonder what this button does");
71  RegisterTarget<Triple::tcele, false>
72  Y(TheTCELETarget, "tcele-tut-llvm",
73  "TCE custom processor (little endian)",
74  "TODO: wonder what this button does");
75  RegisterTarget<Triple::tcele64, false>
76  Z(TheTCELE64Target, "tcele64-tut-llvm", "64-bit TCE custom processor (little endian) ",
77  "TODO: wonder what this button does");
78 }

References llvm::TheTCELE64Target, llvm::TheTCELETarget, llvm::TheTCETarget, and X().

Referenced by LLVMBackend::compile(), and TCEPluginInitializer::TCEPluginInitializer().

Here is the call graph for this function:

Variable Documentation

◆ DescriptionStringBE

StringRef DescriptionStringBE
Initial value:
= "E-p:32:32:32-i1:8:8-i8:8:32-"
"i16:16:32-i32:32:32-i64:32:32-"
"f32:32:32-f64:32:32-v64:32:32-"
"v128:32:32-v256:32:32-v512:32:32-v1024:32:32-a0:0:32-n32"

Definition at line 89 of file TCEStubTargetMachine.cc.

Referenced by getTargetDesc().

◆ DescriptionStringLE

StringRef DescriptionStringLE
Initial value:
= "e-p:32:32:32-i1:8:8-i8:8:32-"
"i16:16:32-i32:32:32-i64:32:32-"
"f32:32:32-f64:32:32-v64:64:64-"
"v128:128:128-v256:256:256-v512:512:512-v1024:1024:1024-a0:0:32-n32"

Definition at line 101 of file TCEStubTargetMachine.cc.

Referenced by getTargetDesc().

◆ DescriptionStringLE64

StringRef DescriptionStringLE64
Initial value:
= "e-p:64:64:64-i1:8:64-i8:8:64-"
"i16:16:64-i32:32:64-i64:64:64-"
"f32:32:64-f64:64:64-v64:64:64-"
"v128:128:128-v256:256:256-v512:512:512-v1024:1024:1024-"
"v2048:2048:2048-v4096:4096:4096-a0:0:64-n64"

Definition at line 107 of file TCEStubTargetMachine.cc.

Referenced by getTargetDesc().

llvm::TheTCETarget
Target TheTCETarget
Definition: TCEStubTargetMachine.cc:63
llvm::TheTCELETarget
Target TheTCELETarget
Definition: TCEStubTargetMachine.cc:64
DescriptionStringLE64
StringRef DescriptionStringLE64
Definition: TCEStubTargetMachine.cc:107
DescriptionStringBE
StringRef DescriptionStringBE
Definition: TCEStubTargetMachine.cc:89
X
static llvm::RegisterPass< InnerLoopFinder > X("find-innerloops-test", "Finds inner loops test.", false, true)
llvm::TheTCELE64Target
Target TheTCELE64Target
Definition: TCEStubTargetMachine.cc:65
DescriptionStringLE
StringRef DescriptionStringLE
Definition: TCEStubTargetMachine.cc:101