/external/llvm-project/llvm/unittests/ADT/ |
D | BitFieldsTest.cpp | 20 using Bool = Bitfield::Element<bool, 0, 1>; in TEST() 21 Bitfield::set<Bool>(Storage, true); in TEST() 24 EXPECT_EQ(Bitfield::get<Bool>(Storage), true); in TEST() 30 using Suit = Bitfield::Element<SuitEnum, 1, 2, SuitEnum::SPADES>; in TEST() 31 Bitfield::set<Suit>(Storage, SuitEnum::HEARTS); in TEST() 34 EXPECT_EQ(Bitfield::get<Suit>(Storage), SuitEnum::HEARTS); in TEST() 37 using Value = Bitfield::Element<unsigned, 3, 5>; in TEST() 38 Bitfield::set<Value>(Storage, 10); in TEST() 41 EXPECT_EQ(Bitfield::get<Value>(Storage), 10U); in TEST() 44 using SignedValue = Bitfield::Element<int, 3, 5>; in TEST() [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | Bitfields.h | 156 template <typename Bitfield, typename StorageType> struct Impl { 159 using IntegerType = typename Bitfield::IntegerType; 160 using C = Compressor<IntegerType, Bitfield::Bits>; 161 using BP = BitPatterns<StorageType, Bitfield::Bits>; 164 static_assert(Bitfield::FirstBit <= StorageBits, "Data must fit in mask"); 165 static_assert(Bitfield::LastBit <= StorageBits, "Data must fit in mask"); 166 static constexpr StorageType Mask = BP::Umax << Bitfield::Shift; 171 const StorageType StorageValue = C::pack(UserValue, Bitfield::UserMaxValue); 173 Packed |= StorageValue << Bitfield::Shift; 179 const StorageType StorageValue = (Packed & Mask) >> Bitfield::Shift; [all …]
|
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/ |
D | TypeDetail.h | 172 return llvm::Bitfield::get<KeyFlagIdentified>(keySizeAndFlags); in isIdentified() 177 return isIdentified() ? llvm::Bitfield::get<MutableFlagPacked>( in isPacked() 179 : llvm::Bitfield::get<KeyFlagPacked>(keySizeAndFlags); in isPacked() 186 return llvm::Bitfield::get<MutableFlagOpaque>(identifiedBodySizeAndFlags); in isOpaque() 192 return llvm::Bitfield::get<MutableFlagInitialized>( in isInitialized() 205 llvm::Bitfield::set<KeyFlagPacked>(keySizeAndFlags, key.isPacked()); in LLVMStructTypeStorage() 212 llvm::Bitfield::set<KeyFlagIdentified>(keySizeAndFlags, true); in LLVMStructTypeStorage() 216 llvm::Bitfield::set<MutableFlagInitialized>(identifiedBodySizeAndFlags, in LLVMStructTypeStorage() 218 llvm::Bitfield::set<MutableFlagOpaque>(identifiedBodySizeAndFlags, in LLVMStructTypeStorage() 243 llvm::Bitfield::set<MutableFlagInitialized>(identifiedBodySizeAndFlags, in mutate() [all …]
|
/external/llvm-project/llvm/include/llvm/Bitcode/ |
D | BitcodeCommon.h | 22 using Align = Bitfield::Element<unsigned, 0, 5>; 23 using UsedWithInAlloca = Bitfield::Element<bool, Align::NextBit, 1>; 24 using ExplicitType = Bitfield::Element<bool, UsedWithInAlloca::NextBit, 1>; 25 using SwiftError = Bitfield::Element<bool, ExplicitType::NextBit, 1>;
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkStrUtil.inl | 349 tcu::Format::Bitfield<32> getAccessFlagsStr (VkAccessFlags value); 350 tcu::Format::Bitfield<32> getImageAspectFlagsStr (VkImageAspectFlags value); 351 tcu::Format::Bitfield<32> getFormatFeatureFlagsStr (VkFormatFeatureFlags value); 352 tcu::Format::Bitfield<32> getImageCreateFlagsStr (VkImageCreateFlags value); 353 tcu::Format::Bitfield<32> getSampleCountFlagsStr (VkSampleCountFlags value); 354 tcu::Format::Bitfield<32> getImageUsageFlagsStr (VkImageUsageFlags value); 355 tcu::Format::Bitfield<32> getMemoryHeapFlagsStr (VkMemoryHeapFlags value); 356 tcu::Format::Bitfield<32> getMemoryPropertyFlagsStr (VkMemoryPropertyFlags value); 357 tcu::Format::Bitfield<32> getQueueFlagsStr (VkQueueFlags value); 358 tcu::Format::Bitfield<32> getDeviceQueueCreateFlagsStr (VkDeviceQueueCreateFlags value); [all …]
|
D | vkStrUtilImpl.inl | 2648 tcu::Format::Bitfield<32> getAccessFlagsStr (VkAccessFlags value) 2686 return tcu::Format::Bitfield<32>(value, DE_ARRAY_BEGIN(s_desc), DE_ARRAY_END(s_desc)); 2689 tcu::Format::Bitfield<32> getImageAspectFlagsStr (VkImageAspectFlags value) 2709 return tcu::Format::Bitfield<32>(value, DE_ARRAY_BEGIN(s_desc), DE_ARRAY_END(s_desc)); 2712 tcu::Format::Bitfield<32> getFormatFeatureFlagsStr (VkFormatFeatureFlags value) 2760 return tcu::Format::Bitfield<32>(value, DE_ARRAY_BEGIN(s_desc), DE_ARRAY_END(s_desc)); 2763 tcu::Format::Bitfield<32> getImageCreateFlagsStr (VkImageCreateFlags value) 2790 return tcu::Format::Bitfield<32>(value, DE_ARRAY_BEGIN(s_desc), DE_ARRAY_END(s_desc)); 2793 tcu::Format::Bitfield<32> getSampleCountFlagsStr (VkSampleCountFlags value) 2806 return tcu::Format::Bitfield<32>(value, DE_ARRAY_BEGIN(s_desc), DE_ARRAY_END(s_desc)); [all …]
|
D | vkDebugReportUtil.cpp | 36 tcu::Format::Bitfield<32> shortDebugFlagsStr (VkDebugReportFlagsEXT flags) in shortDebugFlagsStr() 47 return tcu::Format::Bitfield<32>(flags, DE_ARRAY_BEGIN(s_bits), DE_ARRAY_END(s_bits)); in shortDebugFlagsStr()
|
/external/swiftshader/src/Device/ |
D | BC_Decoder.cpp | 1067 struct Bitfield struct 1071 constexpr Bitfield Then(const int bits) { return { offset + count, bits }; } in Then() argument 1072 constexpr bool operator==(const Bitfield &rhs) in operator ==() argument 1094 constexpr Bitfield Partition() const { return { IDX + 1, PB }; } in Partition() 1095 constexpr Bitfield Rotation() const { return Partition().Then(RB); } in Rotation() 1096 constexpr Bitfield IndexSelection() const { return Rotation().Then(ISB); } in IndexSelection() 1097 constexpr Bitfield Red(int idx) const in Red() 1101 constexpr Bitfield Green(int idx) const in Green() 1105 constexpr Bitfield Blue(int idx) const in Blue() 1109 constexpr Bitfield Alpha(int idx) const in Alpha() [all …]
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | designated-init.cpp | 28 struct Bitfield { struct 35 Bitfield b; argument 38 WithBitfield bitfield = {1, (Bitfield){2, 3, 4}, .b.b = 5};
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/ |
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()
|
/external/llvm-project/llvm/lib/XRay/ |
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()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | Instruction.h | 57 using OpaqueField = Bitfield::Element<uint16_t, 0, 15>; 66 typename Bitfield::Element<unsigned, Offset, 5, 70 using BoolBitfieldElementT = typename Bitfield::Element<bool, Offset, 1>; 74 typename Bitfield::Element<AtomicOrdering, Offset, 3, 80 using HasMetadataField = Bitfield::Element<bool, 15, 1>; 813 !Bitfield::isOverlapping<BitfieldElement, HasMetadataField>(), 815 return Bitfield::get<BitfieldElement>(getSubclassDataFromValue()); 822 !Bitfield::isOverlapping<BitfieldElement, HasMetadataField>(), 825 Bitfield::set<BitfieldElement>(Storage, Value);
|
D | Instructions.h | 67 static_assert(Bitfield::areContiguous<AlignmentField, UsedWithInAllocaField, 162 template <typename Bitfield> 163 void setSubclassData(typename Bitfield::Type Value) { in setSubclassData() 164 Instruction::setSubclassData<Bitfield>(Value); in setSubclassData() 179 Bitfield::areContiguous<VolatileField, AlignmentField, OrderingField>(), 287 template <typename Bitfield> 288 void setSubclassData(typename Bitfield::Type Value) { in setSubclassData() 289 Instruction::setSubclassData<Bitfield>(Value); in setSubclassData() 308 Bitfield::areContiguous<VolatileField, AlignmentField, OrderingField>(), 422 template <typename Bitfield> [all …]
|
/external/deqp/framework/common/ |
D | tcuFormatUtil.hpp | 90 class Bitfield class 93 Bitfield (deUint64 value, const BitDesc* begin, const BitDesc* end) in Bitfield() function in tcu::Format::Bitfield 131 inline std::ostream& operator<< (std::ostream& stream, Bitfield<BitfieldSize> decoder) in operator <<() 267 inline Format::Bitfield<sizeof(T)*8> formatBitfield (T value, const Format::BitDesc (&desc)[Size]) in formatBitfield() 269 return Format::Bitfield<sizeof(T)*8>((deUint64)value, &desc[0], &desc[Size]); in formatBitfield()
|
/external/llvm-project/clang/test/Sema/ |
D | rounding-math.c | 18 struct Bitfield { struct 23 void bitfield(struct Bitfield *b) { in bitfield() argument
|
/external/llvm-project/clang/test/SemaCXX/ |
D | rounding-math.cpp | 16 struct Bitfield { struct 21 void f(Bitfield &b) { in f() argument
|
/external/llvm-project/llvm/tools/llvm-xray/ |
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()
|
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.
|
D | xray-converter.cpp | 102 uint32_t Bitfield{0}; in exportAsRAWv1() local 104 Bitfield |= 1uL; in exportAsRAWv1() 106 Bitfield |= 1uL << 1; in exportAsRAWv1() 107 Writer.write(Bitfield); in exportAsRAWv1()
|
/external/rust/crates/bindgen/src/ir/ |
D | comp.rs | 169 bitfields: Vec<Bitfield>, 186 pub fn bitfields(&self) -> &[Bitfield] { in bitfields() argument 291 impl DotAttributes for Bitfield { implementation 312 pub struct Bitfield { struct 331 impl Bitfield { implementation 333 fn new(offset_into_unit: usize, raw: RawField) -> Bitfield { in new() argument 336 Bitfield { in new() 401 impl FieldMethods for Bitfield { implementation 580 bitfields: Vec<Bitfield>, in bitfields_to_allocation_units() argument 674 bitfields_in_unit.push(Bitfield::new(offset, bitfield)); in bitfields_to_allocation_units()
|
/external/deqp/framework/egl/ |
D | egluStrUtil.inl | 285 tcu::Format::Bitfield<16> getAPIBitsStr (int value) 295 return tcu::Format::Bitfield<16>(value, &s_desc[0], &s_desc[DE_LENGTH_OF_ARRAY(s_desc)]); 298 tcu::Format::Bitfield<16> getSurfaceBitsStr (int value) 312 return tcu::Format::Bitfield<16>(value, &s_desc[0], &s_desc[DE_LENGTH_OF_ARRAY(s_desc)]);
|
/external/llvm/tools/llvm-pdbdump/ |
D | BuiltinDumper.cpp | 79 case PDB_BuiltinType::Bitfield: in getTypeName()
|
/external/llvm/test/MC/Disassembler/AArch64/ |
D | arm64-bitfield.txt | 4 # 5.4.4 Bitfield Operations
|
/external/llvm-project/llvm/test/MC/Disassembler/AArch64/ |
D | arm64-bitfield.txt | 4 # 5.4.4 Bitfield Operations
|
/external/llvm-project/llvm/tools/llvm-pdbutil/ |
D | PrettyBuiltinDumper.cpp | 81 case PDB_BuiltinType::Bitfield: in getTypeName()
|