mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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 {}; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user