This commit changes the logic of getBuiltinVariableValue to get
or create the builtin variable in the nearest symbol table. This
will allow us to use this function in other partial conversion
cases where we haven't created the spv.module yet.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Unit tests: pass. 62195 tests passed, 0 failed and 815 were skipped.
clang-tidy: pass.
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp | ||
---|---|---|
281 | SymbolTable.cpp defines a static method for this(getNearestSymbolTable) that we could likely expose. |
mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp | ||
---|---|---|
281 | Good point! https://reviews.llvm.org/D73433 |
SymbolTable.cpp defines a static method for this(getNearestSymbolTable) that we could likely expose.