summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorHanhan Wang <hanchung@google.com>2019-11-12 18:58:36 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-12 18:59:15 -0800
commit85d7fb3324a6442e865c87ea766992ab096f8859 (patch)
tree6881e629ceaa3acf9c97a62d3454489dad302973 /mlir/lib/IR/Module.cpp
parent2be53603e9296e86ae6ef529c37053e198560f60 (diff)
downloadbcm5719-llvm-85d7fb3324a6442e865c87ea766992ab096f8859.tar.gz
bcm5719-llvm-85d7fb3324a6442e865c87ea766992ab096f8859.zip
Make VariableOp instructions be in the first block in the function.
Since VariableOp is serialized during processBlock, we add two more fields, `functionHeader` and `functionBody`, to collect instructions for a function. After all the blocks have been processed, we append them to the `functions`. Also, fix a bug in processGlobalVariableOp. The global variables should be encoded into `typesGlobalValues`. PiperOrigin-RevId: 280105366
Diffstat (limited to 'mlir/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud