In “VectorUtils.h” all functions are defined as static, common problem is if some module
includes it and only use few functions then compiler throws warning for unused functions.
i.e.
llvm/include/llvm/Transforms/Utils/VectorUtils.h:102:1: warning:
‘llvm::Intrinsic::ID llvm::getIntrinsicIDForCall(llvm::CallInst*, const llvm::TargetLibraryInfo*)’
defined but not used [-Wunused-function]
getIntrinsicIDForCall(CallInst *CI, const TargetLibraryInfo *TLI) {
^
In this change I moved these function implementation to a separate file.
Changes in this patch:
- Moved function definition from “VectorUtils.h” to a separate file “VectorUtils.cpp”
- Now these functions are non-static.
- VectorUtils.h is only having declaration for these.