mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Add address space argument to isLegalAddressingMode
This is important because of different addressing modes depending on the address space for GPU targets. This only adds the argument, and does not update any of the uses to provide the correct address space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1632,7 +1632,8 @@ TargetLoweringBase::getTypeLegalizationCost(Type *Ty) const {
|
||||
/// isLegalAddressingMode - Return true if the addressing mode represented
|
||||
/// by AM is legal for this target, for a load/store of the specified type.
|
||||
bool TargetLoweringBase::isLegalAddressingMode(const AddrMode &AM,
|
||||
Type *Ty) const {
|
||||
Type *Ty,
|
||||
unsigned AS) const {
|
||||
// The default implementation of this implements a conservative RISCy, r+r and
|
||||
// r+i addr mode.
|
||||
|
||||
|
Reference in New Issue
Block a user