aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2018-12-21 22:48:50 +0000
committerMircea Trofin <mtrofin@google.com>2018-12-21 22:48:50 +0000
commitb53eeb6f4c824fcdfcb93dd9325a603c005660a7 (patch)
tree584b0989c4d54efc27f9a41e0c3430741f39fd7d /clang/lib/CodeGen/CodeGenModule.cpp
parent8d20cfdfc6c26533a87c525cb6e8dbc50a65e036 (diff)
downloadllvm-b53eeb6f4c824fcdfcb93dd9325a603c005660a7.zip
llvm-b53eeb6f4c824fcdfcb93dd9325a603c005660a7.tar.gz
llvm-b53eeb6f4c824fcdfcb93dd9325a603c005660a7.tar.bz2
[llvm] API for encoding/decoding DWARF discriminators.
Summary: Added a pair of APIs for encoding/decoding the 3 components of a DWARF discriminator described in http://lists.llvm.org/pipermail/llvm-dev/2016-October/106532.html: the base discriminator, the duplication factor (useful in profile-guided optimization) and the copy index (used to identify copies of code in cases like loop unrolling) The encoding packs 3 unsigned values in 32 bits. This CL addresses 2 issues: - communicates overflow back to the user - supports encoding all 3 components together. Current APIs assume a sequencing of events. For example, creating a new discriminator based on an existing one by changing the base discriminator was not supported. Reviewers: davidxl, danielcdh, wmi, dblaikie Reviewed By: dblaikie Subscribers: zzheng, dmgreen, aprantl, JDevlieghere, llvm-commits Differential Revision: https://reviews.llvm.org/D55681 llvm-svn: 349973
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions