| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | BitFieldsTest.cpp | 21 Bitfield::set<Bool>(Storage, true); in TEST() 38 Bitfield::set<Value>(Storage, 10); in TEST() 219 Bitfield::set<Value>(Storage, -1); in TEST() 221 Bitfield::set<Value>(Storage, 0); in TEST() 230 Bitfield::set<A>(Storage, true); in TEST() 231 Bitfield::set<A>(Storage, false); in TEST() 238 Bitfield::set<A>(Storage, 3); in TEST() 246 Bitfield::set<A>(Storage, 1); in TEST() 247 Bitfield::set<A>(Storage, 0); in TEST() 248 Bitfield::set<A>(Storage, -1); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | Bitfields.h | 159 using IntegerType = typename Bitfield::IntegerType; 160 using C = Compressor<IntegerType, Bitfield::Bits>; 161 using BP = BitPatterns<StorageType, Bitfield::Bits>; 173 Packed |= StorageValue << Bitfield::Shift; 212 struct Bitfield { 253 template <typename Bitfield, typename StorageType> 254 static typename Bitfield::Type get(StorageType Packed) { 255 using I = bitfields_details::Impl<Bitfield, StorageType>; 261 template <typename Bitfield, typename StorageType> 263 using I = bitfields_details::Impl<Bitfield, StorageType>; [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | TypeDetail.h | 172 return llvm::Bitfield::get<KeyFlagIdentified>(keySizeAndFlags); in isIdentified() 192 return llvm::Bitfield::get<MutableFlagInitialized>( in isInitialized() 212 llvm::Bitfield::set<KeyFlagIdentified>(keySizeAndFlags, true); in LLVMStructTypeStorage() 257 return llvm::Bitfield::get<KeySize>(keySizeAndFlags); in keySize() 262 llvm::Bitfield::set<KeySize>(keySizeAndFlags, value); in setKeySize() 286 llvm::Bitfield::Element<bool, /*Offset=*/0, /*Size=*/1>; 289 llvm::Bitfield::Element<unsigned, /*Offset=*/2, 298 llvm::Bitfield::Element<bool, /*Offset=*/0, /*Size=*/1>; 300 llvm::Bitfield::Element<bool, /*Offset=*/1, /*Size=*/1>; 302 llvm::Bitfield::Element<bool, /*Offset=*/2, /*Size=*/1>; [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeCommon.h | 25 using AlignLower = Bitfield::Element<unsigned, 0, 5>; 26 using UsedWithInAlloca = Bitfield::Element<bool, AlignLower::NextBit, 1>; 27 using ExplicitType = Bitfield::Element<bool, UsedWithInAlloca::NextBit, 1>; 28 using SwiftError = Bitfield::Element<bool, ExplicitType::NextBit, 1>; 29 using AlignUpper = Bitfield::Element<unsigned, SwiftError::NextBit, 3>;
|
| /llvm-project-15.0.7/lld/MachO/Arch/ |
| H A D | ARM.cpp | 69 template <int N> using BitfieldFlag = Bitfield::Element<bool, N, 1>; 96 using Cond = Bitfield::Element<uint32_t, 28, 4>; 97 using Imm24 = Bitfield::Element<int32_t, 0, 24>; 104 bool isBlx = Bitfield::get<Cond>(base) == 0xf; in relocateOne() 113 Bitfield::set<Cond>(base, 0xe); // unconditional BL in relocateOne() 114 Bitfield::set<BitfieldFlag<24>>(base, true); in relocateOne() 124 Bitfield::set<Imm24>(base, offset >> 2); in relocateOne() 125 Bitfield::set<BitfieldFlag<24>>(base, (offset >> 1) & 1); // H bit in relocateOne() 128 Bitfield::set<Imm24>(base, offset >> 2); in relocateOne()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | designated-init.cpp | 28 struct Bitfield { struct 35 Bitfield b; argument 38 WithBitfield bitfield = {1, (Bitfield){2, 3, 4}, .b.b = 5};
|
| H A D | temporaries.cpp | 658 namespace Bitfield { namespace
|
| /llvm-project-15.0.7/llvm/lib/XRay/ |
| H A D | FileHeaderReader.cpp | 45 uint32_t Bitfield = HeaderExtractor.getU32(&OffsetPtr); in readBinaryFormatHeader() local 52 FileHeader.ConstantTSC = Bitfield & 1uL; in readBinaryFormatHeader() 53 FileHeader.NonstopTSC = Bitfield & 1uL << 1; in readBinaryFormatHeader()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Instruction.h | 54 using OpaqueField = Bitfield::Element<uint16_t, 0, 15>; 63 typename Bitfield::Element<unsigned, Offset, 6, 67 using BoolBitfieldElementT = typename Bitfield::Element<bool, Offset, 1>; 71 typename Bitfield::Element<AtomicOrdering, Offset, 3, 77 using HasMetadataField = Bitfield::Element<bool, 15, 1>; 830 !Bitfield::isOverlapping<BitfieldElement, HasMetadataField>(), 832 return Bitfield::get<BitfieldElement>(getSubclassDataFromValue()); 839 !Bitfield::isOverlapping<BitfieldElement, HasMetadataField>(), 842 Bitfield::set<BitfieldElement>(Storage, Value);
|
| H A D | Instructions.h | 162 template <typename Bitfield> 164 Instruction::setSubclassData<Bitfield>(Value); in setSubclassData() 282 template <typename Bitfield> 411 template <typename Bitfield> 489 template <typename Bitfield> 689 template <typename Bitfield> 896 template <typename Bitfield> 1703 template <typename Bitfield> 3951 template <typename Bitfield> 4187 template <typename Bitfield> [all …]
|
| H A D | InstrTypes.h | 755 Bitfield::Element<Predicate, 0, 6, LAST_ICMP_PREDICATE>; 1177 using CallInstReservedField = Bitfield::Element<unsigned, 0, 2>; 1179 Bitfield::Element<CallingConv::ID, CallInstReservedField::NextBit, 10, 1182 Bitfield::areContiguous<CallInstReservedField, CallingConvField>(),
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | rounding-math.c | 18 struct Bitfield { struct 23 void bitfield(struct Bitfield *b) { in bitfield() argument
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | rounding-math.cpp | 16 struct Bitfield { struct 21 void f(Bitfield &b) { in f() argument
|
| H A D | member-init.cpp | 3 struct Bitfield { struct
|
| /llvm-project-15.0.7/llvm/test/MachineVerifier/ |
| H A D | test_g_ubfx_sbfx.mir | 11 ; CHECK: *** Bad machine code: Bitfield extraction is not supported on vectors *** 13 ; CHECK: *** Bad machine code: Bitfield extraction is not supported on vectors ***
|
| /llvm-project-15.0.7/llvm/tools/llvm-xray/ |
| H A D | xray-account.cpp | 134 auto Depth = Bitfield::get<RecursionStatus::Depth>(Storage); in operator ++() 137 Bitfield::set<RecursionStatus::Depth>(Storage, Depth); // ++Storage in operator ++() 140 Bitfield::set<RecursionStatus::IsRecursive>(Storage, in operator ++() 145 auto Depth = Bitfield::get<RecursionStatus::Depth>(Storage); in operator --() 148 Bitfield::set<RecursionStatus::Depth>(Storage, Depth); // --Storage in operator --() 151 Bitfield::set<RecursionStatus::IsRecursive>(Storage, false); // Storage = 0 in operator --() 155 return Bitfield::get<RecursionStatus::IsRecursive>(Storage); // Storage s< 0 in isRecursive()
|
| H A D | xray-account.h | 41 using Depth = Bitfield::Element<int32_t, 0, 31>; // Low 31 bits. 42 using IsRecursive = Bitfield::Element<bool, 31, 1>; // Sign bit.
|
| H A D | xray-converter.cpp | 111 uint32_t Bitfield{0}; in exportAsRAWv1() local 113 Bitfield |= 1uL; in exportAsRAWv1() 115 Bitfield |= 1uL << 1; in exportAsRAWv1() 116 Writer.write(Bitfield); in exportAsRAWv1()
|
| /llvm-project-15.0.7/llvm/test/MC/Disassembler/AArch64/ |
| H A D | arm64-bitfield.txt | 4 # 5.4.4 Bitfield Operations
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyBuiltinDumper.cpp | 81 case PDB_BuiltinType::Bitfield: in getTypeName()
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | 2010-03-17-StructRef.m | 2 // Bitfield references must not touch memory outside of the enclosing
|
| /llvm-project-15.0.7/llvm/test/MC/AArch64/ |
| H A D | arm64-bitfield-encoding.s | 5 ; 5.4.4 Bitfield Operations
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.decomp/ |
| H A D | p4.cpp | 161 namespace Bitfield { namespace
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/ |
| H A D | use-emplace.cpp | 756 struct Bitfield { struct 763 Bitfield b; in testBitfields() argument
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/ |
| H A D | PDBTypes.h | 351 Bitfield = 29, enumerator
|