[llvm] 6ade4eb - MemoryLocation.h - reduce Instructions.h include to Instruction.h include. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon May 25 06:00:41 PDT 2020


Author: Simon Pilgrim
Date: 2020-05-25T14:00:22+01:00
New Revision: 6ade4eb91811c7e7c59634d2de2767421d13a99b

URL: https://github.com/llvm/llvm-project/commit/6ade4eb91811c7e7c59634d2de2767421d13a99b
DIFF: https://github.com/llvm/llvm-project/commit/6ade4eb91811c7e7c59634d2de2767421d13a99b.diff

LOG: MemoryLocation.h - reduce Instructions.h include to Instruction.h include. NFC.

Add forward declarations for the few Instr classes we reference.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/MemoryLocation.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/MemoryLocation.h b/llvm/include/llvm/Analysis/MemoryLocation.h
index 9e5e43bbd5f5..ce70df66ab7a 100644
--- a/llvm/include/llvm/Analysis/MemoryLocation.h
+++ b/llvm/include/llvm/Analysis/MemoryLocation.h
@@ -17,21 +17,25 @@
 
 #include "llvm/ADT/DenseMapInfo.h"
 #include "llvm/ADT/Optional.h"
-#include "llvm/IR/Instructions.h"
+#include "llvm/IR/Instruction.h"
 #include "llvm/IR/Metadata.h"
 #include "llvm/Support/TypeSize.h"
 
 namespace llvm {
 
+class CallBase;
 class LoadInst;
 class StoreInst;
 class MemTransferInst;
 class MemIntrinsic;
+class AtomicCmpXchgInst;
 class AtomicMemTransferInst;
 class AtomicMemIntrinsic;
+class AtomicRMWInst;
 class AnyMemTransferInst;
 class AnyMemIntrinsic;
 class TargetLibraryInfo;
+class VAArgInst;
 
 // Represents the size of a MemoryLocation. Logically, it's an
 // Optional<uint63_t> that also carries a bit to represent whether the integer


        


More information about the llvm-commits mailing list