ΒΆllvm::Value* addRuntimeChecks(
    llvm::Instruction* Loc,
    llvm::Loop* TheLoop,
    const SmallVectorImpl<
        llvm::RuntimePointerCheck>& PointerChecks,
    llvm::SCEVExpander& Expander)

Description

Add code that checks at runtime if the accessed arrays in \p PointerChecks overlap. Returns the final comparator value or NULL if no check is needed.

Declared at: llvm/include/llvm/Transforms/Utils/LoopUtils.h:507

Parameters

llvm::Instruction* Loc
llvm::Loop* TheLoop
const SmallVectorImpl<llvm::RuntimePointerCheck>& PointerChecks
llvm::SCEVExpander& Expander