OSDN Git Service

[NFC] SwitchInst: Introduce wrapper for prof branch_weights handling
authorYevgeny Rouban <yevgeny.rouban@azul.com>
Fri, 24 May 2019 04:34:23 +0000 (04:34 +0000)
committerYevgeny Rouban <yevgeny.rouban@azul.com>
Fri, 24 May 2019 04:34:23 +0000 (04:34 +0000)
commit277c55c7bc57c93bb43657da45b45ce23307e776
tree2b9581b4e01b9ae29610763343a8d4fc4bdb5a4c
parentbcb935c90080872fee4badccc9add6789486af3c
[NFC] SwitchInst: Introduce wrapper for prof branch_weights handling

This patch introduces a wrapper class that re-implements
several mutator methods of SwitchInst to handle changes
of prof branch_weights metadata along with remove/add
switch case methods.
Subsequent patches will use this wrapper to implement
prof branch_weights metadata handling for SwitchInst.

Reviewers: davidx, eraman, reames, chandlerc
Reviewed By: davidx
Differential Revision: https://reviews.llvm.org/D62122

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361596 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp