mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-05 17:53:21 +00:00
IR: Add fp operations to atomicrmw
Add just fadd/fsub for now. llvm-svn: 351778
This commit is contained in:
1 parent
1eaa04d682
commit
bfdba5e4fc
26 files changed
+392
-22
No files matched your search
@@ -559,6 +559,8 @@ static unsigned getEncodedRMWOperation(AtomicRMWInst::BinOp Op) {
|
||||
case AtomicRMWInst::Min: return bitc::RMW_MIN;
|
||||
case AtomicRMWInst::UMax: return bitc::RMW_UMAX;
|
||||
case AtomicRMWInst::UMin: return bitc::RMW_UMIN;
|
||||
case AtomicRMWInst::FAdd: return bitc::RMW_FADD;
|
||||
case AtomicRMWInst::FSub: return bitc::RMW_FSUB;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user