Skip to content

Commit

Permalink
Update llpc to handle new version of llvm
Browse files Browse the repository at this point in the history
Handle upstream llvm changes for llvm/llvm-project@7b9d73c
[NFC] Remove Type::getInt8PtrTy (#71029)
  • Loading branch information
mbrkusanin committed Nov 8, 2023
1 parent 8e7a79b commit d8b6843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ colorBuffer[0].blendEnable = 0
; SHADERTEST-NEXT: [[TMP1:%.*]] = trunc i32 [[TMP0]] to i8
; SHADERTEST-NEXT: [[DOTLHS_TRUNC:%.*]] = and i8 [[TMP1]], 15
; SHADERTEST-NEXT: [[TMP2:%.*]] = urem i8 [[DOTLHS_TRUNC]], 3
; SHADERTEST-NEXT: [[TMP3:%.*]] = zext i8 [[TMP2]] to i64
; SHADERTEST-NEXT: [[TMP3:%.*]] = zext nneg i8 [[TMP2]] to i64
; SHADERTEST-NEXT: [[TMP4:%.*]] = getelementptr [3 x <4 x float>], ptr addrspace(4) @__llpc_global_proxy_colors, i64 0, i64 [[TMP3]]
; SHADERTEST-NEXT: [[TMP5:%.*]] = load <4 x float>, ptr addrspace(4) [[TMP4]], align 16
; SHADERTEST-NEXT: [[TMP6:%.*]] = insertvalue { <4 x float> } poison, <4 x float> [[TMP5]], 0
Expand All @@ -41,7 +41,7 @@ colorBuffer[0].blendEnable = 0
; SHADERTEST2_PP0-NEXT: [[TMP1:%.*]] = trunc i32 [[TMP0]] to i8
; SHADERTEST2_PP0-NEXT: [[DOTLHS_TRUNC:%.*]] = and i8 [[TMP1]], 15
; SHADERTEST2_PP0-NEXT: [[TMP2:%.*]] = urem i8 [[DOTLHS_TRUNC]], 3
; SHADERTEST2_PP0-NEXT: [[TMP3:%.*]] = zext i8 [[TMP2]] to i64
; SHADERTEST2_PP0-NEXT: [[TMP3:%.*]] = zext nneg i8 [[TMP2]] to i64
; SHADERTEST2_PP0-NEXT: [[TMP4:%.*]] = getelementptr [3 x <4 x float>], ptr addrspace(4) @__llpc_global_proxy_colors, i64 0, i64 [[TMP3]]
; SHADERTEST2_PP0-NEXT: [[TMP5:%.*]] = load <4 x float>, ptr addrspace(4) [[TMP4]], align 16
; SHADERTEST2_PP0-NEXT: [[DOTI3:%.*]] = extractelement <4 x float> [[TMP5]], i64 3
Expand All @@ -58,7 +58,7 @@ colorBuffer[0].blendEnable = 0
; SHADERTEST2_PP1-NEXT: [[TMP1:%.*]] = trunc i32 [[TMP0]] to i8
; SHADERTEST2_PP1-NEXT: [[DOTLHS_TRUNC:%.*]] = and i8 [[TMP1]], 15
; SHADERTEST2_PP1-NEXT: [[TMP2:%.*]] = urem i8 [[DOTLHS_TRUNC]], 3
; SHADERTEST2_PP1-NEXT: [[TMP3:%.*]] = zext i8 [[TMP2]] to i64
; SHADERTEST2_PP1-NEXT: [[TMP3:%.*]] = zext nneg i8 [[TMP2]] to i64
; SHADERTEST2_PP1-NEXT: [[TMP4:%.*]] = getelementptr [3 x <4 x float>], ptr addrspace(4) @__llpc_global_proxy_colors, i64 0, i64 [[TMP3]]
; SHADERTEST2_PP1-NEXT: [[TMP5:%.*]] = load <4 x float>, ptr addrspace(4) [[TMP4]], align 16
; SHADERTEST2_PP1-NEXT: [[DOTI3:%.*]] = extractelement <4 x float> [[TMP5]], i64 3
Expand Down
2 changes: 1 addition & 1 deletion shared/continuations/lib/LowerAwait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static void processContinuations(
// co.flag = llvm.coro.suspend.retcon
// unreachable
auto &Context = M.getContext();
auto *I8Ptr = Type::getInt8PtrTy(Context);
auto *I8Ptr = PointerType::getUnqual(Context);
auto *I32 = Type::getInt32Ty(Context);
auto *I64 = Type::getInt64Ty(Context);

Expand Down

0 comments on commit d8b6843

Please sign in to comment.