summaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/Common/CodeGenTarget.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-11-22 17:00:56 -0800
committerGitHub <noreply@github.com>2025-11-22 17:00:56 -0800
commit0ef522ff68fff4266bf85e7b7a507a16a8fd34ee (patch)
treeafc7839155ed8580ff234b0d93d4c5383be841c7 /llvm/utils/TableGen/Common/CodeGenTarget.h
parent0619292195ecd47ac05b0c7759992b400abec52c (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.h6
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.