[PATCH] D73416: [mlir][spirv] Create builtin variable in nearest symbol table
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 26 02:34:59 PST 2020
rriddle added inline comments.
================
Comment at: mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp:235
+ Operation *parent = op->getParentOp();
+ while (parent && !parent->hasTrait<OpTrait::SymbolTable>())
+ parent = parent->getParentOp();
----------------
SymbolTable.cpp defines a static method for this(getNearestSymbolTable) that we could likely expose.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73416/new/
https://reviews.llvm.org/D73416
More information about the llvm-commits
mailing list