aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2024-09-04 14:58:01 -0700
committerGitHub <noreply@github.com>2024-09-04 14:58:01 -0700
commit660cc98647677815a3f5d97d00220071d8cf7a4f (patch)
tree97ced5182f7c0df7c4b2db67f10b261fb6ca6ba1 /llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
parentdcf0160bd61d150e7b94067fcd991b466a361b08 (diff)
downloadllvm-660cc98647677815a3f5d97d00220071d8cf7a4f.zip
llvm-660cc98647677815a3f5d97d00220071d8cf7a4f.tar.gz
llvm-660cc98647677815a3f5d97d00220071d8cf7a4f.tar.bz2
[TableGen] Add `CodeGenIntrinsicsMap` for on-demand intrinsic creation (#107100)
- Add class `CodeGenIntrinsicMap` for on-demand creation of `CodeGenIntrinsic`. - Add class `CodeGenIntrinsicContext` to capture global information required to build `CodeGenIntrinsic` objects. - Adopt GlobalISel PatternParser and SearchableTableEmitter to use it.
Diffstat (limited to 'llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
index a8cecca..df3f72ff 100644
--- a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
@@ -3160,10 +3160,8 @@ void TreePattern::dump() const { print(errs()); }
CodeGenDAGPatterns::CodeGenDAGPatterns(RecordKeeper &R,
PatternRewriterFn PatternRewriter)
- : Records(R), Target(R), LegalVTS(Target.getLegalValueTypes()),
- PatternRewriter(PatternRewriter) {
-
- Intrinsics = CodeGenIntrinsicTable(Records);
+ : Records(R), Target(R), Intrinsics(R),
+ LegalVTS(Target.getLegalValueTypes()), PatternRewriter(PatternRewriter) {
ParseNodeInfo();
ParseNodeTransforms();
ParseComplexPatterns();