[llvm] [RISCV] Add Stackmap/Statepoint/Patchpoint support with targets (PR #77337)
Wang Pengcheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 24 20:12:32 PDT 2024
================
@@ -172,6 +199,35 @@ void RISCVAsmPrinter::LowerSTATEPOINT(MCStreamer &OutStreamer, StackMaps &SM,
assert(PatchBytes % NOPBytes == 0 &&
"Invalid number of NOP bytes requested!");
emitNops(PatchBytes / NOPBytes);
+ } else {
+ // Lower call target and choose correct opcode
+ const MachineOperand &CallTarget = SOpers.getCallTarget();
+ MCOperand CallTargetMCOp;
+ switch (CallTarget.getType()) {
----------------
wangpc-pp wrote:
Tests for all types?
https://github.com/llvm/llvm-project/pull/77337
More information about the llvm-commits
mailing list