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 {
339339 m_dialectOps.empty ();
340340 }
341341
342+ bool emptyCoreOpcodes () const {
343+ return m_coreOpcodes.empty ();
344+ }
345+
342346 // --------------------------------------------------------------------------
343347 // Iterator definitions.
344348 // --------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ VisitorBase::VisitorBase(VisitorTemplate &&templ)
185185 : m_strategy(templ.m_strategy),
186186 m_projections(std::move(templ.m_projections)) {
187187 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;
190190 }
191191
192192 BuildHelper helper (*this , templ.m_handlers );
You can’t perform that action at this time.
0 commit comments