Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp262 if (BitSize == 32) { in expandMOVImmSimple()
303 void AArch64_IMM::expandMOVImm(uint64_t Imm, unsigned BitSize, in expandMOVImm() argument
311 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm()
320 if ((BitSize / 16) - OneChunks <= 1 || (BitSize / 16) - ZeroChunks <= 1) { in expandMOVImm()
321 expandMOVImmSimple(Imm, BitSize, OneChunks, ZeroChunks, Insn); in expandMOVImm()
326 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in expandMOVImm()
338 if (OneChunks >= (BitSize / 16) - 2 || ZeroChunks >= (BitSize / 16) - 2) { in expandMOVImm()
354 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm()
391 if (BitSize == 64 && tryToreplicateChunks(UImm, Insn)) in expandMOVImm()
399 if (BitSize == 64 && trySequenceOfOnes(UImm, Insn)) in expandMOVImm()
[all …]
H A DAArch64ExpandImm.h28 void expandMOVImm(uint64_t Imm, unsigned BitSize,
H A DAArch64TargetTransformInfo.cpp151 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
152 if (BitSize == 0) in getIntImmCost()
157 if (BitSize & 0x3f) in getIntImmCost()
158 ImmVal = Imm.sext((BitSize + 63) & ~0x3fU); in getIntImmCost()
163 for (unsigned ShiftVal = 0; ShiftVal < BitSize; ShiftVal += 64) { in getIntImmCost()
178 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local
181 if (BitSize == 0) in getIntImmCostInst()
231 int NumConstants = (BitSize + 63) / 64; in getIntImmCostInst()
246 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local
249 if (BitSize == 0) in getIntImmCostIntrin()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/IPO/
H A DLowerTypeTests.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()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp56 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()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAGAddressAnalysis.h69 bool contains(const SelectionDAG &DAG, int64_t BitSize,
73 bool contains(const SelectionDAG &DAG, int64_t BitSize, in contains() argument
76 return contains(DAG, BitSize, Other, OtherBitSize, BitOffset); in contains()
H A DValueTypes.h223 unsigned BitSize = getSizeInBits(); in isRound() local
224 return BitSize >= 8 && !(BitSize & (BitSize - 1)); in isRound()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/
H A DLowerTypeTests.h41 uint64_t BitSize; member
53 return Bits.size() == BitSize; in isAllOnes()
192 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCAsmBackend.cpp171 unsigned BitSize = getFixupKindInfo(Kind).TargetSize; in applyFixup() local
172 unsigned Size = (BitSize + 7) / 8; in applyFixup()
178 if (BitSize < 64) in applyFixup()
179 Value &= ((uint64_t)1 << BitSize) - 1; in applyFixup()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h55 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
58 if (BitSize == 0) in getIntImmCost()
62 if (BitSize > 64) in getIntImmCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp218 const unsigned BitSize = ByteSize * 8; in initialize() local
220 std::string BitSizeStr = utostr(BitSize); in initialize()
264 Type *Ty = Type::getIntNTy(M.getContext(), BitSize); in initialize()
736 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local
737 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic()
751 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local
752 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic()
769 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local
770 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize); in instrumentAtomic()
784 const unsigned BitSize = ByteSize * 8; in instrumentAtomic() local
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.cpp452 unsigned DwarfExpression::getOrCreateBaseType(unsigned BitSize, in getOrCreateBaseType() argument
458 if (CU.ExprRefedBaseTypes[I].BitSize == BitSize && in getOrCreateBaseType()
463 CU.ExprRefedBaseTypes.emplace_back(BitSize, Encoding); in getOrCreateBaseType()
590 unsigned BitSize = Op->getArg(0); in addExpression() local
600 emitBaseTypeRef(getOrCreateBaseType(BitSize, Encoding)); in addExpression()
602 if (PrevConvertOp && PrevConvertOp->getArg(0) < BitSize) { in addExpression()
H A DDwarfCompileUnit.h140 BaseTypeRef(unsigned BitSize, dwarf::TypeKind Encoding) : in BaseTypeRef()
141 BitSize(BitSize), Encoding(Encoding) {} in BaseTypeRef()
142 unsigned BitSize; member
H A DDwarfExpression.h341 unsigned getOrCreateBaseType(unsigned BitSize, dwarf::TypeKind Encoding);
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp73 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
76 if (BitSize == 0) in getIntImmCost()
79 if (BitSize > 64) in getIntImmCost()
108 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local
111 if (BitSize == 0) in getIntImmCostInst()
114 if (BitSize > 64) in getIntImmCostInst()
130 if (BitSize == 8) in getIntImmCostInst()
179 if (BitSize <= 32) in getIntImmCostInst()
228 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local
231 if (BitSize == 0) in getIntImmCostIntrin()
[all …]
H A DSystemZISelDAGToDAG.cpp120 : Opcode(Op), BitSize(N.getValueSizeInBits()), in RxSBGOperands()
121 Mask(allOnes(BitSize)), Input(N), Start(64 - BitSize), End(63), in RxSBGOperands()
125 unsigned BitSize; member
782 uint64_t BitSize = N.getValueSizeInBits(); in expandRxSBG() local
783 uint64_t Mask = allOnes(BitSize); in expandRxSBG()
868 unsigned BitSize = N.getValueSizeInBits(); in expandRxSBG() local
874 RxSBG.Rotate += (BitSize - InnerBitSize); in expandRxSBG()
889 unsigned BitSize = N.getValueSizeInBits(); in expandRxSBG() local
890 if (Count < 1 || Count >= BitSize) in expandRxSBG()
916 unsigned BitSize = N.getValueSizeInBits(); in expandRxSBG() local
[all …]
H A DSystemZISelLowering.cpp4108 BitSize = std::min(BitSize, OrigBitSize); in lowerCTPOP()
4119 if (BitSize != OrigBitSize) in lowerCTPOP()
4126 if (BitSize > 8) in lowerCTPOP()
4191 int64_t BitSize = NarrowVT.getSizeInBits(); in lowerATOMIC_LOAD_OP() local
7779 unsigned BitSize, bool Invert) const { in emitAtomicLoadBinary() argument
7783 bool IsSubWord = (BitSize < 32); in emitAtomicLoadBinary()
7795 BitSize = MI.getOperand(6).getImm(); in emitAtomicLoadBinary()
7849 if (BitSize <= 32) in emitAtomicLoadBinary()
7871 .addImm(32).addImm(31 + BitSize).addImm(32 - BitSize); in emitAtomicLoadBinary()
7901 bool IsSubWord = (BitSize < 32); in emitAtomicLoadMinMax()
[all …]
H A DSystemZInstrInfo.h326 bool isRxSBGMask(uint64_t Mask, unsigned BitSize,
H A DSystemZISelLowering.h740 unsigned BinOpcode, unsigned BitSize,
746 unsigned BitSize) const;
/llvm-project-15.0.7/llvm/test/DebugInfo/COFF/
H A Dbitfields.ll34 ; CHECK: BitSize: 8
57 ; CHECK: BitSize: 23
63 ; CHECK: BitSize: 2
94 ; CHECK: BitSize: 3
146 ; CHECK: BitSize: 1
H A Dpr37492.ll19 ; CHECK-NEXT: .byte 0x1 # BitSize
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp134 if (BitOffset >= BitSize) in containsGlobalOffset()
141 OS << "offset " << ByteOffset << " size " << BitSize << " align " in print()
179 BSI.BitSize = ((Max - Min) >> BSI.AlignLog2) + 1; in build()
229 unsigned ReqSize = AllocByteOffset + BitSize; in allocate()
254 uint64_t BitSize; member
585 BAI->BitSize = BSI.BitSize; in createByteArray()
594 return BAI1.BitSize > BAI2.BitSize; in allocateByteArrays()
917 TTRes.SizeM1BitWidth = (BitSize <= 32) ? 5 : 6; in exportTypeId()
919 TTRes.SizeM1BitWidth = (BitSize <= 128) ? 7 : 32; in exportTypeId()
1117 TIL.SizeM1 = ConstantInt::get(IntPtrTy, BSI.BitSize - 1); in lowerTypeTestCalls()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGAddressAnalysis.cpp172 bool BaseIndexOffset::contains(const SelectionDAG &DAG, int64_t BitSize, in contains() argument
184 return BitOffset + OtherBitSize <= BitSize; in contains()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeRecord.h539 BitFieldRecord(TypeIndex Type, uint8_t BitSize, uint8_t BitOffset) in BitFieldRecord() argument
540 : TypeRecord(TypeRecordKind::BitField), Type(Type), BitSize(BitSize), in BitFieldRecord()
545 uint8_t getBitSize() const { return BitSize; } in getBitSize()
548 uint8_t BitSize = 0; variable
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp172 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
173 if (BitSize == 0) in getIntImmCost()
203 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local
204 if (BitSize == 0) in getIntImmCostIntrin()
239 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local
240 if (BitSize == 0) in getIntImmCostInst()

12