mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35579 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -335,7 +335,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||||
#line 1712 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
#line 1731 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||||
typedef union YYSTYPE {
|
typedef union YYSTYPE {
|
||||||
llvm::Module *ModuleVal;
|
llvm::Module *ModuleVal;
|
||||||
llvm::Function *FunctionVal;
|
llvm::Function *FunctionVal;
|
||||||
|
@ -1466,6 +1466,25 @@ upgradeIntrinsicCall(const Type* RetTy, const ValID &ID,
|
|||||||
return new CallInst(F, Args[0]);
|
return new CallInst(F, Args[0]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'c':
|
||||||
|
if ((Name.length() <= 14 && !memcmp(&Name[5], "ctpop.i", 7)) ||
|
||||||
|
(Name.length() <= 13 && !memcmp(&Name[5], "ctlz.i", 6)) ||
|
||||||
|
(Name.length() <= 13 && !memcmp(&Name[5], "cttz.i", 6))) {
|
||||||
|
// These intrinsics changed their result type.
|
||||||
|
const Type* ArgTy = Args[0]->getType();
|
||||||
|
Function *OldF = CurModule.CurrentModule->getFunction(Name);
|
||||||
|
if (OldF)
|
||||||
|
OldF->setName("upgrd.rm." + Name);
|
||||||
|
|
||||||
|
Function *NewF = cast<Function>(
|
||||||
|
CurModule.CurrentModule->getOrInsertFunction(Name, Type::Int32Ty,
|
||||||
|
ArgTy, (void*)0));
|
||||||
|
|
||||||
|
Instruction *Call = new CallInst(NewF, Args[0], "", CurBB);
|
||||||
|
return CastInst::createIntegerCast(Call, RetTy, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 'v' : {
|
case 'v' : {
|
||||||
const Type* PtrTy = PointerType::get(Type::Int8Ty);
|
const Type* PtrTy = PointerType::get(Type::Int8Ty);
|
||||||
std::vector<const Type*> Params;
|
std::vector<const Type*> Params;
|
||||||
|
Reference in New Issue
Block a user