Home
last modified time | relevance | path

Searched refs:TypeWidth (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp125 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in CanEvaluateShifted() local
130 unsigned LowBits = TypeWidth - CI->getZExtValue(); in CanEvaluateShifted()
132 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) in CanEvaluateShifted()
149 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in CanEvaluateShifted() local
156 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) in CanEvaluateShifted()
210 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in GetShiftedValue() local
219 if (NewShAmt >= TypeWidth) in GetShiftedValue()
229 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue()
247 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in GetShiftedValue() local
255 if (NewShAmt >= TypeWidth) in GetShiftedValue()
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp175 static void DefineTypeSize(llvm::StringRef MacroName, unsigned TypeWidth, in DefineTypeSize() argument
178 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize()
179 : llvm::APInt::getMaxValue(TypeWidth); in DefineTypeSize()
209 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntType() local
213 if (TypeWidth == 64) in DefineExactWidthIntType()
216 DefineType("__INT" + llvm::Twine(TypeWidth) + "_TYPE__", Ty, Builder); in DefineExactWidthIntType()
220 Builder.defineMacro("__INT" + llvm::Twine(TypeWidth) + "_C_SUFFIX__", in DefineExactWidthIntType()