Comments (3)
Can you post the LLVM IR you get for this?
from hlc-hsail-development-llvm.
Compiling the kernel with cloc.sh -opt 0 -ll test.cl
gives the following LLVM IR (from test.ll
):
; ModuleID = '/tmp/cloc9889/test.bc'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024"
target triple = "spir64-unknown-unknown"
; Function Attrs: noinline nounwind
define spir_func zeroext i1 @IsEmpty() #0 {
ret i1 true
}
; Function Attrs: nounwind
define spir_kernel void @__OpenCL_Main_kernel() #1 {
%1 = call spir_func zeroext i1 @IsEmpty()
ret void
}
attributes #0 = { noinline nounwind }
attributes #1 = { nounwind }
!opencl.kernels = !{!0}
!opencl.enable.FP_CONTRACT = !{}
!opencl.ocl.version = !{!6}
!opencl.spir.version = !{!6}
!0 = !{void ()* @__OpenCL_Main_kernel, !1, !2, !3, !4, !5}
!1 = !{!"kernel_arg_addr_space"}
!2 = !{!"kernel_arg_access_qual"}
!3 = !{!"kernel_arg_type"}
!4 = !{!"kernel_arg_type_qual"}
!5 = !{!"kernel_arg_base_type"}
!6 = !{i32 2, i32 0}
from hlc-hsail-development-llvm.
Any news one this issue?
from hlc-hsail-development-llvm.
Related Issues (20)
- Re-implement analyzeCompare and optimizeCompareInstr
- Empty functions with return types fail validation
- i1 / i8 / i16 return types / parameters inconsistently handled
- Use of global variable aliases does not work
- Crash in machine verifier HOT 1
- opt incorrectly hoists and replicates barrier HOT 2
- support for hsail intrinsics
- opt crashes in SROA HOT 3
- [patch] Detect kernels from opencl.kernels MD HOT 2
- Error in HSAIL_ASM::Brigantine::createRef HOT 1
- Crash when trying to use __builtin_hsail_gridsize() HOT 4
- Wrong LDA instruction generated for addresses passed into functions HOT 13
- Compiler generates 8-bit instead of 16-bit LD instruction HOT 2
- Kernel arguments passed by reference and passed by value are compiled into identical HSAIL code
- OpenCL kernel with non-void return type seems to compile but fail assembling
- Compiler crashes when using the same name for two different arguments in two different scopes
- Alignment for LD/ST instructions may exceed HSAIL limit (BRIG_ALIGNMENT_256)
- Three nested loops result in erroneous control flow
- Fold conversions from cmp into the destination type HOT 1
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 hlc-hsail-development-llvm.