diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-11-22 17:00:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 17:00:56 -0800 |
| commit | 0ef522ff68fff4266bf85e7b7a507a16a8fd34ee (patch) | |
| tree | afc7839155ed8580ff234b0d93d4c5383be841c7 /llvm/utils/TableGen/Common/CodeGenTarget.h | |
| parent | 0619292195ecd47ac05b0c7759992b400abec52c (diff) | |
[TableGen] Use MVT instead of MVT::SimpleValueType. NFC (#169180)
This improves type safety and is less verbose. Use SimpleTy only where
an integer is needed like switches or emitting a VBR.
---------
Co-authored-by: Sergei Barannikov <barannikov88@gmail.com>
Diffstat (limited to 'llvm/utils/TableGen/Common/CodeGenTarget.h')
| -rw-r--r-- | llvm/utils/TableGen/Common/CodeGenTarget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/Common/CodeGenTarget.h b/llvm/utils/TableGen/Common/CodeGenTarget.h index c1ed70d1739f..5a9be8617dc1 100644 --- a/llvm/utils/TableGen/Common/CodeGenTarget.h +++ b/llvm/utils/TableGen/Common/CodeGenTarget.h @@ -41,11 +41,11 @@ class CodeGenRegisterClass; class CodeGenSchedModels; class CodeGenSubRegIndex; -/// getValueType - Return the MVT::SimpleValueType that the specified TableGen +/// Returns the MVT that the specified TableGen /// record corresponds to. -MVT::SimpleValueType getValueType(const Record *Rec); +MVT getValueType(const Record *Rec); -StringRef getEnumName(MVT::SimpleValueType T); +StringRef getEnumName(MVT T); /// getQualifiedName - Return the name of the specified record, with a /// namespace qualifier if the record contains one. |
