Encode alignment attribute for atomicrmw
This is a follow up patch to D83136 adding the align attribute to `atomicwmw`. Differential Revision: https://reviews.llvm.org/D83465
This commit is contained in:
committed by
James Y Knight
parent
cb41ee92da
commit
d06ab79816
@@ -3071,6 +3071,7 @@ void ModuleBitcodeWriter::writeInstruction(const Instruction &I,
|
||||
Vals.push_back(getEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering()));
|
||||
Vals.push_back(
|
||||
getEncodedSyncScopeID(cast<AtomicRMWInst>(I).getSyncScopeID()));
|
||||
Vals.push_back(getEncodedAlign(cast<AtomicRMWInst>(I).getAlign()));
|
||||
break;
|
||||
case Instruction::Fence:
|
||||
Code = bitc::FUNC_CODE_INST_FENCE;
|
||||
|
||||
Reference in New Issue
Block a user