Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/include/llvm/Transforms/Utils/Local.h
Show First 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | |||||
/// Given a CallInst, check if it calls a string function known to CodeGen, | /// Given a CallInst, check if it calls a string function known to CodeGen, | ||||
/// and mark it with NoBuiltin if so. To be used by sanitizers that intend | /// and mark it with NoBuiltin if so. To be used by sanitizers that intend | ||||
/// to intercept string functions and want to avoid converting them to target | /// to intercept string functions and want to avoid converting them to target | ||||
/// specific instructions. | /// specific instructions. | ||||
void maybeMarkSanitizerLibraryCallNoBuiltin(CallInst *CI, | void maybeMarkSanitizerLibraryCallNoBuiltin(CallInst *CI, | ||||
const TargetLibraryInfo *TLI); | const TargetLibraryInfo *TLI); | ||||
//===----------------------------------------------------------------------===// | |||||
// Transform predicates | |||||
// | |||||
/// Given an instruction, is it legal to set operand OpIdx to a non-constant | |||||
/// value? | |||||
bool canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx); | |||||
} // End llvm namespace | } // End llvm namespace | ||||
#endif | #endif |