From 3d7c05a7e86a72a4fc8df115591bd1e7a50f9d84 Mon Sep 17 00:00:00 2001 From: Lukas Zaoral Date: Thu, 27 May 2021 21:25:00 +0200 Subject: llvm11: Handle llvm.roundeven instrinsic See: https://reviews.llvm.org/D75670 --- lib/Module/IntrinsicCleaner.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Module/IntrinsicCleaner.cpp b/lib/Module/IntrinsicCleaner.cpp index a10dc9e3..08b87d0e 100644 --- a/lib/Module/IntrinsicCleaner.cpp +++ b/lib/Module/IntrinsicCleaner.cpp @@ -398,6 +398,9 @@ bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b, Module &M) { case Intrinsic::readcyclecounter: case Intrinsic::returnaddress: case Intrinsic::round: +#if LLVM_VERSION_CODE >= LLVM_VERSION(11, 0) + case Intrinsic::roundeven: +#endif case Intrinsic::sin: case Intrinsic::sqrt: case Intrinsic::stackrestore: -- cgit 1.4.1