diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-04-21 14:09:20 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2017-04-21 14:09:20 +0000 |
commit | 419efdd55b0a67a448eeeb48f767e309b5d0d058 (patch) | |
tree | c1f4b046c2bfe6672166dcad9fd749319ae939d0 /llvm/utils/TableGen/SubtargetFeatureInfo.h | |
parent | 347b54b09373a9593ac8b9fc7f2a381374621877 (diff) | |
download | bcm5719-llvm-419efdd55b0a67a448eeeb48f767e309b5d0d058.tar.gz bcm5719-llvm-419efdd55b0a67a448eeeb48f767e309b5d0d058.zip |
Revert r300964 + r300970 - [globalisel][tablegen] Import SelectionDAG's rule predicates and support the equivalent in GIRule.
It's causing llvm-clang-x86_64-expensive-checks-win to fail to compile and I
haven't worked out why. Reverting to make it green while I figure it out.
llvm-svn: 300978
Diffstat (limited to 'llvm/utils/TableGen/SubtargetFeatureInfo.h')
-rw-r--r-- | llvm/utils/TableGen/SubtargetFeatureInfo.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/llvm/utils/TableGen/SubtargetFeatureInfo.h b/llvm/utils/TableGen/SubtargetFeatureInfo.h index bbaf4525960..99f380f2a1d 100644 --- a/llvm/utils/TableGen/SubtargetFeatureInfo.h +++ b/llvm/utils/TableGen/SubtargetFeatureInfo.h @@ -37,34 +37,16 @@ struct SubtargetFeatureInfo { return "Feature_" + TheDef->getName().str(); } - /// \brief The name of the enumerated constant identifying the bitnumber for - /// this feature. - std::string getEnumBitName() const { - return "Feature_" + TheDef->getName().str() + "Bit"; - } - void dump() const; static std::vector<std::pair<Record *, SubtargetFeatureInfo>> getAll(const RecordKeeper &Records); /// Emit the subtarget feature flag definitions. - /// - /// This version emits the bit value for the feature and is therefore limited - /// to 64 feature bits. static void emitSubtargetFeatureFlagEnumeration( std::map<Record *, SubtargetFeatureInfo, LessRecordByID> &SubtargetFeatures, raw_ostream &OS); - /// Emit the subtarget feature flag definitions. - /// - /// This version emits the bit index for the feature and can therefore support - /// more than 64 feature bits. - static void emitSubtargetFeatureBitEnumeration( - std::map<Record *, SubtargetFeatureInfo, LessRecordByID> - &SubtargetFeatures, - raw_ostream &OS); - static void emitNameTable(std::map<Record *, SubtargetFeatureInfo, LessRecordByID> &SubtargetFeatures, raw_ostream &OS); @@ -72,9 +54,6 @@ struct SubtargetFeatureInfo { /// Emit the function to compute the list of available features given a /// subtarget. /// - /// This version is used for subtarget features defined using Predicate<> - /// and supports more than 64 feature bits. - /// /// \param TargetName The name of the target as used in class prefixes (e.g. /// <TargetName>Subtarget) /// \param ClassName The name of the class (without the <Target> prefix) @@ -87,25 +66,6 @@ struct SubtargetFeatureInfo { std::map<Record *, SubtargetFeatureInfo, LessRecordByID> &SubtargetFeatures, raw_ostream &OS); - - /// Emit the function to compute the list of available features given a - /// subtarget. - /// - /// This version is used for subtarget features defined using - /// AssemblerPredicate<> and supports up to 64 feature bits. - /// - /// \param TargetName The name of the target as used in class prefixes (e.g. - /// <TargetName>Subtarget) - /// \param ClassName The name of the class (without the <Target> prefix) - /// that will contain the generated functions. - /// \param FuncName The name of the function to emit. - /// \param SubtargetFeatures A map of TableGen records to the - /// SubtargetFeatureInfo equivalent. - static void emitComputeAssemblerAvailableFeatures( - StringRef TargetName, StringRef ClassName, StringRef FuncName, - std::map<Record *, SubtargetFeatureInfo, LessRecordByID> - &SubtargetFeatures, - raw_ostream &OS); }; } // end namespace llvm |