Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/Mips/MipsInstrFPU.td
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
let PrintMethod = "printFCCOperand", DecoderMethod = "DecodeCondCode" in | let PrintMethod = "printFCCOperand", DecoderMethod = "DecodeCondCode" in | ||||
def condcode : Operand<i32>; | def condcode : Operand<i32>; | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// Feature predicates. | // Feature predicates. | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
def IsFP64bit : Predicate<"Subtarget->isFP64bit()">, | def IsFP64bit : Predicate<"Subtarget->isFP64bit()">, | ||||
AssemblerPredicate<"FeatureFP64Bit">; | AssemblerPredicate<(all_of FeatureFP64Bit)>; | ||||
def NotFP64bit : Predicate<"!Subtarget->isFP64bit()">, | def NotFP64bit : Predicate<"!Subtarget->isFP64bit()">, | ||||
AssemblerPredicate<"!FeatureFP64Bit">; | AssemblerPredicate<(all_of (not FeatureFP64Bit))>; | ||||
def IsSingleFloat : Predicate<"Subtarget->isSingleFloat()">, | def IsSingleFloat : Predicate<"Subtarget->isSingleFloat()">, | ||||
AssemblerPredicate<"FeatureSingleFloat">; | AssemblerPredicate<(all_of FeatureSingleFloat)>; | ||||
def IsNotSingleFloat : Predicate<"!Subtarget->isSingleFloat()">, | def IsNotSingleFloat : Predicate<"!Subtarget->isSingleFloat()">, | ||||
AssemblerPredicate<"!FeatureSingleFloat">; | AssemblerPredicate<(all_of (not FeatureSingleFloat))>; | ||||
def IsNotSoftFloat : Predicate<"!Subtarget->useSoftFloat()">, | def IsNotSoftFloat : Predicate<"!Subtarget->useSoftFloat()">, | ||||
AssemblerPredicate<"!FeatureSoftFloat">; | AssemblerPredicate<(all_of (not FeatureSoftFloat))>; | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// Mips FGR size adjectives. | // Mips FGR size adjectives. | ||||
// They are mutually exclusive. | // They are mutually exclusive. | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
class FGR_32 { list<Predicate> FGRPredicates = [NotFP64bit]; } | class FGR_32 { list<Predicate> FGRPredicates = [NotFP64bit]; } | ||||
class FGR_64 { list<Predicate> FGRPredicates = [IsFP64bit]; } | class FGR_64 { list<Predicate> FGRPredicates = [IsFP64bit]; } | ||||
▲ Show 20 Lines • Show All 899 Lines • Show Last 20 Lines |