Mercurial > hg > CbC > CbC_llvm
comparison lib/Transforms/Scalar/LowerAtomic.cpp @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | 3a76565eade5 |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
153 LowerAtomicLegacyPass() : FunctionPass(ID) { | 153 LowerAtomicLegacyPass() : FunctionPass(ID) { |
154 initializeLowerAtomicLegacyPassPass(*PassRegistry::getPassRegistry()); | 154 initializeLowerAtomicLegacyPassPass(*PassRegistry::getPassRegistry()); |
155 } | 155 } |
156 | 156 |
157 bool runOnFunction(Function &F) override { | 157 bool runOnFunction(Function &F) override { |
158 if (skipFunction(F)) | 158 // Don't skip optnone functions; atomics still need to be lowered. |
159 return false; | |
160 FunctionAnalysisManager DummyFAM; | 159 FunctionAnalysisManager DummyFAM; |
161 auto PA = Impl.run(F, DummyFAM); | 160 auto PA = Impl.run(F, DummyFAM); |
162 return !PA.areAllPreserved(); | 161 return !PA.areAllPreserved(); |
163 } | 162 } |
164 | 163 |