seal5.tools.cdsl2llvm

PatternGen utils for seal5.

Functions

build_llc(src, dest[, use_ninja, verbose, ...])

Build llc tool.

build_pattern_gen(src, dest[, use_ninja, ...])

Build PatternGen tool.

combine_test_fragments(ll_file, instr, ...)

convert_ll_to_gmir(build_dir, src, dest[, ...])

Convert LLVM-IR file to GMIR file.

get_legalizer_split_patch(llvm_dir, temp_dir)

Materialize a min/max split against the selected LLVM source version.

get_pattern_gen_backend_patch(src, llvm_dir, ...)

Import backend support from the matching CoreDSL2LLVM release branch.

get_pattern_gen_patches(src, temp_dir)

Generate patches for PatternGen integration.

ignore_gisel_patterns(contents)

Scope the importer exclusion to Pattern records, preserving helpers.

lower_branch_patterns_to_riscv(contents)

Match the target BR_CC node produced by RISC-V's BRCOND lowering.

run_pattern_gen(build_dir, src, dest[, ...])

Excute pattern-gen executable.

scalarize_test_inputs(contents)

split_minmax_legalizer_actions(source)

Give each min/max opcode its own legality rules, preserving all rules.