| /openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/ |
| H A D | PerfReader.cpp | 99 if (!isValidFallThroughRange(Target, End, Binary)) { in unwindLinear() 105 if (Binary->usePseudoProbes()) { in unwindLinear() 131 bool SameInlinee = Binary->inlineContextEqual(PrevIP, IP.Address); in unwindLinear() 148 uint64_t CallAddr = Binary->getCallAddrFromFrameAddr(LBR.Target); in unwindReturn() 165 KeyStr->Context = Binary->getExpandedContext(Stack, KeyStr->WasLeafInlined); in getContextKey() 204 T EmptyStack(Binary); in collectSamplesFromFrameTrie() 230 if (Binary->usePseudoProbes()) { in collectSamplesFromFrameTrie() 231 AddressStack Stack(Binary); in collectSamplesFromFrameTrie() 234 FrameStack Stack(Binary); in collectSamplesFromFrameTrie() 252 if (Binary->usePseudoProbes()) { in recordBranchCount() [all …]
|
| H A D | ProfileGenerator.cpp | 121 ProfileGeneratorBase::create(ProfiledBinary *Binary, in create() argument 126 if (Binary->useFSDiscriminator()) in create() 128 Generator.reset(new CSProfileGenerator(Binary, SampleCounters)); in create() 130 Generator.reset(new ProfileGenerator(Binary, SampleCounters)); in create() 132 ProfileGeneratorBase::UseFSDiscriminator = Binary->useFSDiscriminator(); in create() 133 FunctionSamples::ProfileIsFS = Binary->useFSDiscriminator(); in create() 139 ProfileGeneratorBase::create(ProfiledBinary *Binary, SampleProfileMap &Profiles, in create() argument 143 if (Binary->useFSDiscriminator()) in create() 145 Generator.reset(new CSProfileGenerator(Binary, Profiles)); in create() 147 Generator.reset(new ProfileGenerator(Binary, std::move(Profiles))); in create() [all …]
|
| H A D | ProfileGenerator.h | 35 ProfileGeneratorBase(ProfiledBinary *Binary) : Binary(Binary){}; in ProfileGeneratorBase() argument 36 ProfileGeneratorBase(ProfiledBinary *Binary, in ProfileGeneratorBase() argument 38 : Binary(Binary), SampleCounters(Counters){}; in ProfileGeneratorBase() 39 ProfileGeneratorBase(ProfiledBinary *Binary, in ProfileGeneratorBase() argument 41 : Binary(Binary), ProfileMap(std::move(Profiles)){}; in ProfileGeneratorBase() 45 create(ProfiledBinary *Binary, const ContextSampleCounterMap *Counters, 48 create(ProfiledBinary *Binary, SampleProfileMap &ProfileMap, 136 ProfiledBinary *Binary = nullptr; variable 149 ProfileGenerator(ProfiledBinary *Binary, in ProfileGenerator() argument 151 : ProfileGeneratorBase(Binary, Counters){}; in ProfileGenerator() [all …]
|
| H A D | PerfReader.h | 214 ProfiledBinary *Binary) { in isValidFallThroughRange() argument 221 return Start <= End && !Binary->rangeCrossUncondBranch(Start, End); in isValidFallThroughRange() 229 const ProfiledBinary *Binary; member 268 UnwindState(const PerfSample *Sample, const ProfiledBinary *Binary) in UnwindState() 269 : Binary(Binary), LBRStack(Sample->LBRStack), in UnwindState() 270 InstPtr(Binary, Sample->CallStack.front()) { in UnwindState() 420 ProfiledBinary *Binary; member 421 FrameStack(ProfiledBinary *B) : Binary(B) {} in FrameStack() 438 ProfiledBinary *Binary; member 439 AddressStack(ProfiledBinary *B) : Binary(B) {} in AddressStack() [all …]
|
| H A D | MissingFrameInferrer.h | 27 MissingFrameInferrer(ProfiledBinary *Binary) : Binary(Binary) {} in MissingFrameInferrer() argument 64 ProfiledBinary *Binary; variable
|
| H A D | MissingFrameInferrer.cpp | 65 FuncRange *FromFRange = Binary->findFuncRange(From); in initialize() 66 FuncRange *ToFRange = Binary->findFuncRange(To); in initialize() 82 if (FuncRange *ToFRange = Binary->findFuncRange(Target)) in initialize() 87 if (FuncRange *ToFRange = Binary->findFuncRange(Target)) { in initialize() 92 if (FuncRange *FromFRange = Binary->findFuncRange(Call.first)) in initialize() 235 FuncRange *ToFRange = Binary->findFuncRange(To); in inferMissingFrames()
|
| H A D | ProfiledBinary.cpp | 209 OwningBinary<Binary> OBinary = unwrapOrError(createBinary(Path), Path); in load() 210 Binary &ExeBinary = *OBinary.getBinary(); in load() 229 OwningBinary<Binary> DebugPath = in load() 443 OwningBinary<Binary> OBinary = unwrapOrError(createBinary(Path), Path); in decodePseudoProbe() 444 Binary &ExeBinary = *OBinary.getBinary(); in decodePseudoProbe() 858 assert(this == IP.Binary && in symbolize() 938 InstructionPointer::InstructionPointer(const ProfiledBinary *Binary, in InstructionPointer() argument 940 : Binary(Binary), Address(Address) { in InstructionPointer() 941 Index = Binary->getIndexForAddr(Address); in InstructionPointer() 945 if (Index >= Binary->getCodeAddrVecSize()) in InstructionPointer() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | offload2yaml.cpp | 19 void populateYAML(OffloadYAML::Binary &YAMLBinary, object::OffloadBinary &OB, in populateYAML() 27 Member.StringEntries = std::vector<OffloadYAML::Binary::StringEntry>(); in populateYAML() 29 Member.StringEntries->emplace_back(OffloadYAML::Binary::StringEntry( in populateYAML() 37 Expected<OffloadYAML::Binary *> dump(MemoryBufferRef Source, in dump() 44 std::unique_ptr<OffloadYAML::Binary> YAMLBinary = in dump() 45 std::make_unique<OffloadYAML::Binary>(); in dump() 47 YAMLBinary->Members = std::vector<OffloadYAML::Binary::Member>(); in dump() 57 object::OffloadBinary &Binary = **BinaryOrErr; in dump() local 59 populateYAML(*YAMLBinary, Binary, Saver); in dump() 61 Offset += Binary.getSize(); in dump() [all …]
|
| H A D | obj2yaml.cpp | 73 Expected<std::unique_ptr<Binary>> BinOrErr = in dumpInput() 78 Binary &Binary = *BinOrErr->get(); in dumpInput() local 81 if (Binary.isMachO() || Binary.isMachOUniversalBinary()) in dumpInput() 82 return macho2yaml(OS, Binary, RawSegment.getBits()); in dumpInput() 83 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary)) in dumpInput() 85 if (MinidumpFile *Minidump = dyn_cast<MinidumpFile>(&Binary)) in dumpInput()
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | Binary.cpp | 34 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() 102 Expected<OwningBinary<Binary>> 111 Expected<std::unique_ptr<Binary>> BinOrErr = in createBinary() 115 std::unique_ptr<Binary> &Bin = BinOrErr.get(); in createBinary() 117 return OwningBinary<Binary>(std::move(Bin), std::move(Buffer)); in createBinary()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/ |
| H A D | OffloadYAML.h | 27 struct Binary { struct 51 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::OffloadYAML::Binary::Member) argument 52 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::OffloadYAML::Binary::StringEntry) in LLVM_YAML_IS_SEQUENCE_VECTOR() 65 template <> struct MappingTraits<OffloadYAML::Binary> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 66 static void mapping(IO &IO, OffloadYAML::Binary &O); in LLVM_YAML_IS_SEQUENCE_VECTOR() 69 template <> struct MappingTraits<OffloadYAML::Binary::StringEntry> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 70 static void mapping(IO &IO, OffloadYAML::Binary::StringEntry &M); in LLVM_YAML_IS_SEQUENCE_VECTOR() 73 template <> struct MappingTraits<OffloadYAML::Binary::Member> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 74 static void mapping(IO &IO, OffloadYAML::Binary::Member &M); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-lipo/ |
| H A D | llvm-lipo.cpp | 318 static SmallVector<OwningBinary<Binary>, 1> 320 SmallVector<OwningBinary<Binary>, 1> InputBinaries; in readInputBinaries() 322 Expected<OwningBinary<Binary>> BinaryOrErr = in readInputBinaries() 326 const Binary *B = BinaryOrErr->getBinary(); in readInputBinaries() 353 verifyArch(ArrayRef<OwningBinary<Binary>> InputBinaries, in verifyArch() 382 static void printBinaryArchs(LLVMContext &LLVMCtx, const Binary *Binary, in printBinaryArchs() argument 385 if (auto UO = dyn_cast<MachOUniversalBinary>(Binary)) { in printBinaryArchs() 401 reportError(Binary->getFileName(), SliceOrErr.takeError()); in printBinaryArchs() 416 reportError(Binary->getFileName(), MachOObjOrError.takeError()); in printBinaryArchs() 417 reportError(Binary->getFileName(), IROrError.takeError()); in printBinaryArchs() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYMCCodeEmitter.cpp | 76 uint32_t Binary; in expandJBTF() local 82 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandJBTF() 83 writeData(Binary, 2, OS); in expandJBTF() 91 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandJBTF() 93 writeData(Binary, 4, OS); in expandJBTF() 101 uint32_t Binary; in expandNEG() local 107 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandNEG() 108 writeData(Binary, Size, OS); in expandNEG() 114 Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI); in expandNEG() 115 writeData(Binary, Size, OS); in expandNEG() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyMCCodeEmitter.cpp | 64 uint64_t Binary = getBinaryCodeForInstr(MI, Fixups, STI); in encodeInstruction() local 65 if (Binary < (1 << 8)) { in encodeInstruction() 66 OS << uint8_t(Binary); in encodeInstruction() 67 } else if (Binary < (1 << 16)) { in encodeInstruction() 68 OS << uint8_t(Binary >> 8); in encodeInstruction() 69 encodeULEB128(uint8_t(Binary), OS); in encodeInstruction() 70 } else if (Binary < (1 << 24)) { in encodeInstruction() 71 OS << uint8_t(Binary >> 16); in encodeInstruction() 72 encodeULEB128(uint16_t(Binary), OS); in encodeInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
| H A D | OffloadYAML.cpp | 46 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()
|
| H A D | OffloadEmitter.cpp | 21 bool yaml2offload(Binary &Doc, raw_ostream &Out, ErrorHandler EH) { in yaml2offload() 44 std::unique_ptr<MemoryBuffer> Binary = object::OffloadBinary::write(Image); in yaml2offload() local 48 std::copy(Binary->getBufferStart(), Binary->getBufferEnd(), in yaml2offload()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Object/ |
| H A D | Binary.h | 32 class Binary { 39 Binary(unsigned int Type, MemoryBufferRef Source); 92 Binary() = delete; 93 Binary(const Binary &other) = delete; 94 virtual ~Binary(); 182 DEFINE_ISA_CONVERSION_FUNCTIONS(Binary, LLVMBinaryRef) 187 Expected<std::unique_ptr<Binary>> createBinary(MemoryBufferRef Source, 239 Expected<OwningBinary<Binary>> createBinary(StringRef Path,
|
| H A D | OffloadBinary.h | 60 class OffloadBinary : public Binary { 104 static bool classof(const Binary *V) { return V->isOffloadFile(); } in classof() 132 : Binary(Binary::ID_Offload, Source), Buffer(Source.getBufferStart()), in OffloadBinary() 160 OffloadFile(std::unique_ptr<OffloadBinary> Binary, in OffloadFile() argument 162 : OwningBinary<OffloadBinary>(std::move(Binary), std::move(Buffer)) {} in OffloadFile()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMCCodeEmitter.cpp | 1019 uint32_t Binary = Imm12 & 0xfff; in getAddrModeImm12OpValue() local 1022 Binary |= (1 << 12); in getAddrModeImm12OpValue() 1023 Binary |= (Reg << 13); in getAddrModeImm12OpValue() 1024 return Binary; in getAddrModeImm12OpValue() 1050 uint32_t Binary = Imm & ((1U << Bits) - 1); in getT2ScaledImmOpValue() local 1053 Binary |= (1U << Bits); in getT2ScaledImmOpValue() 1054 return Binary; in getT2ScaledImmOpValue() 1142 uint32_t Binary = (Imm8 >> 2) & 0xff; in getT2AddrModeImm8s4OpValue() local 1145 Binary |= (1 << 8); in getT2AddrModeImm8s4OpValue() 1146 Binary |= (Reg << 9); in getT2AddrModeImm8s4OpValue() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Format/ |
| H A D | IntegerLiteralSeparatorFixer.cpp | 20 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()
|
| /openbsd-src/gnu/llvm/clang/tools/clang-offload-packager/ |
| H A D | ClangOffloadPackager.cpp | 149 const auto *Binary = Binaries[I].getBinary(); in unbundleImages() local 156 return Binary->getOffloadKind() == getOffloadKind(Value); in unbundleImages() 157 return Binary->getString(Key) == Value; in unbundleImages() 167 Binary->getTriple() + "-" + Binary->getArch() + "." + in unbundleImages() 169 getImageKindName(Binary->getImageKind())) in unbundleImages() 173 FileOutputBuffer::create(Filename, Binary->getImage().size()); in unbundleImages() 177 llvm::copy(Binary->getImage(), Output->getBufferStart()); in unbundleImages()
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/ |
| H A D | LVReaderHandler.cpp | 86 Expected<std::unique_ptr<Binary>> BinOrErr = createBinary(Buffer); in handleBuffer() 139 Binary &Binary) { in handleObject() argument 140 if (PdbOrObj Input = dyn_cast<ObjectFile>(&Binary)) in handleObject() 144 if (MachOUniversalBinary *Fat = dyn_cast<MachOUniversalBinary>(&Binary)) in handleObject() 147 if (Archive *Arch = dyn_cast<Archive>(&Binary)) in handleObject()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-objcopy/ |
| H A D | llvm-objcopy.cpp | 122 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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/ |
| H A D | RawMemProfReader.h | 103 RawMemProfReader(object::OwningBinary<object::Binary> &&Bin, bool KeepName) in RawMemProfReader() 104 : Binary(std::move(Bin)), KeepSymbolName(KeepName) {} in RawMemProfReader() 128 object::OwningBinary<object::Binary> Binary; variable
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-cfi-verify/lib/ |
| H A D | FileAnalysis.h | 91 FileAnalysis(object::OwningBinary<object::Binary> Binary); 197 object::OwningBinary<object::Binary> Binary;
|