diff options
Diffstat (limited to 'lib/Analysis/AliasAnalysisSummary.h')
-rw-r--r-- | lib/Analysis/AliasAnalysisSummary.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Analysis/AliasAnalysisSummary.h b/lib/Analysis/AliasAnalysisSummary.h index fb93a12420f8..fe75b03cedef 100644 --- a/lib/Analysis/AliasAnalysisSummary.h +++ b/lib/Analysis/AliasAnalysisSummary.h @@ -1,9 +1,8 @@ //=====- CFLSummary.h - Abstract stratified sets implementation. --------=====// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file @@ -38,7 +37,7 @@ #include "llvm/ADT/DenseMapInfo.h" #include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/IR/CallSite.h" +#include "llvm/IR/InstrTypes.h" #include <bitset> namespace llvm { @@ -196,12 +195,13 @@ struct AliasSummary { SmallVector<ExternalAttribute, 8> RetParamAttributes; }; -/// This is the result of instantiating InterfaceValue at a particular callsite +/// This is the result of instantiating InterfaceValue at a particular call struct InstantiatedValue { Value *Val; unsigned DerefLevel; }; -Optional<InstantiatedValue> instantiateInterfaceValue(InterfaceValue, CallSite); +Optional<InstantiatedValue> instantiateInterfaceValue(InterfaceValue IValue, + CallBase &Call); inline bool operator==(InstantiatedValue LHS, InstantiatedValue RHS) { return LHS.Val == RHS.Val && LHS.DerefLevel == RHS.DerefLevel; @@ -229,8 +229,8 @@ struct InstantiatedRelation { InstantiatedValue From, To; int64_t Offset; }; -Optional<InstantiatedRelation> instantiateExternalRelation(ExternalRelation, - CallSite); +Optional<InstantiatedRelation> +instantiateExternalRelation(ExternalRelation ERelation, CallBase &Call); /// This is the result of instantiating ExternalAttribute at a particular /// callsite @@ -238,8 +238,8 @@ struct InstantiatedAttr { InstantiatedValue IValue; AliasAttrs Attr; }; -Optional<InstantiatedAttr> instantiateExternalAttribute(ExternalAttribute, - CallSite); +Optional<InstantiatedAttr> instantiateExternalAttribute(ExternalAttribute EAttr, + CallBase &Call); } template <> struct DenseMapInfo<cflaa::InstantiatedValue> { |