Bläddra i källkod

Clean up mistakes made when fixing copyright banners.

Tex Riddell 8 år sedan
förälder
incheckning
e077864885
45 ändrade filer med 113 tillägg och 47 borttagningar
  1. 0 3
      examples/ModuleMaker/README.txt
  2. 1 0
      lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h
  3. 1 0
      lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h
  4. 1 0
      lib/ExecutionEngine/IntelJITEvents/jitprofiling.h
  5. 0 3
      lib/Fuzzer/test/CounterTest.cpp
  6. 0 2
      lib/Fuzzer/test/CxxTokensTest.cpp
  7. 0 2
      lib/Fuzzer/test/DFSanMemcmpTest.cpp
  8. 0 2
      lib/Fuzzer/test/DFSanSimpleCmpTest.cpp
  9. 0 2
      lib/Fuzzer/test/FourIndependentBranchesTest.cpp
  10. 0 2
      lib/Fuzzer/test/FullCoverageSetTest.cpp
  11. 0 2
      lib/Fuzzer/test/InfiniteTest.cpp
  12. 5 0
      lib/Support/Unix/COM.inc
  13. 5 0
      lib/Support/Unix/Host.inc
  14. 5 0
      lib/Support/Unix/Mutex.inc
  15. 5 0
      lib/Support/Unix/Path.inc
  16. 5 0
      lib/Support/Unix/Program.inc
  17. 5 0
      lib/Support/Unix/RWMutex.inc
  18. 5 0
      lib/Support/Unix/ThreadLocal.inc
  19. 5 0
      lib/Support/Unix/TimeValue.inc
  20. 4 0
      lib/Support/Windows/COM.inc
  21. 5 0
      lib/Support/Windows/Mutex.inc
  22. 5 0
      lib/Support/Windows/Path.inc
  23. 5 0
      lib/Support/Windows/RWMutex.inc
  24. 5 0
      lib/Support/Windows/ThreadLocal.inc
  25. 5 0
      lib/Support/Windows/Watchdog.inc
  26. 3 0
      lib/Transforms/ObjCARC/ObjCARCContract.cpp
  27. 0 3
      tools/clang/NOTES.txt
  28. 0 3
      tools/clang/README.txt
  29. 0 3
      tools/clang/bindings/python/README.txt
  30. 0 2
      tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td
  31. 0 1
      tools/clang/include/clang/AST/CommentHTMLTags.td
  32. 0 1
      tools/clang/include/clang/Basic/CommentNodes.td
  33. 0 1
      tools/clang/include/clang/Basic/DeclNodes.td
  34. 0 1
      tools/clang/include/clang/Basic/StmtNodes.td
  35. 0 1
      tools/clang/lib/Basic/Attributes.cpp
  36. 2 1
      tools/clang/lib/Headers/Intrin.h
  37. 1 1
      tools/clang/lib/Headers/__wmmintrin_aes.h
  38. 1 1
      tools/clang/lib/Headers/__wmmintrin_pclmul.h
  39. 3 1
      tools/clang/lib/Headers/avx512bwintrin.h
  40. 3 1
      tools/clang/lib/Headers/avx512cdintrin.h
  41. 3 1
      tools/clang/lib/Headers/avx512erintrin.h
  42. 3 1
      tools/clang/lib/Headers/avx512fintrin.h
  43. 22 1
      tools/clang/lib/Headers/varargs.h
  44. 0 3
      tools/clang/lib/StaticAnalyzer/README.txt
  45. 0 2
      utils/testgen/mc-bundling-x86-gen.py

+ 0 - 3
examples/ModuleMaker/README.txt

@@ -1,9 +1,6 @@
 //===----------------------------------------------------------------------===//
 //                         ModuleMaker Sample project
 //===----------------------------------------------------------------------===//
-//===----------------------------------------------------------------------===//
-//                         ModuleMaker Sample project
-//===----------------------------------------------------------------------===//
 
 This project is an extremely simple example of using some simple pieces of the 
 LLVM API.  The actual executable generated by this project simply emits an 

+ 1 - 0
lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h

@@ -16,6 +16,7 @@
  * subsequent merges and contributions from the original source base eaiser.
  *
  *===----------------------------------------------------------------------===*/
+#ifndef _ITTNOTIFY_CONFIG_H_
 #define _ITTNOTIFY_CONFIG_H_
 
 /** @cond exclude_from_documentation */

+ 1 - 0
lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h

@@ -13,6 +13,7 @@
  * subsequent merges and contributions from the original source base eaiser.
  *
  *===----------------------------------------------------------------------===*/
+#ifndef _ITTNOTIFY_TYPES_H_
 #define _ITTNOTIFY_TYPES_H_
 
 typedef enum ___itt_group_id

