llvm.org GIT mirror llvm / 6588d8d
Symbolize operand bundle blocks for bcanalyzer Reviewers: joker.eph Subscribers: mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D19523 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267524 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 3 years ago
2 changed file(s) with 35 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llvm-bcanalyzer -dump -disable-histogram | FileCheck %s
1
2 ; CHECK:
3 ; CHECK-NEXT:
4 ; CHECK-NEXT:
5 ; CHECK-NEXT:
6 ; CHECK-NEXT:
7 ; CHECK-NEXT:
8 ; CHECK-NEXT:
9
10 ; CHECK:
11 ; CHECK:
12 ; CHECK:
13 ; CHECK-NOT:
14 ; CHECK:
15
16 ; CHECK: Block ID #{{[0-9]+}} (OPERAND_BUNDLE_TAGS_BLOCK)
17
18 declare void @callee0()
19
20 define void @f0(i32* %ptr) {
21 entry:
22 %l = load i32, i32* %ptr
23 %x = add i32 42, 1
24 call void @callee0() [ "foo"(i32 42, i64 100, i32 %x), "bar"(float 0.000000e+00, i64 100, i32 %l) ]
25 ret void
26 }
104104
105105 switch (BlockID) {
106106 default: return nullptr;
107 case bitc::OPERAND_BUNDLE_TAGS_BLOCK_ID: return "OPERAND_BUNDLE_TAGS_BLOCK";
107108 case bitc::MODULE_BLOCK_ID: return "MODULE_BLOCK";
108109 case bitc::PARAMATTR_BLOCK_ID: return "PARAMATTR_BLOCK";
109110 case bitc::PARAMATTR_GROUP_BLOCK_ID: return "PARAMATTR_GROUP_BLOCK_ID";
278279 STRINGIFY_CODE(FUNC_CODE, INST_CALL)
279280 STRINGIFY_CODE(FUNC_CODE, DEBUG_LOC)
280281 STRINGIFY_CODE(FUNC_CODE, INST_GEP)
282 STRINGIFY_CODE(FUNC_CODE, OPERAND_BUNDLE)
281283 }
282284 case bitc::VALUE_SYMTAB_BLOCK_ID:
283285 switch (CodeID) {
363365 case bitc::USELIST_CODE_DEFAULT: return "USELIST_CODE_DEFAULT";
364366 case bitc::USELIST_CODE_BB: return "USELIST_CODE_BB";
365367 }
368
369 case bitc::OPERAND_BUNDLE_TAGS_BLOCK_ID:
370 switch(CodeID) {
371 default: return nullptr;
372 case bitc::OPERAND_BUNDLE_TAG: return "OPERAND_BUNDLE_TAG";
373 }
366374 }
367375 #undef STRINGIFY_CODE
368376 }