File indexing completed on 2026-05-10 08:43:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef LLVM_INTERFACESTUB_IFSHANDLER_H
0016 #define LLVM_INTERFACESTUB_IFSHANDLER_H
0017
0018 #include "IFSStub.h"
0019 #include "llvm/Support/Error.h"
0020 #include "llvm/Support/VersionTuple.h"
0021 #include <memory>
0022 #include <optional>
0023 #include <string>
0024 #include <vector>
0025
0026 namespace llvm {
0027
0028 class raw_ostream;
0029 class Error;
0030 class StringRef;
0031
0032 namespace ifs {
0033
0034 struct IFSStub;
0035
0036 const VersionTuple IFSVersionCurrent(3, 0);
0037
0038
0039 Expected<std::unique_ptr<IFSStub>> readIFSFromBuffer(StringRef Buf);
0040
0041
0042 Error writeIFSToOutputStream(raw_ostream &OS, const IFSStub &Stub);
0043
0044
0045 Error overrideIFSTarget(IFSStub &Stub, std::optional<IFSArch> OverrideArch,
0046 std::optional<IFSEndiannessType> OverrideEndianness,
0047 std::optional<IFSBitWidthType> OverrideBitWidth,
0048 std::optional<std::string> OverrideTriple);
0049
0050
0051 Error validateIFSTarget(IFSStub &Stub, bool ParseTriple);
0052
0053
0054 void stripIFSTarget(IFSStub &Stub, bool StripTriple, bool StripArch,
0055 bool StripEndianness, bool StripBitWidth);
0056
0057 Error filterIFSSyms(IFSStub &Stub, bool StripUndefined,
0058 const std::vector<std::string> &Exclude = {});
0059
0060
0061 IFSTarget parseTriple(StringRef TripleStr);
0062
0063 }
0064 }
0065
0066 #endif