Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCCodeEmitter.cpp181 if (Val == llvm::bit_cast<uint32_t>(0.5f)) in getLit32Encoding()
184 if (Val == llvm::bit_cast<uint32_t>(-0.5f)) in getLit32Encoding()
187 if (Val == llvm::bit_cast<uint32_t>(1.0f)) in getLit32Encoding()
190 if (Val == llvm::bit_cast<uint32_t>(-1.0f)) in getLit32Encoding()
193 if (Val == llvm::bit_cast<uint32_t>(2.0f)) in getLit32Encoding()
196 if (Val == llvm::bit_cast<uint32_t>(-2.0f)) in getLit32Encoding()
199 if (Val == llvm::bit_cast<uint32_t>(4.0f)) in getLit32Encoding()
202 if (Val == llvm::bit_cast<uint32_t>(-4.0f)) in getLit32Encoding()
221 if (Val == llvm::bit_cast<uint64_t>(0.5)) in getLit64Encoding()
224 if (Val == llvm::bit_cast<uint64_t>(-0.5)) in getLit64Encoding()
[all …]
H A DAMDGPUInstPrinter.cpp595 if (Imm == llvm::bit_cast<uint32_t>(0.0f)) in printImmediateFloat32()
597 else if (Imm == llvm::bit_cast<uint32_t>(1.0f)) in printImmediateFloat32()
599 else if (Imm == llvm::bit_cast<uint32_t>(-1.0f)) in printImmediateFloat32()
601 else if (Imm == llvm::bit_cast<uint32_t>(0.5f)) in printImmediateFloat32()
603 else if (Imm == llvm::bit_cast<uint32_t>(-0.5f)) in printImmediateFloat32()
605 else if (Imm == llvm::bit_cast<uint32_t>(2.0f)) in printImmediateFloat32()
607 else if (Imm == llvm::bit_cast<uint32_t>(-2.0f)) in printImmediateFloat32()
609 else if (Imm == llvm::bit_cast<uint32_t>(4.0f)) in printImmediateFloat32()
611 else if (Imm == llvm::bit_cast<uint32_t>(-4.0f)) in printImmediateFloat32()
646 if (Imm == llvm::bit_cast<uint64_t>(0.0)) in printImmediate64()
[all …]
H A DR600InstPrinter.cpp99 O << Imm << '(' << llvm::bit_cast<float>(static_cast<uint32_t>(Imm)) << ')'; in printLiteral()
160 O << bit_cast<double>(Op.getDFPImm()); in printOperand()
/freebsd/contrib/llvm-project/libcxx/include/__compare/
H A Dstrong_order.h57 int32_t __rx = std::bit_cast<int32_t>(__t); in __go()
58 int32_t __ry = std::bit_cast<int32_t>(__u); in __go()
63 int64_t __rx = std::bit_cast<int64_t>(__t); in __go()
64 int64_t __ry = std::bit_cast<int64_t>(__u); in __go()
106 return std::bit_cast<_IntType>(__t) <=> std::bit_cast<_IntType>(__u); in __go()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dchunk.h118 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in storeHeader()
125 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in loadHeader()
134 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in compareExchangeHeader()
H A Dcommon.h24 template <class Dest, class Source> inline Dest bit_cast(const Source &S) { in bit_cast() function
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit17 // [bit.cast], bit_cast
19 constexpr To bit_cast(const From& from) noexcept; // C++20
67 # include <__bit/bit_cast.h>
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DEndianStream.h44 write(os, llvm::bit_cast<uint32_t>(value), endian);
50 write(os, llvm::bit_cast<uint64_t>(value), endian); in write()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCInst.cpp34 OS << "SFPImm:" << bit_cast<float>(getSFPImm()); in print()
36 OS << "DFPImm:" << bit_cast<double>(getDFPImm()); in print()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h361 return bit_cast<float>(I); in getFPImmFloat()
778 auto Parts = bit_cast<std::array<T, sizeof(int64_t) / sizeof(T)>>(Imm); in isSVECpyImm()
818 auto S = bit_cast<std::array<int32_t, 2>>(Imm); in isMOVZMovAlias()
819 auto H = bit_cast<std::array<int16_t, 4>>(Imm); in isMOVZMovAlias()
820 auto B = bit_cast<std::array<int8_t, 8>>(Imm); in isMOVZMovAlias()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp2556 return (Val == llvm::bit_cast<uint64_t>(0.0)) || in isInlinableLiteral64()
2557 (Val == llvm::bit_cast<uint64_t>(1.0)) || in isInlinableLiteral64()
2558 (Val == llvm::bit_cast<uint64_t>(-1.0)) || in isInlinableLiteral64()
2559 (Val == llvm::bit_cast<uint64_t>(0.5)) || in isInlinableLiteral64()
2560 (Val == llvm::bit_cast<uint64_t>(-0.5)) || in isInlinableLiteral64()
2561 (Val == llvm::bit_cast<uint64_t>(2.0)) || in isInlinableLiteral64()
2562 (Val == llvm::bit_cast<uint64_t>(-2.0)) || in isInlinableLiteral64()
2563 (Val == llvm::bit_cast<uint64_t>(4.0)) || in isInlinableLiteral64()
2564 (Val == llvm::bit_cast<uint64_t>(-4.0)) || in isInlinableLiteral64()
2582 return (Val == llvm::bit_cast<uint32_t>(0.0f)) || in isInlinableLiteral32()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/
H A DAMDGPUDisassembler.cpp1290 return llvm::bit_cast<uint32_t>(0.5f); in getInlineImmVal32()
1292 return llvm::bit_cast<uint32_t>(-0.5f); in getInlineImmVal32()
1294 return llvm::bit_cast<uint32_t>(1.0f); in getInlineImmVal32()
1296 return llvm::bit_cast<uint32_t>(-1.0f); in getInlineImmVal32()
1298 return llvm::bit_cast<uint32_t>(2.0f); in getInlineImmVal32()
1300 return llvm::bit_cast<uint32_t>(-2.0f); in getInlineImmVal32()
1302 return llvm::bit_cast<uint32_t>(4.0f); in getInlineImmVal32()
1304 return llvm::bit_cast<uint32_t>(-4.0f); in getInlineImmVal32()
1315 return llvm::bit_cast<uint64_t>(0.5); in getInlineImmVal64()
1317 return llvm::bit_cast<uint64_t>(-0.5); in getInlineImmVal64()
[all …]
/freebsd/contrib/llvm-project/libcxx/src/include/
H A Dto_chars_floating_point.h122 const _Uint_type _Uint_value = std::bit_cast<_Uint_type>(_Value);
350 const _Uint_type _Uint_value = std::bit_cast<_Uint_type>(_Value);
842 const _Uint_type _Uint_value = std::bit_cast<_Uint_type>(_Value);
1005 _Uint_type _Uint_value = std::bit_cast<_Uint_type>(_Value);
1017 _Value = std::bit_cast<_Floating>(_Uint_value);
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dbit_cast.h36 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr _ToType bit_cast(const _FromType& __from) noexcept { in bit_cast() function
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp78 llvm::bit_cast<float>(endian::read<uint32_t, Endianness>(Current)); in read()
88 llvm::bit_cast<double>(endian::read<uint64_t, Endianness>(Current)); in read()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1680 double bitsToDouble() const { return llvm::bit_cast<double>(getWord(0)); } in bitsToDouble()
1685 return llvm::bit_cast<float128>(ul); in bitsToQuad()
1695 return llvm::bit_cast<float>(static_cast<uint32_t>(getWord(0))); in bitsToFloat()
1703 return APInt(sizeof(double) * CHAR_BIT, llvm::bit_cast<uint64_t>(V)); in doubleToBits()
1711 return APInt(sizeof(float) * CHAR_BIT, llvm::bit_cast<uint32_t>(V)); in floatToBits()
H A DPointerSumType.h191 return bit_cast<uintptr_t>(Storage); in getOpaqueValue()
H A DAPFixedPoint.h129 return hash_value(bit_cast<uint32_t>(Val)); in hash_value()
H A Dbit.h80 // This implementation of bit_cast is different from the C++20 one in two ways: in byteswap()
89 [[nodiscard]] inline To bit_cast(const From &from) noexcept { in byteswap()
53 [[nodiscard]] inline To bit_cast(const From &from) noexcept { bit_cast() function
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.cpp223 return bit_cast<float>(I); in getFPImm()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp129 MCOp = MCOperand::createDFPImm(bit_cast<uint64_t>(Val.convertToDouble())); in lowerOperand()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCInst.h111 FPImmVal = bit_cast<uint64_t>(Val); in setFPImm()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCCodeEmitter.cpp265 return static_cast<unsigned>(bit_cast<double>(MO.getDFPImm())); in getMachineOpValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp119 MCOperand::createDFPImm(bit_cast<uint64_t>(static_cast<double>(Val)))); in parseImmediate()

12