Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp245 static inline void expandMOVImmSimple(uint64_t Imm, unsigned BitSize, in expandMOVImmSimple() argument
263 if (BitSize == 32) { in expandMOVImmSimple()
290 unsigned Opc = (BitSize == 32 ? AArch64::MOVKWi : AArch64::MOVKXi); in expandMOVImmSimple()
304 void AArch64_IMM::expandMOVImm(uint64_t Imm, unsigned BitSize, in expandMOVImm() argument
312 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm()
321 if ((BitSize / 16) - OneChunks <= 1 || (BitSize / 16) - ZeroChunks <= 1) { in expandMOVImm()
322 expandMOVImmSimple(Imm, BitSize, OneChunks, ZeroChunks, Insn); in expandMOVImm()
327 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in expandMOVImm()
329 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in expandMOVImm()
330 unsigned Opc = (BitSize == 32 ? AArch64::ORRWri : AArch64::ORRXri); in expandMOVImm()
[all …]
H A DAArch64ExpandImm.h28 void expandMOVImm(uint64_t Imm, unsigned BitSize,
H A DAArch64TargetTransformInfo.cpp67 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
68 if (BitSize == 0) in getIntImmCost()
73 if (BitSize & 0x3f) in getIntImmCost()
74 ImmVal = Imm.sext((BitSize + 63) & ~0x3fU); in getIntImmCost()
79 for (unsigned ShiftVal = 0; ShiftVal < BitSize; ShiftVal += 64) { in getIntImmCost()
94 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local
97 if (BitSize == 0) in getIntImmCostInst()
147 int NumConstants = (BitSize + 63) / 64; in getIntImmCostInst()
162 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local
165 if (BitSize == 0) in getIntImmCostIntrin()
[all …]
H A DAArch64ExpandPseudoInsts.cpp70 unsigned BitSize);
120 unsigned BitSize) { in expandMOVImm() argument
135 AArch64_IMM::expandMOVImm(Imm, BitSize, Insn); in expandMOVImm()
149 .addReg(BitSize == 32 ? AArch64::WZR : AArch64::XZR) in expandMOVImm()
H A DAArch64InstrInfo.cpp797 static bool canBeExpandedToORR(const MachineInstr &MI, unsigned BitSize) { in canBeExpandedToORR() argument
799 uint64_t UImm = Imm << (64 - BitSize) >> (64 - BitSize); in canBeExpandedToORR()
801 return AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding); in canBeExpandedToORR()
5250 unsigned BitSize, OrrOpc, ZeroReg; in genAlternativeCodeSequence() local
5254 BitSize = 32; in genAlternativeCodeSequence()
5261 BitSize = 64; in genAlternativeCodeSequence()
5273 uint64_t UImm = SignExtend64(Imm, BitSize); in genAlternativeCodeSequence()
5275 if (AArch64_AM::processLogicalImmediate(UImm, BitSize, Encoding)) { in genAlternativeCodeSequence()
5342 unsigned BitSize, OrrOpc, ZeroReg; in genAlternativeCodeSequence() local
5346 BitSize = 32; in genAlternativeCodeSequence()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
H A DTargetInstrInfo.cpp399 unsigned BitSize = TRI->getSubRegIdxSize(SubIdx); in getStackSlotRange() local
401 if (BitSize % 8) in getStackSlotRange()
408 Size = BitSize / 8; in getStackSlotRange()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCAsmBackend.cpp96 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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DSelectionDAGAddressAnalysis.h68 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()
H A DValueTypes.h216 unsigned BitSize = getSizeInBits(); in isRound() local
217 return BitSize >= 8 && !(BitSize & (BitSize - 1)); in isRound()
/netbsd-src/external/apache2/llvm/dist/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,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp265 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp37 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()
192 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local
[all …]
H A DSystemZISelDAGToDAG.cpp121 : Opcode(Op), BitSize(N.getValueSizeInBits()), in RxSBGOperands()
122 Mask(allOnes(BitSize)), Input(N), Start(64 - BitSize), End(63), in RxSBGOperands()
126 unsigned BitSize; member
761 if (TII->isRxSBGMask(Mask, RxSBG.BitSize, RxSBG.Start, RxSBG.End)) { in refineRxSBGMask()
783 uint64_t BitSize = N.getValueSizeInBits(); in expandRxSBG() local
784 uint64_t Mask = allOnes(BitSize); in expandRxSBG()
838 if (RxSBG.BitSize != 64 || N.getValueType() != MVT::i64) in expandRxSBG()
869 unsigned BitSize = N.getValueSizeInBits(); in expandRxSBG() local
871 if (maskMatters(RxSBG, allOnes(BitSize) - allOnes(InnerBitSize))) { in expandRxSBG()
875 RxSBG.Rotate += (BitSize - InnerBitSize); in expandRxSBG()
[all …]
H A DSystemZISelLowering.cpp2342 static unsigned getTestUnderMaskCond(unsigned BitSize, unsigned CCMask, in getTestUnderMaskCond() argument
2480 unsigned BitSize = NewC.Op0.getValueSizeInBits(); in adjustForTestUnderMask() local
2487 (NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, in adjustForTestUnderMask()
2498 (NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, in adjustForTestUnderMask()
2505 NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, MaskVal, CmpVal, in adjustForTestUnderMask()
3821 int64_t BitSize = (int64_t)1 << Log2_32_Ceil(NumSignificantBits); in lowerCTPOP() local
3822 BitSize = std::min(BitSize, OrigBitSize); in lowerCTPOP()
3831 for (int64_t I = BitSize / 2; I >= 8; I = I / 2) { in lowerCTPOP()
3833 if (BitSize != OrigBitSize) in lowerCTPOP()
3835 DAG.getConstant(((uint64_t)1 << BitSize) - 1, DL, VT)); in lowerCTPOP()
[all …]
H A DSystemZISelLowering.h681 unsigned BinOpcode, unsigned BitSize,
687 unsigned BitSize) const;
H A DSystemZInstrInfo.h321 bool isRxSBGMask(uint64_t Mask, unsigned BitSize,
H A DSystemZInstrInfo.cpp1685 bool SystemZInstrInfo::isRxSBGMask(uint64_t Mask, unsigned BitSize, in isRxSBGMask() argument
1688 Mask &= allOnes(BitSize); in isRxSBGMask()
1703 if (isStringOfOnes(Mask ^ allOnes(BitSize), LSB, Length)) { in isRxSBGMask()
1705 assert(LSB + Length < BitSize && "Top bit must be set"); in isRxSBGMask()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.cpp435 unsigned DwarfExpression::getOrCreateBaseType(unsigned BitSize, in getOrCreateBaseType() argument
441 if (CU.ExprRefedBaseTypes[I].BitSize == BitSize && in getOrCreateBaseType()
446 CU.ExprRefedBaseTypes.emplace_back(BitSize, Encoding); in getOrCreateBaseType()
574 unsigned BitSize = Op->getArg(0); in addExpression() local
584 emitBaseTypeRef(getOrCreateBaseType(BitSize, Encoding)); in addExpression()
586 if (PrevConvertOp && PrevConvertOp->getArg(0) < BitSize) { in addExpression()
H A DDwarfCompileUnit.h138 BaseTypeRef(unsigned BitSize, dwarf::TypeKind Encoding) : in BaseTypeRef()
139 BitSize(BitSize), Encoding(Encoding) {} in BaseTypeRef()
140 unsigned BitSize; member
H A DDwarfExpression.h341 unsigned getOrCreateBaseType(unsigned BitSize, dwarf::TypeKind Encoding);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp128 if (BitOffset >= BitSize) in containsGlobalOffset()
135 OS << "offset " << ByteOffset << " size " << BitSize << " align " in print()
173 BSI.BitSize = ((Max - Min) >> BSI.AlignLog2) + 1; in build()
212 uint64_t BitSize, uint64_t &AllocByteOffset, in allocate() argument
223 unsigned ReqSize = AllocByteOffset + BitSize; in allocate()
248 uint64_t BitSize; member
609 BAI->BitSize = BSI.BitSize; in createByteArray()
618 return BAI1.BitSize > BAI2.BitSize; in allocateByteArrays()
628 BAB.allocate(BAI->Bits, BAI->BitSize, ByteArrayOffsets[I], Mask); in allocateByteArrays()
939 uint64_t BitSize = cast<ConstantInt>(TIL.SizeM1)->getZExtValue() + 1; in exportTypeId() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGAddressAnalysis.cpp157 bool BaseIndexOffset::contains(const SelectionDAG &DAG, int64_t BitSize, in contains() argument
169 return BitOffset + OtherBitSize <= BitSize; in contains()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp177 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCost() local
178 if (BitSize == 0) in getIntImmCost()
208 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostIntrin() local
209 if (BitSize == 0) in getIntImmCostIntrin()
244 unsigned BitSize = Ty->getPrimitiveSizeInBits(); in getIntImmCostInst() local
245 if (BitSize == 0) in getIntImmCostInst()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeRecord.h538 BitFieldRecord(TypeIndex Type, uint8_t BitSize, uint8_t BitOffset) in BitFieldRecord() argument
539 : TypeRecord(TypeRecordKind::BitField), Type(Type), BitSize(BitSize), in BitFieldRecord()
544 uint8_t getBitSize() const { return BitSize; } in getBitSize()
547 uint8_t BitSize = 0; variable

12