]> granicus.if.org Git - llvm/commitdiff
Update the comments on default subtargets based on feedback.
authorEric Christopher <echristo@gmail.com>
Tue, 25 Jul 2017 22:21:08 +0000 (22:21 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 25 Jul 2017 22:21:08 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309041 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64TargetMachine.h
lib/Target/ARM/ARMTargetMachine.h
lib/Target/PowerPC/PPCTargetMachine.h
lib/Target/X86/X86TargetMachine.h

index 85de02e859e0c629b6e1c56209a31ea4e49764d6..a2a0a7a82fc054fec38ac46d17c2736d4111a74d 100644 (file)
@@ -36,8 +36,9 @@ public:
 
   ~AArch64TargetMachine() override;
   const AArch64Subtarget *getSubtargetImpl(const Function &F) const override;
-  // The no argument getSubtargetImpl, while it exists on some, targets is
-  // deprecated and should not be used.
+  // DO NOT IMPLEMENT: There is no such thing as a valid default subtarget,
+  // subtargets are per-function entities based on the target-specific
+  // attributes of each function.
   const AArch64Subtarget *getSubtargetImpl() const = delete;
 
   // Pass Pipeline Configuration
index 22ce949367f342313f44726cead2006bdfb6cafa..bc4c751b255a8d6d0f8669bbc5d341262a5c154e 100644 (file)
@@ -47,8 +47,9 @@ public:
   ~ARMBaseTargetMachine() override;
 
   const ARMSubtarget *getSubtargetImpl(const Function &F) const override;
-  // The no argument getSubtargetImpl, while it exists on some targets, is
-  // deprecated and should not be used.
+  // DO NOT IMPLEMENT: There is no such thing as a valid default subtarget,
+  // subtargets are per-function entities based on the target-specific
+  // attributes of each function.
   const ARMSubtarget *getSubtargetImpl() const = delete;
   bool isLittleEndian() const { return isLittle; }
 
index be705507b5347998112f232bd06391afaea805ac..81b5ef21b7ee9e45b7caf2c63626bc5159a5f210 100644 (file)
@@ -41,8 +41,9 @@ public:
   ~PPCTargetMachine() override;
 
   const PPCSubtarget *getSubtargetImpl(const Function &F) const override;
-  // The no argument getSubtargetImpl, while it exists on some targets, is
-  // deprecated and should not be used.
+  // DO NOT IMPLEMENT: There is no such thing as a valid default subtarget,
+  // subtargets are per-function entities based on the target-specific
+  // attributes of each function.
   const PPCSubtarget *getSubtargetImpl() const = delete;
 
   // Pass Pipeline Configuration
index c16207973b393a61e98010bd3e2167740a0263e8..617cec26567efabf73bb7bec79ff78c96d4b2e4e 100644 (file)
@@ -40,8 +40,9 @@ public:
   ~X86TargetMachine() override;
 
   const X86Subtarget *getSubtargetImpl(const Function &F) const override;
-  // The no argument getSubtargetImpl, while it exists on some targets, is
-  // deprecated and should not be used.
+  // DO NOT IMPLEMENT: There is no such thing as a valid default subtarget,
+  // subtargets are per-function entities based on the target-specific
+  // attributes of each function.
   const X86Subtarget *getSubtargetImpl() const = delete;
 
   TargetIRAnalysis getTargetIRAnalysis() override;