SIL: Move SILFunctionTypeInfo into a side table.

Generate and cache SILFunctionTypeInfo from Swift types on the fly, and simplify the SILType representation down to a CanType and isAddress bit.

Swift SVN r5298
This commit is contained in:
Joe Groff
2013-05-24 16:33:52 +00:00
parent e3269a3b95
commit 0dc5c66cd2
17 changed files with 141 additions and 166 deletions

View File

@@ -117,15 +117,6 @@ void SILType::print(raw_ostream &OS) const {
// Build up the attributes for a SIL type, if any.
llvm::SmallString<64> Attributes;
if (is<AnyFunctionType>()) {
auto info = getFunctionTypeInfo();
if (info->hasIndirectReturn()) {
if (!Attributes.empty()) Attributes += ", ";
Attributes += "sil_sret";
}
}
// If we have any attributes, print them out.
if (!Attributes.empty())