Skip to content

Conversation

vouillon
Copy link
Contributor

@vouillon vouillon commented Jul 5, 2024

Add functions to:

  • set and get the trapsNeverHappen, closedWorld, generateStackIR and optimizeStackIR flags
  • manage the list of passes to skip
@vouillon vouillon force-pushed the binaryen-apis branch 3 times, most recently from 9cf8471 to 28ded5b Compare July 5, 2024 14:13
Add functions to: - set and get the `trapsNeverHappen`, `closedWorld`, `generateStackIR` and `optimizeStackIR` flags - manage the list of passes to skip
src/binaryen-c.h Outdated

// Test whether a pass is in the set of passes to skip.
// Applies to all modules, globally.
BINARYEN_API bool BinaryenTestPassToSkip(const char* pass);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use "has" elsewhere for stuff like this, e.g. BinaryenFunctionHasLocalName, so perhaps

Suggested change
BINARYEN_API bool BinaryenTestPassToSkip(const char* pass);
BINARYEN_API bool BinaryenHasPassToSkip(const char* pass);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have renamed the functions.

@kripken kripken merged commit 43e8809 into WebAssembly:main Jul 16, 2024
@vouillon vouillon deleted the binaryen-apis branch August 22, 2024 09:42
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants