Skip to content

Commit

Permalink
Fix build of llvmextra for LLVM 19 (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao authored Jan 21, 2025
1 parent e17a9ec commit ef63865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/LLVMExtra/lib/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ static AtomicRMWInst::BinOp mapFromLLVMRMWBinOp(LLVMAtomicRMWBinOp BinOp) {
case LLVMAtomicRMWBinOpFSub: return AtomicRMWInst::FSub;
case LLVMAtomicRMWBinOpFMax: return AtomicRMWInst::FMax;
case LLVMAtomicRMWBinOpFMin: return AtomicRMWInst::FMin;
#if LLVM_VERSION_MAJOR >= 19
case LLVMAtomicRMWBinOpUIncWrap: return AtomicRMWInst::UIncWrap;
case LLVMAtomicRMWBinOpUDecWrap: return AtomicRMWInst::UDecWrap;
#endif
}

llvm_unreachable("Invalid LLVMAtomicRMWBinOp value!");
Expand Down
1 change: 1 addition & 0 deletions deps/LLVMExtra/lib/NewPM.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "LLVMExtra.h"

#include <llvm/Analysis/AliasAnalysis.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Verifier.h>
#include <llvm/Passes/PassBuilder.h>
#include <llvm/Passes/StandardInstrumentations.h>
Expand Down

0 comments on commit ef63865

Please sign in to comment.