Fix for shared library build. Moved the buildDispatchTable function from the .cpp the header file. Remove .cpp file since no longer needed
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/include/flang/Optimizer/Support/Utils.h | ||
---|---|---|
18 | You seem to have a dependency from support on the dialect? Shouldn't it be the other way around? |
flang/include/flang/Optimizer/Support/Utils.h | ||
---|---|---|
18 |
Yes, this looks worrisome. I guess it should be okay while there is no link dependency on libFIRDialect. I am approving this for the sake of resolving the buildbot issue. |
flang/include/flang/Optimizer/Support/Utils.h | ||
---|---|---|
18 | We already have InternalNames.cpp dependending on FIRType.h, InitFIR.cpp dependending on FIRDialect.h and as you point out Utils.h depending on FIRType.h. FIROps.h depends on the same code generation step as FIRType.h. So this is not really adding anything new. DEPENDS FIROpsIncGen There is also a dependency of FIRDialect to FIRSupport at link time. That's unfortunate but it cannot be addressed by this patch. |
You seem to have a dependency from support on the dialect? Shouldn't it be the other way around?