/external/swiftshader/third_party/LLVM/lib/Target/SystemZ/ |
D | SystemZOperands.td | 37 return getI8Imm(N->getZExtValue() & 0x00000000000000FFULL); 42 return getI16Imm(N->getZExtValue() & 0x000000000000FFFFULL); 47 return getI16Imm((N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16); 52 return getI16Imm((N->getZExtValue() & 0x0000FFFF00000000ULL) >> 32); 57 return getI16Imm((N->getZExtValue() & 0xFFFF000000000000ULL) >> 48); 62 return getI32Imm(N->getZExtValue() & 0x00000000FFFFFFFFULL); 67 return getI32Imm(N->getZExtValue() >> 32); 77 return ((N->getZExtValue() & 0x000000000000FFFFULL) == N->getZExtValue()); 82 return ((N->getZExtValue() & 0x00000000FFFF0000ULL) == N->getZExtValue()); 87 return ((N->getZExtValue() | 0x00000000FFFF0000ULL) == N->getZExtValue()); [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZOperands.td | 151 uint64_t Value = N->getZExtValue() & 0x000000000000FFFFULL; 157 uint64_t Value = (N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 163 uint64_t Value = (N->getZExtValue() & 0x0000FFFF00000000ULL) >> 32; 169 uint64_t Value = (N->getZExtValue() & 0xFFFF000000000000ULL) >> 48; 175 uint64_t Value = N->getZExtValue() & 0x00000000FFFFFFFFULL; 181 uint64_t Value = N->getZExtValue() >> 32; 187 return CurDAG->getTargetConstant(int8_t(N->getZExtValue()), SDLoc(N), 193 return CurDAG->getTargetConstant(uint8_t(N->getZExtValue()), SDLoc(N), 199 return CurDAG->getTargetConstant(N->getZExtValue() & 0xfe, SDLoc(N), 205 return CurDAG->getTargetConstant(N->getZExtValue() & 0xfff, SDLoc(N), [all …]
|
D | SystemZTargetTransformInfo.cpp | 54 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 57 if ((Imm.getZExtValue() & 0xffffffff) == 0) in getIntImmCost() 105 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 113 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 131 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 134 if ((Imm.getZExtValue() & 0xffffffff) == 0) in getIntImmCost() 144 if (isUInt<32>(~Imm.getZExtValue())) in getIntImmCost() 147 if ((Imm.getZExtValue() & 0xffffffff) == 0xffffffff) in getIntImmCost() 152 if (TII->isRxSBGMask(Imm.getZExtValue(), BitSize, Start, End)) in getIntImmCost() 206 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZOperands.td | 158 uint64_t Value = N->getZExtValue() & 0x000000000000FFFFULL; 164 uint64_t Value = (N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 170 uint64_t Value = (N->getZExtValue() & 0x0000FFFF00000000ULL) >> 32; 176 uint64_t Value = (N->getZExtValue() & 0xFFFF000000000000ULL) >> 48; 182 uint64_t Value = N->getZExtValue() & 0x00000000FFFFFFFFULL; 188 uint64_t Value = N->getZExtValue() >> 32; 194 return CurDAG->getTargetConstant(int8_t(N->getZExtValue()), SDLoc(N), 200 return CurDAG->getTargetConstant(uint8_t(N->getZExtValue()), SDLoc(N), 206 return CurDAG->getTargetConstant(N->getZExtValue() & 0xfe, SDLoc(N), 212 return CurDAG->getTargetConstant(N->getZExtValue() & 0xfff, SDLoc(N), [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | UnrollAnalyzer.cpp | 109 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 1U); in TEST() 114 EXPECT_FALSE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 120 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), TripCount); in TEST() 125 EXPECT_TRUE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 218 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 5U); in TEST() 221 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 1U); in TEST() 263 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 0U); in TEST() 313 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 259U); in TEST() 316 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 259U); in TEST() 319 EXPECT_EQ(cast<ConstantInt>((*I3).second)->getZExtValue(), 3U); in TEST()
|
D | ValueTrackingTest.cpp | 287 EXPECT_EQ(Known.One.getZExtValue(), 10u); in TEST() 288 EXPECT_EQ(Known.Zero.getZExtValue(), 4278190085u); in TEST() 313 EXPECT_EQ(Known.One.getZExtValue(), 32u); in TEST() 314 EXPECT_EQ(Known.Zero.getZExtValue(), 95u); in TEST()
|
/external/llvm/unittests/Analysis/ |
D | UnrollAnalyzer.cpp | 110 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 1U); in TEST() 115 EXPECT_FALSE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 121 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), TripCount); in TEST() 126 EXPECT_TRUE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 219 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 5U); in TEST() 222 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 1U); in TEST() 264 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 0U); in TEST() 314 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 259U); in TEST() 317 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 259U); in TEST() 320 EXPECT_EQ(cast<ConstantInt>((*I3).second)->getZExtValue(), 3U); in TEST()
|
/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 70 Size = C->getValue().getZExtValue(); in getForSource() 83 Size = C->getValue().getZExtValue(); in getForDest() 113 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument() 121 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument() 126 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument() 153 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 84 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted() 130 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted() 131 unsigned LowBits = TypeWidth - CI->getZExtValue(); in CanEvaluateShifted() 154 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted() 155 unsigned LowBits = CI->getZExtValue() - NumBits; in CanEvaluateShifted() 220 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() 245 assert(CI->getZExtValue() > NumBits); in GetShiftedValue() 247 CI->getZExtValue() - NumBits)); in GetShiftedValue() 261 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() 285 assert(CI->getZExtValue() > NumBits); in GetShiftedValue() [all …]
|
D | InstCombineVectorOps.cpp | 71 Result.push_back(cast<ConstantInt>(*i)->getZExtValue()); in getShuffleMask() 96 unsigned IIElt = cast<ConstantInt>(III->getOperand(2))->getZExtValue(); in FindScalarElement() 149 unsigned IndexVal = IdxC->getZExtValue(); in visitExtractElementInst() 215 int SrcIdx = getShuffleMask(SVI)[Elt->getZExtValue()]; in visitExtractElementInst() 282 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in CollectSingleShuffleElements() 296 cast<ConstantInt>(EI->getOperand(1))->getZExtValue(); in CollectSingleShuffleElements() 351 cast<ConstantInt>(EI->getOperand(1))->getZExtValue(); in CollectShuffleElements() 352 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in CollectShuffleElements() 407 cast<ConstantInt>(EI->getOperand(1))->getZExtValue(); in visitInsertElementInst() 408 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in visitInsertElementInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 78 Size = C->getValue().getZExtValue(); in getForSource() 99 Size = C->getValue().getZExtValue(); in getForDest() 129 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument() 137 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument() 142 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument() 169 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelDAGToDAG.cpp | 340 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass() 345 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass() 394 Out = C->getAPIntValue().getZExtValue(); in getConstantValue() 399 Out = C->getValueAPF().bitcastToAPInt().getZExtValue(); in getConstantValue() 553 Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue(); in Select() 556 Imm = C->getZExtValue(); in Select() 603 uint32_t OffsetVal = Offset->getZExtValue(); in Select() 604 uint32_t WidthVal = Width->getZExtValue(); in Select() 676 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() 680 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelDAGToDAG.cpp | 207 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass() 212 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass() 395 Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue(); in Select() 398 Imm = C->getZExtValue(); in Select() 446 uint32_t OffsetVal = Offset->getZExtValue(); in Select() 447 uint32_t WidthVal = Width->getZExtValue(); in Select() 512 IntPtr = CurDAG->getIntPtrConstant(Cst->getZExtValue() / 4, SDLoc(Addr), in SelectGlobalValueConstantOffset() 535 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ() 538 Offset = CurDAG->getTargetConstant(IMMOffset->getZExtValue(), SDLoc(Addr), in SelectADDRVTX_READ() 543 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 77 uint64_t Element = APElt.getLoBits(8).getZExtValue(); in DecodePSHUFBMask() 148 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMILPMask() 204 uint64_t Selector = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMIL2PMask() 293 ShuffleMask.push_back((int)Index.getZExtValue()); in DecodeVPPERMMask() 318 ShuffleMask.push_back(Element.getZExtValue()); in DecodeVPERMVMask() 327 uint64_t Element = cast<ConstantInt>(C)->getZExtValue(); in DecodeVPERMVMask() 351 ShuffleMask.push_back(Element.getZExtValue()); in DecodeVPERMV3Mask()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Statepoint.h | 122 ->getZExtValue(); in getFlags() 128 return cast<ConstantInt>(IDVal)->getZExtValue(); in getID() 135 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue(); in getNumPatchBytes() 175 return cast<ConstantInt>(NumCallArgsVal)->getZExtValue(); in getNumCallArgs() 209 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue(); in getNumTotalGCTransitionArgs() 231 return cast<ConstantInt>(NumVMSArgs)->getZExtValue(); in getNumTotalVMSArgs() 388 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex() 394 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
|
/external/llvm/include/llvm/IR/ |
D | Statepoint.h | 102 ->getZExtValue(); in getFlags() 108 return cast<ConstantInt>(IDVal)->getZExtValue(); in getID() 115 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue(); in getNumPatchBytes() 155 return cast<ConstantInt>(NumCallArgsVal)->getZExtValue(); in getNumCallArgs() 189 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue(); in getNumTotalGCTransitionArgs() 211 return cast<ConstantInt>(NumVMSArgs)->getZExtValue(); in getNumTotalVMSArgs() 365 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex() 371 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 71 unsigned SecondShiftAmt = SecondShiftConst->getZExtValue(); in canEvaluateShiftedShift() 131 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted() 227 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() 252 assert(CI->getZExtValue() > NumBits); in GetShiftedValue() 254 CI->getZExtValue() - NumBits)); in GetShiftedValue() 270 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() 294 assert(CI->getZExtValue() > NumBits); in GetShiftedValue() 296 CI->getZExtValue() - NumBits)); in GetShiftedValue() 340 CanEvaluateShifted(Op0, COp1->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant() 345 I, GetShiftedValue(Op0, COp1->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 64 if ((Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost() 171 (isShiftedMask_32(Imm.getZExtValue()) || in getIntImmCost() 172 isShiftedMask_32(~Imm.getZExtValue()))) in getIntImmCost() 176 (isShiftedMask_64(Imm.getZExtValue()) || in getIntImmCost() 177 isShiftedMask_64(~Imm.getZExtValue()))) in getIntImmCost() 181 if (UnsignedFree && isUInt<16>(Imm.getZExtValue())) in getIntImmCost() 184 if (ShiftedFree && (Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost()
|
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/ |
D | SPUOperands.td | 14 return getI32Imm(N->getZExtValue()); 19 return CurDAG->getTargetConstant(N->getZExtValue(), MVT::i16); 24 unsigned val = N->getZExtValue(); 47 return getI32Imm((unsigned)CN->getZExtValue() & 0xffff); 52 return getI32Imm((unsigned)N->getZExtValue() >> 16); 73 return getI32Imm((unsigned)CN->getZExtValue() >> 16); 86 return (N->getZExtValue() <= 0x7f); 98 return (N->getZExtValue() <= 0xff); 135 return (uint64_t)N->getZExtValue() == (unsigned short)N->getZExtValue(); 140 return (uint64_t)N->getZExtValue() == (N->getZExtValue() & 0xffff); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 69 if ((Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost() 177 (isShiftedMask_32(Imm.getZExtValue()) || in getIntImmCost() 178 isShiftedMask_32(~Imm.getZExtValue()))) in getIntImmCost() 182 (isShiftedMask_64(Imm.getZExtValue()) || in getIntImmCost() 183 isShiftedMask_64(~Imm.getZExtValue()))) in getIntImmCost() 187 if (UnsignedFree && isUInt<16>(Imm.getZExtValue())) in getIntImmCost() 190 if (ShiftedFree && (Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 101 unsigned InnerShAmt = InnerShiftConst->getZExtValue(); in canEvaluateShiftedShift() 205 unsigned InnerShAmt = C1->getZExtValue(); in foldShiftedShift() 358 canEvaluateShifted(Op0, Op1C->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant() 365 I, getShiftedValue(Op0, Op1C->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant() 407 MaskV <<= Op1C->getZExtValue(); in FoldShiftByConstant() 410 MaskV.lshrInPlace(Op1C->getZExtValue()); in FoldShiftByConstant() 606 unsigned ShAmt = ShAmtAPInt->getZExtValue(); in visitShl() 629 unsigned ShrAmt = ShOp1->getZExtValue(); in visitShl() 649 unsigned AmtSum = ShAmt + ShOp1->getZExtValue(); in visitShl() 710 unsigned ShAmt = ShAmtAPInt->getZExtValue(); in visitLShr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 150 *I8Ptr = (int8_t) AV.IntVal.getZExtValue(); in ffiValueFor() 155 *I16Ptr = (int16_t) AV.IntVal.getZExtValue(); in ffiValueFor() 160 *I32Ptr = (int32_t) AV.IntVal.getZExtValue(); in ffiValueFor() 165 *I64Ptr = (int64_t) AV.IntVal.getZExtValue(); in ffiValueFor() 374 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() 390 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue()); in lle_X_sprintf() 392 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() 474 size_t len = (size_t)Args[2].IntVal.getZExtValue(); in lle_X_memset()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 139 *I8Ptr = (int8_t) AV.IntVal.getZExtValue(); in ffiValueFor() 144 *I16Ptr = (int16_t) AV.IntVal.getZExtValue(); in ffiValueFor() 149 *I32Ptr = (int32_t) AV.IntVal.getZExtValue(); in ffiValueFor() 154 *I64Ptr = (int64_t) AV.IntVal.getZExtValue(); in ffiValueFor() 364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() 380 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue()); in lle_X_sprintf() 382 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() 464 size_t len = (size_t)Args[2].IntVal.getZExtValue(); in lle_X_memset()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMAddressingModes.h | 680 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm() 682 int64_t Mantissa = Imm.getZExtValue() & 0x3ff; // 10 bits in getFP16Imm() 706 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm() 708 int64_t Mantissa = Imm.getZExtValue() & 0x7fffff; // 23 bits in getFP32Imm() 734 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm() 736 uint64_t Mantissa = Imm.getZExtValue() & 0xfffffffffffffULL; in getFP64Imm()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMAddressingModes.h | 657 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm() 659 int64_t Mantissa = Imm.getZExtValue() & 0x3ff; // 10 bits in getFP16Imm() 683 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm() 685 int64_t Mantissa = Imm.getZExtValue() & 0x7fffff; // 23 bits in getFP32Imm() 711 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm() 713 uint64_t Mantissa = Imm.getZExtValue() & 0xfffffffffffffULL; in getFP64Imm()
|