Searched refs:ConstantOffset (Results 1 – 2 of 2) sorted by relevance
/external/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 452 APInt ConstantOffset = find(BO->getOperand(0), SignExtended, ZeroExtended, in findInEitherOperand() local 459 if (ConstantOffset != 0) return ConstantOffset; in findInEitherOperand() 460 ConstantOffset = find(BO->getOperand(1), SignExtended, ZeroExtended, in findInEitherOperand() 465 ConstantOffset = -ConstantOffset; in findInEitherOperand() 466 return ConstantOffset; in findInEitherOperand() 480 APInt ConstantOffset(BitWidth, 0); in find() local 483 ConstantOffset = CI->getValue(); in find() 487 ConstantOffset = findInEitherOperand(BO, SignExtended, ZeroExtended); in find() 490 ConstantOffset = find(U->getOperand(0), /* SignExtended */ true, in find() 497 ConstantOffset = in find() [all …]
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 2693 int64_t ConstantOffset = 0; in MatchOperationAddr() local 2701 ConstantOffset += SL->getElementOffset(Idx); in MatchOperationAddr() 2705 ConstantOffset += CI->getSExtValue()*TypeSize; in MatchOperationAddr() 2721 AddrMode.BaseOffs += ConstantOffset; in MatchOperationAddr() 2722 if (ConstantOffset == 0 || TLI.isLegalAddressingMode(AddrMode, AccessTy)){ in MatchOperationAddr() 2727 AddrMode.BaseOffs -= ConstantOffset; in MatchOperationAddr() 2736 AddrMode.BaseOffs += ConstantOffset; in MatchOperationAddr() 2761 AddrMode.BaseOffs += ConstantOffset; in MatchOperationAddr()
|