LLVM API Documentation
#include <SubtargetFeature.h>
Collaboration diagram for llvm::SubtargetFeatures:
Public Member Functions | |
SubtargetFeatures (const std::string &Initial=std::string()) | |
std::string | getString () const |
Features string accessors. | |
void | setString (const std::string &Initial) |
void | setCPU (const std::string &String) |
Set the CPU string. Replaces previous setting. Setting to "" clears CPU. | |
void | setCPUIfNone (const std::string &String) |
Setting CPU string only if no string is set. | |
void | AddFeature (const std::string &String, bool IsEnabled=true) |
Adding Features. | |
uint32_t | getBits (const SubtargetFeatureKV *CPUTable, size_t CPUTableSize, const SubtargetFeatureKV *FeatureTable, size_t FeatureTableSize) |
Get feature bits. | |
void * | getInfo (const SubtargetInfoKV *Table, size_t TableSize) |
Get info pointer. | |
void | print (std::ostream &OS) const |
Print feature string. | |
void | dump () const |
Definition at line 72 of file SubtargetFeature.h.
SubtargetFeatures::SubtargetFeatures | ( | const std::string & | Initial = std::string() |
) |
std::string SubtargetFeatures::getString | ( | ) | const |
void SubtargetFeatures::setString | ( | const std::string & | Initial | ) |
Definition at line 180 of file SubtargetFeature.cpp.
References llvm::LowercaseString(), and Split().
void SubtargetFeatures::setCPU | ( | const std::string & | String | ) |
Set the CPU string. Replaces previous setting. Setting to "" clears CPU.
setCPU - Set the CPU string. Replaces previous setting. Setting to "" clears CPU.
Definition at line 190 of file SubtargetFeature.cpp.
References llvm::LowercaseString().
Referenced by setCPUIfNone().
void SubtargetFeatures::setCPUIfNone | ( | const std::string & | String | ) |
Setting CPU string only if no string is set.
setCPUIfNone - Setting CPU string only if no string is set.
Definition at line 197 of file SubtargetFeature.cpp.
References setCPU().
void SubtargetFeatures::AddFeature | ( | const std::string & | String, | |
bool | IsEnabled = true | |||
) |
Adding Features.
Definition at line 104 of file SubtargetFeature.cpp.
References llvm::LowercaseString(), and PrependFlag().
uint32_t SubtargetFeatures::getBits | ( | const SubtargetFeatureKV * | CPUTable, | |
size_t | CPUTableSize, | |||
const SubtargetFeatureKV * | FeatureTable, | |||
size_t | FeatureTableSize | |||
) |
Get feature bits.
getBits - Get feature bits.
Definition at line 204 of file SubtargetFeature.cpp.
References Bits, Find(), Help(), isEnabled(), StripFlag(), and llvm::SubtargetFeatureKV::Value.
void * SubtargetFeatures::getInfo | ( | const SubtargetInfoKV * | Table, | |
size_t | TableSize | |||
) |
Get info pointer.
Definition at line 266 of file SubtargetFeature.cpp.
References Find(), and llvm::SubtargetInfoKV::Value.
void SubtargetFeatures::print | ( | std::ostream & | OS | ) | const |
Print feature string.
print - Print feature string.
Definition at line 291 of file SubtargetFeature.cpp.
Referenced by dump().
void SubtargetFeatures::dump | ( | ) | const |