OpenASIP  2.0
Classes | Functions
TCETargetMachine.cc File Reference
#include "CompilerWarnings.hh"
#include "tce_config.h"
#include "llvm/IR/PassManager.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/ADT/APFloat.h"
#include "TCEStubTargetMachine.hh"
#include "TCETargetMachine.hh"
#include "TCEMCAsmInfo.hh"
#include "LLVMPOMBuilder.hh"
#include "PluginTools.hh"
#include "MathTools.hh"
#include "FileSystem.hh"
#include "ADFSerializer.hh"
#include "Conversion.hh"
#include "MachineInfo.hh"
#include "MachineConnectivityCheck.hh"
#include "Machine.hh"
#include "ImmediateAnalyzer.hh"
#include "ImmInfo.hh"
#include <llvm/Transforms/Scalar.h>
#include <iostream>
#include "LLVMTCECmdLineOptions.hh"
Include dependency graph for TCETargetMachine.cc:

Go to the source code of this file.

Classes

class  DummyInstPrinter
 

Functions

Pass * createLowerMissingInstructionsPass (const TTAMachine::Machine &mach)
 
Pass * createLinkBitcodePass (Module &inputCode)
 
Pass * createProgramPartitionerPass (std::string partitioningStrategy)
 
Pass * createInstructionPatternAnalyzer ()
 
MCInstPrinter * dummyInstrPrinterCtor (const Triple &, unsigned, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
 
void LLVMInitializeTCETarget ()
 

Function Documentation

◆ createInstructionPatternAnalyzer()

Pass* createInstructionPatternAnalyzer ( )

Definition at line 55 of file InstructionPatternAnalyzer.cc.

55  {
56  return new InstructionPatternAnalyzer();
57 }

◆ createLinkBitcodePass()

Pass* createLinkBitcodePass ( Module &  inputCode)

Definition at line 98 of file LinkBitcode.cc.

98  {
99  return new LinkBitcode(input);
100 }

Referenced by llvm::TCEPassConfig::addPreISel().

◆ createLowerMissingInstructionsPass()

Pass* createLowerMissingInstructionsPass ( const TTAMachine::Machine mach)

Definition at line 147 of file LowerMissingInstructions.cc.

147  {
148  return new LowerMissingInstructions(mach);
149 }

Referenced by llvm::TCEPassConfig::addPreISel().

◆ createProgramPartitionerPass()

Pass* createProgramPartitionerPass ( std::string  partitioningStrategy)

◆ dummyInstrPrinterCtor()

MCInstPrinter* dummyInstrPrinterCtor ( const Triple &  ,
unsigned  ,
const MCAsmInfo &  MAI,
const MCInstrInfo &  MII,
const MCRegisterInfo &  MRI 
)

Definition at line 108 of file TCETargetMachine.cc.

113  {
114  return new DummyInstPrinter(MAI, MII, MRI);
115 }

Referenced by LLVMInitializeTCETarget().

◆ LLVMInitializeTCETarget()

void LLVMInitializeTCETarget ( )

Definition at line 117 of file TCETargetMachine.cc.

117  {
118  RegisterTargetMachine<TCETargetMachine> Y(TheTCETarget);
119  RegisterTargetMachine<TCETargetMachine> X0(TheTCELE64Target);
120  RegisterTargetMachine<TCETargetMachine> X(TheTCELETarget);
121 
122  RegisterMCAsmInfo<TCEMCAsmInfo> Z(TheTCETarget);
123  RegisterMCAsmInfo<TCEMCAsmInfo> V0(TheTCELE64Target);
124  RegisterMCAsmInfo<TCEMCAsmInfo> V(TheTCELETarget);
125  TargetRegistry::RegisterMCInstPrinter(TheTCETarget, dummyInstrPrinterCtor);
126  TargetRegistry::RegisterMCInstPrinter(
128  TargetRegistry::RegisterMCInstPrinter(
130 }

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

Referenced by LLVMBackend::compile().

Here is the call graph for this function:
llvm::TheTCETarget
Target TheTCETarget
Definition: TCEStubTargetMachine.cc:63
llvm::TheTCELETarget
Target TheTCELETarget
Definition: TCEStubTargetMachine.cc:64
DummyInstPrinter
Definition: TCETargetMachine.cc:80
X
static llvm::RegisterPass< InnerLoopFinder > X("find-innerloops-test", "Finds inner loops test.", false, true)
InstructionPatternAnalyzer
Definition: InstructionPatternAnalyzer.hh:46
dummyInstrPrinterCtor
MCInstPrinter * dummyInstrPrinterCtor(const Triple &, unsigned, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Definition: TCETargetMachine.cc:108
llvm::TheTCELE64Target
Target TheTCELE64Target
Definition: TCEStubTargetMachine.cc:65