From 280675eb80d200e04e15c2b8539ec6778f24204d Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Thu, 12 Feb 2015 15:10:38 +0300 Subject: [PATCH] add comments regarding constant 'true' field --- cbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbackend.cpp b/cbackend.cpp index 4c13ba20..4afc60e5 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -4517,7 +4517,7 @@ void CWriter::visitAtomicCmpXchgInst(llvm::AtomicCmpXchgInst &ACXI) { Out << ", "; writeOperand(ACXI.getNewValOperand()); Out << "), "; - Out << "true"; // The result of the instruction is always success + Out << "true /* There is no way to learn the value of this bit inside ISPC, so making it constant */"; Out << ")"; }