diff options
author | Chris Lattner <chrisl@clattner-0291.local> | 2020-03-15 17:13:59 -0700 |
---|---|---|
committer | Chris Lattner <clattner@nondot.org> | 2020-03-23 08:58:05 -0700 |
commit | 596da62d21ede197dd95eca5146d2ddf0497275c (patch) | |
tree | 3d0c07fdedd7604e18c1b405a95866261d22ff3e /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 5ff5ddd0adc89f8827b345577bbb3e7eb74fc644 (diff) | |
download | llvm-596da62d21ede197dd95eca5146d2ddf0497275c.zip llvm-596da62d21ede197dd95eca5146d2ddf0497275c.tar.gz llvm-596da62d21ede197dd95eca5146d2ddf0497275c.tar.bz2 |
Add support for custom op parser/printer hooks to know about result names.
Summary:
This allows the custom parser/printer hooks to do interesting things with
the SSA names. This patch:
- Adds a new 'getResultName' method to OpAsmParser that allows a parser
implementation to get information about its result names, along with
a getNumResults() method that allows op parser impls to know how many
results are expected.
- Adds a OpAsmPrinter::printOperand overload that takes an explicit stream.
- Adds a test.string_attr_pretty_name operation that uses these hooks to
do fancy things with the result name.
Reviewers: rriddle!
Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76205
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions