mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Create enums for the different attributes.
We use the enums to query whether an Attributes object has that attribute. The opaque layer is responsible for knowing where that specific attribute is stored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -318,7 +318,8 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, Attributes CalleeRetAttr,
|
||||
return false;
|
||||
|
||||
// It's not safe to eliminate the sign / zero extension of the return value.
|
||||
if (CallerRetAttr.hasZExtAttr() || CallerRetAttr.hasSExtAttr())
|
||||
if (CallerRetAttr.hasAttribute(Attributes::ZExt) ||
|
||||
CallerRetAttr.hasAttribute(Attributes::SExt))
|
||||
return false;
|
||||
|
||||
// Otherwise, make sure the unmodified return value of I is the return value.
|
||||
@@ -358,7 +359,8 @@ bool llvm::isInTailCallPosition(SelectionDAG &DAG, SDNode *Node,
|
||||
return false;
|
||||
|
||||
// It's not safe to eliminate the sign / zero extension of the return value.
|
||||
if (CallerRetAttr.hasZExtAttr() || CallerRetAttr.hasSExtAttr())
|
||||
if (CallerRetAttr.hasAttribute(Attributes::ZExt) ||
|
||||
CallerRetAttr.hasAttribute(Attributes::SExt))
|
||||
return false;
|
||||
|
||||
// Check if the only use is a function return node.
|
||||
|
||||
Reference in New Issue
Block a user