diff options
author | Vitaly Buka <vitalybuka@google.com> | 2020-05-31 23:49:57 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2020-06-10 02:43:28 -0700 |
commit | 4666953ce229cd7a8b042e5f80ecc97b4eae3636 (patch) | |
tree | c96ad1e3ae01bf6d658a6a829319b82291173dd0 /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | 8fd2270370244f0e93b4fd9ac4e13473f3cd7dd7 (diff) | |
download | llvm-4666953ce229cd7a8b042e5f80ecc97b4eae3636.zip llvm-4666953ce229cd7a8b042e5f80ecc97b4eae3636.tar.gz llvm-4666953ce229cd7a8b042e5f80ecc97b4eae3636.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r-- | llvm/lib/IR/ModuleSummaryIndex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp index 158369a..91612ea 100644 --- a/llvm/lib/IR/ModuleSummaryIndex.cpp +++ b/llvm/lib/IR/ModuleSummaryIndex.cpp @@ -35,6 +35,8 @@ static cl::opt<bool> ImportConstantsWithRefs( "import-constants-with-refs", cl::init(true), cl::Hidden, cl::desc("Import constant global variables with references")); +constexpr uint32_t FunctionSummary::ParamAccess::RangeWidth; + FunctionSummary FunctionSummary::ExternalNode = FunctionSummary::makeDummyFunctionSummary({}); |