aboutsummaryrefslogtreecommitdiff
path: root/backend/lib
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-29 00:20:33 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-29 00:20:33 +0800
commit88ba4ba8275ce5da4b9c40da0995f941cedcd410 (patch)
tree57223ee17164dbf23a01ed366208a7ae3830d55f /backend/lib
parentdf50ab8cd7739745232e7b5cece015ff71cd4e67 (diff)
downloadrcc-project-88ba4ba8275ce5da4b9c40da0995f941cedcd410.tar.gz
rcc-project-88ba4ba8275ce5da4b9c40da0995f941cedcd410.tar.xz
[TableGen] Preserve optional target description values
Diffstat (limited to 'backend/lib')
-rw-r--r--backend/lib/TableGen/Parser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/lib/TableGen/Parser.cpp b/backend/lib/TableGen/Parser.cpp
index a4e2dfe..1044309 100644
--- a/backend/lib/TableGen/Parser.cpp
+++ b/backend/lib/TableGen/Parser.cpp
@@ -1517,12 +1517,12 @@ private:
"selection operand renderer captured immediate");
if (!Index)
return false;
- Renderer.CapturedImmediateOperand = *Index;
+ Renderer.CapturedImmediateOperand = Index;
} else {
const auto Value = signedInteger(*ImmediateNode, "selection operand renderer immediate");
if (!Value)
return false;
- Renderer.Immediate = *Value;
+ Renderer.Immediate = Value;
}
if (const yaml::Node *TransformNode = optionalNode(*Element, "transform")) {
const auto Transform = scalar(*TransformNode, "selection operand renderer transform");
@@ -2057,7 +2057,7 @@ private:
const auto Value = unsignedInteger32(*Commutable, "macro fusion commutable second use");
if (!Value)
return false;
- Result.CommutableSecondUseOperand = *Value;
+ Result.CommutableSecondUseOperand = Value;
}
return true;
}
@@ -2134,7 +2134,7 @@ private:
const auto Source = unsignedInteger32(*SourceNode, "MC pseudo source operand");
if (!Source)
return false;
- Operand.SourceOperandIndex = *Source;
+ Operand.SourceOperandIndex = Source;
}
if (const yaml::Node *RegisterNode = optionalNode(*Element, "register")) {
const auto Register = scalar(*RegisterNode, "MC pseudo fixed register");
@@ -2146,7 +2146,7 @@ private:
const auto Immediate = signedInteger(*ImmediateNode, "MC pseudo fixed immediate");
if (!Immediate)
return false;
- Operand.Immediate = *Immediate;
+ Operand.Immediate = Immediate;
}
Result.push_back(std::move(Operand));
}