Skip to content

Add Windows pass plugin support #101

@jvstech

Description

@jvstech

Windows pass plugins are supported in LLVM 14+, and llvm-tutor is set up in such a way that enabling them would be a fairly simple process.

Requirements:

  • Export each llvmGetPassPluginInfo function
    • Use a module definitions file (PassName.def) (preferred: requires one file for each plugin and changes to each CMake target definition)
      - [ ] Export every symbol automatically via CMake (not preferred: least amount of work, but pollutes the export table)
      - [ ] Decorate each llvmGetPassPluginInfo with __declspec(dllexport) (not preferred: requires the use of a #define macro to support cross-compilation)
  • Add Windows CI pipelines

@banach-space: What do you think for the symbol exporting options? I prefer module definition files, but I leave that decision up to you. We can discuss it in further detail what would be needed for each option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions