@@ -4,20 +4,21 @@ Instructions Matchers are functions that build a instruction matcher to match ag
4
4
5
5
### General Instructions Matchers functions
6
6
7
- | Function | Parameters | Return | Description |
8
- | :-------------: | :----------------------------------: | :---------: | :----------------------------------------------------------------------: |
9
- | m_inst | (i: Instruction, m: InstMatcher) | Bool | Check if instruction is matched with Matcher |
10
- | m_extract_value | (m : InstMatcher?, indices: ...Int?) | InstMatcher | Build Inst Matcher that match ExtractValue Instruction |
11
- | m_inst_type | (m : TypeMatcher?) | InstMatcher | Build Inst Matcher that match instruction returned type |
12
- | m_any_inst | () | InstMatcher | Build Inst Matcher that match any Instruction |
13
- | m_poison | () | InstMatcher | Build Inst Matcher that match poison value |
14
- | m_label | (n : Text?) | InstMatcher | Build Inst Matcher that match Label with optional name |
15
- | m_argument | (n : Text?, m : TypeMatcher?) | InstMatcher | Build Inst Matcher that match Argument value with optional name and type |
16
- | m_return | (m : InstMatcher?) | InstMatcher | Build Inst Matcher that match Return Instruction |
17
- | m_unreachable | () | InstMatcher | Build Inst Matcher that match unreachable Instruction |
18
- | m_unused | (m : InstMatcher?) | InstMatcher | Build Inst Matcher that match instruction that unused at all |
19
- | m_has_one_use | (m : InstMatcher?) | InstMatcher | Build Inst Matcher that match instruction that has exactly on use |
20
- | m_has_n_uses | (m : InstMatcher?, n: Int) | InstMatcher | Build Inst Matcher that match instruction that has n number of uses |
7
+ | Function | Parameters | Return | Description |
8
+ | :---------------: | :----------------------------------: | :---------: | :----------------------------------------------------------------------: |
9
+ | m_inst | (i: Instruction, m: InstMatcher) | Bool | Check if instruction is matched with Matcher |
10
+ | m_extract_value | (m : InstMatcher?, indices: ...Int?) | InstMatcher | Build Inst Matcher that match ExtractValue Instruction |
11
+ | m_inst_type | (m : TypeMatcher?) | InstMatcher | Build Inst Matcher that match instruction returned type |
12
+ | m_any_inst | () | InstMatcher | Build Inst Matcher that match any Instruction |
13
+ | m_poison | () | InstMatcher | Build Inst Matcher that match poison value |
14
+ | m_label | (n : Text?) | InstMatcher | Build Inst Matcher that match Label with optional name |
15
+ | m_argument | (n : Text?, m : TypeMatcher?) | InstMatcher | Build Inst Matcher that match Argument value with optional name and type |
16
+ | m_return | (m : InstMatcher?) | InstMatcher | Build Inst Matcher that match Return Instruction |
17
+ | m_unreachable | () | InstMatcher | Build Inst Matcher that match unreachable Instruction |
18
+ | m_unused | (m : InstMatcher?) | InstMatcher | Build Inst Matcher that match instruction that unused at all |
19
+ | m_has_one_use | (m : InstMatcher?) | InstMatcher | Build Inst Matcher that match instruction that has exactly on use |
20
+ | m_has_n_uses | (m : InstMatcher?, n: Int) | InstMatcher | Build Inst Matcher that match instruction that has n number of uses |
21
+ | m_operands_number | (n: Int) | InstMatcher | Built Inst Matcher that match number of instruction operands |
21
22
22
23
---
23
24
0 commit comments