mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[FastISel] Make isInTailCallPosition independent of SelectionDAG.
Break out the arguemnts required from SelectionDAG, so that this function can also be used by FastISel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,10 +24,11 @@
|
||||
namespace llvm {
|
||||
class GlobalVariable;
|
||||
class TargetLoweringBase;
|
||||
class TargetLowering;
|
||||
class TargetMachine;
|
||||
class SDNode;
|
||||
class SDValue;
|
||||
class SelectionDAG;
|
||||
class TargetLowering;
|
||||
struct EVT;
|
||||
|
||||
/// ComputeLinearIndex - Given an LLVM IR aggregate type and a sequence
|
||||
@@ -86,7 +87,8 @@ ISD::CondCode getICmpCondCode(ICmpInst::Predicate Pred);
|
||||
/// between it and the return.
|
||||
///
|
||||
/// This function only tests target-independent requirements.
|
||||
bool isInTailCallPosition(ImmutableCallSite CS, const SelectionDAG &DAG);
|
||||
bool isInTailCallPosition(ImmutableCallSite CS, const TargetMachine &TM,
|
||||
const TargetLoweringBase &TLI);
|
||||
|
||||
/// Test if given that the input instruction is in the tail call position if the
|
||||
/// return type or any attributes of the function will inhibit tail call
|
||||
|
Reference in New Issue
Block a user