Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/Mips/MipsDSPInstrFormats.td
Show All 15 Lines | def Dsp2MicroMips : InstrMapping { | ||||
let ColFields = ["Arch"]; | let ColFields = ["Arch"]; | ||||
// The key column is the unpredicated instructions. | // The key column is the unpredicated instructions. | ||||
let KeyCol = ["dsp"]; | let KeyCol = ["dsp"]; | ||||
// Value columns are PredSense=true and PredSense=false | // Value columns are PredSense=true and PredSense=false | ||||
let ValueCols = [["dsp"], ["mmdsp"]]; | let ValueCols = [["dsp"], ["mmdsp"]]; | ||||
} | } | ||||
def HasDSP : Predicate<"Subtarget->hasDSP()">, | def HasDSP : Predicate<"Subtarget->hasDSP()">, | ||||
AssemblerPredicate<"FeatureDSP">; | AssemblerPredicate<(all_of FeatureDSP)>; | ||||
def HasDSPR2 : Predicate<"Subtarget->hasDSPR2()">, | def HasDSPR2 : Predicate<"Subtarget->hasDSPR2()">, | ||||
AssemblerPredicate<"FeatureDSPR2">; | AssemblerPredicate<(all_of FeatureDSPR2)>; | ||||
def HasDSPR3 : Predicate<"Subtarget->hasDSPR3()">, | def HasDSPR3 : Predicate<"Subtarget->hasDSPR3()">, | ||||
AssemblerPredicate<"FeatureDSPR3">; | AssemblerPredicate<(all_of FeatureDSPR3)>; | ||||
class ISA_DSPR2 { | class ISA_DSPR2 { | ||||
list<Predicate> ASEPredicate = [HasDSPR2]; | list<Predicate> ASEPredicate = [HasDSPR2]; | ||||
} | } | ||||
class ISA_DSPR3 { | class ISA_DSPR3 { | ||||
list<Predicate> ASEPredicate = [HasDSPR3]; | list<Predicate> ASEPredicate = [HasDSPR3]; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |