LLVM: lib/MC/MCSubtargetInfo.cpp File Reference (original) (raw)
Go to the source code of this file.
| Functions | |
|---|---|
| template<typename T> | |
| static const T * | Find (StringRef S, ArrayRef< T > A) |
| Find KV in array using binary search. | |
| static void | SetImpliedBits (FeatureBitset &Bits, const FeatureBitset &Implies, ArrayRef< SubtargetFeatureKV > FeatureTable) |
| For each feature that is (transitively) implied by this feature, set it. | |
| static void | ClearImpliedBits (FeatureBitset &Bits, unsigned Value, ArrayRef< SubtargetFeatureKV > FeatureTable) |
| For each feature that (transitively) implies this feature, clear it. | |
| static void | ApplyFeatureFlag (FeatureBitset &Bits, StringRef Feature, ArrayRef< SubtargetFeatureKV > FeatureTable) |
| static size_t | getLongestEntryLength (ArrayRef< SubtargetFeatureKV > Table) |
| Return the length of the longest entry in the table. | |
| static size_t | getLongestEntryLength (ArrayRef< StringRef > Table) |
| static void | Help (ArrayRef< StringRef > CPUNames, ArrayRef< SubtargetFeatureKV > FeatTable) |
| Display help for feature and mcpu choices. | |
| static void | cpuHelp (ArrayRef< StringRef > CPUNames) |
| Display help for mcpu choices only. | |
| static FeatureBitset | getFeatures (MCSubtargetInfo &STI, StringRef CPU, StringRef TuneCPU, StringRef FS, ArrayRef< StringRef > ProcNames, ArrayRef< SubtargetSubTypeKV > ProcDesc, ArrayRef< SubtargetFeatureKV > ProcFeatures) |
◆ ApplyFeatureFlag()
Definition at line 60 of file MCSubtargetInfo.cpp.
References assert(), ClearImpliedBits(), llvm::errs(), Find(), llvm::FeatureBitArray::getAsBitset(), llvm::SubtargetFeatures::hasFlag(), llvm::SubtargetFeatureKV::Implies, llvm::SubtargetFeatures::isEnabled(), SetImpliedBits(), llvm::SubtargetFeatures::StripFlag(), and llvm::SubtargetFeatureKV::Value.
Referenced by getFeatures().
◆ ClearImpliedBits()
◆ cpuHelp()
◆ Find()
◆ getFeatures()
Definition at line 170 of file MCSubtargetInfo.cpp.
References ApplyFeatureFlag(), assert(), cpuHelp(), llvm::ArrayRef< T >::empty(), llvm::StringRef::empty(), llvm::errs(), Find(), llvm::FeatureBitArray::getAsBitset(), llvm::SubtargetFeatures::getFeatures(), Help(), llvm::SubtargetSubTypeKV::Implies, llvm::is_sorted(), SetImpliedBits(), and llvm::SubtargetSubTypeKV::TuneImplies.
Referenced by llvm::MCSubtargetInfo::InitMCProcessorInfo(), and llvm::MCSubtargetInfo::setDefaultFeatures().