Index: include/llvm/MC/MCSubtargetInfo.h =================================================================== --- include/llvm/MC/MCSubtargetInfo.h +++ include/llvm/MC/MCSubtargetInfo.h @@ -78,6 +78,14 @@ FeatureBits = FeatureBits_; } + /// getProcFeatures - Return the subtarget feature list. + /// + /// Use this list in conjunction with getFeatureBits() to get which features + /// are enabled for the current CPU. + ArrayRef getProcFeatures() const { + return ProcFeatures; + } + protected: /// Initialize the scheduling model and feature bits. ///