+ 1 - 0
lib/ExecutionEngine/IntelJITEvents/jitprofiling.h

@@ -16,6 +16,7 @@
  * subsequent merges and contributions from the original source base eaiser.
  *
  *===----------------------------------------------------------------------===*/
+#ifndef __JITPROFILING_H__
 #define __JITPROFILING_H__
 
 /*

+ 0 - 3
lib/Fuzzer/test/CounterTest.cpp

@@ -1,6 +1,3 @@
-// Test for a fuzzer: must find the case where a particular basic block is
-// executed many times.
-
 // Test for a fuzzer: must find the case where a particular basic block is
 // executed many times.
 #include <iostream>

+ 0 - 2
lib/Fuzzer/test/CxxTokensTest.cpp

@@ -1,5 +1,3 @@
-// Simple test for a fuzzer. The fuzzer must find a sequence of C++ tokens.
-
 // Simple test for a fuzzer. The fuzzer must find a sequence of C++ tokens.
 #include <cstdint>
 #include <cstdlib>

+ 0 - 2
lib/Fuzzer/test/DFSanMemcmpTest.cpp

@@ -1,5 +1,3 @@
-// Simple test for a fuzzer. The fuzzer must find a particular string.
-
 // Simple test for a fuzzer. The fuzzer must find a particular string.
 #include <cstring>
 #include <cstdint>

+ 0 - 2
lib/Fuzzer/test/DFSanSimpleCmpTest.cpp

@@ -1,5 +1,3 @@
-// Simple test for a fuzzer. The fuzzer must find several narrow ranges.
-
 // Simple test for a fuzzer. The fuzzer must find several narrow ranges.
 #include <cstdint>
 #include <cstdlib>

+ 0 - 2
lib/Fuzzer/test/FourIndependentBranchesTest.cpp

@@ -1,5 +1,3 @@
-// Simple test for a fuzzer. The fuzzer must find the string "FUZZ".
-
 // Simple test for a fuzzer. The fuzzer must find the string "FUZZ".
 #include <cstdint>
 #include <cstdlib>

+ 0 - 2
lib/Fuzzer/test/FullCoverageSetTest.cpp

@@ -1,5 +1,3 @@
-// Simple test for a fuzzer. The fuzzer must find the string "FUZZER".
-
 // Simple test for a fuzzer. The fuzzer must find the string "FUZZER".
 #include <cstdint>
 #include <cstdlib>

+ 0 - 2
lib/Fuzzer/test/InfiniteTest.cpp

@@ -1,5 +1,3 @@
-// Simple test for a fuzzer. The fuzzer must find the string "Hi!".
-
 // Simple test for a fuzzer. The fuzzer must find the string "Hi!".
 #include <cstdint>
 #include <cstdlib>

+ 5 - 0
lib/Support/Unix/COM.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 namespace llvm {
 namespace sys {
 

+ 5 - 0
lib/Support/Unix/Host.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 #include "Unix.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Config/config.h"

+ 5 - 0
lib/Support/Unix/Mutex.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 namespace llvm
 {
 using namespace sys;

+ 5 - 0
lib/Support/Unix/Path.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 #include "Unix.h"
 #include <limits.h>
 #include <stdio.h>

+ 5 - 0
lib/Support/Unix/Program.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 #include "Unix.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Config/config.h"

+ 5 - 0
lib/Support/Unix/RWMutex.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 #include "llvm/Support/Mutex.h"
 
 namespace llvm {

+ 5 - 0
lib/Support/Unix/ThreadLocal.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_GETSPECIFIC)
 
 #include <cassert>

+ 5 - 0
lib/Support/Unix/TimeValue.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic UNIX code that
+//===          is guaranteed to work on *all* UNIX variants.
+//===----------------------------------------------------------------------===//
+
 #include "Unix.h"
 
 namespace llvm {

+ 4 - 0
lib/Support/Windows/COM.inc

@@ -11,6 +11,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only Windows code.
+//===----------------------------------------------------------------------===//
+
 #include <objbase.h>
 
 namespace llvm {

+ 5 - 0
lib/Support/Windows/Mutex.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic Win32 code that
+//===          is guaranteed to work on *all* Win32 variants.
+//===----------------------------------------------------------------------===//
+
 #include "WindowsSupport.h"
 #include "llvm/Support/Mutex.h"
 

+ 5 - 0
lib/Support/Windows/Path.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic Windows code that
+//===          is guaranteed to work on *all* Windows variants.
+//===----------------------------------------------------------------------===//
+
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Support/WindowsError.h"
 #include <fcntl.h>

+ 5 - 0
lib/Support/Windows/RWMutex.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic Win32 code that
+//===          is guaranteed to work on *all* Win32 variants.
+//===----------------------------------------------------------------------===//
+
 #include "WindowsSupport.h"
 
 namespace llvm {

+ 5 - 0
lib/Support/Windows/ThreadLocal.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+//===----------------------------------------------------------------------===//
+//=== WARNING: Implementation here must contain only generic Win32 code that
+//===          is guaranteed to work on *all* Win32 variants.
+//===----------------------------------------------------------------------===//
+
 #include "WindowsSupport.h"
 #include "llvm/Support/ThreadLocal.h"
 

+ 5 - 0
lib/Support/Windows/Watchdog.inc

@@ -11,6 +11,11 @@
 //
 //===----------------------------------------------------------------------===//
 
+// TODO: implement.
+// Currently this is only used by PrettyStackTrace which is also unimplemented
+// on Windows. Roughly, a Windows implementation would use CreateWaitableTimer
+// and a second thread to run the TimerAPCProc.
+
 namespace llvm {
   namespace sys {
     Watchdog::Watchdog(unsigned int seconds) {}

+ 3 - 0
lib/Transforms/ObjCARC/ObjCARCContract.cpp

@@ -23,6 +23,9 @@
 ///
 //===----------------------------------------------------------------------===//
 
+// TODO: ObjCARCContract could insert PHI nodes when uses aren't
+// dominated by single calls.
+
 #include "ObjCARC.h"
 #include "ARCRuntimeEntryPoints.h"
 #include "DependencyAnalysis.h"

+ 0 - 3
tools/clang/NOTES.txt

@@ -1,9 +1,6 @@
 //===---------------------------------------------------------------------===//
 // Random Notes
 //===---------------------------------------------------------------------===//
-//===---------------------------------------------------------------------===//
-// Random Notes
-//===---------------------------------------------------------------------===//
 
 //===---------------------------------------------------------------------===//
 

+ 0 - 3
tools/clang/README.txt

@@ -1,9 +1,6 @@
 //===----------------------------------------------------------------------===//
 // C Language Family Front-end
 //===----------------------------------------------------------------------===//
-//===----------------------------------------------------------------------===//
-// C Language Family Front-end
-//===----------------------------------------------------------------------===//
 
 Welcome to Clang.  This is a compiler front-end for the C family of languages
 (C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM

+ 0 - 3
tools/clang/bindings/python/README.txt

@@ -1,9 +1,6 @@
 //===----------------------------------------------------------------------===//
 // Clang Python Bindings
 //===----------------------------------------------------------------------===//
-//===----------------------------------------------------------------------===//
-// Clang Python Bindings
-//===----------------------------------------------------------------------===//
 
 This directory implements Python bindings for Clang.
 

+ 0 - 2
tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td

@@ -1,5 +1,3 @@
-// HTML Named Character Reference
-
 // HTML Named Character Reference
 class NCR<string spelling, int codePoint> {
   string Spelling = spelling;

+ 0 - 1
tools/clang/include/clang/AST/CommentHTMLTags.td

@@ -1,4 +1,3 @@
-
 class Tag<string spelling> {
   string Spelling = spelling;
   bit EndTagOptional = 0;

+ 0 - 1
tools/clang/include/clang/Basic/CommentNodes.td

@@ -1,4 +1,3 @@
-
 class Comment<bit abstract = 0> {
   bit Abstract = abstract;
 }

+ 0 - 1
tools/clang/include/clang/Basic/DeclNodes.td

@@ -1,4 +1,3 @@
-
 class AttrSubject;
 
 class Decl<bit abstract = 0> : AttrSubject {

+ 0 - 1
tools/clang/include/clang/Basic/StmtNodes.td

@@ -1,4 +1,3 @@
-
 class AttrSubject;
 
 class Stmt<bit abstract = 0> : AttrSubject {

+ 0 - 1
tools/clang/lib/Basic/Attributes.cpp

@@ -1,4 +1,3 @@
-
 #include "clang/Basic/Attributes.h"
 #include "clang/Basic/IdentifierTable.h"
 #include "llvm/ADT/StringSwitch.h"

+ 2 - 1
tools/clang/lib/Headers/Intrin.h

@@ -20,6 +20,8 @@
  *
  *===-----------------------------------------------------------------------===
  */
