[MIR] Add MIR parsing for heap alloc site instruction markers
authorAmy Huang <akhuang@google.com>
Tue, 5 Nov 2019 18:54:50 +0000 (10:54 -0800)
committerAmy Huang <akhuang@google.com>
Tue, 5 Nov 2019 20:57:45 +0000 (12:57 -0800)
commita078c77d72082bf6a06486849735cdeaab1374bc
tree3aaae290d3de2da3c0a64cbea79a665f139a79a2
parent743461090a2027058cd438ed643ed5ed939cf1ca
[MIR] Add MIR parsing for heap alloc site instruction markers

Summary:
This patch adds MIR parsing and printing for heap alloc markers, which were
added in D69136. They are printed as an operand similar to pre-/post-instr
symbols, with a heap-alloc-marker token and a metadata node.

Reviewers: rnk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69864
llvm/lib/CodeGen/MIRParser/MILexer.cpp
llvm/lib/CodeGen/MIRParser/MILexer.h
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/lib/CodeGen/MachineInstr.cpp
llvm/test/CodeGen/MIR/X86/instr-heap-alloc-operands.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/heap-alloc-markers.mir [new file with mode: 0644]