Skip to content

Expose opt-level, features, libdevice and emit-stage options in warpforthc #120

Closed

Description

@tetsuo-cpp

Problem

warpforthc only exposes --arch and -o. The pipeline already has opt-level, features, libdevice and compilation-target in WarpForthPipelineOptions, but you can only reach them through warpforth-translate | warpforth-opt '--pass-pipeline=...'.

Proposal

Add matching flags to tools/warpforthc/warpforthc.cpp, for example:

  • -O0 ... -O3 / --opt-level
  • --features (PTX ISA version)
  • --libdevice <path>
  • optionally --emit=mlir|llvm|ptx to stop after a stage for debugging

Ideally warpforthc registers WarpForthPipelineOptions directly instead of duplicating each option, so the two tools can't drift apart.

Activity

  1. tetsuo-cpp commented on Oct 24, 2026

    @tetsuo-cpp
    OwnerAuthor

    PR #137 added -O/--opt-level, --features and --libdevice. The --emit=mlir|llvm|ptx stage option is still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions