Comments (5)
Another reason to have actual proper intrinsics llvm.spirv.*
.
from spirv-llvm-translator.
I think this is the current path taken into the OpenCL C++ compiler on top of of SPIR-V.
The problem is with plain SPIR where a work-around is required when compiling a kernel if there is a clash.
from spirv-llvm-translator.
I think this is the current path taken into the OpenCL C++ compiler on top of of SPIR-V.
Link please?
The problem is with plain SPIR where a work-around is required when compiling a kernel if there is a clash.
Yes, if we could get a triple and intrinsics then I think the problem would go away.
from spirv-llvm-translator.
Is the code using "some user functions with the exact same signature ..." in the cl::
namespace ?
@keryell, could you provide an example of the clash. Thanks.
from spirv-llvm-translator.
We have encountered the same issue in intel/llvm with our SYCL compiler, I have a summary of it documented in #746 (comment).
Our current idea is to explicitly instruct the translator which representation should be used when translating SPIR-V back into LLVM IR. At the moment this is implemented via -spirv-target-env
option, which allows to choose between SPIR-V friendly IR format, OpenCL 1.2 or OpenCL 2.0 formats (like the IR was generated by clang directly).
Another reason to have actual proper intrinsics llvm.spirv.*.
This is being discussed in #206
from spirv-llvm-translator.
Related Issues (20)
- Is there no 18.0.0 HOT 2
- Missing SPIR-V 1.4 features/changes HOT 3
- llvm-as does not verify LLVM output from SPIR-V to LLVM translation (Overlapping tbaa.struct regions) HOT 2
- Indicies in SpecConstantOp PtrAccessChain of global variales are not adjusted for their actual type.
- Both GetElementPtrConstantExpr and GetElementPtrInst may represent access to a buildin variable HOT 1
- `ID '19' decorated with NoSignedWrap multiple times is not allowed.` HOT 1
- Translator incapable to generate TypeStruct EntryPoint parameters
- User defined/declared functions are wrongly identified as OpenCL builtins HOT 1
- Invalid OpenCL version and non-cpp source language lead to crash while generating device-dependent OpenCL binaries from a valid SPIR-V input HOT 9
- InvalidInstruction: Can't translate llvm instruction with LLVM 18 (working with 17) HOT 8
- spt file containing GlobalVariableHostAccessINTEL changes after -to-binary and then -to-text
- Drop llvm.compiler.used GV? HOT 1
- Add SPIR-V backend - SPIR-V Translator cross validation HOT 4
- SPV_EXT_relaxed_printf_string_address_space allows format from too many address spaces
- How to build LLVMSPIRVLib as a shared library on Windows? HOT 2
- Image validation in unit test
- Two days tyring to figure this out. HOT 2
- Ability to use system version of SPIRV-Headers without specifying source directory.
- Missing dimidx checks when translating get_global_offset HOT 2
- InvalidFunctionCall: Unexpected llvm intrinsic: `llvm.fabs.bf16` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spirv-llvm-translator.