OpenASIP 2.2
Loading...
Searching...
No Matches
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 ( )

◆ 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 112 of file TCETargetMachine.cc.

117 {
118 return new DummyInstPrinter(MAI, MII, MRI);
119}

Referenced by LLVMInitializeTCETarget().

◆ LLVMInitializeTCETarget()

void LLVMInitializeTCETarget ( )

Definition at line 121 of file TCETargetMachine.cc.

121 {
122 RegisterTargetMachine<TCETargetMachine> Y(TheTCETarget);
123 RegisterTargetMachine<TCETargetMachine> X0(TheTCELE64Target);
124 RegisterTargetMachine<TCETargetMachine> X(TheTCELETarget);
125
126 RegisterMCAsmInfo<TCEMCAsmInfo> Z(TheTCETarget);
127 RegisterMCAsmInfo<TCEMCAsmInfo> V0(TheTCELE64Target);
128 RegisterMCAsmInfo<TCEMCAsmInfo> V(TheTCELETarget);
129 TargetRegistry::RegisterMCInstPrinter(TheTCETarget, dummyInstrPrinterCtor);
130 TargetRegistry::RegisterMCInstPrinter(
132 TargetRegistry::RegisterMCInstPrinter(
134}
static llvm::RegisterPass< InnerLoopFinder > X("find-innerloops-test", "Finds inner loops test.", false, true)
MCInstPrinter * dummyInstrPrinterCtor(const Triple &, unsigned, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Target TheTCETarget
Target TheTCELETarget
Target TheTCELE64Target

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

Referenced by LLVMBackend::compile().

Here is the call graph for this function: