Skip to content

Commit 9760e3e

Browse files
committed
[TSAR, Memory] Process auxiliary memory locations.
1 parent fd1c2e8 commit 9760e3e

File tree

7 files changed

+243
-48
lines changed

7 files changed

+243
-48
lines changed

include/tsar/Analysis/Memory/MemoryLocationRange.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ struct MemoryLocationRange {
5252
NonCollapsable = 1u << 0,
5353
Collapsed = 1u << 1,
5454
Hint = 1u << 2,
55-
LLVM_MARK_AS_BITMASK_ENUM(Hint)
55+
Auxiliary = 1u << 3,
56+
LLVM_MARK_AS_BITMASK_ENUM(Auxiliary)
5657
};
5758

5859
struct Dimension {
@@ -192,6 +193,8 @@ struct MemoryLocationRange {
192193
append("Collapsed", KindStr);
193194
if (Kind & Hint)
194195
append("Hint", KindStr);
196+
if (Kind & Auxiliary)
197+
append("AUX", KindStr);
195198
return KindStr;
196199
}
197200

include/tsar/Unparse/Utils.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Value;
3232
class raw_ostream;
3333
class DIType;
3434
class DIVariable;
35+
class DataLayout;
3536
}
3637

3738
namespace tsar {
@@ -78,7 +79,9 @@ void printLocationSource(llvm::raw_ostream &O, const llvm::MemoryLocation &Loc,
7879
/// Print information available from a source code for the specified memory
7980
/// location and its size (<location, size>).
8081
void printLocationSource(llvm::raw_ostream &O, const MemoryLocationRange &Loc,
81-
const llvm::DominatorTree *DT = nullptr, bool IsDebug = false);
82+
const llvm::DominatorTree *DT = nullptr,
83+
const llvm::DataLayout *DL = nullptr,
84+
bool IsDebug = false);
8285

8386
/// Print information available from a source code for the specified memory
8487
/// location and its size (<location, size>).

0 commit comments

Comments
 (0)