Skip to content

Commit

Permalink
Support MMX removal in LLVM upstream
Browse files Browse the repository at this point in the history
This change is required to support the LLVM change:
llvm/llvm-project@dfeb399
  • Loading branch information
vmustya authored and sys-cmllvm committed Jul 26, 2024
1 parent 6c4e7b7 commit e1e2f81
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions GenXIntrinsics/lib/GenXIntrinsics/GenXIntrinsics.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*========================== begin_copyright_notice ============================
Copyright (C) 2019-2023 Intel Corporation
Copyright (C) 2019-2024 Intel Corporation
SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -301,7 +301,12 @@ static Type *DecodeFixedType(ArrayRef<Intrinsic::IITDescriptor> &Infos,
switch (D.Kind) {
case IITDescriptor::Void: return Type::getVoidTy(Context);
case IITDescriptor::VarArg: return Type::getVoidTy(Context);
case IITDescriptor::MMX: return Type::getX86_MMXTy(Context);
case IITDescriptor::MMX:
#if VC_INTR_LLVM_VERSION_MAJOR >= 20
return FixedVectorType::get(Type::getInt64Ty(Context), 1);
#else // VC_INTR_LLVM_VERSION_MAJOR >= 20
return Type::getX86_MMXTy(Context);
#endif // VC_INTR_LLVM_VERSION_MAJOR >= 20
case IITDescriptor::Token: return Type::getTokenTy(Context);
case IITDescriptor::Metadata: return Type::getMetadataTy(Context);
case IITDescriptor::Half: return Type::getHalfTy(Context);
Expand Down

0 comments on commit e1e2f81

Please sign in to comment.