The intrinsic family Intrinsic.reduceAnd
- Area
- LLVM IR constructs
- Kind
- construct
- Level
- L1 (modelled in Lean). Next: L2 needs a recorded GPU run (a conformance test, not a proof).
- Evidence present above the level
- None above the level.
- Reference
LLVM LangRef 24.0.0git #llvm-vector-reduce-and-intrinsic- Quote
The ‘llvm.vector.reduce.and.*’ intrinsics do a bitwise AND reduction of a vector, returning the result as a scalar.
- Lean declarations
MojoProof.LLVM.Intrinsic.ofDeclMojoProof.LLVM.IntrinsicMojoProof.Sem.intrinsic
- Corpus files
tests/corpus/layernorm/ln_rowwise_block_t0_r1_ax0_w4_bs1024_43a5be9b.nvptx.lltests/corpus/layernorm/ln_rowwise_block_t0_r1_ax0_w4_bs128_2d84049c.nvptx.lltests/corpus/layernorm/ln_rowwise_block_t0_r1_ax0_w4_bs256_b2a56671.nvptx.lltests/corpus/layernorm/ln_rowwise_block_t0_r1_ax0_w4_bs64_3aca57b2.nvptx.lltests/corpus/layernorm/ln_rowwise_block_t0_r2_ax1_w4_bs1024_e8108490.nvptx.ll
5 kernel files (
.ll) in the corpus.- Tests
MojoProofTest.RuleMojoProofTest.CorpusMojoProofTest.Modelled
- Upstream issue
- None filed.
- Depends on
- No other card.
Rule
LangRef's section on the intrinsic (the quote is the section's first sentence). The importer accepts a declaration of this family only if Intrinsic.ofDecl recognizes its name and signature (Intrinsic.name, Intrinsic.sig). The semantics gives a call its meaning in MojoProof.Sem.intrinsic. MojoProofTest/Modelled.lean runs a kernel of a call (its row Intrinsic.reduceAnd), and the run returns. The block checker (MojoProof/Sym/Rules.lean): refused: SState.stmt takes calls of special registers and of minmax only.
Corpus
18 of the 116 corpus files use it (18 uses); corpus lists the first 5 in path order. The members called: llvm.vector.reduce.and.v2i1, llvm.vector.reduce.and.v4i1.
Out of scope
Members of the family the corpus does not call. That the semantics gives the family the meaning LLVM gives it rests on reading LangRef (docs/TRUST.md T7).
Open
L2 needs a recorded GPU run of a test of the construct; there is none.