+
+/* Only include this if we're compiling for the windows platform. */
 #ifndef _MSC_VER
 #include_next <Intrin.h>
 #else
@@ -954,4 +956,3 @@ __writecr3(unsigned int __cr3_val) {
 
 #endif /* __INTRIN_H */
 #endif /* _MSC_VER */
-

+ 1 - 1
tools/clang/lib/Headers/__wmmintrin_aes.h

@@ -20,6 +20,7 @@
  *
  *===-----------------------------------------------------------------------===
  */
+#ifndef _WMMINTRIN_AES_H
 #define _WMMINTRIN_AES_H
 
 #include <emmintrin.h>
@@ -69,4 +70,3 @@ _mm_aesimc_si128(__m128i __V)
 #endif
 
 #endif  /* _WMMINTRIN_AES_H */
-

+ 1 - 1
tools/clang/lib/Headers/__wmmintrin_pclmul.h

@@ -20,6 +20,7 @@
  *
  *===-----------------------------------------------------------------------===
  */
+#ifndef _WMMINTRIN_PCLMUL_H
 #define _WMMINTRIN_PCLMUL_H
 
 #if !defined (__PCLMUL__)
@@ -31,4 +32,3 @@
 #endif
 
 #endif /* _WMMINTRIN_PCLMUL_H */
-

+ 3 - 1
tools/clang/lib/Headers/avx512bwintrin.h

@@ -21,6 +21,9 @@
  *
  *===-----------------------------------------------------------------------===
  */
+#ifndef __IMMINTRIN_H
+#error "Never use <avx512bwintrin.h> directly; include <immintrin.h> instead."
+#endif
 
 #ifndef __AVX512BWINTRIN_H
 #define __AVX512BWINTRIN_H
@@ -1245,4 +1248,3 @@ _mm512_maskz_permutex2var_epi16 (__mmask32 __U, __m512i __A,
 #undef __DEFAULT_FN_ATTRS
 
 #endif
-

+ 3 - 1
tools/clang/lib/Headers/avx512cdintrin.h

@@ -21,6 +21,9 @@
  *
  *===-----------------------------------------------------------------------===
  */
+#ifndef __IMMINTRIN_H
+#error "Never use <avx512cdintrin.h> directly; include <immintrin.h> instead."
+#endif
 
 #ifndef __AVX512CDINTRIN_H
 #define __AVX512CDINTRIN_H
@@ -126,4 +129,3 @@ _mm512_maskz_lzcnt_epi64 (__mmask8 __U, __m512i __A)
 #undef __DEFAULT_FN_ATTRS
 
 #endif
-

+ 3 - 1
tools/clang/lib/Headers/avx512erintrin.h

@@ -20,6 +20,9 @@
  *
  *===-----------------------------------------------------------------------===
  */
+#ifndef __IMMINTRIN_H
+#error "Never use <avx512erintrin.h> directly; include <immintrin.h> instead."
+#endif
 
 #ifndef __AVX512ERINTRIN_H
 #define __AVX512ERINTRIN_H
@@ -280,4 +283,3 @@
   _mm_maskz_rcp28_round_sd((M), (A), (B), _MM_FROUND_CUR_DIRECTION)
 
 #endif // __AVX512ERINTRIN_H
-

+ 3 - 1
tools/clang/lib/Headers/avx512fintrin.h

@@ -20,6 +20,9 @@
  *
  *===-----------------------------------------------------------------------===
  */
+#ifndef __IMMINTRIN_H
+#error "Never use <avx512fintrin.h> directly; include <immintrin.h> instead."
+#endif
 
 #ifndef __AVX512FINTRIN_H
 #define __AVX512FINTRIN_H
@@ -2452,4 +2455,3 @@ _mm512_mask_cmpneq_epu64_mask(__mmask8 __u, __m512i __a, __m512i __b) {
 #undef __DEFAULT_FN_ATTRS
 
 #endif // __AVX512FINTRIN_H
-

+ 22 - 1
tools/clang/lib/Headers/varargs.h

@@ -1,5 +1,26 @@
 /*===---- varargs.h - Variable argument handling -------------------------------------===
+*
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+* THE SOFTWARE.
+*
+*===-----------------------------------------------------------------------===
+*/
+#ifndef __VARARGS_H
 #define __VARARGS_H
   #error "Please use <stdarg.h> instead of <varargs.h>"
 #endif
-

+ 0 - 3
tools/clang/lib/StaticAnalyzer/README.txt

@@ -1,9 +1,6 @@
 //===----------------------------------------------------------------------===//
 // Clang Static Analyzer
 //===----------------------------------------------------------------------===//
-//===----------------------------------------------------------------------===//
-// Clang Static Analyzer
-//===----------------------------------------------------------------------===//
 
 = Library Structure =
 

+ 0 - 2
utils/testgen/mc-bundling-x86-gen.py

@@ -1,7 +1,5 @@
 #!/usr/bin/python
 
-#!/usr/bin/python
-
 # Auto-generates an exhaustive and repetitive test for correct bundle-locked
 # alignment on x86.
 # For every possible offset in an aligned bundle, a bundle-locked group of every