mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
FastISel: constrain the RegClass of operands when emitting instructions.
ARM64 suffered multiple -verify-machineinstr failures (principally over the xsp/xzr issue) because FastISel was completely ignoring which subset of the general-purpose registers each instruction required. More fixes are coming in ARM64 specific FastISel, but this should cover the generic problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206283 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -343,6 +343,12 @@ protected:
|
||||
|
||||
unsigned createResultReg(const TargetRegisterClass *RC);
|
||||
|
||||
/// Try to constrain Op so that it is usable by argument OpNum of the provided
|
||||
/// MCInstrDesc. If this fails, create a new virtual register in the correct
|
||||
/// class and COPY the value there.
|
||||
unsigned constrainOperandRegClass(const MCInstrDesc &II, unsigned Op,
|
||||
unsigned OpNum);
|
||||
|
||||
/// Emit a constant in a register using target-specific logic, such as
|
||||
/// constant pool loads.
|
||||
virtual unsigned TargetMaterializeConstant(const Constant* C) {
|
||||
|
Reference in New Issue
Block a user