Skip to content

codegen: frexp, mod, switch-case#52

Open
r4nd0mus3rnam3 wants to merge 7 commits into
wpmed92:mainfrom
r4nd0mus3rnam3:main
Open

codegen: frexp, mod, switch-case#52
r4nd0mus3rnam3 wants to merge 7 commits into
wpmed92:mainfrom
r4nd0mus3rnam3:main

Conversation

@r4nd0mus3rnam3

Copy link
Copy Markdown

working on codebase. upstreaming small changes for now. will likely rework most of these additions later.

@@ -0,0 +1,5 @@
void main() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@r4nd0mus3rnam3 can you add tests similar to the other CodeGen tests, i.e. using FileCheck?

Comment thread test/CodeGen/switch_test.glsl Outdated
@@ -0,0 +1,15 @@
void main() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Same here, can you please use FileCheck?

@wpmed92

wpmed92 commented Apr 27, 2026

Copy link
Copy Markdown
Owner

@r4nd0mus3rnam3 Left 2 comments, also, tests are failing but it looks like it was just a timeout because it started rebuilding LLVM in the CI.
Are these changes compatible with the LLVM commit shaderpulse is pointing at, or should we update the commit to a most recent one?

@wpmed92 wpmed92 changed the title some small additions frexp, mod, codegen for switch Apr 27, 2026
@wpmed92 wpmed92 changed the title frexp, mod, codegen for switch codegen: frexp, mod, switch-case Apr 27, 2026
@r4nd0mus3rnam3

Copy link
Copy Markdown
Author

i was getting some issues with compilation for the switch case op. this shouldn't affect compilation however; i was able to get it to compile fine when i commented out that line.

i will add the proper test for mod soon. the switch case test i will need to look into further since i haven't completed the implementation of switch case.

@r4nd0mus3rnam3

Copy link
Copy Markdown
Author

i have added changes to the test cases to match the other test cases. i have not checked for full correctness yet.

with regard to the llvm commit comment, i think the current commit in the repository is outdated, as i don't believe it has the spirv switch op, since i could not get it to compile with the switch op. i may however be mistaken.

@wpmed92

wpmed92 commented May 1, 2026

Copy link
Copy Markdown
Owner

@r4nd0mus3rnam3 can you update the llvm commit in the repo to the one you use locally?

@r4nd0mus3rnam3

Copy link
Copy Markdown
Author

i am unsure how to do this, as i haven't updated the llvm submodule on my fork.

i think a more recent release should work however.

@r4nd0mus3rnam3

Copy link
Copy Markdown
Author

i have updated the submodule, but have not tested it against shaderpulse yet.

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.

2 participants