Lines Matching refs:YamlIO
204 static void mapping(IO &YamlIO, VirtualRegisterDefinition &Reg) {
205 YamlIO.mapRequired("id", Reg.ID);
206 YamlIO.mapRequired("class", Reg.Class);
207 YamlIO.mapOptional("preferred-register", Reg.PreferredRegister,
225 static void mapping(IO &YamlIO, MachineFunctionLiveIn &LiveIn) {
226 YamlIO.mapRequired("reg", LiveIn.Register);
227 YamlIO.mapOptional(
280 static void mapping(yaml::IO &YamlIO, MachineStackObject &Object) {
281 YamlIO.mapRequired("id", Object.ID);
282 YamlIO.mapOptional("name", Object.Name,
284 YamlIO.mapOptional(
287 YamlIO.mapOptional("offset", Object.Offset, (int64_t)0);
289 YamlIO.mapRequired("size", Object.Size);
290 YamlIO.mapOptional("alignment", Object.Alignment, std::nullopt);
291 YamlIO.mapOptional("stack-id", Object.StackID, TargetStackID::Default);
292 YamlIO.mapOptional("callee-saved-register", Object.CalleeSavedRegister,
294 YamlIO.mapOptional("callee-saved-restored", Object.CalleeSavedRestored,
296 YamlIO.mapOptional("local-offset", Object.LocalOffset,
298 YamlIO.mapOptional("debug-info-variable", Object.DebugVar,
300 YamlIO.mapOptional("debug-info-expression", Object.DebugExpr,
302 YamlIO.mapOptional("debug-info-location", Object.DebugLoc,
324 static void mapping(yaml::IO &YamlIO, EntryValueObject &Object) {
325 YamlIO.mapRequired("entry-value-register", Object.EntryValueRegister);
326 YamlIO.mapRequired("debug-info-variable", Object.DebugVar);
327 YamlIO.mapRequired("debug-info-expression", Object.DebugExpr);
328 YamlIO.mapRequired("debug-info-location", Object.DebugLoc);
384 static void mapping(yaml::IO &YamlIO, FixedMachineStackObject &Object) {
385 YamlIO.mapRequired("id", Object.ID);
386 YamlIO.mapOptional(
389 YamlIO.mapOptional("offset", Object.Offset, (int64_t)0);
390 YamlIO.mapOptional("size", Object.Size, (uint64_t)0);
391 YamlIO.mapOptional("alignment", Object.Alignment, std::nullopt);
392 YamlIO.mapOptional("stack-id", Object.StackID, TargetStackID::Default);
394 YamlIO.mapOptional("isImmutable", Object.IsImmutable, false);
395 YamlIO.mapOptional("isAliased", Object.IsAliased, false);
397 YamlIO.mapOptional("callee-saved-register", Object.CalleeSavedRegister,
399 YamlIO.mapOptional("callee-saved-restored", Object.CalleeSavedRestored,
401 YamlIO.mapOptional("debug-info-variable", Object.DebugVar,
403 YamlIO.mapOptional("debug-info-expression", Object.DebugExpr,
405 YamlIO.mapOptional("debug-info-location", Object.DebugLoc,
490 static void mapping(IO &YamlIO, CallSiteInfo::ArgRegPair &ArgReg) {
491 YamlIO.mapRequired("arg", ArgReg.ArgNo);
492 YamlIO.mapRequired("reg", ArgReg.Reg);
506 static void mapping(IO &YamlIO, CallSiteInfo &CSInfo) {
507 YamlIO.mapRequired("bb", CSInfo.CallLocation.BlockNum);
508 YamlIO.mapRequired("offset", CSInfo.CallLocation.Offset);
509 YamlIO.mapOptional("fwdArgRegs", CSInfo.ArgForwardingRegs,
531 static void mapping(IO &YamlIO, DebugValueSubstitution &Sub) {
532 YamlIO.mapRequired("srcinst", Sub.SrcInst);
533 YamlIO.mapRequired("srcop", Sub.SrcOp);
534 YamlIO.mapRequired("dstinst", Sub.DstInst);
535 YamlIO.mapRequired("dstop", Sub.DstOp);
536 YamlIO.mapRequired("subreg", Sub.Subreg);
562 static void mapping(IO &YamlIO, MachineConstantPoolValue &Constant) {
563 YamlIO.mapRequired("id", Constant.ID);
564 YamlIO.mapOptional("value", Constant.Value, StringValue());
565 YamlIO.mapOptional("alignment", Constant.Alignment, std::nullopt);
566 YamlIO.mapOptional("isTargetSpecific", Constant.IsTargetSpecific, false);
589 static void mapping(IO &YamlIO, MachineJumpTable::Entry &Entry) {
590 YamlIO.mapRequired("id", Entry.ID);
591 YamlIO.mapOptional("blocks", Entry.Blocks, std::vector<FlowStringValue>());
611 static void mapping(IO &YamlIO, MachineJumpTable &JT) {
612 YamlIO.mapRequired("kind", JT.Kind);
613 YamlIO.mapOptional("entries", JT.Entries,
673 static void mapping(IO &YamlIO, MachineFrameInfo &MFI) {
674 YamlIO.mapOptional("isFrameAddressTaken", MFI.IsFrameAddressTaken, false);
675 YamlIO.mapOptional("isReturnAddressTaken", MFI.IsReturnAddressTaken, false);
676 YamlIO.mapOptional("hasStackMap", MFI.HasStackMap, false);
677 YamlIO.mapOptional("hasPatchPoint", MFI.HasPatchPoint, false);
678 YamlIO.mapOptional("stackSize", MFI.StackSize, (uint64_t)0);
679 YamlIO.mapOptional("offsetAdjustment", MFI.OffsetAdjustment, (int)0);
680 YamlIO.mapOptional("maxAlignment", MFI.MaxAlignment, (unsigned)0);
681 YamlIO.mapOptional("adjustsStack", MFI.AdjustsStack, false);
682 YamlIO.mapOptional("hasCalls", MFI.HasCalls, false);
683 YamlIO.mapOptional("stackProtector", MFI.StackProtector,
685 YamlIO.mapOptional("functionContext", MFI.FunctionContext,
687 YamlIO.mapOptional("maxCallFrameSize", MFI.MaxCallFrameSize, (unsigned)~0);
688 YamlIO.mapOptional("cvBytesOfCalleeSavedRegisters",
690 YamlIO.mapOptional("hasOpaqueSPAdjustment", MFI.HasOpaqueSPAdjustment,
692 YamlIO.mapOptional("hasVAStart", MFI.HasVAStart, false);
693 YamlIO.mapOptional("hasMustTailInVarArgFunc", MFI.HasMustTailInVarArgFunc,
695 YamlIO.mapOptional("hasTailCall", MFI.HasTailCall, false);
696 YamlIO.mapOptional("isCalleeSavedInfoValid", MFI.IsCalleeSavedInfoValid,
698 YamlIO.mapOptional("localFrameSize", MFI.LocalFrameSize, (unsigned)0);
699 YamlIO.mapOptional("savePoint", MFI.SavePoint,
701 YamlIO.mapOptional("restorePoint", MFI.RestorePoint,
710 virtual void mappingImpl(IO &YamlIO) {}
714 static void mapping(IO &YamlIO, std::unique_ptr<MachineFunctionInfo> &MFI) {
716 MFI->mappingImpl(YamlIO);
762 static void mapping(IO &YamlIO, MachineFunction &MF) {
763 YamlIO.mapRequired("name", MF.Name);
764 YamlIO.mapOptional("alignment", MF.Alignment, std::nullopt);
765 YamlIO.mapOptional("exposesReturnsTwice", MF.ExposesReturnsTwice, false);
766 YamlIO.mapOptional("legalized", MF.Legalized, false);
767 YamlIO.mapOptional("regBankSelected", MF.RegBankSelected, false);
768 YamlIO.mapOptional("selected", MF.Selected, false);
769 YamlIO.mapOptional("failedISel", MF.FailedISel, false);
770 YamlIO.mapOptional("tracksRegLiveness", MF.TracksRegLiveness, false);
771 YamlIO.mapOptional("hasWinCFI", MF.HasWinCFI, false);
773 YamlIO.mapOptional("callsEHReturn", MF.CallsEHReturn, false);
774 YamlIO.mapOptional("callsUnwindInit", MF.CallsUnwindInit, false);
775 YamlIO.mapOptional("hasEHCatchret", MF.HasEHCatchret, false);
776 YamlIO.mapOptional("hasEHScopes", MF.HasEHScopes, false);
777 YamlIO.mapOptional("hasEHFunclets", MF.HasEHFunclets, false);
778 YamlIO.mapOptional("isOutlined", MF.IsOutlined, false);
779 YamlIO.mapOptional("debugInstrRef", MF.UseDebugInstrRef, false);
781 YamlIO.mapOptional("failsVerification", MF.FailsVerification, false);
782 YamlIO.mapOptional("tracksDebugUserValues", MF.TracksDebugUserValues,
784 YamlIO.mapOptional("registers", MF.VirtualRegisters,
786 YamlIO.mapOptional("liveins", MF.LiveIns,
788 YamlIO.mapOptional("calleeSavedRegisters", MF.CalleeSavedRegisters,
790 YamlIO.mapOptional("frameInfo", MF.FrameInfo, MachineFrameInfo());
791 YamlIO.mapOptional("fixedStack", MF.FixedStackObjects,
793 YamlIO.mapOptional("stack", MF.StackObjects,
795 YamlIO.mapOptional("entry_values", MF.EntryValueObjects,
797 YamlIO.mapOptional("callSites", MF.CallSitesInfo,
799 YamlIO.mapOptional("debugValueSubstitutions", MF.DebugValueSubstitutions,
801 YamlIO.mapOptional("constants", MF.Constants,
803 YamlIO.mapOptional("machineFunctionInfo", MF.MachineFuncInfo);
804 if (!YamlIO.outputting() || !MF.JumpTableInfo.Entries.empty())
805 YamlIO.mapOptional("jumpTable", MF.JumpTableInfo, MachineJumpTable());
806 if (!YamlIO.outputting() || !MF.MachineMetadataNodes.empty())
807 YamlIO.mapOptional("machineMetadataNodes", MF.MachineMetadataNodes,
809 YamlIO.mapOptional("body", MF.Body, BlockStringValue());