[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:33 PDT 2024
================
@@ -1523,9 +1523,12 @@ unsigned RISCVInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
case TargetOpcode::PATCHPOINT:
// The size of the patchpoint intrinsic is the number of bytes requested
return PatchPointOpers(&MI).getNumPatchBytes();
- case TargetOpcode::STATEPOINT:
+ case TargetOpcode::STATEPOINT: {
// The size of the statepoint intrinsic is the number of bytes requested
- return StatepointOpers(&MI).getNumPatchBytes();
+ unsigned NumBytes = StatepointOpers(&MI).getNumPatchBytes();
+ // A statepoint is at least a PseudoCALL
----------------
wangpc-pp wrote:
Is this right for all target types?
https://github.com/llvm/llvm-project/pull/77337
More information about the llvm-commits
mailing list