Mercurial > hg > CbC > CbC_llvm
comparison docs/Bugpoint.rst @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
comparison
equal
deleted
inserted
replaced
146:3fc4d5c3e21e | 148:63bd29f05246 |
---|---|
196 .. code-block:: c++ | 196 .. code-block:: c++ |
197 | 197 |
198 | 198 |
199 static int calledCount = 0; | 199 static int calledCount = 0; |
200 calledCount++; | 200 calledCount++; |
201 DEBUG(if (calledCount < 212) return false); | 201 LLVM_DEBUG(if (calledCount < 212) return false); |
202 DEBUG(if (calledCount > 217) return false); | 202 LLVM_DEBUG(if (calledCount > 217) return false); |
203 DEBUG(if (calledCount == 213) return false); | 203 LLVM_DEBUG(if (calledCount == 213) return false); |
204 DEBUG(if (calledCount == 214) return false); | 204 LLVM_DEBUG(if (calledCount == 214) return false); |
205 DEBUG(if (calledCount == 215) return false); | 205 LLVM_DEBUG(if (calledCount == 215) return false); |
206 DEBUG(if (calledCount == 216) return false); | 206 LLVM_DEBUG(if (calledCount == 216) return false); |
207 DEBUG(dbgs() << "visitXOR calledCount: " << calledCount << "\n"); | 207 LLVM_DEBUG(dbgs() << "visitXOR calledCount: " << calledCount << "\n"); |
208 DEBUG(dbgs() << "I: "; I->dump()); | 208 LLVM_DEBUG(dbgs() << "I: "; I->dump()); |
209 | 209 |
210 could be added to ``visitXOR`` to limit ``visitXor`` to being applied only to | 210 could be added to ``visitXOR`` to limit ``visitXor`` to being applied only to |
211 calls 212 and 217. This is from an actual test case and raises an important | 211 calls 212 and 217. This is from an actual test case and raises an important |
212 point---a simple binary search may not be sufficient, as transformations that | 212 point---a simple binary search may not be sufficient, as transformations that |
213 interact may require isolating more than one call. In TargetLowering, use | 213 interact may require isolating more than one call. In TargetLowering, use |