File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
include/llvm-dialects/Dialect Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,10 @@ template <typename ValueT> class OpMap final {
339
339
m_dialectOps.empty ();
340
340
}
341
341
342
+ bool emptyCoreOpcodes () const {
343
+ return m_coreOpcodes.empty ();
344
+ }
345
+
342
346
// --------------------------------------------------------------------------
343
347
// Iterator definitions.
344
348
// --------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ VisitorBase::VisitorBase(VisitorTemplate &&templ)
185
185
: m_strategy(templ.m_strategy),
186
186
m_projections(std::move(templ.m_projections)) {
187
187
if (m_strategy == VisitorStrategy::Default) {
188
- m_strategy = templ.m_opMap .empty () ? VisitorStrategy::ByFunctionDeclaration
189
- : VisitorStrategy::ByInstruction;
188
+ m_strategy = templ.m_opMap .emptyCoreOpcodes () ? VisitorStrategy::ByFunctionDeclaration
189
+ : VisitorStrategy::ByInstruction;
190
190
}
191
191
192
192
BuildHelper helper (*this , templ.m_handlers );
You can’t perform that action at this time.
0 commit comments