aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorGeorge Mitenkov <georgemitenk0v@gmail.com>2020-07-24 09:41:22 +0300
committerGeorge Mitenkov <georgemitenk0v@gmail.com>2020-07-24 10:11:13 +0300
commit99d03f03919498b688a8921b2ec669057772803f (patch)
tree856db5b82abccd4d7b693e6d6a06a780b1b1e72c /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parent205e8b7e89e46e51909a3270b94f277a4c8863aa (diff)
downloadllvm-99d03f03919498b688a8921b2ec669057772803f.zip
llvm-99d03f03919498b688a8921b2ec669057772803f.tar.gz
llvm-99d03f03919498b688a8921b2ec669057772803f.tar.bz2
[MLIR][LLVMDialect] Added branch weights attribute to CondBrOp
This patch introduces branch weights metadata to `llvm.cond_br` op in LLVM Dialect. It is modelled as optional `ElementsAttr`, for example: ``` llvm.cond_br %cond weights(dense<[1, 3]> : vector<2xi32>), ^bb1, ^bb2 ``` When exporting to proper LLVM, this attribute is transformed into metadata node. The test for metadata creation is added to `../Target/llvmir.mlir`. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D83658
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions