[StackSafety] Add info into function summary
authorVitaly Buka <vitalybuka@google.com>
Mon, 1 Jun 2020 06:49:57 +0000 (23:49 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 10 Jun 2020 09:43:28 +0000 (02:43 -0700)
commit4666953ce229cd7a8b042e5f80ecc97b4eae3636
treec96ad1e3ae01bf6d658a6a829319b82291173dd0
parent8fd2270370244f0e93b4fd9ac4e13473f3cd7dd7
[StackSafety] Add info into function summary

Summary:
This patch adds optional field into function summary,
implements asm and bitcode serialization. YAML
serialization is omitted and can be added later if
needed.

This patch includes this information into summary only
if module contains at least one sanitize_memtag function.
In a near future MTE is the user of the analysis.
Later if needed we can provede more direct control
on when information is included into summary.

Reviewers: eugenis

Subscribers: hiraditya, steven_wu, dexonsmith, arphaman, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80908
18 files changed:
llvm/docs/LangRef.rst
llvm/include/llvm/Analysis/ModuleSummaryAnalysis.h
llvm/include/llvm/Analysis/StackSafetyAnalysis.h
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/Analysis/StackSafetyAnalysis.cpp
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLParser.h
llvm/lib/AsmParser/LLToken.h
llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/ModuleSummaryIndex.cpp
llvm/test/Bitcode/thinlto-function-summary-paramaccess.ll [new file with mode: 0644]