File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 8282#include " llvm/IR/IntrinsicInst.h"
8383#include " llvm/IR/Module.h"
8484#include " llvm/IR/Operator.h"
85+ #include " llvm/IR/TypedPointerType.h"
8586#include " llvm/Pass.h"
8687#include " llvm/Passes/PassBuilder.h"
8788#include " llvm/Support/Casting.h"
@@ -346,6 +347,10 @@ SPIRVType *LLVMToSPIRVBase::transType(Type *T) {
346347 return transPointerType (ET, AddrSpc);
347348 }
348349
350+ if (auto *TPT = dyn_cast<TypedPointerType>(T)) {
351+ return transPointerType (TPT->getElementType (), TPT->getAddressSpace ());
352+ }
353+
349354 if (auto *VecTy = dyn_cast<FixedVectorType>(T)) {
350355 if (VecTy->getElementType ()->isPointerTy ()) {
351356 // 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)
22{
33 wait_group_events (0 , NULL );
44}
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
66// RUN: llvm-spirv %t.bc -spirv-text -o %t.spt
77// RUN: FileCheck < %t.spt %s
88// RUN: llvm-spirv %t.bc -o %t.spv
You can’t perform that action at this time.
0 commit comments