mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Make isInt?? and isUint?? template specializations of the generic versions. This
makes calls a little bit more consistent and allows easy removal of the specializations in the future. Convert all callers to the templated functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -383,7 +383,7 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM) {
|
||||
if (ConstantInt *CI = dyn_cast<ConstantInt>(U->getOperand(1))) {
|
||||
uint64_t Disp = (int32_t)AM.Disp + (uint64_t)CI->getSExtValue();
|
||||
// They have to fit in the 32-bit signed displacement field though.
|
||||
if (isInt32(Disp)) {
|
||||
if (isInt<32>(Disp)) {
|
||||
AM.Disp = (uint32_t)Disp;
|
||||
return X86SelectAddress(U->getOperand(0), AM);
|
||||
}
|
||||
@@ -427,7 +427,7 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM) {
|
||||
}
|
||||
}
|
||||
// Check for displacement overflow.
|
||||
if (!isInt32(Disp))
|
||||
if (!isInt<32>(Disp))
|
||||
break;
|
||||
// Ok, the GEP indices were covered by constant-offset and scaled-index
|
||||
// addressing. Update the address state and move on to examining the base.
|
||||
|
Reference in New Issue
Block a user