summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
diff options
context:
space:
mode:
authorMatt Davis <Matthew.Davis@sony.com>2018-05-07 18:29:15 +0000
committerMatt Davis <Matthew.Davis@sony.com>2018-05-07 18:29:15 +0000
commit21a8d3230736346611992ecca6e15718ed0368fc (patch)
tree2debf253269ca0e90a4cee2f684a264a4e86dddd /llvm/tools/llvm-objcopy/llvm-objcopy.cpp
parente480ed0b9f3b86c77efbf84505baf92cd95554ed (diff)
downloadbcm5719-llvm-21a8d3230736346611992ecca6e15718ed0368fc.tar.gz
bcm5719-llvm-21a8d3230736346611992ecca6e15718ed0368fc.zip
[llvm-mca] Avoid exposing index values in the MCA interfaces.
Summary: This patch eliminates many places where we originally needed to pass index values to represent an instruction. The index is still used as a key, in various parts of MCA. I'm not comfortable eliminating the index just yet. By burying the index in the instruction, we can avoid exposing that value in many places. Eventually, we should consider removing the Instructions list in the Backend all together, it's only used to hold and reclaim the memory for the allocated Instruction instances. Instead we could pass around a smart pointer. But that's a separate discussion/patch. Reviewers: andreadb, courbet, RKSimon Reviewed By: andreadb Subscribers: javed.absar, tschuett, gbedwell, llvm-commits Differential Revision: https://reviews.llvm.org/D46367 llvm-svn: 331660
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud