LLVM API Documentation

Defines | Functions | Variables
MipsSubtarget.cpp File Reference
#include "MipsMachineFunction.h"
#include "Mips.h"
#include "MipsRegisterInfo.h"
#include "MipsSubtarget.h"
#include "MipsTargetMachine.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include "MipsGenSubtargetInfo.inc"
Include dependency graph for MipsSubtarget.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "mips-subtarget"
#define GET_SUBTARGETINFO_TARGET_DESC
#define GET_SUBTARGETINFO_CTOR

Functions

static StringRef selectMipsCPU (Triple TT, StringRef CPU)
static std::string computeDataLayout (const MipsSubtarget &ST)

Variables

static cl::opt< boolMixed16_32 ("mips-mixed-16-32", cl::init(false), cl::desc("Allow for a mixture of Mips16 ""and Mips32 code in a single source file"), cl::Hidden)
static cl::opt< boolMips_Os16 ("mips-os16", cl::init(false), cl::desc("Compile all functions that don' use ""floating point as Mips 16"), cl::Hidden)
static cl::opt< boolMips16HardFloat ("mips16-hard-float", cl::NotHidden, cl::desc("MIPS: mips16 hard float enable."), cl::init(false))
static cl::opt< boolMips16ConstantIslands ("mips16-constant-islands", cl::NotHidden, cl::desc("MIPS: mips16 constant islands enable."), cl::init(true))

Define Documentation

#define DEBUG_TYPE   "mips-subtarget"

Definition at line 28 of file MipsSubtarget.cpp.

Definition at line 31 of file MipsSubtarget.cpp.

Definition at line 30 of file MipsSubtarget.cpp.


Function Documentation

static std::string computeDataLayout ( const MipsSubtarget ST) [static]
static StringRef selectMipsCPU ( Triple  TT,
StringRef  CPU 
) [static]

Select the Mips CPU for the given triple and cpu name. FIXME: Merge with the copy in MipsMCTargetDesc.cpp

Definition at line 63 of file MipsSubtarget.cpp.

References llvm::StringRef::empty(), llvm::Triple::getArch(), llvm::Triple::mips, and llvm::Triple::mipsel.

Referenced by llvm::MipsSubtarget::initializeSubtargetDependencies().


Variable Documentation

cl::opt<bool> Mips16ConstantIslands("mips16-constant-islands", cl::NotHidden, cl::desc("MIPS: mips16 constant islands enable."), cl::init(true)) [static]
cl::opt<bool> Mips16HardFloat("mips16-hard-float", cl::NotHidden, cl::desc("MIPS: mips16 hard float enable."), cl::init(false)) [static]
cl::opt<bool> Mips_Os16("mips-os16", cl::init(false), cl::desc("Compile all functions that don' use ""floating point as Mips 16"), cl::Hidden) [static]
cl::opt<bool> Mixed16_32("mips-mixed-16-32", cl::init(false), cl::desc("Allow for a mixture of Mips16 ""and Mips32 code in a single source file"), cl::Hidden) [static]