File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 82
82
#include " llvm/IR/IntrinsicInst.h"
83
83
#include " llvm/IR/Module.h"
84
84
#include " llvm/IR/Operator.h"
85
+ #include " llvm/IR/TypedPointerType.h"
85
86
#include " llvm/Pass.h"
86
87
#include " llvm/Passes/PassBuilder.h"
87
88
#include " llvm/Support/Casting.h"
@@ -342,6 +343,10 @@ SPIRVType *LLVMToSPIRVBase::transType(Type *T) {
342
343
return transPointerType (ET, AddrSpc);
343
344
}
344
345
346
+ if (auto *TPT = dyn_cast<TypedPointerType>(T)) {
347
+ return transPointerType (TPT->getElementType (), TPT->getAddressSpace ());
348
+ }
349
+
345
350
if (auto *VecTy = dyn_cast<FixedVectorType>(T)) {
346
351
if (VecTy->getElementType ()->isPointerTy ()) {
347
352
// SPV_INTEL_masked_gather_scatter extension changes 2.16.1. Universal
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ __kernel void test_fn( const __global char *src)
2
2
{
3
3
wait_group_events (0 , NULL );
4
4
}
5
- // RUN: %clang_cc1 -triple spir64 -x cl -cl-std=CL2.0 -fdeclare-opencl-builtins -finclude-default-header -O0 -emit-llvm-bc %s -o %t.bc -no-opaque-pointers
5
+ // RUN: %clang_cc1 -triple spir64 -x cl -cl-std=CL2.0 -fdeclare-opencl-builtins -finclude-default-header -O0 -emit-llvm-bc %s -o %t.bc
6
6
// RUN: llvm-spirv %t.bc -spirv-text -o %t.spt
7
7
// RUN: FileCheck < %t.spt %s
8
8
// RUN: llvm-spirv %t.bc -o %t.spv
You can’t perform that action at this time.
0 commit comments