summaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/Common/DAGISelMatcher.cpp
AgeCommit message (Collapse)Author
2025-11-22[TableGen] Use MVT instead of MVT::SimpleValueType. NFC (#169180)Craig Topper
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>
2025-09-25[TableGen, CodeGen, CHERI] Add support for the cPTR wildcard value type. ↵Owen Anderson
(#158426) cPTR is a wildcard CHERI capability value type, used analogously to iPTR. This allows TableGen patterns to abstract over CHERI capability widths. Co-authored-by: Jessica Clarke <jrtc27@jrtc27.com>
2025-09-04[NFC][TableGen] Adopt `CodeGenInstruction::getName()` (#156968)Rahul Joshi
Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
2025-06-15[TableGen] Use range-based for loops (NFC) (#144283)Kazu Hirata
2024-09-20[LLVM][TableGen] Adopt `indent` for indentation (#109275)Rahul Joshi
Adopt `indent` for indentation DAGISelMatcher and DecoderEmitter.
2024-09-19[NFC] Rename variables to conform to LLVM coding standards (#109166)Rahul Joshi
Rename `indent` to `Indent` and `o` to `OS`. Rename `Indentation` to `Indent`. Remove unused argument from `emitPredicateMatch`. Change `Indent` argument to `emitBinaryParser` to by value.
2024-08-09[llvm] Construct SmallVector with ArrayRef (NFC) (#102712)Kazu Hirata
Without this patch, the constructor arguments come from SmallVectorImpl, not ArrayRef. This patch switches them to ArrayRef so that we can construct SmallVector with a single argument. Note that LLVM Programmer’s Manual prefers ArrayRef to SmallVectorImpl for flexibility.
2024-07-19[TableGen][SelectionDAG] Make CheckValueTypeMatcher use MVT::SimpleValueType ↵Brandon Wu
(#99537) The original `CheckValueTypeMatcher` stores StringRef as the member variable type, however it's more efficient to use use MVT::SimpleValueType since it prevents string comparison in isEqualImpl, it also reduce the memory consumption in each object.
2024-03-25[RFC][TableGen] Restructure TableGen Source (#80847)Pierre van Houtryve
Refactor of the llvm-tblgen source into: - a "Basic" library, which contains the bare minimum utilities to build `llvm-min-tablegen` - a "Common" library which contains all of the helpers for TableGen backends. Such helpers can be shared by more than one backend, and even unit tested (e.g. CodeExpander is, maybe we can add more over time) Fixes #80647