aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorStella Laurenzo <stellaraccident@gmail.com>2020-10-28 23:16:36 -0700
committerStella Laurenzo <stellaraccident@gmail.com>2020-10-29 17:50:13 -0700
commitc645ea5e29e5e42598c3be67a28698405e8bc563 (patch)
treeb78ff65e8db2eb8cdff2d6a66c79f02acfc0a9e7 /llvm/lib/Object/MachOObjectFile.cpp
parentb8c2d60df522d553a0752772aeffb4b2ad84678e (diff)
downloadllvm-c645ea5e29e5e42598c3be67a28698405e8bc563.zip
llvm-c645ea5e29e5e42598c3be67a28698405e8bc563.tar.gz
llvm-c645ea5e29e5e42598c3be67a28698405e8bc563.tar.bz2
Add InsertionPoint and context managers to the Python API.
* Removes index based insertion. All insertion now happens through the insertion point. * Introduces thread local context managers for implicit creation relative to an insertion point. * Introduces (but does not yet use) binding the Context to the thread local context stack. Intent is to refactor all methods to take context optionally and have them use the default if available. * Adds C APIs for mlirOperationGetParentOperation(), mlirOperationGetBlock() and mlirBlockGetTerminator(). * Removes an assert in PyOperation creation that was incorrectly constraining. There is already a TODO to rework the keepAlive field that it was guarding and without the assert, it is no worse than the current state. Differential Revision: https://reviews.llvm.org/D90368
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions