Home
last modified time | relevance | path

Searched refs:YamlIO (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMIRYamlMapping.h205 static void mapping(IO &YamlIO, VirtualRegisterDefinition &Reg) {
206 YamlIO.mapRequired("id", Reg.ID);
207 YamlIO.mapRequired("class", Reg.Class);
208 YamlIO.mapOptional("preferred-register", Reg.PreferredRegister,
210 YamlIO.mapOptional("flags", Reg.RegisterFlags,
228 static void mapping(IO &YamlIO, MachineFunctionLiveIn &LiveIn) {
229 YamlIO.mapRequired("reg", LiveIn.Register);
230 YamlIO.mapOptional(
283 static void mapping(yaml::IO &YamlIO, MachineStackObject &Object) {
284 YamlIO.mapRequired("id", Object.ID);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIMachineFunctionInfo.h144 static void mapping(IO &YamlIO, SIArgument &A) {
145 if (YamlIO.outputting()) {
147 YamlIO.mapRequired("reg", A.RegisterName);
149 YamlIO.mapRequired("offset", A.StackOffset);
151 auto Keys = YamlIO.keys();
154 YamlIO.mapRequired("reg", A.RegisterName);
156 YamlIO.mapRequired("offset", A.StackOffset);
158 YamlIO.setError("missing required key 'reg' or 'offset'");
160 YamlIO.mapOptional("mask", A.Mask);
190 static void mapping(IO &YamlIO, SIArgumentInfo &AI) {
[all …]
H A DSIMachineFunctionInfo.cpp746 void yaml::SIMachineFunctionInfo::mappingImpl(yaml::IO &YamlIO) { in mappingImpl() argument
747 MappingTraits<SIMachineFunctionInfo>::mapping(YamlIO, *this); in mappingImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMachineFunctionInfo.h194 void mappingImpl(yaml::IO &YamlIO) override;
199 static void mapping(IO &YamlIO, WebAssemblyFunctionInfo &MFI) {
200 YamlIO.mapOptional("params", MFI.Params, std::vector<FlowStringValue>());
201 YamlIO.mapOptional("results", MFI.Results, std::vector<FlowStringValue>());
202 YamlIO.mapOptional("isCFGStackified", MFI.CFGStackified, false);
203 YamlIO.mapOptional("wasmEHFuncInfo", MFI.SrcToUnwindDest);
208 static void inputOne(IO &YamlIO, StringRef Key,
210 YamlIO.mapRequired(Key.str().c_str(),
214 static void output(IO &YamlIO, BBNumberMap &SrcToUnwindDest) {
216 YamlIO.mapRequired(std::to_string(KV.first).c_str(), KV.second);
H A DWebAssemblyMachineFunctionInfo.cpp151 void yaml::WebAssemblyFunctionInfo::mappingImpl(yaml::IO &YamlIO) { in mappingImpl() argument
152 MappingTraits<WebAssemblyFunctionInfo>::mapping(YamlIO, *this); in mappingImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86MachineFunctionInfo.h32 static void enumeration(IO &YamlIO, AMXProgModelEnum &Value) {
33 YamlIO.enumCase(Value, "None", AMXProgModelEnum::None);
34 YamlIO.enumCase(Value, "DirectReg", AMXProgModelEnum::DirectReg);
35 YamlIO.enumCase(Value, "ManagedRA", AMXProgModelEnum::ManagedRA);
45 void mappingImpl(yaml::IO &YamlIO) override;
50 static void mapping(IO &YamlIO, X86MachineFunctionInfo &MFI) {
51 YamlIO.mapOptional("amxProgModel", MFI.AMXProgModel);
H A DX86MachineFunctionInfo.cpp20 void yaml::X86MachineFunctionInfo::mappingImpl(yaml::IO &YamlIO) { in mappingImpl() argument
21 MappingTraits<X86MachineFunctionInfo>::mapping(YamlIO, *this); in mappingImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVMachineFunctionInfo.h33 void mappingImpl(yaml::IO &YamlIO) override;
38 static void mapping(IO &YamlIO, RISCVMachineFunctionInfo &MFI) {
39 YamlIO.mapOptional("varArgsFrameIndex", MFI.VarArgsFrameIndex);
40 YamlIO.mapOptional("varArgsSaveSize", MFI.VarArgsSaveSize);
H A DRISCVMachineFunctionInfo.cpp83 void yaml::RISCVMachineFunctionInfo::mappingImpl(yaml::IO &YamlIO) { in mappingImpl() argument
84 MappingTraits<RISCVMachineFunctionInfo>::mapping(YamlIO, *this); in mappingImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMMachineFunctionInfo.cpp19 void yaml::ARMFunctionInfo::mappingImpl(yaml::IO &YamlIO) { in mappingImpl() argument
20 MappingTraits<ARMFunctionInfo>::mapping(YamlIO, *this); in mappingImpl()
H A DARMMachineFunctionInfo.h314 void mappingImpl(yaml::IO &YamlIO) override;
319 static void mapping(IO &YamlIO, ARMFunctionInfo &MFI) {
320 YamlIO.mapOptional("isLRSpilled", MFI.LRSpilled);
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MachineFunctionInfo.h607 void mappingImpl(yaml::IO &YamlIO) override;
612 static void mapping(IO &YamlIO, AArch64FunctionInfo &MFI) {
613 YamlIO.mapOptional("hasRedZone", MFI.HasRedZone);
614 YamlIO.mapOptional("stackSizeSVE", MFI.StackSizeSVE);
H A DAArch64MachineFunctionInfo.cpp33 void yaml::AArch64FunctionInfo::mappingImpl(yaml::IO &YamlIO) { in mappingImpl() argument
34 MappingTraits<AArch64FunctionInfo>::mapping(YamlIO, *this); in mappingImpl()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFYAML.cpp1237 NormalizedOther(IO &IO) : YamlIO(IO) {} in NormalizedOther()
1238 NormalizedOther(IO &IO, std::optional<uint8_t> Original) : YamlIO(IO) { in NormalizedOther()
1242 const auto *Object = static_cast<ELFYAML::Object *>(YamlIO.getContext()); in NormalizedOther()
1262 const auto *Object = static_cast<ELFYAML::Object *>(YamlIO.getContext()); in toValue()
1273 YamlIO.setError("an unknown value is used for symbol's 'Other' field: " + in toValue()
1303 if (!YamlIO.outputting()) in getFlags()
1325 IO &YamlIO; member