Skip to content

Commit

Permalink
Update LLVM (#1387)
Browse files Browse the repository at this point in the history
remove X64_MMXTyId as it has been removed from llvm
FiniteMathOnly has been removed. Instead use explicit NoHonorInfs and
NoHonorNans options.
  • Loading branch information
rjodinchr authored Jul 26, 2024
1 parent 2e31931 commit 28f7cd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"subrepo" : "llvm/llvm-project",
"branch" : "main",
"subdir" : "third_party/llvm",
"commit" : "402eca265f7162e26b8b74d18297fd76c9f100de"
"commit" : "67a55e01e3f13d6ea5be917765a4171cd68cb5ac"
},
{
"name" : "SPIRV-Headers",
Expand Down
1 change: 0 additions & 1 deletion lib/Builtins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ std::string Builtins::GetMangledTypeName(Type *Ty) {
case Type::PPC_FP128TyID:
case Type::LabelTyID:
case Type::MetadataTyID:
case Type::X86_MMXTyID:
case Type::TokenTyID:
default:
assert(0);
Expand Down
4 changes: 3 additions & 1 deletion lib/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,11 @@ int SetCompilerInstanceOptions(
clspv::Option::ClMadEnable() || clspv::Option::UnsafeMath();
// cl_no_signed_zeros ignored for now!
instance.getLangOpts().UnsafeFPMath = clspv::Option::UnsafeMath();
instance.getLangOpts().FiniteMathOnly = clspv::Option::FiniteMath();
instance.getLangOpts().FastRelaxedMath = clspv::Option::FastRelaxedMath();

instance.getLangOpts().NoHonorInfs = clspv::Option::FiniteMath();
instance.getLangOpts().NoHonorNaNs = clspv::Option::FiniteMath();

// Preprocessor options
if (!clspv::Option::ImageSupport()) {
instance.getPreprocessorOpts().addMacroUndef("__IMAGE_SUPPORT__");
Expand Down

0 comments on commit 28f7cd9

Please sign in to comment.