From e07786488564175e7005f2dc6dcbd3cb330a3439 Mon Sep 17 00:00:00 2001 From: Tex Riddell Date: Wed, 25 Jan 2017 14:36:50 -0800 Subject: [PATCH] Clean up mistakes made when fixing copyright banners. --- examples/ModuleMaker/README.txt | 3 --- .../IntelJITEvents/ittnotify_config.h | 1 + .../IntelJITEvents/ittnotify_types.h | 1 + .../IntelJITEvents/jitprofiling.h | 1 + lib/Fuzzer/test/CounterTest.cpp | 3 --- lib/Fuzzer/test/CxxTokensTest.cpp | 2 -- lib/Fuzzer/test/DFSanMemcmpTest.cpp | 2 -- lib/Fuzzer/test/DFSanSimpleCmpTest.cpp | 2 -- .../test/FourIndependentBranchesTest.cpp | 2 -- lib/Fuzzer/test/FullCoverageSetTest.cpp | 2 -- lib/Fuzzer/test/InfiniteTest.cpp | 2 -- lib/Support/Unix/COM.inc | 5 ++++ lib/Support/Unix/Host.inc | 5 ++++ lib/Support/Unix/Mutex.inc | 5 ++++ lib/Support/Unix/Path.inc | 5 ++++ lib/Support/Unix/Program.inc | 5 ++++ lib/Support/Unix/RWMutex.inc | 5 ++++ lib/Support/Unix/ThreadLocal.inc | 5 ++++ lib/Support/Unix/TimeValue.inc | 5 ++++ lib/Support/Windows/COM.inc | 4 ++++ lib/Support/Windows/Mutex.inc | 5 ++++ lib/Support/Windows/Path.inc | 5 ++++ lib/Support/Windows/RWMutex.inc | 5 ++++ lib/Support/Windows/ThreadLocal.inc | 5 ++++ lib/Support/Windows/Watchdog.inc | 5 ++++ lib/Transforms/ObjCARC/ObjCARCContract.cpp | 3 +++ tools/clang/NOTES.txt | 3 --- tools/clang/README.txt | 3 --- tools/clang/bindings/python/README.txt | 3 --- .../CommentHTMLNamedCharacterReferences.td | 2 -- .../include/clang/AST/CommentHTMLTags.td | 1 - .../clang/include/clang/Basic/CommentNodes.td | 1 - tools/clang/include/clang/Basic/DeclNodes.td | 1 - tools/clang/include/clang/Basic/StmtNodes.td | 1 - tools/clang/lib/Basic/Attributes.cpp | 1 - tools/clang/lib/Headers/Intrin.h | 3 ++- tools/clang/lib/Headers/__wmmintrin_aes.h | 2 +- tools/clang/lib/Headers/__wmmintrin_pclmul.h | 2 +- tools/clang/lib/Headers/avx512bwintrin.h | 4 +++- tools/clang/lib/Headers/avx512cdintrin.h | 4 +++- tools/clang/lib/Headers/avx512erintrin.h | 4 +++- tools/clang/lib/Headers/avx512fintrin.h | 4 +++- tools/clang/lib/Headers/varargs.h | 23 ++++++++++++++++++- tools/clang/lib/StaticAnalyzer/README.txt | 3 --- utils/testgen/mc-bundling-x86-gen.py | 2 -- 45 files changed, 113 insertions(+), 47 deletions(-) diff --git a/examples/ModuleMaker/README.txt b/examples/ModuleMaker/README.txt index baa0b766ae..66a5d3fe0b 100644 --- a/examples/ModuleMaker/README.txt +++ b/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 diff --git a/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h b/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h index 22eb24abd0..1f029fb1c4 100644 --- a/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h +++ b/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 */ diff --git a/lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h b/lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h index ef0129c6aa..5df752f66f 100644 --- a/lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h +++ b/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 diff --git a/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h b/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h index 41ed3b0fb1..844536f7dc 100644 --- a/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h +++ b/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__ /* diff --git a/lib/Fuzzer/test/CounterTest.cpp b/lib/Fuzzer/test/CounterTest.cpp index e538447538..29ddb02eba 100644 --- a/lib/Fuzzer/test/CounterTest.cpp +++ b/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 diff --git a/lib/Fuzzer/test/CxxTokensTest.cpp b/lib/Fuzzer/test/CxxTokensTest.cpp index ff47275a89..77d08b3d10 100644 --- a/lib/Fuzzer/test/CxxTokensTest.cpp +++ b/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 #include diff --git a/lib/Fuzzer/test/DFSanMemcmpTest.cpp b/lib/Fuzzer/test/DFSanMemcmpTest.cpp index e943411e3f..510a243980 100644 --- a/lib/Fuzzer/test/DFSanMemcmpTest.cpp +++ b/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 #include diff --git a/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp b/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp index 0d94c5d164..ee378146da 100644 --- a/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp +++ b/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 #include diff --git a/lib/Fuzzer/test/FourIndependentBranchesTest.cpp b/lib/Fuzzer/test/FourIndependentBranchesTest.cpp index 0fd795ca07..e0b7509b8d 100644 --- a/lib/Fuzzer/test/FourIndependentBranchesTest.cpp +++ b/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 #include diff --git a/lib/Fuzzer/test/FullCoverageSetTest.cpp b/lib/Fuzzer/test/FullCoverageSetTest.cpp index a5d20755f7..2c6ff98db0 100644 --- a/lib/Fuzzer/test/FullCoverageSetTest.cpp +++ b/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 #include diff --git a/lib/Fuzzer/test/InfiniteTest.cpp b/lib/Fuzzer/test/InfiniteTest.cpp index 48e4ba2d20..b6d174ffdc 100644 --- a/lib/Fuzzer/test/InfiniteTest.cpp +++ b/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 #include diff --git a/lib/Support/Unix/COM.inc b/lib/Support/Unix/COM.inc index 8018d1e644..5b71de74eb 100644 --- a/lib/Support/Unix/COM.inc +++ b/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 { diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc index f2d35ab817..457217125a 100644 --- a/lib/Support/Unix/Host.inc +++ b/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" diff --git a/lib/Support/Unix/Mutex.inc b/lib/Support/Unix/Mutex.inc index e60f4c9784..fe6b170414 100644 --- a/lib/Support/Unix/Mutex.inc +++ b/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; diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 91788d3d07..973d010dca 100644 --- a/lib/Support/Unix/Path.inc +++ b/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 #include diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index f3135fc2d6..8947b62e4d 100644 --- a/lib/Support/Unix/Program.inc +++ b/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" diff --git a/lib/Support/Unix/RWMutex.inc b/lib/Support/Unix/RWMutex.inc index ffe1d8f1c3..85a104334a 100644 --- a/lib/Support/Unix/RWMutex.inc +++ b/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 { diff --git a/lib/Support/Unix/ThreadLocal.inc b/lib/Support/Unix/ThreadLocal.inc index 9a42bbb92b..31c3f3835b 100644 --- a/lib/Support/Unix/ThreadLocal.inc +++ b/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 diff --git a/lib/Support/Unix/TimeValue.inc b/lib/Support/Unix/TimeValue.inc index 5a1f203853..042e0dacc3 100644 --- a/lib/Support/Unix/TimeValue.inc +++ b/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 { diff --git a/lib/Support/Windows/COM.inc b/lib/Support/Windows/COM.inc index 4f33993045..0c50d6f74e 100644 --- a/lib/Support/Windows/COM.inc +++ b/lib/Support/Windows/COM.inc @@ -11,6 +11,10 @@ // //===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// +//=== WARNING: Implementation here must contain only Windows code. +//===----------------------------------------------------------------------===// + #include namespace llvm { diff --git a/lib/Support/Windows/Mutex.inc b/lib/Support/Windows/Mutex.inc index 14a370269d..ab79d07912 100644 --- a/lib/Support/Windows/Mutex.inc +++ b/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" diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 0794fc008f..0e582258a3 100644 --- a/lib/Support/Windows/Path.inc +++ b/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 diff --git a/lib/Support/Windows/RWMutex.inc b/lib/Support/Windows/RWMutex.inc index 79b79cde91..d7ab99f45e 100644 --- a/lib/Support/Windows/RWMutex.inc +++ b/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 { diff --git a/lib/Support/Windows/ThreadLocal.inc b/lib/Support/Windows/ThreadLocal.inc index 9ad6b54ffb..b9cb8ff983 100644 --- a/lib/Support/Windows/ThreadLocal.inc +++ b/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" diff --git a/lib/Support/Windows/Watchdog.inc b/lib/Support/Windows/Watchdog.inc index 7fa61482ca..fab2bdf2a9 100644 --- a/lib/Support/Windows/Watchdog.inc +++ b/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) {} diff --git a/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/lib/Transforms/ObjCARC/ObjCARCContract.cpp index 4d0ce9cf9d..baca76ba3f 100644 --- a/lib/Transforms/ObjCARC/ObjCARCContract.cpp +++ b/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" diff --git a/tools/clang/NOTES.txt b/tools/clang/NOTES.txt index 4e4e5ccb7a..53f35a0186 100644 --- a/tools/clang/NOTES.txt +++ b/tools/clang/NOTES.txt @@ -1,9 +1,6 @@ //===---------------------------------------------------------------------===// // Random Notes //===---------------------------------------------------------------------===// -//===---------------------------------------------------------------------===// -// Random Notes -//===---------------------------------------------------------------------===// //===---------------------------------------------------------------------===// diff --git a/tools/clang/README.txt b/tools/clang/README.txt index 5f09c555d1..ada9ebc9e2 100644 --- a/tools/clang/README.txt +++ b/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 diff --git a/tools/clang/bindings/python/README.txt b/tools/clang/bindings/python/README.txt index fdfd11ed40..742cf8fbb8 100644 --- a/tools/clang/bindings/python/README.txt +++ b/tools/clang/bindings/python/README.txt @@ -1,9 +1,6 @@ //===----------------------------------------------------------------------===// // Clang Python Bindings //===----------------------------------------------------------------------===// -//===----------------------------------------------------------------------===// -// Clang Python Bindings -//===----------------------------------------------------------------------===// This directory implements Python bindings for Clang. diff --git a/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td b/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td index c32369ca4d..4493108712 100644 --- a/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td +++ b/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td @@ -1,5 +1,3 @@ -// HTML Named Character Reference - // HTML Named Character Reference class NCR { string Spelling = spelling; diff --git a/tools/clang/include/clang/AST/CommentHTMLTags.td b/tools/clang/include/clang/AST/CommentHTMLTags.td index c5226272b8..2514900949 100644 --- a/tools/clang/include/clang/AST/CommentHTMLTags.td +++ b/tools/clang/include/clang/AST/CommentHTMLTags.td @@ -1,4 +1,3 @@ - class Tag { string Spelling = spelling; bit EndTagOptional = 0; diff --git a/tools/clang/include/clang/Basic/CommentNodes.td b/tools/clang/include/clang/Basic/CommentNodes.td index 78a21f1d76..7bf32b78b5 100644 --- a/tools/clang/include/clang/Basic/CommentNodes.td +++ b/tools/clang/include/clang/Basic/CommentNodes.td @@ -1,4 +1,3 @@ - class Comment { bit Abstract = abstract; } diff --git a/tools/clang/include/clang/Basic/DeclNodes.td b/tools/clang/include/clang/Basic/DeclNodes.td index b53dd33e7a..77b44ed5de 100644 --- a/tools/clang/include/clang/Basic/DeclNodes.td +++ b/tools/clang/include/clang/Basic/DeclNodes.td @@ -1,4 +1,3 @@ - class AttrSubject; class Decl : AttrSubject { diff --git a/tools/clang/include/clang/Basic/StmtNodes.td b/tools/clang/include/clang/Basic/StmtNodes.td index 5d0c795275..71f3829c97 100644 --- a/tools/clang/include/clang/Basic/StmtNodes.td +++ b/tools/clang/include/clang/Basic/StmtNodes.td @@ -1,4 +1,3 @@ - class AttrSubject; class Stmt : AttrSubject { diff --git a/tools/clang/lib/Basic/Attributes.cpp b/tools/clang/lib/Basic/Attributes.cpp index 6f3953edd9..da9ac793f1 100644 --- a/tools/clang/lib/Basic/Attributes.cpp +++ b/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" diff --git a/tools/clang/lib/Headers/Intrin.h b/tools/clang/lib/Headers/Intrin.h index 961f4c88aa..24b3eae8bf 100644 --- a/tools/clang/lib/Headers/Intrin.h +++ b/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 #else @@ -954,4 +956,3 @@ __writecr3(unsigned int __cr3_val) { #endif /* __INTRIN_H */ #endif /* _MSC_VER */ - diff --git a/tools/clang/lib/Headers/__wmmintrin_aes.h b/tools/clang/lib/Headers/__wmmintrin_aes.h index dfd7a0a492..9f594ee560 100644 --- a/tools/clang/lib/Headers/__wmmintrin_aes.h +++ b/tools/clang/lib/Headers/__wmmintrin_aes.h @@ -20,6 +20,7 @@ * *===-----------------------------------------------------------------------=== */ +#ifndef _WMMINTRIN_AES_H #define _WMMINTRIN_AES_H #include @@ -69,4 +70,3 @@ _mm_aesimc_si128(__m128i __V) #endif #endif /* _WMMINTRIN_AES_H */ - diff --git a/tools/clang/lib/Headers/__wmmintrin_pclmul.h b/tools/clang/lib/Headers/__wmmintrin_pclmul.h index 347ca8bb06..8d1f1b7c08 100644 --- a/tools/clang/lib/Headers/__wmmintrin_pclmul.h +++ b/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 */ - diff --git a/tools/clang/lib/Headers/avx512bwintrin.h b/tools/clang/lib/Headers/avx512bwintrin.h index 6a88a7444b..9e8297a9c9 100644 --- a/tools/clang/lib/Headers/avx512bwintrin.h +++ b/tools/clang/lib/Headers/avx512bwintrin.h @@ -21,6 +21,9 @@ * *===-----------------------------------------------------------------------=== */ +#ifndef __IMMINTRIN_H +#error "Never use directly; include 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 - diff --git a/tools/clang/lib/Headers/avx512cdintrin.h b/tools/clang/lib/Headers/avx512cdintrin.h index aea652e263..3894b29f57 100644 --- a/tools/clang/lib/Headers/avx512cdintrin.h +++ b/tools/clang/lib/Headers/avx512cdintrin.h @@ -21,6 +21,9 @@ * *===-----------------------------------------------------------------------=== */ +#ifndef __IMMINTRIN_H +#error "Never use directly; include 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 - diff --git a/tools/clang/lib/Headers/avx512erintrin.h b/tools/clang/lib/Headers/avx512erintrin.h index 11df8f56ab..56edffc11c 100644 --- a/tools/clang/lib/Headers/avx512erintrin.h +++ b/tools/clang/lib/Headers/avx512erintrin.h @@ -20,6 +20,9 @@ * *===-----------------------------------------------------------------------=== */ +#ifndef __IMMINTRIN_H +#error "Never use directly; include 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 - diff --git a/tools/clang/lib/Headers/avx512fintrin.h b/tools/clang/lib/Headers/avx512fintrin.h index 0a2983848e..4f7cba0b15 100644 --- a/tools/clang/lib/Headers/avx512fintrin.h +++ b/tools/clang/lib/Headers/avx512fintrin.h @@ -20,6 +20,9 @@ * *===-----------------------------------------------------------------------=== */ +#ifndef __IMMINTRIN_H +#error "Never use directly; include 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 - diff --git a/tools/clang/lib/Headers/varargs.h b/tools/clang/lib/Headers/varargs.h index 69a33beade..b5477d0a6a 100644 --- a/tools/clang/lib/Headers/varargs.h +++ b/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 instead of " #endif - diff --git a/tools/clang/lib/StaticAnalyzer/README.txt b/tools/clang/lib/StaticAnalyzer/README.txt index bdf3ce7389..d4310c57d8 100644 --- a/tools/clang/lib/StaticAnalyzer/README.txt +++ b/tools/clang/lib/StaticAnalyzer/README.txt @@ -1,9 +1,6 @@ //===----------------------------------------------------------------------===// // Clang Static Analyzer //===----------------------------------------------------------------------===// -//===----------------------------------------------------------------------===// -// Clang Static Analyzer -//===----------------------------------------------------------------------===// = Library Structure = diff --git a/utils/testgen/mc-bundling-x86-gen.py b/utils/testgen/mc-bundling-x86-gen.py index b8054631ed..ed9522201c 100644 --- a/utils/testgen/mc-bundling-x86-gen.py +++ b/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