[llvm] [AArch64][llvm] Implement HINT instructions as aliases (NFCI) (PR #206383)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 07:35:26 PDT 2026
================
@@ -2568,45 +2450,8 @@ class AArch64Operand : public MCParsedAsmOperand {
MCContext &Ctx) {
auto Op = std::make_unique<AArch64Operand>(k_Prefetch, Ctx);
Op->Prefetch.Val = Val;
- Op->Barrier.Data = Str.data();
- Op->Barrier.Length = Str.size();
- Op->StartLoc = S;
- Op->EndLoc = S;
- return Op;
- }
-
- static std::unique_ptr<AArch64Operand> CreatePSBHint(unsigned Val,
- StringRef Str,
- SMLoc S,
- MCContext &Ctx) {
- auto Op = std::make_unique<AArch64Operand>(k_PSBHint, Ctx);
- Op->PSBHint.Val = Val;
- Op->PSBHint.Data = Str.data();
- Op->PSBHint.Length = Str.size();
- Op->StartLoc = S;
- Op->EndLoc = S;
- return Op;
- }
-
- static std::unique_ptr<AArch64Operand> CreateBTIHint(unsigned Val,
- StringRef Str,
- SMLoc S,
- MCContext &Ctx) {
- auto Op = std::make_unique<AArch64Operand>(k_BTIHint, Ctx);
- Op->BTIHint.Val = Val | 32;
- Op->BTIHint.Data = Str.data();
- Op->BTIHint.Length = Str.size();
- Op->StartLoc = S;
- Op->EndLoc = S;
- return Op;
- }
-
- static std::unique_ptr<AArch64Operand>
- CreateCMHPriorityHint(unsigned Val, StringRef Str, SMLoc S, MCContext &Ctx) {
- auto Op = std::make_unique<AArch64Operand>(k_CMHPriorityHint, Ctx);
- Op->CMHPriorityHint.Val = Val;
- Op->CMHPriorityHint.Data = Str.data();
- Op->CMHPriorityHint.Length = Str.size();
+ Op->Prefetch.Data = Str.data();
----------------
Lukacma wrote:
Unrelated change I think?
https://github.com/llvm/llvm-project/pull/206383
More information about the llvm-commits
mailing list