[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
================
@@ -1571,50 +1571,15 @@ void AArch64InstPrinter::printPrefetchOp(const MCInst *MI, unsigned OpNum,
markup(O, Markup::Immediate) << '#' << formatImm(prfop);
}
-void AArch64InstPrinter::printPSBHintOp(const MCInst *MI, unsigned OpNum,
- const MCSubtargetInfo &STI,
- raw_ostream &O) {
- unsigned psbhintop = MI->getOperand(OpNum).getImm();
- auto PSB = AArch64PSBHint::lookupPSBByEncoding(psbhintop);
- if (PSB)
- O << AArch64PSBHint::getPSBStr(PSB->Name);
- else
- markup(O, Markup::Immediate) << '#' << formatImm(psbhintop);
-}
-
-void AArch64InstPrinter::printBTIHintOp(const MCInst *MI, unsigned OpNum,
- const MCSubtargetInfo &STI,
- raw_ostream &O) {
- unsigned btihintop = MI->getOperand(OpNum).getImm() ^ 32;
- auto BTI = AArch64BTIHint::lookupBTIByEncoding(btihintop);
- if (BTI)
- O << AArch64BTIHint::getBTIStr(BTI->Name);
- else
- markup(O, Markup::Immediate) << '#' << formatImm(btihintop);
-}
-
-void AArch64InstPrinter::printCMHPriorityHintOp(const MCInst *MI,
- unsigned OpNum,
- const MCSubtargetInfo &STI,
- raw_ostream &O) {
- unsigned priorityhint_op = MI->getOperand(OpNum).getImm();
- auto PHint =
- AArch64CMHPriorityHint::lookupCMHPriorityHintByEncoding(priorityhint_op);
- if (PHint)
- O << AArch64CMHPriorityHint::getCMHPriorityHintStr(PHint->Name);
- else
- markup(O, Markup::Immediate) << '#' << formatImm(priorityhint_op);
-}
-
void AArch64InstPrinter::printTIndexHintOp(const MCInst *MI, unsigned OpNum,
const MCSubtargetInfo &STI,
raw_ostream &O) {
- unsigned tindexhintop = MI->getOperand(OpNum).getImm();
- auto TIndex = AArch64TIndexHint::lookupTIndexByEncoding(tindexhintop);
+ unsigned TIndexHintOp = MI->getOperand(OpNum).getImm();
----------------
Lukacma wrote:
Unrelated change.
https://github.com/llvm/llvm-project/pull/206383
More information about the llvm-commits
mailing list