mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Introduce "expect" intrinsic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -4771,6 +4771,13 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
||||
case Intrinsic::flt_rounds:
|
||||
setValue(&I, DAG.getNode(ISD::FLT_ROUNDS_, dl, MVT::i32));
|
||||
return 0;
|
||||
|
||||
case Intrinsic::expect: {
|
||||
// Just replace __builtin_expect(exp, c) with EXP.
|
||||
setValue(&I, getValue(I.getArgOperand(0)));
|
||||
return 0;
|
||||
}
|
||||
|
||||
case Intrinsic::trap: {
|
||||
StringRef TrapFuncName = getTrapFunctionName();
|
||||
if (TrapFuncName.empty()) {
|
||||
|
Reference in New Issue
Block a user