20 #define DEBUG_TYPE "msp430-subtarget" 24 cl::desc(
"Hardware multiplier use mode for MSP430"),
28 "Do not use hardware multiplier"),
30 "Use 16-bit hardware multiplier"),
32 "Use 32-bit hardware multiplier"),
34 "Use F5 series hardware multiplier")));
36 #define GET_SUBTARGETINFO_TARGET_DESC 37 #define GET_SUBTARGETINFO_CTOR 38 #include "MSP430GenSubtargetInfo.inc" 40 void MSP430Subtarget::anchor() { }
44 ExtendedInsts =
false;
47 std::string CPUName = CPU;
This class represents lattice values for constants.
MSP430Subtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
initializer< Ty > init(const Ty &Val)
ValuesClass values(OptsTy... Options)
Helper to build a ValuesClass by forwarding a variable number of arguments as an initializer list to ...
static cl::opt< MSP430Subtarget::HWMultEnum > HWMultModeOption("mhwmult", cl::Hidden, cl::desc("Hardware multiplier use mode for MSP430"), cl::init(MSP430Subtarget::NoHWMult), cl::values(clEnumValN(MSP430Subtarget::NoHWMult, "none", "Do not use hardware multiplier"), clEnumValN(MSP430Subtarget::HWMult16, "16bit", "Use 16-bit hardware multiplier"), clEnumValN(MSP430Subtarget::HWMult32, "32bit", "Use 32-bit hardware multiplier"), clEnumValN(MSP430Subtarget::HWMultF5, "f5series", "Use F5 series hardware multiplier")))
Triple - Helper class for working with autoconf configuration names.
#define clEnumValN(ENUMVAL, FLAGNAME, DESC)
MSP430Subtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM)
This constructor initializes the data members to match that of the specified triple.
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.