[TargetLowering] move "o" and "X" constraint handling to base class
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 19 Apr 2021 17:36:33 +0000 (10:36 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 19 Apr 2021 17:53:31 +0000 (10:53 -0700)
commitc440b97d89994feb965a9026bc121d154f7b4584
tree37d7e7ca9f6d615edb208bc543c04d2a4cc7d1f2
parent91bbb914e01715b4b16d49c399b05310aa916cfe
[TargetLowering] move "o" and "X" constraint handling to base class

These constraints are machine agnostic; there's no reason to handle
these per-arch. If arches don't support these constraints, then they
will fail elsewhere during instruction selection. We don't need virtual
calls to look these up; TargetLowering::getInlineAsmMemConstraint should
only be overridden by architectures with additional unique memory
constraints.

Reviewed By: echristo, MaskRay

Differential Revision: https://reviews.llvm.org/D100416
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/Hexagon/HexagonISelLowering.h
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/Sparc/SparcISelLowering.h
llvm/lib/Target/X86/X86ISelLowering.h