Searched refs:Bits (Results 76 - 100 of 128) sorted by relevance

123456

/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp117 /// Update or overwrite the bits starting at \p OffsetInBits with \p Bits.
118 bool addBits(llvm::APInt Bits, uint64_t OffsetInBits, bool AllowOverwrite);
180 bool ConstantAggregateBuilder::addBits(llvm::APInt Bits, uint64_t OffsetInBits, argument
196 std::min((uint64_t)Bits.getBitWidth(), CharWidth - OffsetWithinChar);
200 llvm::APInt BitsThisChar = Bits;
205 // less than one byte of Bits left.
206 int Shift = Bits.getBitWidth() - CharWidth + OffsetWithinChar;
268 if (WantedBits == Bits.getBitWidth())
271 // Remove the consumed bits from Bits.
273 Bits
[all...]
H A DTargetInfo.cpp4666 // > loaded into r3 and the high-addressed word into r4. Bits beyond
5269 uint64_t Bits = getContext().getTypeSize(Ty);
5270 if (Bits > 0 && Bits <= 8 * GPRBits) {
5275 if (Bits <= GPRBits)
5277 llvm::IntegerType::get(getVMContext(), llvm::alignTo(Bits, 8));
5282 uint64_t NumRegs = llvm::alignTo(Bits, RegBits) / RegBits;
5336 uint64_t Bits = getContext().getTypeSize(RetTy);
5337 if (Kind == ELFv2 && Bits <= 2 * GPRBits) {
5338 if (Bits
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/utils/TableGen/
H A DMveEmitter.cpp239 unsigned Bits; member in class:__anon2446::ScalarType
248 Bits = Record->getValueAsInt("size");
251 unsigned sizeInBits() const override { return Bits; }
253 std::string suffix() const { return toLetter(Kind) + utostr(Bits); }
255 return toCPrefix(Kind) + utostr(Bits);
264 if (Bits == 16)
266 if (Bits == 32)
268 if (Bits == 64)
272 return "Int" + utostr(Bits) + "Ty";
276 + utostr(Bits);
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCCodeEmitter.cpp206 template<unsigned Bits, unsigned Shift>
355 template<unsigned Bits, unsigned Shift>
1021 template<unsigned Bits, unsigned Shift>
1033 // {Bits} = (U)nsigned (add == '1', sub == '0')
1034 // {(Bits-1)-0} = immediate
1044 uint32_t Binary = Imm & ((1U << Bits) - 1);
1047 Binary |= (1U << Bits);
1602 template<unsigned Bits, unsigned Shift>
1615 Value <<= (Bits + 1);
1622 Value |= (1U << Bits); // Se
[all...]
H A DARMInstPrinter.cpp1375 unsigned Bits = Op.getImm() & 0xFF;
1390 int32_t Rotated = ARM_AM::rotr32(Bits, Rot);
1403 O << "#" << markup("<imm:") << Bits << markup(">") << ", #" << markup("<imm:")
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp1209 template <unsigned Bits, int Offset = 0, int AdjustOffset = 0>
1213 Imm &= (1ULL << Bits) - 1;
1219 template <unsigned Bits>
1225 addConstantSImmOperands<Bits, 0, 0>(Inst, N);
1228 template <unsigned Bits>
1234 addConstantUImmOperands<Bits, 0, 0>(Inst, N);
1237 template <unsigned Bits, int Offset = 0, int AdjustOffset = 0>
1241 Imm = SignExtend64<Bits>(Imm);
1298 template <unsigned Bits, int Offset = 0> bool isConstantUImm() const {
1299 return isConstantImm() && isUInt<Bits>(getConstantIm
2815 uint16_t Bits = (ImmValue >> ShiftAmount) & 0xffff; local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/Disassembler/
H A DMipsDisassembler.cpp405 template <unsigned Bits, int Offset, int Scale>
410 template <unsigned Bits, int Offset>
414 return DecodeUImmWithOffsetAndScale<Bits, Offset, 1>(Inst, Value, Address,
418 template <unsigned Bits, int Offset = 0, int ScaleBy = 1>
2354 template <unsigned Bits, int Offset, int Scale>
2358 Value &= ((1 << Bits) - 1);
2364 template <unsigned Bits, int Offset, int ScaleBy>
2368 int32_t Imm = SignExtend32<Bits>(Value) * ScaleBy;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h77 /// Bits in a word.
954 /// Shifts this APInt left by \p Bits and returns the result.
955 APInt operator<<(unsigned Bits) const { return shl(Bits); }
959 /// Shifts this APInt left by \p Bits and returns the result.
960 APInt operator<<(const APInt &Bits) const { return shl(Bits); }
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp220 static unsigned inBytes(unsigned Bits) { argument
221 if (Bits % 8)
223 return Bits / 8;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp1082 #define DIAGOPT(Name, Bits, Default) Record.push_back(DiagOpts.Name);
1083 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
1237 #define LANGOPT(Name, Bits, Default, Description) \
1239 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
3379 uint32_t Bits = (uint32_t)II->getObjCOrBuiltinID();
3380 assert((Bits & 0xffff) == Bits && "ObjCOrBuiltinID too big for ASTReader.");
3381 LE.write<uint16_t>(Bits);
3382 Bits = 0;
3384 Bits
[all...]
H A DASTReader.cpp276 #define LANGOPT(Name, Bits, Default, Description) \
284 #define VALUE_LANGOPT(Name, Bits, Default, Description) \
292 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
300 #define COMPATIBLE_LANGOPT(Name, Bits, Default, Description) \
302 LANGOPT(Name, Bits, Default, Description)
304 #define COMPATIBLE_ENUM_LANGOPT(Name, Bits, Default, Description) \
306 ENUM_LANGOPT(Name, Bits, Default, Description)
308 #define COMPATIBLE_VALUE_LANGOPT(Name, Bits, Default, Description) \
310 VALUE_LANGOPT(Name, Bits, Default, Description)
312 #define BENIGN_LANGOPT(Name, Bits, Defaul
918 readBit(unsigned &Bits) argument
969 unsigned Bits = endian::readNext<uint16_t, little, unaligned>(d); local
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DItaniumMangle.cpp231 unsigned Bits; member in class:__anon1588::CXXNameMangler::FunctionTypeDepthState
236 FunctionTypeDepthState() : Bits(0) {}
240 return Bits >> 1;
245 return Bits & InResultTypeMask;
250 Bits = (Bits & ~InResultTypeMask) + 2;
255 Bits |= InResultTypeMask;
259 Bits &= ~InResultTypeMask;
264 Bits = saved.Bits;
[all...]
H A DExprCXX.cpp1053 unsigned Bits = 0; local
1055 Bits |= Capture_Implicit;
1059 Bits |= Capture_ByCopy;
1063 Bits |= Capture_This;
1067 Bits |= Capture_ByCopy;
1076 DeclAndBits.setInt(Bits);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp807 case tgtok::Bits: {
1802 SmallVector<Init*, 16> Bits(BinaryVal.second);
1804 Bits[i] = BitInit::get(BinaryVal.first & (1LL << i));
1805 R = BitsInit::get(Bits);
2643 if (SetValue(CurRec, LR.Loc, LR.Name, LR.Bits, LR.Value))
3022 SmallVector<unsigned, 16> Bits; local
3023 if (ParseOptionalRangeList(Bits)) {
3027 std::reverse(Bits.begin(), Bits.end());
3042 Result.emplace_back(Name, Bits, Va
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveIntervals.cpp901 ArrayRef<const uint32_t*> Bits; local
904 Bits = getRegMaskBitsInBlock(MBB->getNumber());
907 Bits = getRegMaskBits();
932 UsableRegs.clearBitsNotInMask(Bits[SlotI-Slots.begin()]);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp774 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); local
775 Constant *Mask = ConstantInt::get(I.getContext(), Bits);
809 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); local
810 Constant *Mask = ConstantInt::get(I.getContext(), Bits);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DCommandLine.h1754 unsigned Bits; // Where to store the bits...
1764 template <class T> void addValue(const T &V) { Bits |= Bit(V); }
1766 unsigned getBits() { return Bits; }
1768 template <class T> bool isSet(const T &V) { return (Bits & Bit(V)) != 0; }
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h387 virtual Init *convertInitializerBitRange(ArrayRef<unsigned> Bits) const {
446 Init *convertInitializerBitRange(ArrayRef<unsigned> Bits) const override;
538 Init *convertInitializerBitRange(ArrayRef<unsigned> Bits) const override;
583 Init *convertInitializerBitRange(ArrayRef<unsigned> Bits) const override;
1199 //virtual Init *convertInitializerBitRange(ArrayRef<unsigned> Bits);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/Disassembler/
H A DAArch64Disassembler.cpp217 template<int Bits>
1860 template<int Bits>
1863 if (Imm & ~((1LL << Bits) - 1))
1867 if (Imm & (1 << (Bits - 1)))
1868 Imm |= ~((1LL << Bits) - 1);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1253 StringEncoding Bits = getStringEncoding(M.getSourceFileName()); local
1255 if (Bits == SE_Char6)
1257 else if (Bits == SE_Fixed7)
3134 StringEncoding Bits = getStringEncoding(Name.getKey());
3144 if (Bits == SE_Char6)
3148 if (Bits == SE_Char6)
3150 else if (Bits == SE_Fixed7)
3514 StringEncoding Bits = getStringEncoding(Key);
3516 if (Bits == SE_Char6)
3518 else if (Bits
4597 StringEncoding Bits = getStringEncoding(M.getSourceFileName()); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4540 SDValue &Bits = local
4546 Bits = DAG.getNode(ISD::OR, DL, Bits.getValueType(), Bits, Arg);
4821 SDValue &Bits = local
4827 Bits = DAG.getNode(ISD::OR, DL, Bits.getValueType(), Bits, Arg);
7956 const APInt &Bits) {
7957 if (Bits
7955 tryAdvSIMDModImm64(unsigned NewOp, SDValue Op, SelectionDAG &DAG, const APInt &Bits) argument
7976 tryAdvSIMDModImm32(unsigned NewOp, SDValue Op, SelectionDAG &DAG, const APInt &Bits, const SDValue *LHS = nullptr) argument
8024 tryAdvSIMDModImm16(unsigned NewOp, SDValue Op, SelectionDAG &DAG, const APInt &Bits, const SDValue *LHS = nullptr) argument
8064 tryAdvSIMDModImm321s(unsigned NewOp, SDValue Op, SelectionDAG &DAG, const APInt &Bits) argument
8095 tryAdvSIMDModImm8(unsigned NewOp, SDValue Op, SelectionDAG &DAG, const APInt &Bits) argument
8116 tryAdvSIMDModImmFP(unsigned NewOp, SDValue Op, SelectionDAG &DAG, const APInt &Bits) argument
10737 int32_t Bits = IntBits == 64 ? 64 : 32; local
10928 unsigned Bits = VT.getScalarSizeInBits(); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/utils/TableGen/
H A DRegisterInfoEmitter.cpp601 const BitVector &Bits,
605 for (unsigned i = 0, e = Bits.size(); i < e; i += Width) {
608 Value |= Bits.test(i + j) << j;
1069 << "Bits[] = {\n ";
1089 OS << " { " << RC.getName() << ", " << RC.getName() << "Bits, "
1091 << RC.getOrder().size() << ", sizeof(" << RC.getName() << "Bits), "
600 printBitVectorAsHex(raw_ostream &OS, const BitVector &Bits, unsigned Width) argument
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp89 unsigned Bits = Ty->getPrimitiveSizeInBits(); local
90 if (Bits == 0 || Imm.getActiveBits() >= 64)
110 if (Bits == 8 || (SImmVal >= 0 && SImmVal < 256))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.h548 std::string genericRegisterString(uint32_t Bits);
/freebsd-13-stable/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc2710 typedef typename Floating::Bits Bits; typedef in class:__anon859::FloatingPointTest
2716 const Bits zero_bits = Floating(0).bits();
2727 const Bits one_bits = Floating(1).bits();
2738 const Bits infinity_bits = Floating(values_.infinity).bits();
2750 | (static_cast<Bits>(1) << (Floating::kFractionBitCount - 1)) | 1);
2752 | (static_cast<Bits>(1) << (Floating::kFractionBitCount - 1)) | 200);
2756 EXPECT_EQ(sizeof(RawType), sizeof(Bits));
2769 // Tests that the size of Float::Bits matches the size of float.
2942 // Tests that the size of Double::Bits matche
[all...]

Completed in 318 milliseconds

123456