[PATCH] D88386: [MIR][M68K] (Patch 2/8): Changes on Target-independent MIR part
Renato Golin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 03:19:25 PST 2020
rengolin added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/TargetInstrInfo.h:947
+ /// @return Whether this operand is allowed to be pc-relative.
+ virtual bool isRegisterOperandPCRel(const MachineOperand &MO) const {
+ return false;
----------------
myhsu wrote:
> rengolin wrote:
> > Shouldn't you also have added the derived implementations for each target?
> I'm not sure, is there a policy to enforce this? Because there is a default implementation here (i.e. `return false`) so functionally it works. Also some of the functions, the `isCopyInstrImpl` below for example, don't have implementations in every derived targets either
There is no policy regarding this. Just now reading the MachineVerrifier again, it seems as this does not change the implementation for any other target that doesn't implement. No worries.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88386/new/
https://reviews.llvm.org/D88386
More information about the llvm-commits
mailing list