Home
last modified time | relevance | path

Searched refs:Binary (Results 1 – 25 of 242) sorted by relevance

12345678910

/src/contrib/llvm-project/llvm/lib/Object/
H A DBinary.cpp34 Binary::~Binary() = default;
36 Binary::Binary(unsigned int Type, MemoryBufferRef Source) in Binary() function in Binary
39 StringRef Binary::getData() const { return Data.getBuffer(); } in getData()
41 StringRef Binary::getFileName() const { return Data.getBufferIdentifier(); } in getFileName()
43 MemoryBufferRef Binary::getMemoryBufferRef() const { return Data; } in getMemoryBufferRef()
45 Expected<std::unique_ptr<Binary>> object::createBinary(MemoryBufferRef Buffer, in createBinary()
106 Expected<OwningBinary<Binary>>
115 Expected<std::unique_ptr<Binary>> BinOrErr = in createBinary()
119 std::unique_ptr<Binary> &Bin = BinOrErr.get(); in createBinary()
121 return OwningBinary<Binary>(std::move(Bin), std::move(Buffer)); in createBinary()
/src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DOffloadYAML.h26 struct Binary { struct
50 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::OffloadYAML::Binary::Member) argument
51 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::OffloadYAML::Binary::StringEntry) in LLVM_YAML_IS_SEQUENCE_VECTOR()
64 template <> struct MappingTraits<OffloadYAML::Binary> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
65 static void mapping(IO &IO, OffloadYAML::Binary &O); in LLVM_YAML_IS_SEQUENCE_VECTOR()
68 template <> struct MappingTraits<OffloadYAML::Binary::StringEntry> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
69 static void mapping(IO &IO, OffloadYAML::Binary::StringEntry &M); in LLVM_YAML_IS_SEQUENCE_VECTOR()
72 template <> struct MappingTraits<OffloadYAML::Binary::Member> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
73 static void mapping(IO &IO, OffloadYAML::Binary::Member &M); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/src/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYMCCodeEmitter.cpp74 uint32_t Binary; in expandJBTF() local
80 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandJBTF()
81 writeData(Binary, 2, CB); in expandJBTF()
89 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandJBTF()
91 writeData(Binary, 4, CB); in expandJBTF()
99 uint32_t Binary; in expandNEG() local
105 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandNEG()
106 writeData(Binary, Size, CB); in expandNEG()
112 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandNEG()
113 writeData(Binary, Size, CB); in expandNEG()
[all …]
/src/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyMCCodeEmitter.cpp69 uint64_t Binary = getBinaryCodeForInstr(MI, Fixups, STI); in encodeInstruction() local
70 if (Binary < (1 << 8)) { in encodeInstruction()
71 OS << uint8_t(Binary); in encodeInstruction()
72 } else if (Binary < (1 << 16)) { in encodeInstruction()
73 OS << uint8_t(Binary >> 8); in encodeInstruction()
74 encodeULEB128(uint8_t(Binary), OS); in encodeInstruction()
75 } else if (Binary < (1 << 24)) { in encodeInstruction()
76 OS << uint8_t(Binary >> 16); in encodeInstruction()
77 encodeULEB128(uint16_t(Binary), OS); in encodeInstruction()
/src/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCCodeEmitter.cpp1009 uint32_t Binary = Imm12 & 0xfff; in getAddrModeImm12OpValue() local
1012 Binary |= (1 << 12); in getAddrModeImm12OpValue()
1013 Binary |= (Reg << 13); in getAddrModeImm12OpValue()
1014 return Binary; in getAddrModeImm12OpValue()
1040 uint32_t Binary = Imm & ((1U << Bits) - 1); in getT2ScaledImmOpValue() local
1043 Binary |= (1U << Bits); in getT2ScaledImmOpValue()
1044 return Binary; in getT2ScaledImmOpValue()
1132 uint32_t Binary = (Imm8 >> 2) & 0xff; in getT2AddrModeImm8s4OpValue() local
1135 Binary |= (1 << 8); in getT2AddrModeImm8s4OpValue()
1136 Binary |= (Reg << 9); in getT2AddrModeImm8s4OpValue()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/Object/
H A DBinary.h32 class Binary {
39 Binary(unsigned int Type, MemoryBufferRef Source);
93 Binary() = delete;
94 Binary(const Binary &other) = delete;
95 virtual ~Binary();
187 DEFINE_ISA_CONVERSION_FUNCTIONS(Binary, LLVMBinaryRef)
192 Expected<std::unique_ptr<Binary>> createBinary(MemoryBufferRef Source,
244 Expected<OwningBinary<Binary>> createBinary(StringRef Path,
H A DOffloadBinary.h61 class OffloadBinary : public Binary {
105 static bool classof(const Binary *V) { return V->isOffloadFile(); } in classof()
133 : Binary(Binary::ID_Offload, Source), Buffer(Source.getBufferStart()), in OffloadBinary()
161 OffloadFile(std::unique_ptr<OffloadBinary> Binary, in OffloadFile() argument
163 : OwningBinary<OffloadBinary>(std::move(Binary), std::move(Buffer)) {} in OffloadFile()
H A DMachOUniversalWriter.h30 class Binary; variable
35 const Binary *B;
66 const Binary *getBinary() const { return B; } in getBinary()
H A DMinidump.h23 class MinidumpFile : public Binary {
30 static bool classof(const Binary *B) { return B->isMinidump(); } in classof()
168 : Binary(ID_Minidump, Source), Header(Header), Streams(Streams), in MinidumpFile()
/src/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DOffloadYAML.cpp46 void MappingTraits<OffloadYAML::Binary>::mapping(IO &IO, in mapping()
47 OffloadYAML::Binary &O) { in mapping()
59 void MappingTraits<OffloadYAML::Binary::StringEntry>::mapping( in mapping()
60 IO &IO, OffloadYAML::Binary::StringEntry &SE) { in mapping()
66 void MappingTraits<OffloadYAML::Binary::Member>::mapping( in mapping()
67 IO &IO, OffloadYAML::Binary::Member &M) { in mapping()
/src/contrib/llvm-project/clang/lib/Format/
H A DIntegerLiteralSeparatorFixer.cpp20 enum class Base { Binary, Decimal, Hex, Other }; enumerator
35 return Base::Binary; in getBase()
62 const auto Binary = Option.Binary; in process() local
65 const bool SkipBinary = Binary == 0; in process()
73 std::max((int)Option.BinaryMinDigits, Binary + 1); in process()
108 const bool IsBase2 = B == Base::Binary; in process()
140 DigitsPerGroup = Binary; in process()
/src/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMCCodeEmitter.cpp143 uint32_t Binary; in expandFunctionCall() local
151 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandFunctionCall()
152 support::endian::write(CB, Binary, llvm::endianness::little); in expandFunctionCall()
161 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandFunctionCall()
162 support::endian::write(CB, Binary, llvm::endianness::little); in expandFunctionCall()
181 uint32_t Binary = getBinaryCodeForInstr(Call, Fixups, STI); in expandTLSDESCCall() local
182 support::endian::write(CB, Binary, llvm::endianness::little); in expandTLSDESCCall()
220 uint32_t Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandAddTPRel() local
221 support::endian::write(CB, Binary, llvm::endianness::little); in expandAddTPRel()
274 uint16_t Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandLongCondBr() local
[all …]
/src/contrib/file/magic/Magdir/
H A Dbioinformatics39 # BAM (Binary Sequence Alignment/Map format)
43 0 string BAM\1 SAMtools BAM (Binary Sequence Alignment/Map)
59 # CRAM (Binary Sequence Alignment/Map format)
68 # BCF (Binary Call Format), version 1
76 >>&(&-0x04) lelong >0 SAMtools BCF (Binary Call Format)
85 # BCF (Binary Call Format), version 2.1
89 0 string BCF\2\1 Binary Call Format (BCF) version 2.1
98 # BCF (Binary Call Format), version 2.2
102 0 string BCF\2\2 Binary Call Format (BCF) version 2.2
H A Dpbf6 # OpenStreetMap Protocolbuffer Binary Format (.osm.pbf)
11 >>6 string OSMHeader OpenStreetMap Protocolbuffer Binary Format
/src/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp121 case FileFormat::Binary: in executeObjcopyOnRawBinary()
148 OwningBinary<llvm::object::Binary> BinaryHolder; in executeObjcopy()
151 if (Config.InputFormat == FileFormat::Binary || in executeObjcopy()
159 if (Config.InputFormat == FileFormat::Binary) in executeObjcopy()
171 Expected<OwningBinary<llvm::object::Binary>> BinaryOrErr = in executeObjcopy()
/src/contrib/googletest/googlemock/test/
H A Dgmock-spec-builders_test.cc107 MOCK_METHOD2(Binary, bool(int x, int y));
943 ON_CALL(a, Binary(_, _)).WillByDefault(Return(true)); in TEST()
944 EXPECT_TRUE(a.Binary(1, 2)); in TEST()
957 ON_CALL(a, Binary(_, _)).WillByDefault(Return(true)); in TEST()
958 EXPECT_CALL(a, Binary(0, 0)); in TEST()
959 a.Binary(0, 0); in TEST()
961 EXPECT_NONFATAL_FAILURE(result = a.Binary(1, 2), in TEST()
1133 ON_CALL(a, Binary(_, _)).WillByDefault(Return(true)); in TEST()
1134 EXPECT_CALL(a, Binary(0, 0)); in TEST()
1135 a.Binary(0, 0); in TEST()
[all …]
/src/contrib/llvm-project/llvm/tools/llvm-tli-checker/
H A Dllvm-tli-checker.cpp202 Expected<std::unique_ptr<object::Binary>> ChildOrErr = C.getAsBinary(); in populateFromArchive()
235 OwningBinary<Binary> OBinary = std::move(*ExpectedBinary); in populateFromFile()
236 Binary &Binary = *OBinary.getBinary(); in populateFromFile() local
238 if (Archive *A = dyn_cast<Archive>(&Binary)) in populateFromFile()
240 else if (ObjectFile *O = dyn_cast<ObjectFile>(&Binary)) in populateFromFile()
/src/contrib/llvm-project/llvm/include/llvm/ObjCopy/
H A DObjCopy.h19 class Binary; variable
37 object::Binary &In, raw_ostream &Out);
/src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/
H A DLVReaderHandler.cpp191 Expected<std::unique_ptr<Binary>> BinOrErr = createBinary(Buffer); in handleBuffer()
244 Binary &Binary) { in handleObject() argument
245 if (PdbOrObj Input = dyn_cast<ObjectFile>(&Binary)) in handleObject()
249 if (MachOUniversalBinary *Fat = dyn_cast<MachOUniversalBinary>(&Binary)) in handleObject()
252 if (Archive *Arch = dyn_cast<Archive>(&Binary)) in handleObject()
/src/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfReader.h187 RawMemProfReader(object::OwningBinary<object::Binary> &&Bin, bool KeepName) in RawMemProfReader()
188 : Binary(std::move(Bin)), KeepSymbolName(KeepName) {} in RawMemProfReader()
212 object::OwningBinary<object::Binary> Binary; variable
/src/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCCodeEmitter.cpp163 uint32_t Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in encodeInstruction() local
170 (Opcode != Mips::SLL_MM) && (Opcode != Mips::SLL_MMR6) && !Binary) in encodeInstruction()
192 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in encodeInstruction()
198 Binary = (Binary & 0xFFFFFC7F) | (RegPair << 7); in encodeInstruction()
212 support::endian::write<uint16_t>(CB, Binary, Endian); in encodeInstruction()
214 support::endian::write<uint16_t>(CB, Binary >> 16, Endian); in encodeInstruction()
215 support::endian::write<uint16_t>(CB, Binary & 0xffff, Endian); in encodeInstruction()
217 support::endian::write<uint32_t>(CB, Binary, Endian); in encodeInstruction()
571 unsigned Binary = (MO.getImm() >> 2) & 0x0000ffff; in getSImm9AddiuspValue() local
572 return (((Binary & 0x8000) >> 7) | (Binary & 0x00ff)); in getSImm9AddiuspValue()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h235 CachedBinary(OwningBinary<Binary> Bin) : Bin(std::move(Bin)) {} in CachedBinary()
237 OwningBinary<Binary> &operator*() { return Bin; }
238 OwningBinary<Binary> *operator->() { return &Bin; }
254 OwningBinary<Binary> Bin;
/src/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.h26 class Binary; variable
70 std::unique_ptr<object::Binary> &DSYMBinary,
/src/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCCodeEmitter.cpp403 uint64_t Binary; in encodeSingleInstruction() local
412 Binary = getBinaryCodeForInstr(MI, Fixups, STI); in encodeSingleInstruction()
417 if (!Binary && Opc != DuplexIClass0 && Opc != A4_ext) { in encodeSingleInstruction()
422 Binary |= Parse; in encodeSingleInstruction()
432 Binary = ((DupIClass & 0xE) << (29 - 1)) | ((DupIClass & 0x1) << 13); in encodeSingleInstruction()
444 Binary |= SubBits0 | (SubBits1 << 16); in encodeSingleInstruction()
446 support::endian::write<uint32_t>(CB, Binary, llvm::endianness::little); in encodeSingleInstruction()
606 ME->getKind() == MCExpr::Binary); in getExprOpValue()
607 if (ME->getKind() == MCExpr::Binary) { in getExprOpValue()
608 MCBinaryExpr const *Binary = cast<MCBinaryExpr>(ME); in getExprOpValue() local
[all …]
/src/contrib/llvm-project/clang/include/clang/Basic/
H A DOperatorKinds.def36 /// Binary: True if the operator can be declared as a binary
50 # define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly)
54 # define OVERLOADED_OPERATOR_MULTI(Name,Spelling,Unary,Binary,MemberOnly) \
55 OVERLOADED_OPERATOR(Name,Spelling,unknown,Unary,Binary,MemberOnly)

12345678910