diff --git a/lib/Target/Alpha/Alpha.td b/lib/Target/Alpha/Alpha.td index ae2286c06be..7cbb0f181f7 100644 --- a/lib/Target/Alpha/Alpha.td +++ b/lib/Target/Alpha/Alpha.td @@ -20,8 +20,10 @@ include "../Target.td" // Subtarget Features //===----------------------------------------------------------------------===// -def FeatureCIX : SubtargetFeature<"CIX", "Enable CIX extentions">; -def FeatureFIX : SubtargetFeature<"FIX", "Enable FIX extentions">; +def FeatureCIX : SubtargetFeature<"CIX", "bool", "HasCT", + "Enable CIX extentions">; +def FeatureFIX : SubtargetFeature<"FIX", "bool", "HasF2I", + "Enable FIX extentions">; //===----------------------------------------------------------------------===// // Register File Description diff --git a/lib/Target/PowerPC/PPC.td b/lib/Target/PowerPC/PPC.td index 93edd0dc348..1de838f7aaa 100644 --- a/lib/Target/PowerPC/PPC.td +++ b/lib/Target/PowerPC/PPC.td @@ -19,15 +19,15 @@ include "../Target.td" // PowerPC Subtarget features. // -def Feature64Bit : SubtargetFeature<"64bit", +def Feature64Bit : SubtargetFeature<"64bit", "bool", "Is64Bit", "Enable 64-bit instructions">; -def Feature64BitRegs : SubtargetFeature<"64bitregs", +def Feature64BitRegs : SubtargetFeature<"64bitregs", "bool", "Has64BitRegs", "Enable 64-bit registers [beta]">; -def FeatureAltivec : SubtargetFeature<"altivec", +def FeatureAltivec : SubtargetFeature<"altivec", "bool", "HasAltivec", "Enable Altivec instructions">; -def FeatureGPUL : SubtargetFeature<"gpul", +def FeatureGPUL : SubtargetFeature<"gpul", "bool", "IsGigaProcessor", "Enable GPUL instructions">; -def FeatureFSqrt : SubtargetFeature<"fsqrt", +def FeatureFSqrt : SubtargetFeature<"fsqrt", "bool", "HasFSQRT", "Enable the fsqrt instruction">; //===----------------------------------------------------------------------===// diff --git a/lib/Target/Target.td b/lib/Target/Target.td index 3ce329f9f76..7de2d3f5eb4 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -252,12 +252,20 @@ class Target { //===----------------------------------------------------------------------===// // SubtargetFeature - A characteristic of the chip set. // -class SubtargetFeature { +class SubtargetFeature { // Name - Feature name. Used by command line (-mattr=) to determine the // appropriate target chip. // string Name = n; + // Type - Type of attribute to be set by feature. + // + string Type = t; + + // Attribute - Attribute to be set by feature. + // + string Attribute = a; + // Desc - Feature description. Used by command line (-mattr=) to display help // information. //