/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64ExpandImm.cpp | 246 static inline void expandMOVImmSimple(uint64_t Imm, unsigned BitSize, in expandMOVImmSimple() argument 264 if (BitSize == 32) { in expandMOVImmSimple() 291 unsigned Opc = (BitSize == 32 ? AArch64::MOVKWi : AArch64::MOVKXi); in expandMOVImmSimple() 305 void expandMOVImm(uint64_t Imm, unsigned BitSize, in expandMOVImm() argument 313 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() 322 if ((BitSize / 16) - OneChunks <= 1 || (BitSize / 16) - ZeroChunks <= 1) { in expandMOVImm() 323 expandMOVImmSimple(Imm, BitSize, OneChunks, ZeroChunks, Insn); in expandMOVImm() 328 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in expandMOVImm() 330 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in expandMOVImm() 331 unsigned Opc = (BitSize == 32 ? AArch64::ORRWri : AArch64::ORRXri); in expandMOVImm() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64ExpandImm.cpp | 246 static inline void expandMOVImmSimple(uint64_t Imm, unsigned BitSize, in expandMOVImmSimple() argument 264 if (BitSize == 32) { in expandMOVImmSimple() 291 unsigned Opc = (BitSize == 32 ? AArch64::MOVKWi : AArch64::MOVKXi); in expandMOVImmSimple() 305 void expandMOVImm(uint64_t Imm, unsigned BitSize, in expandMOVImm() argument 313 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() 322 if ((BitSize / 16) - OneChunks <= 1 || (BitSize / 16) - ZeroChunks <= 1) { in expandMOVImm() 323 expandMOVImmSimple(Imm, BitSize, OneChunks, ZeroChunks, Insn); in expandMOVImm() 328 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in expandMOVImm() 330 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in expandMOVImm() 331 unsigned Opc = (BitSize == 32 ? AArch64::ORRWri : AArch64::ORRXri); in expandMOVImm() [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 37 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 …]
|
/external/llvm/unittests/Transforms/IPO/ |
D | LowerTypeTests.cpp | 21 uint64_t BitSize; in TEST() member 63 EXPECT_EQ(T.BitSize, BSI.BitSize); in TEST() 113 uint64_t BitSize; in TEST() member 149 BABuilder.allocate(A.Bits, A.BitSize, GotByteOffset, GotMask); in TEST()
|
/external/llvm-project/llvm/unittests/Transforms/IPO/ |
D | LowerTypeTests.cpp | 20 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-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCAsmBackend.cpp | 96 unsigned BitSize = getFixupKindInfo(Kind).TargetSize; in applyFixup() local 97 unsigned Size = (BitSize + 7) / 8; in applyFixup() 103 if (BitSize < 64) in applyFixup() 104 Value &= ((uint64_t)1 << BitSize) - 1; in applyFixup()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/MCTargetDesc/ |
D | SystemZMCAsmBackend.cpp | 104 unsigned BitSize = getFixupKindInfo(Kind).TargetSize; in applyFixup() local 105 unsigned Size = (BitSize + 7) / 8; in applyFixup() 111 if (BitSize < 64) in applyFixup() 112 Value &= ((uint64_t)1 << BitSize) - 1; in applyFixup()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 57 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP() local 61 switch(BitSize) { in LowerBSWAP() 160 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTPOP() local 161 unsigned WordSize = (BitSize + 63) / 64; in LowerCTPOP() 166 for (unsigned i = 1, ct = 0; i < (BitSize>64 ? 64 : BitSize); in LowerCTPOP() 177 if (BitSize > 64) { in LowerCTPOP() 180 BitSize -= 64; in LowerCTPOP() 192 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTLZ() local 193 for (unsigned i = 1; i < BitSize; i <<= 1) { in LowerCTLZ()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 56 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP() local 60 switch(BitSize) { in LowerBSWAP() 159 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTPOP() local 160 unsigned WordSize = (BitSize + 63) / 64; in LowerCTPOP() 165 for (unsigned i = 1, ct = 0; i < (BitSize>64 ? 64 : BitSize); in LowerCTPOP() 176 if (BitSize > 64) { in LowerCTPOP() 179 BitSize -= 64; in LowerCTPOP() 191 unsigned BitSize = V->getType()->getPrimitiveSizeInBits(); in LowerCTLZ() local 192 for (unsigned i = 1; i < BitSize; i <<= 1) { in LowerCTLZ()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | SelectionDAGAddressAnalysis.h | 68 bool contains(const SelectionDAG &DAG, int64_t BitSize, 72 bool contains(const SelectionDAG &DAG, int64_t BitSize, in contains() argument 75 return contains(DAG, BitSize, Other, OtherBitSize, BitOffset); in contains()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | SelectionDAGAddressAnalysis.h | 68 bool contains(const SelectionDAG &DAG, int64_t BitSize, 72 bool contains(const SelectionDAG &DAG, int64_t BitSize, in contains() argument 75 return contains(DAG, BitSize, Other, OtherBitSize, BitOffset); in contains()
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | LowerTypeTests.h | 46 uint64_t BitSize; member 58 return Bits.size() == BitSize; in isAllOnes() 200 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/ |
D | LowerTypeTests.h | 41 uint64_t BitSize; member 53 return Bits.size() == BitSize; in isAllOnes() 192 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
|
/external/llvm-project/llvm/include/llvm/Transforms/IPO/ |
D | LowerTypeTests.h | 41 uint64_t BitSize; member 53 return Bits.size() == BitSize; in isAllOnes() 192 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 51 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local 52 if (BitSize == 0) in getIntImmCost() 81 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local 82 if (BitSize == 0) in getIntImmCost() 115 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local 116 if (BitSize == 0) in getIntImmCost()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 220 const unsigned BitSize = ByteSize * 8; in initialize() local 222 std::string BitSizeStr = utostr(BitSize); in initialize() 239 Type *Ty = Type::getIntNTy(M.getContext(), BitSize); in initialize() 269 SmallString<32> RMWName("__tsan_atomic" + itostr(BitSize) + NamePart); in initialize() 637 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 638 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() 652 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 653 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() 669 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 670 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() [all …]
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 160 const unsigned BitSize = ByteSize * 8; in initializeCallbacks() local 162 std::string BitSizeStr = utostr(BitSize); in initializeCallbacks() 181 Type *Ty = Type::getIntNTy(M.getContext(), BitSize); in initializeCallbacks() 211 SmallString<32> RMWName("__tsan_atomic" + itostr(BitSize) + NamePart); in initializeCallbacks() 574 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 575 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() 595 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 596 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() 612 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 613 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 43 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 int NumConstants = (BitSize + 63) / 64; in getIntImmCost() 134 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local 137 if (BitSize == 0) in getIntImmCost() [all …]
|
D | AArch64ExpandPseudoInsts.cpp | 53 unsigned BitSize); 414 unsigned BitSize) { in expandMOVImm() argument 428 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in expandMOVImm() 430 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in expandMOVImm() 431 unsigned Opc = (BitSize == 32 ? AArch64::ORRWri : AArch64::ORRXri); in expandMOVImm() 435 .addReg(BitSize == 32 ? AArch64::WZR : AArch64::XZR) in expandMOVImm() 446 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() 477 if (BitSize == 64 && OneChunks < 3 && ZeroChunks < 3) { in expandMOVImm() 513 if (BitSize == 64 && tryToreplicateChunks(UImm, MI, MBB, MBBI, TII)) in expandMOVImm() 521 if (BitSize == 64 && trySequenceOfOnes(UImm, MI, MBB, MBBI, TII)) in expandMOVImm() [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 169 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()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 59 if (BitOffset >= BitSize) in containsGlobalOffset() 99 OS << "offset " << ByteOffset << " size " << BitSize << " align " in print() 137 BSI.BitSize = ((Max - Min) >> BSI.AlignLog2) + 1; in build() 176 uint64_t BitSize, uint64_t &AllocByteOffset, in allocate() argument 187 unsigned ReqSize = AllocByteOffset + BitSize; in allocate() 202 uint64_t BitSize; member 321 BAI->BitSize = BSI.BitSize; in createByteArray() 330 return BAI1.BitSize > BAI2.BitSize; in allocateByteArrays() 340 BAB.allocate(BAI->Bits, BAI->BitSize, ByteArrayOffsets[I], Mask); in allocateByteArrays() 382 if (BSI.BitSize <= 64) { in createBitSetTest() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 265 const unsigned BitSize = ByteSize * 8; in initialize() local 267 std::string BitSizeStr = utostr(BitSize); in initialize() 311 Type *Ty = Type::getIntNTy(M.getContext(), BitSize); in initialize() 341 SmallString<32> RMWName("__tsan_atomic" + itostr(BitSize) + NamePart); in initialize() 749 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 750 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() 764 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 765 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() 781 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local 782 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic() [all …]
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 37 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local 40 if (BitSize == 0) in getIntImmCost() 43 if (BitSize > 64) in getIntImmCost() 72 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local 75 if (BitSize == 0) in getIntImmCostInst() 78 if (BitSize > 64) in getIntImmCostInst() 94 if (BitSize == 8) in getIntImmCostInst() 143 if (BitSize <= 32) in getIntImmCostInst() 154 if (TII->isRxSBGMask(Imm.getZExtValue(), BitSize, Start, End)) in getIntImmCostInst() 191 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 36 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local 39 if (BitSize == 0) in getIntImmCost() 42 if (BitSize > 64) in getIntImmCost() 69 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local 72 if (BitSize == 0) in getIntImmCostInst() 75 if (BitSize > 64) in getIntImmCostInst() 91 if (BitSize == 8) in getIntImmCostInst() 140 if (BitSize <= 32) in getIntImmCostInst() 151 if (TII->isRxSBGMask(Imm.getZExtValue(), BitSize, Start, End)) in getIntImmCostInst() 187 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local [all …]
|
/external/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfExpression.cpp | 421 unsigned DwarfExpression::getOrCreateBaseType(unsigned BitSize, in getOrCreateBaseType() argument 427 if (CU.ExprRefedBaseTypes[I].BitSize == BitSize && in getOrCreateBaseType() 432 CU.ExprRefedBaseTypes.emplace_back(BitSize, Encoding); in getOrCreateBaseType() 551 unsigned BitSize = Op->getArg(0); in addExpression() local 561 emitBaseTypeRef(getOrCreateBaseType(BitSize, Encoding)); in addExpression() 563 if (PrevConvertOp && PrevConvertOp->getArg(0) < BitSize) { in addExpression()
|