<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>I was trying to extend “VectorUtils.h”, found all functions are defined as static. </div>
<div>The common problem when we include this and only use few function, compiler throw </div>
<div>warning for unused functions.</div>
<div> </div>
<div>i.e.</div>
<div>> llvm/include/llvm/Transforms/Utils/VectorUtils.h:102:1: warning: </div>
<div>> ‘llvm::Intrinsic::ID llvm::getIntrinsicIDForCall(llvm::CallInst*, const llvm::TargetLibraryInfo*)’ </div>
<div>> defined but not used [-Wunused-function]</div>
<div>> getIntrinsicIDForCall(CallInst *CI, const TargetLibraryInfo *TLI) {</div>
<div>> ^</div>
<div> </div>
<div>Any specific reason, why these function are defined as static ?</div>
<div> </div>
<div>If not, can we make these as non-static functions, by moving them to separate cpp </div>
<div>file (i.e. “VectorUtils.cpp”) and keep declaration in header (“VectorUtils.h”) ?</div>
<div> </div>
<div>Thanks,</div>
<div>Ashutosh</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>