diff options
| author | Rahul Joshi <rjoshi@nvidia.com> | 2024-10-18 07:50:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 07:50:22 -0700 |
| commit | 62e2c7fb2d18b43149a07526f6a3c0563d50e2fa (patch) | |
| tree | 6e9647e041e572c32b17983a32fce0c5e8e4f06d /llvm/utils/TableGen/Common/CodeGenInstruction.h | |
| parent | c27aae0035d2cf490c02a0cc0e2e1fbe4f12512a (diff) | |
[LLVM][TableGen] Change all `Init` pointers to const (#112705)
This is a part of effort to have better const correctness in TableGen
backends:
https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
Diffstat (limited to 'llvm/utils/TableGen/Common/CodeGenInstruction.h')
| -rw-r--r-- | llvm/utils/TableGen/Common/CodeGenInstruction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/Common/CodeGenInstruction.h b/llvm/utils/TableGen/Common/CodeGenInstruction.h index 18294b157fed..a799d023b1af 100644 --- a/llvm/utils/TableGen/Common/CodeGenInstruction.h +++ b/llvm/utils/TableGen/Common/CodeGenInstruction.h @@ -110,7 +110,7 @@ public: /// MIOperandInfo - Default MI operand type. Note an operand may be made /// up of multiple MI operands. - DagInit *MIOperandInfo; + const DagInit *MIOperandInfo; /// Constraint info for this operand. This operand can have pieces, so we /// track constraint info for each. @@ -118,7 +118,7 @@ public: OperandInfo(const Record *R, const std::string &N, const std::string &PMN, const std::string &OT, unsigned MION, unsigned MINO, - DagInit *MIOI) + const DagInit *MIOI) : Rec(R), Name(N), SubOpNames(MINO), PrinterMethodName(PMN), EncoderMethodNames(MINO), OperandType(OT), MIOperandNo(MION), MINumOperands(MINO), DoNotEncode(MINO), MIOperandInfo(MIOI), |
