projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[X86] Add support for tbyte memory operand size for Intel-syntax x86 assembly
[oota-llvm.git]
/
include
/
llvm
/
Target
/
TargetCallingConv.h
diff --git
a/include/llvm/Target/TargetCallingConv.h
b/include/llvm/Target/TargetCallingConv.h
index a0f26741a8f0333904b3f02dc2ae68c75a102070..9d4e7a04d905a72ac836c68d321736767d9e0a2a 100644
(file)
--- a/
include/llvm/Target/TargetCallingConv.h
+++ b/
include/llvm/Target/TargetCallingConv.h
@@
-18,6
+18,7
@@
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/MathExtras.h"
#include <string>
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/MathExtras.h"
#include <string>
+#include <limits.h>
namespace llvm {
namespace llvm {
@@
-134,6
+135,8
@@
namespace ISD {
/// Index original Function's argument.
unsigned OrigArgIndex;
/// Index original Function's argument.
unsigned OrigArgIndex;
+ /// Sentinel value for implicit machine-level input arguments.
+ static const unsigned NoArgIndex = UINT_MAX;
/// Offset in bytes of current input value relative to the beginning of
/// original argument. E.g. if argument was splitted into four 32 bit
/// Offset in bytes of current input value relative to the beginning of
/// original argument. E.g. if argument was splitted into four 32 bit
@@
-147,6
+150,15
@@
namespace ISD {
VT = vt.getSimpleVT();
ArgVT = argvt;
}
VT = vt.getSimpleVT();
ArgVT = argvt;
}
+
+ bool isOrigArg() const {
+ return OrigArgIndex != NoArgIndex;
+ }
+
+ unsigned getOrigArgIndex() const {
+ assert(OrigArgIndex != NoArgIndex && "Implicit machine-level argument");
+ return OrigArgIndex;
+ }
};
/// OutputArg - This struct carries flags and a value for a
};
/// OutputArg - This struct carries flags and a value for a