Home
last modified time | relevance | path

Searched refs:BitSize (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp37 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
40 if (BitSize == 0) in getIntImmCost()
43 if (BitSize > 64) in getIntImmCost()
70 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
73 if (BitSize == 0) in getIntImmCost()
76 if (BitSize > 64) in getIntImmCost()
92 if (BitSize == 8) in getIntImmCost()
141 if (BitSize <= 32) in getIntImmCost()
152 if (TII->isRxSBGMask(Imm.getZExtValue(), BitSize, Start, End)) in getIntImmCost()
188 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
[all …]
DSystemZISelDAGToDAG.cpp116 : Opcode(Op), BitSize(N.getValueType().getSizeInBits()), in RxSBGOperands()
117 Mask(allOnes(BitSize)), Input(N), Start(64 - BitSize), End(63), in RxSBGOperands()
121 unsigned BitSize; member
685 if (TII->isRxSBGMask(Mask, RxSBG.BitSize, RxSBG.Start, RxSBG.End)) { in refineRxSBGMask()
754 if (RxSBG.BitSize != 64 || N.getValueType() != MVT::i64) in expandRxSBG()
786 if (maskMatters(RxSBG, allOnes(RxSBG.BitSize) - allOnes(InnerBitSize))) in expandRxSBG()
799 unsigned BitSize = N.getValueType().getSizeInBits(); in expandRxSBG() local
800 if (Count < 1 || Count >= BitSize) in expandRxSBG()
810 if (!refineRxSBGMask(RxSBG, allOnes(BitSize - Count) << Count)) in expandRxSBG()
826 unsigned BitSize = N.getValueType().getSizeInBits(); in expandRxSBG() local
[all …]
DSystemZISelLowering.cpp1467 static unsigned getTestUnderMaskCond(unsigned BitSize, unsigned CCMask, in getTestUnderMaskCond() argument
1604 unsigned BitSize = NewC.Op0.getValueType().getSizeInBits(); in adjustForTestUnderMask() local
1609 (NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, in adjustForTestUnderMask()
1618 (NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, in adjustForTestUnderMask()
1625 NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, MaskVal, CmpVal, in adjustForTestUnderMask()
2433 int64_t BitSize = (int64_t)1 << Log2_32_Ceil(NumSignificantBits); in lowerCTPOP() local
2434 BitSize = std::min(BitSize, OrigBitSize); in lowerCTPOP()
2443 for (int64_t I = BitSize / 2; I >= 8; I = I / 2) { in lowerCTPOP()
2445 if (BitSize != OrigBitSize) in lowerCTPOP()
2447 DAG.getConstant(((uint64_t)1 << BitSize) - 1, VT)); in lowerCTPOP()
[all …]
DSystemZISelLowering.h353 unsigned BinOpcode, unsigned BitSize,
359 unsigned BitSize) const;
DSystemZInstrInfo.h229 bool isRxSBGMask(uint64_t Mask, unsigned BitSize,
DSystemZInstrInfo.cpp1185 bool SystemZInstrInfo::isRxSBGMask(uint64_t Mask, unsigned BitSize, in isRxSBGMask() argument
1202 if (isStringOfOnes(Mask ^ allOnes(BitSize), LSB, Length)) { in isRxSBGMask()
1204 assert(LSB + Length < BitSize && "Top bit must be set"); in isRxSBGMask()
/external/llvm/unittests/Transforms/IPO/
DLowerBitSets.cpp20 uint64_t BitSize; in TEST() member
62 EXPECT_EQ(T.BitSize, BSI.BitSize); in TEST()
112 uint64_t BitSize; in TEST() member
148 BABuilder.allocate(A.Bits, A.BitSize, GotByteOffset, GotMask); in TEST()
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp142 const size_t BitSize = ByteSize * 8; in initializeCallbacks() local
163 Type *Ty = Type::getIntNTy(M.getContext(), BitSize); in initializeCallbacks()
165 SmallString<32> AtomicLoadName("__tsan_atomic" + itostr(BitSize) + in initializeCallbacks()
170 SmallString<32> AtomicStoreName("__tsan_atomic" + itostr(BitSize) + in initializeCallbacks()
195 SmallString<32> RMWName("__tsan_atomic" + itostr(BitSize) + NamePart); in initializeCallbacks()
200 SmallString<32> AtomicCASName("__tsan_atomic" + itostr(BitSize) + in initializeCallbacks()
508 const size_t BitSize = ByteSize * 8; in instrumentAtomic() local
509 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic()
522 const size_t BitSize = ByteSize * 8; in instrumentAtomic() local
523 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp43 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
44 if (BitSize == 0) in getIntImmCost()
49 if (BitSize & 0x3f) in getIntImmCost()
50 ImmVal = Imm.sext((BitSize + 63) & ~0x3fU); in getIntImmCost()
55 for (unsigned ShiftVal = 0; ShiftVal < BitSize; ShiftVal += 64) { in getIntImmCost()
68 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
71 if (BitSize == 0) in getIntImmCost()
121 unsigned NumConstants = (BitSize + 63) / 64; in getIntImmCost()
134 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
137 if (BitSize == 0) in getIntImmCost()
[all …]
DAArch64ExpandPseudoInsts.cpp43 unsigned BitSize);
393 unsigned BitSize) { in expandMOVImm() argument
399 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in expandMOVImm()
401 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in expandMOVImm()
402 unsigned Opc = (BitSize == 32 ? AArch64::ORRWri : AArch64::ORRXri); in expandMOVImm()
406 .addReg(BitSize == 32 ? AArch64::WZR : AArch64::XZR) in expandMOVImm()
417 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm()
448 if (BitSize == 64 && OneChunks < 3 && ZeroChunks < 3) { in expandMOVImm()
484 if (BitSize == 64 && tryToreplicateChunks(UImm, MI, MBB, MBBI, TII)) in expandMOVImm()
492 if (BitSize == 64 && trySequenceOfOnes(UImm, MI, MBB, MBBI, TII)) in expandMOVImm()
[all …]
DAArch64InstrInfo.cpp2731 unsigned BitSize, OrrOpc, ZeroReg; in genAlternativeCodeSequence() local
2735 BitSize = 32; in genAlternativeCodeSequence()
2742 BitSize = 64; in genAlternativeCodeSequence()
2754 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in genAlternativeCodeSequence()
2756 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in genAlternativeCodeSequence()
2823 unsigned BitSize, OrrOpc, ZeroReg; in genAlternativeCodeSequence() local
2827 BitSize = 32; in genAlternativeCodeSequence()
2834 BitSize = 64; in genAlternativeCodeSequence()
2845 uint64_t UImm = -Imm << (64 - BitSize) >> (64 - BitSize); in genAlternativeCodeSequence()
2847 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in genAlternativeCodeSequence()
/external/llvm/include/llvm/Transforms/IPO/
DLowerBitSets.h40 uint64_t BitSize; member
52 return Bits.size() == BitSize; in isAllOnes()
192 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp54 if (BitOffset >= BitSize) in containsGlobalOffset()
117 BSI.BitSize = ((Max - Min) >> BSI.AlignLog2) + 1; in build()
156 uint64_t BitSize, uint64_t &AllocByteOffset, in allocate() argument
167 unsigned ReqSize = AllocByteOffset + BitSize; in allocate()
182 uint64_t BitSize; member
317 BAI->BitSize = BSI.BitSize; in createByteArray()
326 return BAI1.BitSize > BAI2.BitSize; in allocateByteArrays()
336 BAB.allocate(BAI->Bits, BAI->BitSize, ByteArrayOffsets[I], Mask); in allocateByteArrays()
378 if (BSI.BitSize <= 64) { in createBitSetTest()
382 if (BSI.BitSize <= 32) in createBitSetTest()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp44 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
45 if (BitSize == 0) in getIntImmCost()
74 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
75 if (BitSize == 0) in getIntImmCost()
108 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
109 if (BitSize == 0) in getIntImmCost()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp169 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerBSWAP() local
173 switch(BitSize) { in LowerBSWAP()
273 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTPOP() local
274 unsigned WordSize = (BitSize + 63) / 64; in LowerCTPOP()
279 for (unsigned i = 1, ct = 0; i < (BitSize>64 ? 64 : BitSize); in LowerCTPOP()
290 if (BitSize > 64) { in LowerCTPOP()
293 BitSize -= 64; in LowerCTPOP()
306 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTLZ() local
307 for (unsigned i = 1; i < BitSize; i <<= 1) { in LowerCTLZ()
DTargetInstrInfo.cpp295 unsigned BitSize = TRI->getSubRegIdxSize(SubIdx); in getStackSlotRange() local
298 if (BitSize % 8) in getStackSlotRange()
305 Size = BitSize /= 8; in getStackSlotRange()
DTargetLoweringBase.cpp923 unsigned BitSize = VT.getSizeInBits(); in getTypeConversion() local
925 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
/external/llvm/include/llvm/CodeGen/
DValueTypes.h166 unsigned BitSize = getSizeInBits(); in isRound() local
167 return BitSize >= 8 && !(BitSize & (BitSize - 1)); in isRound()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp977 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
978 if (BitSize == 0) in getIntImmCost()
985 if (BitSize > 128) in getIntImmCost()
993 if (BitSize & 0x3f) in getIntImmCost()
994 ImmVal = Imm.sext((BitSize + 63) & ~0x3fU); in getIntImmCost()
999 for (unsigned ShiftVal = 0; ShiftVal < BitSize; ShiftVal += 64) { in getIntImmCost()
1012 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
1015 if (BitSize == 0) in getIntImmCost()
1067 unsigned NumConstants = (BitSize + 63) / 64; in getIntImmCost()
1081 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
[all …]
/external/v8/src/
Dbignum.cc22 static int BitSize(S value) { in BitSize() function
29 DCHECK(kBigitSize >= BitSize(value)); in AssignUInt16()
/external/clang/lib/AST/
DItaniumMangle.cpp2248 unsigned BitSize = (T->getNumElements() * in mangleNeonVectorType() local
2250 if (BitSize == 64) in mangleNeonVectorType()
2253 assert(BitSize == 128 && "Neon vector type not 64 or 128 bits"); in mangleNeonVectorType()
2297 unsigned BitSize = in mangleAArch64NeonVectorType() local
2299 (void)BitSize; // Silence warning. in mangleAArch64NeonVectorType()
2301 assert((BitSize == 64 || BitSize == 128) && in mangleAArch64NeonVectorType()
/external/boringssl/src/ssl/test/runner/
Dkey_agreement.go495 preMasterSecret := make([]byte, (ka.curve.Params().BitSize+7)>>3)
539 preMasterSecret := make([]byte, (ka.curve.Params().BitSize+7)>>3)
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp2329 unsigned BitSize = getDataLayout()->getTypeSizeInBits(OpTy); in ParseConstraints() local
2330 switch (BitSize) { in ParseConstraints()
2339 MVT::getVT(IntegerType::get(OpTy->getContext(), BitSize), true); in ParseConstraints()
/external/llvm/lib/Target/R600/
DSIInstrInfo.cpp1156 unsigned BitSize = 8 * OpSize; in isInlineConstant() local
1157 return isInlineConstant(APInt(BitSize, MO.getImm(), true)); in isInlineConstant()
/external/clang/include/clang/AST/
DASTContext.h1655 CharUnits toCharUnitsFromBits(int64_t BitSize) const;

12