Skip to content

Conversation

@bader
Copy link
Contributor

@bader bader commented Mar 23, 2021

…lly (#1479)"

This reverts commit ff0b066.

Closes #1478.

@bader bader requested a review from AlexeySachkov March 23, 2021 17:19
@bader bader merged commit 6f018b3 into intel:sycl Mar 27, 2021
@bader bader deleted the revert-1479-disable-llvm-lit branch March 27, 2021 10:28
jsji pushed a commit that referenced this pull request Nov 4, 2025
The IRParser offers a higher level API, that allows us to also read
bitcode assembly, and not only compiled bitcode.

This allows us to skip the `llvm-as %s -o %t.bc` step in several tests.
I've only updated 3 tests to show the difference; but we have more than
500 occurrences of `llvm-as %s -o` in the tests:

> $ grep -r "llvm-as %s -o" | cut -d':' -f1 | sort -u | wc -l
> 506

As a bonus, the function `llvm::getLazyIRFileModule`
(https://llvm.org/doxygen/namespacellvm.html#aac226baa3ffd0f255a8d2b6d978b81b2)
also calls `MemoryBuffer::getFileOrSTDIN`.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@400be5144443c6f
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.

Two LLVM lit tests fail with BUILD_SHARED_LIBS flag set.

1 participant