[SIL] Add attributes to swift builtins, specifically, the readnone attribute.

Use the attribute when deciding if a call to a builtin can be eliminated as dead.

Swift SVN r7391
This commit is contained in:
Anna Zaks
2013-08-21 00:02:25 +00:00
parent 2f05d5c4df
commit 21ce68188d
10 changed files with 140 additions and 98 deletions

View File

@@ -412,6 +412,9 @@ public:
/// retruned value are defined in llvm/Intrinsics.h.
const IntrinsicInfo &getIntrinsicInfo();
/// \brief Looks up the lazily cached identification for the builtin function.
const BuiltinInfo &getBuiltinInfo();
ArrayRef<Operand> getAllOperands() const { return {}; }
MutableArrayRef<Operand> getAllOperands() { return {}; }