mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Add a 'tail' marker for call instructions, patch contributed by
Alexander Friedman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21722 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -467,7 +467,8 @@ public:
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// CallInst - This class represents a function call, abstracting a target
|
||||
/// machine's calling convention.
|
||||
/// machine's calling convention. This class uses the SubClassData field to
|
||||
/// indicate whether or not this is a tail call.
|
||||
///
|
||||
class CallInst : public Instruction {
|
||||
CallInst(const CallInst &CI);
|
||||
@ -501,6 +502,9 @@ public:
|
||||
virtual CallInst *clone() const;
|
||||
bool mayWriteToMemory() const { return true; }
|
||||
|
||||
bool isTailCall() const { return SubclassData; }
|
||||
void setTailCall(bool isTailCall) { SubclassData = isTailCall; }
|
||||
|
||||
/// getCalledFunction - Return the function being called by this instruction
|
||||
/// if it is a direct call. If it is a call through a function pointer,
|
||||
/// return null.
|
||||
|
Reference in New Issue
Block a user