mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Remove trailing whitespace, fix file path in comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements the auto-upgrade helper functions
|
||||
// This file implements the auto-upgrade helper functions
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@ -55,14 +55,14 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
|
||||
case 'a': {
|
||||
if (Name.startswith("arm.neon.vclz")) {
|
||||
Type* args[2] = {
|
||||
F->arg_begin()->getType(),
|
||||
F->arg_begin()->getType(),
|
||||
Type::getInt1Ty(F->getContext())
|
||||
};
|
||||
// Can't use Intrinsic::getDeclaration here as it adds a ".i1" to
|
||||
// the end of the name. Change name from llvm.arm.neon.vclz.* to
|
||||
// llvm.ctlz.*
|
||||
FunctionType* fType = FunctionType::get(F->getReturnType(), args, false);
|
||||
NewFn = Function::Create(fType, F->getLinkage(),
|
||||
NewFn = Function::Create(fType, F->getLinkage(),
|
||||
"llvm.ctlz." + Name.substr(14), F->getParent());
|
||||
return true;
|
||||
}
|
||||
@ -369,8 +369,8 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
|
||||
}
|
||||
}
|
||||
|
||||
// This tests each Function to determine if it needs upgrading. When we find
|
||||
// one we are interested in, we then upgrade all calls to reflect the new
|
||||
// This tests each Function to determine if it needs upgrading. When we find
|
||||
// one we are interested in, we then upgrade all calls to reflect the new
|
||||
// function.
|
||||
void llvm::UpgradeCallsToIntrinsic(Function* F) {
|
||||
assert(F && "Illegal attempt to upgrade a non-existent intrinsic.");
|
||||
|
Reference in New Issue
Block a user