Skip to content

Commit 6ade4eb

Browse files
committed
MemoryLocation.h - reduce Instructions.h include to Instruction.h include. NFC.
Add forward declarations for the few Instr classes we reference.
1 parent 8eae321 commit 6ade4eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/include/llvm/Analysis/MemoryLocation.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,25 @@
1717

1818
#include "llvm/ADT/DenseMapInfo.h"
1919
#include "llvm/ADT/Optional.h"
20-
#include "llvm/IR/Instructions.h"
20+
#include "llvm/IR/Instruction.h"
2121
#include "llvm/IR/Metadata.h"
2222
#include "llvm/Support/TypeSize.h"
2323

2424
namespace llvm {
2525

26+
class CallBase;
2627
class LoadInst;
2728
class StoreInst;
2829
class MemTransferInst;
2930
class MemIntrinsic;
31+
class AtomicCmpXchgInst;
3032
class AtomicMemTransferInst;
3133
class AtomicMemIntrinsic;
34+
class AtomicRMWInst;
3235
class AnyMemTransferInst;
3336
class AnyMemIntrinsic;
3437
class TargetLibraryInfo;
38+
class VAArgInst;
3539

3640
// Represents the size of a MemoryLocation. Logically, it's an
3741
// Optional<uint63_t> that also carries a bit to represent whether the integer

0 commit comments

Comments
 (0)