MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / getPredicate

Method getPredicate

src/compiler/cbs/VectorizationInfo.cpp:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289llvm::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
298void VectorizationInfo::setPredicate(const llvm::BasicBlock &block, llvm::Value &predicate) {
299 predicates[&block] = &predicate;

Callers 1

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected