mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Remove isnan support, correct isunordered support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c45ef6d395
commit
be78ac4422
@ -105,8 +105,8 @@ void DefaultIntrinsicLowering::AddPrototypes(Module &M) {
|
|||||||
EnsureFunctionExists(M, "memset", I->abegin(), --I->aend(),
|
EnsureFunctionExists(M, "memset", I->abegin(), --I->aend(),
|
||||||
I->abegin()->getType());
|
I->abegin()->getType());
|
||||||
break;
|
break;
|
||||||
case Intrinsic::isnan:
|
case Intrinsic::isunordered:
|
||||||
EnsureFunctionExists(M, "isnan", I->abegin(), I->aend(), Type::BoolTy);
|
EnsureFunctionExists(M, "isunordered", I->abegin(), I->aend(), Type::BoolTy);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,14 +200,6 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
|
|||||||
(*(CI->op_begin()+1))->getType(), MemsetFCache);
|
(*(CI->op_begin()+1))->getType(), MemsetFCache);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Intrinsic::isnan: {
|
|
||||||
// FIXME: This should force the argument to be a double. There may be
|
|
||||||
// multiple isnans for different FP arguments.
|
|
||||||
static Function *isnanFCache = 0;
|
|
||||||
ReplaceCallWith("isnan", CI, CI->op_begin()+1, CI->op_end(),
|
|
||||||
Type::BoolTy, isnanFCache);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case Intrinsic::isunordered: {
|
case Intrinsic::isunordered: {
|
||||||
static Function *isunorderedFCache = 0;
|
static Function *isunorderedFCache = 0;
|
||||||
ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(),
|
ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(),
|
||||||
|
@ -105,8 +105,8 @@ void DefaultIntrinsicLowering::AddPrototypes(Module &M) {
|
|||||||
EnsureFunctionExists(M, "memset", I->abegin(), --I->aend(),
|
EnsureFunctionExists(M, "memset", I->abegin(), --I->aend(),
|
||||||
I->abegin()->getType());
|
I->abegin()->getType());
|
||||||
break;
|
break;
|
||||||
case Intrinsic::isnan:
|
case Intrinsic::isunordered:
|
||||||
EnsureFunctionExists(M, "isnan", I->abegin(), I->aend(), Type::BoolTy);
|
EnsureFunctionExists(M, "isunordered", I->abegin(), I->aend(), Type::BoolTy);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,14 +200,6 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
|
|||||||
(*(CI->op_begin()+1))->getType(), MemsetFCache);
|
(*(CI->op_begin()+1))->getType(), MemsetFCache);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Intrinsic::isnan: {
|
|
||||||
// FIXME: This should force the argument to be a double. There may be
|
|
||||||
// multiple isnans for different FP arguments.
|
|
||||||
static Function *isnanFCache = 0;
|
|
||||||
ReplaceCallWith("isnan", CI, CI->op_begin()+1, CI->op_end(),
|
|
||||||
Type::BoolTy, isnanFCache);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case Intrinsic::isunordered: {
|
case Intrinsic::isunordered: {
|
||||||
static Function *isunorderedFCache = 0;
|
static Function *isunorderedFCache = 0;
|
||||||
ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(),
|
ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(),
|
||||||
|
Loading…
Reference in New Issue
Block a user