Skip to content

Conversation

@bangtianliu
Copy link
Contributor

@bangtianliu bangtianliu commented Jan 29, 2026

This PR refactors the --iree-codegen-tuning-spec-path flag into a structured TuningSpecOptions class to enable C API access via ireeCompilerSessionSetFlags(). Previously, this flag was defined as a standalone llvm::cl::opt<> which prevented C API users from setting tuning specs programmatically.

I have only added C API support for --iree-codegen-tuning-spec-path . I can extend the same support to iree-codegen-enable-default-tuning-specs and iree-codegen-dump-tuning-specs-to if needed.

@bangtianliu bangtianliu marked this pull request as draft January 29, 2026 03:29
@bangtianliu bangtianliu force-pushed the tuning-spec-path-to-c-api branch 8 times, most recently from 09cb181 to 2e856f9 Compare January 31, 2026 01:02
@bangtianliu bangtianliu changed the title Add tuning spec flags to TuningSpecOptions for C API support Add C API support for --iree-codegen-tuning-spec-path flag Jan 31, 2026
@bangtianliu bangtianliu force-pushed the tuning-spec-path-to-c-api branch 2 times, most recently from 495a0c5 to 34e24d7 Compare January 31, 2026 02:26
@bangtianliu bangtianliu force-pushed the tuning-spec-path-to-c-api branch from 34e24d7 to 8db6cb5 Compare January 31, 2026 02:34
@bangtianliu bangtianliu marked this pull request as ready for review January 31, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant