| 287 | } |
| 288 | |
| 289 | llvm::Value *VectorizationInfo::getPredicate(const llvm::BasicBlock &block) const { |
| 290 | auto it = predicates.find(&block); |
| 291 | if (it == predicates.end()) { |
| 292 | return nullptr; |
| 293 | } else { |
| 294 | return it->second; |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | void VectorizationInfo::setPredicate(const llvm::BasicBlock &block, llvm::Value &predicate) { |
| 299 | predicates[&block] = &predicate; |
no test coverage detected