diff --git a/CMakeLists.txt b/CMakeLists.txt index 31e077419a..1a4c5bc5a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # See docs/CMake.html for instructions about how to build LLVM with CMake. cmake_minimum_required(VERSION 2.8.12.2) diff --git a/LICENSE.TXT b/LICENSE.TXT new file mode 100644 index 0000000000..84090c07a5 --- /dev/null +++ b/LICENSE.TXT @@ -0,0 +1,70 @@ +============================================================================== +LLVM Release License +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +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: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +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 +CONTRIBUTORS 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 WITH THE +SOFTWARE. + +============================================================================== +Copyrights and Licenses for Third Party Software Distributed with LLVM: +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- +Autoconf llvm/autoconf + llvm/projects/ModuleMaker/autoconf +Google Test llvm/utils/unittest/googletest +OpenBSD regex llvm/lib/Support/{reg*, COPYRIGHT.regex} +pyyaml tests llvm/test/YAMLParser/{*.data, LICENSE.TXT} +ARM contributions llvm/lib/Target/ARM/LICENSE.TXT +md5 contributions llvm/lib/Support/MD5.cpp llvm/include/llvm/Support/MD5.h diff --git a/LLVMBuild.txt b/LLVMBuild.txt index 79bf4ae4ae..92083cff25 100644 --- a/LLVMBuild.txt +++ b/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./LLVMBuild.txt ------------------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt index 11070870dd..5f3f255628 100644 --- a/cmake/modules/CMakeLists.txt +++ b/cmake/modules/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_INSTALL_PACKAGE_DIR share/llvm/cmake) set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}") diff --git a/docs/LLVMBuild.txt b/docs/LLVMBuild.txt index 1a87ee075d..d5aea864ec 100644 --- a/docs/LLVMBuild.txt +++ b/docs/LLVMBuild.txt @@ -1,7 +1,9 @@ ;===- ./docs/LLVMBuild.txt -------------------------------------*- Conf -*--===; ; -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. ; ;===------------------------------------------------------------------------===; ; diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index d3b800f9e1..463d60b19c 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,3 +1 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(ModuleMaker) diff --git a/examples/LLVMBuild.txt b/examples/LLVMBuild.txt index 40cf03d8bc..4d06ffb995 100644 --- a/examples/LLVMBuild.txt +++ b/examples/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./examples/LLVMBuild.txt ---------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/examples/ModuleMaker/CMakeLists.txt b/examples/ModuleMaker/CMakeLists.txt index fe2981e839..a73909a13b 100644 --- a/examples/ModuleMaker/CMakeLists.txt +++ b/examples/ModuleMaker/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS BitWriter Core diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp index d59ee8b256..c931972f5b 100644 --- a/examples/ModuleMaker/ModuleMaker.cpp +++ b/examples/ModuleMaker/ModuleMaker.cpp @@ -1,16 +1,17 @@ //===- examples/ModuleMaker/ModuleMaker.cpp - Example project ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleMaker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This programs is a simple example that creates an LLVM module "from scratch",// -// emitting it as a bitcode file to standard out. This is just to show how // -// LLVM projects work and to demonstrate some of the LLVM APIs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This programs is a simple example that creates an LLVM module "from scratch", +// emitting it as a bitcode file to standard out. This is just to show how +// LLVM projects work and to demonstrate some of the LLVM APIs. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/ReaderWriter.h" #include "llvm/IR/Constants.h" diff --git a/examples/ModuleMaker/README.txt b/examples/ModuleMaker/README.txt index 6313660d68..baa0b766ae 100644 --- a/examples/ModuleMaker/README.txt +++ b/examples/ModuleMaker/README.txt @@ -1,5 +1,6 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. +//===----------------------------------------------------------------------===// +// ModuleMaker Sample project +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // ModuleMaker Sample project //===----------------------------------------------------------------------===// diff --git a/include/llvm-c/Analysis.h b/include/llvm-c/Analysis.h index 71729ea57c..7f8a799685 100644 --- a/include/llvm-c/Analysis.h +++ b/include/llvm-c/Analysis.h @@ -1,18 +1,20 @@ /*===-- llvm-c/Analysis.h - Analysis Library C Interface --------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Analysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMAnalysis.a, which // -// implements various analyses of the LLVM IR. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMAnalysis.a, which *| +|* implements various analyses of the LLVM IR. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_ANALYSIS_H #define LLVM_C_ANALYSIS_H diff --git a/include/llvm-c/BitReader.h b/include/llvm-c/BitReader.h index c07417f4da..f3b388bc4f 100644 --- a/include/llvm-c/BitReader.h +++ b/include/llvm-c/BitReader.h @@ -1,18 +1,20 @@ /*===-- llvm-c/BitReader.h - BitReader Library C Interface ------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// BitReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMBitReader.a, which // -// implements input of the LLVM bitcode format. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMBitReader.a, which *| +|* implements input of the LLVM bitcode format. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_BITREADER_H #define LLVM_C_BITREADER_H diff --git a/include/llvm-c/BitWriter.h b/include/llvm-c/BitWriter.h index b104badc30..f25ad3a445 100644 --- a/include/llvm-c/BitWriter.h +++ b/include/llvm-c/BitWriter.h @@ -1,18 +1,20 @@ /*===-- llvm-c/BitWriter.h - BitWriter Library C Interface ------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// BitWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMBitWriter.a, which // -// implements output of the LLVM bitcode format. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMBitWriter.a, which *| +|* implements output of the LLVM bitcode format. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_BITWRITER_H #define LLVM_C_BITWRITER_H diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 323d8fc3c4..5c32178051 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -1,15 +1,16 @@ /*===-- llvm-c/Core.h - Core Library C Interface ------------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Core.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMCore.a, which implements // -// the LLVM intermediate representation. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMCore.a, which implements *| +|* the LLVM intermediate representation. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_CORE_H #define LLVM_C_CORE_H diff --git a/include/llvm-c/Disassembler.h b/include/llvm-c/Disassembler.h index e6a968addb..77f5b90109 100644 --- a/include/llvm-c/Disassembler.h +++ b/include/llvm-c/Disassembler.h @@ -1,15 +1,16 @@ /*===-- llvm-c/Disassembler.h - Disassembler Public C Interface ---*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassembler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header provides a public interface to a disassembler library. // -// LLVM provides an implementation of this interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides a public interface to a disassembler library. *| +|* LLVM provides an implementation of this interface. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_DISASSEMBLER_H #define LLVM_C_DISASSEMBLER_H diff --git a/include/llvm-c/ExecutionEngine.h b/include/llvm-c/ExecutionEngine.h index 736a4b61b5..94861a5842 100644 --- a/include/llvm-c/ExecutionEngine.h +++ b/include/llvm-c/ExecutionEngine.h @@ -1,18 +1,20 @@ /*===-- llvm-c/ExecutionEngine.h - ExecutionEngine Lib C Iface --*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionEngine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMExecutionEngine.o, which // -// implements various analyses of the LLVM IR. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMExecutionEngine.o, which *| +|* implements various analyses of the LLVM IR. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_EXECUTIONENGINE_H #define LLVM_C_EXECUTIONENGINE_H diff --git a/include/llvm-c/IRReader.h b/include/llvm-c/IRReader.h index b76b04122f..5001afb7ed 100644 --- a/include/llvm-c/IRReader.h +++ b/include/llvm-c/IRReader.h @@ -1,14 +1,15 @@ /*===-- llvm-c/IRReader.h - IR Reader C Interface -----------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// IRReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C interface to the IR Reader. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file defines the C interface to the IR Reader. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_IRREADER_H #define LLVM_C_IRREADER_H diff --git a/include/llvm-c/Initialization.h b/include/llvm-c/Initialization.h index 1c1bebe4d3..44194f8ea3 100644 --- a/include/llvm-c/Initialization.h +++ b/include/llvm-c/Initialization.h @@ -1,16 +1,17 @@ /*===-- llvm-c/Initialization.h - Initialization C Interface ------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Initialization.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to LLVM initialization routines, // -// which must be called before you can use the functionality provided by // -// the corresponding LLVM library. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to LLVM initialization routines, *| +|* which must be called before you can use the functionality provided by *| +|* the corresponding LLVM library. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_INITIALIZATION_H #define LLVM_C_INITIALIZATION_H diff --git a/include/llvm-c/LinkTimeOptimizer.h b/include/llvm-c/LinkTimeOptimizer.h index 20c42efa98..8bcf59969c 100644 --- a/include/llvm-c/LinkTimeOptimizer.h +++ b/include/llvm-c/LinkTimeOptimizer.h @@ -1,16 +1,17 @@ //===-- llvm/LinkTimeOptimizer.h - LTO Public C Interface -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkTimeOptimizer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header provides a C API to use the LLVM link time optimization // -// library. This is intended to be used by linkers which are C-only in // -// their implementation for performing LTO. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header provides a C API to use the LLVM link time optimization +// library. This is intended to be used by linkers which are C-only in +// their implementation for performing LTO. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_C_LINKTIMEOPTIMIZER_H #define LLVM_C_LINKTIMEOPTIMIZER_H diff --git a/include/llvm-c/Linker.h b/include/llvm-c/Linker.h index 1d35e8c98f..67725a4198 100644 --- a/include/llvm-c/Linker.h +++ b/include/llvm-c/Linker.h @@ -1,14 +1,15 @@ /*===-- llvm-c/Linker.h - Module Linker C Interface -------------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Linker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C interface to the module/file/archive linker. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file defines the C interface to the module/file/archive linker. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_LINKER_H #define LLVM_C_LINKER_H diff --git a/include/llvm-c/Object.h b/include/llvm-c/Object.h index 36ede33969..0fed7468dd 100644 --- a/include/llvm-c/Object.h +++ b/include/llvm-c/Object.h @@ -1,19 +1,20 @@ /*===-- llvm-c/Object.h - Object Lib C Iface --------------------*- C++ -*-===*/ -/////////////////////////////////////////////////////////////////////////////// -// // -// Object.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMObject.a, which // -// implements object file reading and writing. // -// // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ +/* */ +/* This header declares the C interface to libLLVMObject.a, which */ +/* implements object file reading and writing. */ +/* */ +/* Many exotic languages can interoperate with C code but have a harder time */ +/* with C++ due to name mangling. So in addition to C, this interface enables */ +/* tools written in such languages. */ +/* */ +/*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_OBJECT_H #define LLVM_C_OBJECT_H diff --git a/include/llvm-c/Support.h b/include/llvm-c/Support.h index eb61dc592c..eca3b7a420 100644 --- a/include/llvm-c/Support.h +++ b/include/llvm-c/Support.h @@ -1,14 +1,15 @@ /*===-- llvm-c/Support.h - Support C Interface --------------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Support.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C interface to the LLVM support library. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file defines the C interface to the LLVM support library. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_SUPPORT_H #define LLVM_C_SUPPORT_H diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h index 5187a3de98..1809786377 100644 --- a/include/llvm-c/Target.h +++ b/include/llvm-c/Target.h @@ -1,19 +1,20 @@ /*===-- llvm-c/Target.h - Target Lib C Iface --------------------*- C++ -*-===*/ -/////////////////////////////////////////////////////////////////////////////// -// // -// Target.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMTarget.a, which // -// implements target information. // -// // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ +/* */ +/* This header declares the C interface to libLLVMTarget.a, which */ +/* implements target information. */ +/* */ +/* Many exotic languages can interoperate with C code but have a harder time */ +/* with C++ due to name mangling. So in addition to C, this interface enables */ +/* tools written in such languages. */ +/* */ +/*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_TARGET_H #define LLVM_C_TARGET_H diff --git a/include/llvm-c/TargetMachine.h b/include/llvm-c/TargetMachine.h index 6bd4d70c70..0c74678856 100644 --- a/include/llvm-c/TargetMachine.h +++ b/include/llvm-c/TargetMachine.h @@ -1,18 +1,20 @@ /*===-- llvm-c/TargetMachine.h - Target Machine Library C Interface - C++ -*-=*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetMachine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to the Target and TargetMachine // -// classes, which can be used to generate assembly or object files. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to the Target and TargetMachine *| +|* classes, which can be used to generate assembly or object files. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_TARGETMACHINE_H #define LLVM_C_TARGETMACHINE_H diff --git a/include/llvm-c/Transforms/IPO.h b/include/llvm-c/Transforms/IPO.h index 767c7555d1..448078012e 100644 --- a/include/llvm-c/Transforms/IPO.h +++ b/include/llvm-c/Transforms/IPO.h @@ -1,15 +1,16 @@ /*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// IPO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMIPO.a, which implements // -// various interprocedural transformations of the LLVM IR. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMIPO.a, which implements *| +|* various interprocedural transformations of the LLVM IR. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_TRANSFORMS_IPO_H #define LLVM_C_TRANSFORMS_IPO_H diff --git a/include/llvm-c/Transforms/PassManagerBuilder.h b/include/llvm-c/Transforms/PassManagerBuilder.h index c00aaa94cc..3d7a9d677e 100644 --- a/include/llvm-c/Transforms/PassManagerBuilder.h +++ b/include/llvm-c/Transforms/PassManagerBuilder.h @@ -1,14 +1,15 @@ /*===-- llvm-c/Transform/PassManagerBuilder.h - PMB C Interface ---*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// PassManagerBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to the PassManagerBuilder class. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to the PassManagerBuilder class. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_TRANSFORMS_PASSMANAGERBUILDER_H #define LLVM_C_TRANSFORMS_PASSMANAGERBUILDER_H diff --git a/include/llvm-c/Transforms/Scalar.h b/include/llvm-c/Transforms/Scalar.h index 5a9e49f9f3..48c19a6e31 100644 --- a/include/llvm-c/Transforms/Scalar.h +++ b/include/llvm-c/Transforms/Scalar.h @@ -1,18 +1,20 @@ /*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Scalar.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMScalarOpts.a, which // -// implements various scalar transformations of the LLVM IR. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMScalarOpts.a, which *| +|* implements various scalar transformations of the LLVM IR. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_TRANSFORMS_SCALAR_H #define LLVM_C_TRANSFORMS_SCALAR_H diff --git a/include/llvm-c/Transforms/Vectorize.h b/include/llvm-c/Transforms/Vectorize.h index 3ad0007129..c9102da602 100644 --- a/include/llvm-c/Transforms/Vectorize.h +++ b/include/llvm-c/Transforms/Vectorize.h @@ -1,18 +1,21 @@ /*===---------------------------Vectorize.h --------------------- -*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Vectorize.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header declares the C interface to libLLVMVectorize.a, which // -// implements various vectorization transformations of the LLVM IR. // -// Many exotic languages can interoperate with C code but have a harder time // -// with C++ due to name mangling. So in addition to C, this interface enables// -// tools written in such languages. // -// // -/////////////////////////////////////////////////////////////////////////////// +|*===----------- Vectorization Transformation Library C Interface ---------===*| +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header declares the C interface to libLLVMVectorize.a, which *| +|* implements various vectorization transformations of the LLVM IR. *| +|* *| +|* Many exotic languages can interoperate with C code but have a harder time *| +|* with C++ due to name mangling. So in addition to C, this interface enables *| +|* tools written in such languages. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_TRANSFORMS_VECTORIZE_H #define LLVM_C_TRANSFORMS_VECTORIZE_H diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index ddd42c4cc3..cb3a691604 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -1,16 +1,17 @@ /*===-- llvm-c/lto.h - LTO Public C Interface ---------------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// lto.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header provides public interface to an abstract link time optimization// -// library. LLVM provides an implementation of this interface for use with // -// llvm bitcode files. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides public interface to an abstract link time optimization*| +|* library. LLVM provides an implementation of this interface for use with *| +|* llvm bitcode files. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_C_LTO_H #define LLVM_C_LTO_H diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index dbcd187218..966a488d22 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -1,19 +1,18 @@ //===- llvm/ADT/APFloat.h - Arbitrary Precision Floating Point ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// APFloat.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief // -/// This file declares a class to represent arbitrary precision floating point// -/// values and provide a variety of arithmetic operations on them. // +/// \file +/// \brief +/// This file declares a class to represent arbitrary precision floating point +/// values and provide a variety of arithmetic operations on them. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_APFLOAT_H #define LLVM_ADT_APFLOAT_H diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 1a72d46a0f..be3b2cf5de 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -1,15 +1,15 @@ //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APInt.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a class to represent arbitrary precision // -/// integral constant values and operations on them. // +/// \file +/// \brief This file implements a class to represent arbitrary precision +/// integral constant values and operations on them. /// //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 70a9f3141a..a187515f85 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -1,15 +1,16 @@ //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APSInt.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the APSInt class, which is a simple class that // -// represents an arbitrary sized integer that knows its signedness. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the APSInt class, which is a simple class that +// represents an arbitrary sized integer that knows its signedness. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_APSINT_H #define LLVM_ADT_APSINT_H diff --git a/include/llvm/ADT/ArrayRef.h b/include/llvm/ADT/ArrayRef.h index c95467eaf6..c8795fd89e 100644 --- a/include/llvm/ADT/ArrayRef.h +++ b/include/llvm/ADT/ArrayRef.h @@ -1,12 +1,11 @@ //===--- ArrayRef.h - Array Reference Wrapper -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArrayRef.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_ARRAYREF_H #define LLVM_ADT_ARRAYREF_H diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index bb28ae0786..e232612677 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -1,14 +1,15 @@ //===- llvm/ADT/BitVector.h - Bit vectors -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the BitVector class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the BitVector class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_BITVECTOR_H #define LLVM_ADT_BITVECTOR_H diff --git a/include/llvm/ADT/DAGDeltaAlgorithm.h b/include/llvm/ADT/DAGDeltaAlgorithm.h index bd53f2282b..3dd862c8b2 100644 --- a/include/llvm/ADT/DAGDeltaAlgorithm.h +++ b/include/llvm/ADT/DAGDeltaAlgorithm.h @@ -1,12 +1,10 @@ //===--- DAGDeltaAlgorithm.h - A DAG Minimization Algorithm ----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGDeltaAlgorithm.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_DAGDELTAALGORITHM_H #define LLVM_ADT_DAGDELTAALGORITHM_H diff --git a/include/llvm/ADT/DeltaAlgorithm.h b/include/llvm/ADT/DeltaAlgorithm.h index 56e5e36bd7..21bc1e80c9 100644 --- a/include/llvm/ADT/DeltaAlgorithm.h +++ b/include/llvm/ADT/DeltaAlgorithm.h @@ -1,12 +1,10 @@ //===--- DeltaAlgorithm.h - A Set Minimization Algorithm -------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeltaAlgorithm.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_DELTAALGORITHM_H #define LLVM_ADT_DELTAALGORITHM_H diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 8f65ef54fe..27f73157a2 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -1,14 +1,15 @@ //===- llvm/ADT/DenseMap.h - Dense probed hash table ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DenseMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DenseMap class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DenseMap class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_DENSEMAP_H #define LLVM_ADT_DENSEMAP_H diff --git a/include/llvm/ADT/DenseMapInfo.h b/include/llvm/ADT/DenseMapInfo.h index a43f9b35d6..b0a0530720 100644 --- a/include/llvm/ADT/DenseMapInfo.h +++ b/include/llvm/ADT/DenseMapInfo.h @@ -1,14 +1,15 @@ //===- llvm/ADT/DenseMapInfo.h - Type traits for DenseMap -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DenseMapInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines DenseMapInfo traits for DenseMap. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines DenseMapInfo traits for DenseMap. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_DENSEMAPINFO_H #define LLVM_ADT_DENSEMAPINFO_H diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index 2ae0c02f7b..d34024005d 100644 --- a/include/llvm/ADT/DenseSet.h +++ b/include/llvm/ADT/DenseSet.h @@ -1,14 +1,15 @@ //===- llvm/ADT/DenseSet.h - Dense probed hash table ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DenseSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DenseSet class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DenseSet class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_DENSESET_H #define LLVM_ADT_DENSESET_H diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h index 4c07fec6b0..d79b9acacf 100644 --- a/include/llvm/ADT/DepthFirstIterator.h +++ b/include/llvm/ADT/DepthFirstIterator.h @@ -1,33 +1,34 @@ //===- llvm/ADT/DepthFirstIterator.h - Depth First iterator -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DepthFirstIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file builds on the ADT/GraphTraits.h file to build generic depth // -// first graph iterator. This file exposes the following functions/types: // // -// df_begin/df_end/df_iterator // -// * Normal depth-first iteration - visit a node and then all of its children.// +// The LLVM Compiler Infrastructure // -// idf_begin/idf_end/idf_iterator // -// * Depth-first iteration on the 'inverse' graph. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// df_ext_begin/df_ext_end/df_ext_iterator // -// * Normal depth-first iteration - visit a node and then all of its children.// -// This iterator stores the 'visited' set in an external set, which allows// -// it to be more efficient, and allows external clients to use the set for// -// other purposes. // +//===----------------------------------------------------------------------===// // -// idf_ext_begin/idf_ext_end/idf_ext_iterator // -// * Depth-first iteration on the 'inverse' graph. // -// This iterator stores the 'visited' set in an external set, which allows// -// it to be more efficient, and allows external clients to use the set for// -// other purposes. // +// This file builds on the ADT/GraphTraits.h file to build generic depth +// first graph iterator. This file exposes the following functions/types: // -/////////////////////////////////////////////////////////////////////////////// +// df_begin/df_end/df_iterator +// * Normal depth-first iteration - visit a node and then all of its children. +// +// idf_begin/idf_end/idf_iterator +// * Depth-first iteration on the 'inverse' graph. +// +// df_ext_begin/df_ext_end/df_ext_iterator +// * Normal depth-first iteration - visit a node and then all of its children. +// This iterator stores the 'visited' set in an external set, which allows +// it to be more efficient, and allows external clients to use the set for +// other purposes. +// +// idf_ext_begin/idf_ext_end/idf_ext_iterator +// * Depth-first iteration on the 'inverse' graph. +// This iterator stores the 'visited' set in an external set, which allows +// it to be more efficient, and allows external clients to use the set for +// other purposes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_DEPTHFIRSTITERATOR_H #define LLVM_ADT_DEPTHFIRSTITERATOR_H diff --git a/include/llvm/ADT/EpochTracker.h b/include/llvm/ADT/EpochTracker.h index 6fa7dcc57c..582d58179d 100644 --- a/include/llvm/ADT/EpochTracker.h +++ b/include/llvm/ADT/EpochTracker.h @@ -1,16 +1,17 @@ //===- llvm/ADT/EpochTracker.h - ADT epoch tracking --------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// EpochTracker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DebugEpochBase and DebugEpochBase::HandleBase classes.// -// These can be used to write iterators that are fail-fast when LLVM is built// -// with asserts enabled. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DebugEpochBase and DebugEpochBase::HandleBase classes. +// These can be used to write iterators that are fail-fast when LLVM is built +// with asserts enabled. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_EPOCH_TRACKER_H #define LLVM_ADT_EPOCH_TRACKER_H diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index 7d3ffae63c..d6a26f88e6 100644 --- a/include/llvm/ADT/EquivalenceClasses.h +++ b/include/llvm/ADT/EquivalenceClasses.h @@ -1,15 +1,16 @@ //===-- llvm/ADT/EquivalenceClasses.h - Generic Equiv. Classes --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EquivalenceClasses.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Generic implementation of equivalence classes through the use Tarjan's // -// efficient union-find algorithm. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Generic implementation of equivalence classes through the use Tarjan's +// efficient union-find algorithm. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_EQUIVALENCECLASSES_H #define LLVM_ADT_EQUIVALENCECLASSES_H diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 8067a6715d..1ec96c5494 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -1,14 +1,15 @@ //===-- llvm/ADT/FoldingSet.h - Uniquing Hash Set ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FoldingSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a hash set that can be used to remove duplication of nodes// -// in a graph. This code was originally created by Chris Lattner for use with// -// SelectionDAGCSEMap, but was isolated to provide use across the llvm code set.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a hash set that can be used to remove duplication of nodes +// in a graph. This code was originally created by Chris Lattner for use with +// SelectionDAGCSEMap, but was isolated to provide use across the llvm code set. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/GraphTraits.h b/include/llvm/ADT/GraphTraits.h index 9f8318e069..823caef764 100644 --- a/include/llvm/ADT/GraphTraits.h +++ b/include/llvm/ADT/GraphTraits.h @@ -1,18 +1,19 @@ //===-- llvm/ADT/GraphTraits.h - Graph traits template ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GraphTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the little GraphTraits template class that should be // -// specialized by classes that want to be iteratable by generic graph iterators.// // -// This file also defines the marker class Inverse that is used to iterate over// -// graphs in a graph defined, inverse ordering... // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the little GraphTraits template class that should be +// specialized by classes that want to be iteratable by generic graph iterators. +// +// This file also defines the marker class Inverse that is used to iterate over +// graphs in a graph defined, inverse ordering... +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_GRAPHTRAITS_H #define LLVM_ADT_GRAPHTRAITS_H diff --git a/include/llvm/ADT/Hashing.h b/include/llvm/ADT/Hashing.h index 6056e28442..de56f91edd 100644 --- a/include/llvm/ADT/Hashing.h +++ b/include/llvm/ADT/Hashing.h @@ -1,45 +1,46 @@ //===-- llvm/ADT/Hashing.h - Utilities for hashing --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Hashing.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the newly proposed standard C++ interfaces for hashing// -// arbitrary data and building hash functions for user-defined types. This // -// interface was originally proposed in N3333[1] and is currently under review// -// for inclusion in a future TR and/or standard. // // -// The primary interfaces provide are comprised of one type and three functions:// +// The LLVM Compiler Infrastructure // -// -- 'hash_code' class is an opaque type representing the hash code for some// -// data. It is the intended product of hashing, and can be used to implement// -// hash tables, checksumming, and other common uses of hashes. It is not an// -// integer type (although it can be converted to one) because it is risky// -// to assume much about the internals of a hash_code. In particular, each// -// execution of the program has a high probability of producing a different// -// hash_code for a given input. Thus their values are not stable to save or// -// persist, and should only be used during the execution for the // -// construction of hashing datastructures. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// -- 'hash_value' is a function designed to be overloaded for each // -// user-defined type which wishes to be used within a hashing context. It// -// should be overloaded within the user-defined type's namespace and found// -// via ADL. Overloads for primitive types are provided by this library. // +//===----------------------------------------------------------------------===// // -// -- 'hash_combine' and 'hash_combine_range' are functions designed to aid // -// programmers in easily and intuitively combining a set of data into // -// a single hash_code for their object. They should only logically be used// -// within the implementation of a 'hash_value' routine or similar context.// +// This file implements the newly proposed standard C++ interfaces for hashing +// arbitrary data and building hash functions for user-defined types. This +// interface was originally proposed in N3333[1] and is currently under review +// for inclusion in a future TR and/or standard. // -// Note that 'hash_combine_range' contains very special logic for hashing // -// a contiguous array of integers or pointers. This logic is *extremely* fast,// -// on a modern Intel "Gainestown" Xeon (Nehalem uarch) @2.2 GHz, these were // -// benchmarked at over 6.5 GiB/s for large keys, and <20 cycles/hash for keys// -// under 32-bytes. // +// The primary interfaces provide are comprised of one type and three functions: // -/////////////////////////////////////////////////////////////////////////////// +// -- 'hash_code' class is an opaque type representing the hash code for some +// data. It is the intended product of hashing, and can be used to implement +// hash tables, checksumming, and other common uses of hashes. It is not an +// integer type (although it can be converted to one) because it is risky +// to assume much about the internals of a hash_code. In particular, each +// execution of the program has a high probability of producing a different +// hash_code for a given input. Thus their values are not stable to save or +// persist, and should only be used during the execution for the +// construction of hashing datastructures. +// +// -- 'hash_value' is a function designed to be overloaded for each +// user-defined type which wishes to be used within a hashing context. It +// should be overloaded within the user-defined type's namespace and found +// via ADL. Overloads for primitive types are provided by this library. +// +// -- 'hash_combine' and 'hash_combine_range' are functions designed to aid +// programmers in easily and intuitively combining a set of data into +// a single hash_code for their object. They should only logically be used +// within the implementation of a 'hash_value' routine or similar context. +// +// Note that 'hash_combine_range' contains very special logic for hashing +// a contiguous array of integers or pointers. This logic is *extremely* fast, +// on a modern Intel "Gainestown" Xeon (Nehalem uarch) @2.2 GHz, these were +// benchmarked at over 6.5 GiB/s for large keys, and <20 cycles/hash for keys +// under 32-bytes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_HASHING_H #define LLVM_ADT_HASHING_H diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index 89275ed48b..3daea75473 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -1,12 +1,13 @@ //==--- ImmutableList.h - Immutable (functional) list interface --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ImmutableList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ImmutableList class. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ImmutableList class. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/ImmutableMap.h b/include/llvm/ADT/ImmutableMap.h index 7ade14585e..438dec2333 100644 --- a/include/llvm/ADT/ImmutableMap.h +++ b/include/llvm/ADT/ImmutableMap.h @@ -1,14 +1,15 @@ //===--- ImmutableMap.h - Immutable (functional) map interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ImmutableMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ImmutableMap class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ImmutableMap class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_IMMUTABLEMAP_H #define LLVM_ADT_IMMUTABLEMAP_H diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 0e41d1aefb..caeef76386 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -1,12 +1,13 @@ //===--- ImmutableSet.h - Immutable (functional) set interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ImmutableSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ImutAVLTree and ImmutableSet classes. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ImutAVLTree and ImmutableSet classes. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/IndexedMap.h b/include/llvm/ADT/IndexedMap.h index 5d2ad3b82a..5ba85c0279 100644 --- a/include/llvm/ADT/IndexedMap.h +++ b/include/llvm/ADT/IndexedMap.h @@ -1,20 +1,21 @@ //===- llvm/ADT/IndexedMap.h - An index map implementation ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndexedMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an indexed map. The index map template takes two // -// types. The first is the mapped type and the second is a functor // -// that maps its argument to a size_t. On instantiation a "null" value // -// can be provided to be used as a "does not exist" indicator in the // -// map. A member function grow() is provided that given the value of // -// the maximally indexed key (the argument of the functor) makes sure // -// the map has enough space for it. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an indexed map. The index map template takes two +// types. The first is the mapped type and the second is a functor +// that maps its argument to a size_t. On instantiation a "null" value +// can be provided to be used as a "does not exist" indicator in the +// map. A member function grow() is provided that given the value of +// the maximally indexed key (the argument of the functor) makes sure +// the map has enough space for it. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_INDEXEDMAP_H #define LLVM_ADT_INDEXEDMAP_H diff --git a/include/llvm/ADT/IntEqClasses.h b/include/llvm/ADT/IntEqClasses.h index 225c1c2c24..8e75c48e37 100644 --- a/include/llvm/ADT/IntEqClasses.h +++ b/include/llvm/ADT/IntEqClasses.h @@ -1,21 +1,22 @@ //===-- llvm/ADT/IntEqClasses.h - Equiv. Classes of Integers ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntEqClasses.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Equivalence classes for small integers. This is a mapping of the integers // -// 0 .. N-1 into M equivalence classes numbered 0 .. M-1. // // -// Initially each integer has its own equivalence class. Classes are joined by// -// passing a representative member of each class to join(). // +// The LLVM Compiler Infrastructure // -// Once the classes are built, compress() will number them 0 .. M-1 and prevent// -// further changes. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// Equivalence classes for small integers. This is a mapping of the integers +// 0 .. N-1 into M equivalence classes numbered 0 .. M-1. +// +// Initially each integer has its own equivalence class. Classes are joined by +// passing a representative member of each class to join(). +// +// Once the classes are built, compress() will number them 0 .. M-1 and prevent +// further changes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_INTEQCLASSES_H #define LLVM_ADT_INTEQCLASSES_H diff --git a/include/llvm/ADT/IntervalMap.h b/include/llvm/ADT/IntervalMap.h index a259676e40..f70419e86b 100644 --- a/include/llvm/ADT/IntervalMap.h +++ b/include/llvm/ADT/IntervalMap.h @@ -1,97 +1,98 @@ //===- llvm/ADT/IntervalMap.h - A sorted interval map -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntervalMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a coalescing interval map for small objects. // // -// KeyT objects are mapped to ValT objects. Intervals of keys that map to the// -// same value are represented in a compressed form. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a coalescing interval map for small objects. +// +// KeyT objects are mapped to ValT objects. Intervals of keys that map to the +// same value are represented in a compressed form. // -// Iterators provide ordered access to the compressed intervals rather than the// -// individual keys, and insert and erase operations use key intervals as well.// +// Iterators provide ordered access to the compressed intervals rather than the +// individual keys, and insert and erase operations use key intervals as well. // -// Like SmallVector, IntervalMap will store the first N intervals in the map // -// object itself without any allocations. When space is exhausted it switches to// -// a B+-tree representation with very small overhead for small key and value // -// objects. // +// Like SmallVector, IntervalMap will store the first N intervals in the map +// object itself without any allocations. When space is exhausted it switches to +// a B+-tree representation with very small overhead for small key and value +// objects. // -// A Traits class specifies how keys are compared. It also allows IntervalMap to// -// work with both closed and half-open intervals. // +// A Traits class specifies how keys are compared. It also allows IntervalMap to +// work with both closed and half-open intervals. // -// Keys and values are not stored next to each other in a std::pair, so we don't// -// provide such a value_type. Dereferencing iterators only returns the mapped// -// value. The interval bounds are accessible through the start() and stop() // -// iterator methods. // +// Keys and values are not stored next to each other in a std::pair, so we don't +// provide such a value_type. Dereferencing iterators only returns the mapped +// value. The interval bounds are accessible through the start() and stop() +// iterator methods. // -// IntervalMap is optimized for small key and value objects, 4 or 8 bytes each// -// is the optimal size. For large objects use std::map instead. // +// IntervalMap is optimized for small key and value objects, 4 or 8 bytes each +// is the optimal size. For large objects use std::map instead. // //===----------------------------------------------------------------------===// // -// Synopsis: // +// Synopsis: // -// template // -// class IntervalMap { // -// public: // -// typedef KeyT key_type; // -// typedef ValT mapped_type; // -// typedef RecyclingAllocator<...> Allocator; // -// class iterator; // -// class const_iterator; // +// template +// class IntervalMap { +// public: +// typedef KeyT key_type; +// typedef ValT mapped_type; +// typedef RecyclingAllocator<...> Allocator; +// class iterator; +// class const_iterator; // -// explicit IntervalMap(Allocator&); // -// ~IntervalMap(): // +// explicit IntervalMap(Allocator&); +// ~IntervalMap(): // -// bool empty() const; // -// KeyT start() const; // -// KeyT stop() const; // -// ValT lookup(KeyT x, Value NotFound = Value()) const; // +// bool empty() const; +// KeyT start() const; +// KeyT stop() const; +// ValT lookup(KeyT x, Value NotFound = Value()) const; // -// const_iterator begin() const; // -// const_iterator end() const; // -// iterator begin(); // -// iterator end(); // -// const_iterator find(KeyT x) const; // -// iterator find(KeyT x); // +// const_iterator begin() const; +// const_iterator end() const; +// iterator begin(); +// iterator end(); +// const_iterator find(KeyT x) const; +// iterator find(KeyT x); // -// void insert(KeyT a, KeyT b, ValT y); // -// void clear(); // -// }; // +// void insert(KeyT a, KeyT b, ValT y); +// void clear(); +// }; // -// template // -// class IntervalMap::const_iterator : // -// public std::iterator { // -// public: // -// bool operator==(const const_iterator &) const; // -// bool operator!=(const const_iterator &) const; // -// bool valid() const; // +// template +// class IntervalMap::const_iterator : +// public std::iterator { +// public: +// bool operator==(const const_iterator &) const; +// bool operator!=(const const_iterator &) const; +// bool valid() const; // -// const KeyT &start() const; // -// const KeyT &stop() const; // -// const ValT &value() const; // -// const ValT &operator*() const; // -// const ValT *operator->() const; // +// const KeyT &start() const; +// const KeyT &stop() const; +// const ValT &value() const; +// const ValT &operator*() const; +// const ValT *operator->() const; // -// const_iterator &operator++(); // -// const_iterator &operator++(int); // -// const_iterator &operator--(); // -// const_iterator &operator--(int); // -// void goToBegin(); // -// void goToEnd(); // -// void find(KeyT x); // -// void advanceTo(KeyT x); // -// }; // +// const_iterator &operator++(); +// const_iterator &operator++(int); +// const_iterator &operator--(); +// const_iterator &operator--(int); +// void goToBegin(); +// void goToEnd(); +// void find(KeyT x); +// void advanceTo(KeyT x); +// }; // -// template // -// class IntervalMap::iterator : public const_iterator { // -// public: // -// void insert(KeyT a, KeyT b, Value y); // -// void erase(); // -// }; // +// template +// class IntervalMap::iterator : public const_iterator { +// public: +// void insert(KeyT a, KeyT b, Value y); +// void erase(); +// }; // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h index 2a4aa0e9cc..914ab5a2f2 100644 --- a/include/llvm/ADT/IntrusiveRefCntPtr.h +++ b/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -1,19 +1,20 @@ //== llvm/ADT/IntrusiveRefCntPtr.h - Smart Refcounting Pointer ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrusiveRefCntPtr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines IntrusiveRefCntPtr, a template class that // -// implements a "smart" pointer for objects that maintain their own // -// internal reference count, and RefCountedBase/RefCountedBaseVPTR, two // -// generic base classes for objects that wish to have their lifetimes // -// managed using reference counting. // // -// IntrusiveRefCntPtr is similar to Boost's intrusive_ptr with added // -// LLVM-style casting. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines IntrusiveRefCntPtr, a template class that +// implements a "smart" pointer for objects that maintain their own +// internal reference count, and RefCountedBase/RefCountedBaseVPTR, two +// generic base classes for objects that wish to have their lifetimes +// managed using reference counting. +// +// IntrusiveRefCntPtr is similar to Boost's intrusive_ptr with added +// LLVM-style casting. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/MapVector.h b/include/llvm/ADT/MapVector.h index 188277a5b5..f19a50b7ba 100644 --- a/include/llvm/ADT/MapVector.h +++ b/include/llvm/ADT/MapVector.h @@ -1,17 +1,18 @@ //===- llvm/ADT/MapVector.h - Map w/ deterministic value order --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MapVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a map that provides insertion order iteration. The // -// interface is purposefully minimal. The key is assumed to be cheap to copy // -// and 2 copies are kept, one for indexing in a DenseMap, one for iteration in// -// a std::vector. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a map that provides insertion order iteration. The +// interface is purposefully minimal. The key is assumed to be cheap to copy +// and 2 copies are kept, one for indexing in a DenseMap, one for iteration in +// a std::vector. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_MAPVECTOR_H #define LLVM_ADT_MAPVECTOR_H diff --git a/include/llvm/ADT/None.h b/include/llvm/ADT/None.h index 386f301c41..d69ec17c15 100644 --- a/include/llvm/ADT/None.h +++ b/include/llvm/ADT/None.h @@ -1,16 +1,17 @@ //===-- None.h - Simple null value for implicit construction ------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// None.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides None, an enumerator for use in implicit constructors // -// of various (usually templated) types to make such construction more // -// terse. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides None, an enumerator for use in implicit constructors +// of various (usually templated) types to make such construction more +// terse. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_NONE_H #define LLVM_ADT_NONE_H diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h index 4f7c26a444..855ab89039 100644 --- a/include/llvm/ADT/Optional.h +++ b/include/llvm/ADT/Optional.h @@ -1,16 +1,17 @@ //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// Optional.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides Optional, a template class modeled in the spirit of // -// OCaml's 'opt' variant. The idea is to strongly type whether or not // -// a value can be optional. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides Optional, a template class modeled in the spirit of +// OCaml's 'opt' variant. The idea is to strongly type whether or not +// a value can be optional. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_OPTIONAL_H #define LLVM_ADT_OPTIONAL_H diff --git a/include/llvm/ADT/PackedVector.h b/include/llvm/ADT/PackedVector.h index 40a8625a73..1ae2a77e7e 100644 --- a/include/llvm/ADT/PackedVector.h +++ b/include/llvm/ADT/PackedVector.h @@ -1,14 +1,15 @@ //===- llvm/ADT/PackedVector.h - Packed values vector -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PackedVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PackedVector class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PackedVector class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_PACKEDVECTOR_H #define LLVM_ADT_PACKEDVECTOR_H diff --git a/include/llvm/ADT/PointerIntPair.h b/include/llvm/ADT/PointerIntPair.h index 89a6c06a59..45a40db85c 100644 --- a/include/llvm/ADT/PointerIntPair.h +++ b/include/llvm/ADT/PointerIntPair.h @@ -1,14 +1,15 @@ //===- llvm/ADT/PointerIntPair.h - Pair for pointer and int -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerIntPair.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PointerIntPair class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PointerIntPair class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_POINTERINTPAIR_H #define LLVM_ADT_POINTERINTPAIR_H diff --git a/include/llvm/ADT/PointerUnion.h b/include/llvm/ADT/PointerUnion.h index 2db8f5c379..f27b81113e 100644 --- a/include/llvm/ADT/PointerUnion.h +++ b/include/llvm/ADT/PointerUnion.h @@ -1,15 +1,16 @@ //===- llvm/ADT/PointerUnion.h - Discriminated Union of 2 Ptrs --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerUnion.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PointerUnion class, which is a discriminated union of// -// pointer types. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PointerUnion class, which is a discriminated union of +// pointer types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_POINTERUNION_H #define LLVM_ADT_POINTERUNION_H diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h index 26a98214ec..759a2db24f 100644 --- a/include/llvm/ADT/PostOrderIterator.h +++ b/include/llvm/ADT/PostOrderIterator.h @@ -1,16 +1,17 @@ //===- llvm/ADT/PostOrderIterator.h - PostOrder iterator --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostOrderIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file builds on the ADT/GraphTraits.h file to build a generic graph // -// post order iterator. This should work over any graph type that has a // -// GraphTraits specialization. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file builds on the ADT/GraphTraits.h file to build a generic graph +// post order iterator. This should work over any graph type that has a +// GraphTraits specialization. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_POSTORDERITERATOR_H #define LLVM_ADT_POSTORDERITERATOR_H diff --git a/include/llvm/ADT/PriorityQueue.h b/include/llvm/ADT/PriorityQueue.h index 8d14c9502b..827d0b346e 100644 --- a/include/llvm/ADT/PriorityQueue.h +++ b/include/llvm/ADT/PriorityQueue.h @@ -1,14 +1,15 @@ //===- llvm/ADT/PriorityQueue.h - Priority queues ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PriorityQueue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PriorityQueue class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PriorityQueue class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_PRIORITYQUEUE_H #define LLVM_ADT_PRIORITYQUEUE_H diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h index 2482105d7a..bc74416ac8 100644 --- a/include/llvm/ADT/SCCIterator.h +++ b/include/llvm/ADT/SCCIterator.h @@ -1,25 +1,24 @@ //===---- ADT/SCCIterator.h - Strongly Connected Comp. Iter. ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SCCIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This builds on the llvm/ADT/GraphTraits.h file to find the strongly // -/// connected components (SCCs) of a graph in O(N+E) time using Tarjan's DFS // -/// algorithm. // +/// This builds on the llvm/ADT/GraphTraits.h file to find the strongly +/// connected components (SCCs) of a graph in O(N+E) time using Tarjan's DFS +/// algorithm. /// -/// The SCC iterator has the important property that if a node in SCC S1 has an// -/// edge to a node in SCC S2, then it visits S1 *after* S2. // +/// The SCC iterator has the important property that if a node in SCC S1 has an +/// edge to a node in SCC S2, then it visits S1 *after* S2. /// -/// To visit S1 *before* S2, use the scc_iterator on the Inverse graph. (NOTE:// -/// This requires some simple wrappers and is not supported yet.) // +/// To visit S1 *before* S2, use the scc_iterator on the Inverse graph. (NOTE: +/// This requires some simple wrappers and is not supported yet.) /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SCCITERATOR_H #define LLVM_ADT_SCCITERATOR_H diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index 9bc2af706e..bad848baaf 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -1,15 +1,16 @@ //===- llvm/ADT/STLExtras.h - Useful STL related functions ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// STLExtras.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains some templates that are useful if you are working with the// -// STL at all. // // -// No library is required when using these functions. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains some templates that are useful if you are working with the +// STL at all. +// +// No library is required when using these functions. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/ScopedHashTable.h b/include/llvm/ADT/ScopedHashTable.h index 921603cb60..5abe76c122 100644 --- a/include/llvm/ADT/ScopedHashTable.h +++ b/include/llvm/ADT/ScopedHashTable.h @@ -1,31 +1,32 @@ //===- ScopedHashTable.h - A simple scoped hash table ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScopedHashTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an efficient scoped hash table, which is useful for // -// things like dominator-based optimizations. This allows clients to do things// -// like this: // // -// ScopedHashTable HT; // -// { // -// ScopedHashTableScope Scope1(HT); // -// HT.insert(0, 0); // -// HT.insert(1, 1); // -// { // -// ScopedHashTableScope Scope2(HT); // -// HT.insert(0, 42); // -// } // -// } // +// The LLVM Compiler Infrastructure // -// Looking up the value for "0" in the Scope2 block will return 42. Looking // -// up the value for 0 before 42 is inserted or after Scope2 is popped will // -// return 0. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file implements an efficient scoped hash table, which is useful for +// things like dominator-based optimizations. This allows clients to do things +// like this: +// +// ScopedHashTable HT; +// { +// ScopedHashTableScope Scope1(HT); +// HT.insert(0, 0); +// HT.insert(1, 1); +// { +// ScopedHashTableScope Scope2(HT); +// HT.insert(0, 42); +// } +// } +// +// Looking up the value for "0" in the Scope2 block will return 42. Looking +// up the value for 0 before 42 is inserted or after Scope2 is popped will +// return 0. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SCOPEDHASHTABLE_H #define LLVM_ADT_SCOPEDHASHTABLE_H diff --git a/include/llvm/ADT/SetOperations.h b/include/llvm/ADT/SetOperations.h index 47c6491f14..71f5db380f 100644 --- a/include/llvm/ADT/SetOperations.h +++ b/include/llvm/ADT/SetOperations.h @@ -1,15 +1,16 @@ //===-- llvm/ADT/SetOperations.h - Generic Set Operations -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SetOperations.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines generic set operations that may be used on set's of // -// different types, and different element types. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines generic set operations that may be used on set's of +// different types, and different element types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SETOPERATIONS_H #define LLVM_ADT_SETOPERATIONS_H diff --git a/include/llvm/ADT/SetVector.h b/include/llvm/ADT/SetVector.h index c468f8fc03..a7fd408c85 100644 --- a/include/llvm/ADT/SetVector.h +++ b/include/llvm/ADT/SetVector.h @@ -1,20 +1,21 @@ //===- llvm/ADT/SetVector.h - Set with insert order iteration ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SetVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a set that has insertion order iteration // -// characteristics. This is useful for keeping a set of things that need to be// -// visited later but in a deterministic order (insertion order). The interface// -// is purposefully minimal. // // -// This file defines SetVector and SmallSetVector, which performs no allocations// -// if the SetVector has less than a certain number of elements. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a set that has insertion order iteration +// characteristics. This is useful for keeping a set of things that need to be +// visited later but in a deterministic order (insertion order). The interface +// is purposefully minimal. +// +// This file defines SetVector and SmallSetVector, which performs no allocations +// if the SetVector has less than a certain number of elements. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SETVECTOR_H #define LLVM_ADT_SETVECTOR_H diff --git a/include/llvm/ADT/SmallBitVector.h b/include/llvm/ADT/SmallBitVector.h index 578d366829..2edd517cf7 100644 --- a/include/llvm/ADT/SmallBitVector.h +++ b/include/llvm/ADT/SmallBitVector.h @@ -1,14 +1,15 @@ //===- llvm/ADT/SmallBitVector.h - 'Normally small' bit vectors -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallBitVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SmallBitVector class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SmallBitVector class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SMALLBITVECTOR_H #define LLVM_ADT_SMALLBITVECTOR_H diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index 3dd3c71507..3e3c9c154e 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -1,15 +1,16 @@ //===- llvm/ADT/SmallPtrSet.h - 'Normally small' pointer set ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallPtrSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SmallPtrSet class. See the doxygen comment for // -// SmallPtrSetImplBase for more details on the algorithm used. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SmallPtrSet class. See the doxygen comment for +// SmallPtrSetImplBase for more details on the algorithm used. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SMALLPTRSET_H #define LLVM_ADT_SMALLPTRSET_H diff --git a/include/llvm/ADT/SmallSet.h b/include/llvm/ADT/SmallSet.h index 529915be3f..bc6493554c 100644 --- a/include/llvm/ADT/SmallSet.h +++ b/include/llvm/ADT/SmallSet.h @@ -1,14 +1,15 @@ //===- llvm/ADT/SmallSet.h - 'Normally small' sets --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SmallSet class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SmallSet class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SMALLSET_H #define LLVM_ADT_SMALLSET_H diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h index 6335be8375..e569f54481 100644 --- a/include/llvm/ADT/SmallString.h +++ b/include/llvm/ADT/SmallString.h @@ -1,14 +1,15 @@ //===- llvm/ADT/SmallString.h - 'Normally small' strings --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallString.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SmallString class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SmallString class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SMALLSTRING_H #define LLVM_ADT_SMALLSTRING_H diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 4915cf804b..b9384702c3 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -1,14 +1,15 @@ //===- llvm/ADT/SmallVector.h - 'Normally small' vectors --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SmallVector class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SmallVector class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SMALLVECTOR_H #define LLVM_ADT_SMALLVECTOR_H diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h index bbb74201dc..20cbe2cddf 100644 --- a/include/llvm/ADT/SparseBitVector.h +++ b/include/llvm/ADT/SparseBitVector.h @@ -1,15 +1,16 @@ //===- llvm/ADT/SparseBitVector.h - Efficient Sparse BitVector -*- C++ -*- ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparseBitVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SparseBitVector class. See the doxygen comment for // -// SparseBitVector for more details on the algorithm used. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SparseBitVector class. See the doxygen comment for +// SparseBitVector for more details on the algorithm used. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SPARSEBITVECTOR_H #define LLVM_ADT_SPARSEBITVECTOR_H diff --git a/include/llvm/ADT/SparseMultiSet.h b/include/llvm/ADT/SparseMultiSet.h index 79a0c5864b..e3aa2589b7 100644 --- a/include/llvm/ADT/SparseMultiSet.h +++ b/include/llvm/ADT/SparseMultiSet.h @@ -1,21 +1,22 @@ //===--- llvm/ADT/SparseMultiSet.h - Sparse multiset ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparseMultiSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SparseMultiSet class, which adds multiset behavior to// -// the SparseSet. // // -// A sparse multiset holds a small number of objects identified by integer keys// -// from a moderately sized universe. The sparse multiset uses more memory than// -// other containers in order to provide faster operations. Any key can map to// -// multiple values. A SparseMultiSetNode class is provided, which serves as a// -// convenient base class for the contents of a SparseMultiSet. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SparseMultiSet class, which adds multiset behavior to +// the SparseSet. +// +// A sparse multiset holds a small number of objects identified by integer keys +// from a moderately sized universe. The sparse multiset uses more memory than +// other containers in order to provide faster operations. Any key can map to +// multiple values. A SparseMultiSetNode class is provided, which serves as a +// convenient base class for the contents of a SparseMultiSet. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SPARSEMULTISET_H #define LLVM_ADT_SPARSEMULTISET_H diff --git a/include/llvm/ADT/SparseSet.h b/include/llvm/ADT/SparseSet.h index 2f1cb78861..a45d1c8d6b 100644 --- a/include/llvm/ADT/SparseSet.h +++ b/include/llvm/ADT/SparseSet.h @@ -1,20 +1,21 @@ //===--- llvm/ADT/SparseSet.h - Sparse set ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparseSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SparseSet class derived from the version described in// -// Briggs, Torczon, "An efficient representation for sparse sets", ACM Letters// -// on Programming Languages and Systems, Volume 2 Issue 1-4, March-Dec. 1993.// // -// A sparse set holds a small number of objects identified by integer keys from// -// a moderately sized universe. The sparse set uses more memory than other // -// containers in order to provide faster operations. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SparseSet class derived from the version described in +// Briggs, Torczon, "An efficient representation for sparse sets", ACM Letters +// on Programming Languages and Systems, Volume 2 Issue 1-4, March-Dec. 1993. +// +// A sparse set holds a small number of objects identified by integer keys from +// a moderately sized universe. The sparse set uses more memory than other +// containers in order to provide faster operations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_SPARSESET_H #define LLVM_ADT_SPARSESET_H diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h index 0a88535fbf..d98abc375e 100644 --- a/include/llvm/ADT/Statistic.h +++ b/include/llvm/ADT/Statistic.h @@ -1,26 +1,27 @@ //===-- llvm/ADT/Statistic.h - Easy way to expose stats ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Statistic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the 'Statistic' class, which is designed to be an easy way// -// to expose various metrics from passes. These statistics are printed at the// -// end of a run (from llvm_shutdown), when the -stats command line option is // -// passed on the command line. // // -// This is useful for reporting information like the number of instructions // -// simplified, optimized or removed by various transformations, like this: // +// The LLVM Compiler Infrastructure // -// static Statistic NumInstsKilled("gcse", "Number of instructions killed"); // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// Later, in the code: ++NumInstsKilled; // +//===----------------------------------------------------------------------===// // -// NOTE: Statistics *must* be declared as global variables. // +// This file defines the 'Statistic' class, which is designed to be an easy way +// to expose various metrics from passes. These statistics are printed at the +// end of a run (from llvm_shutdown), when the -stats command line option is +// passed on the command line. // -/////////////////////////////////////////////////////////////////////////////// +// This is useful for reporting information like the number of instructions +// simplified, optimized or removed by various transformations, like this: +// +// static Statistic NumInstsKilled("gcse", "Number of instructions killed"); +// +// Later, in the code: ++NumInstsKilled; +// +// NOTE: Statistics *must* be declared as global variables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_STATISTIC_H #define LLVM_ADT_STATISTIC_H diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index 0ed9da6573..270989b349 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -1,14 +1,15 @@ //===-- llvm/ADT/StringExtras.h - Useful string functions -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringExtras.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains some functions that are useful when dealing with strings.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains some functions that are useful when dealing with strings. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_STRINGEXTRAS_H #define LLVM_ADT_STRINGEXTRAS_H diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index b9f23ab576..9d038560bf 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -1,14 +1,15 @@ //===--- StringMap.h - String Hash table map interface ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the StringMap class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the StringMap class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_STRINGMAP_H #define LLVM_ADT_STRINGMAP_H diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index dbbda1fcd7..95660a49f1 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -1,12 +1,11 @@ //===--- StringRef.h - Constant String Reference Wrapper --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringRef.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_STRINGREF_H #define LLVM_ADT_STRINGREF_H diff --git a/include/llvm/ADT/StringSet.h b/include/llvm/ADT/StringSet.h index 5766a2f1a3..3e0cc200b6 100644 --- a/include/llvm/ADT/StringSet.h +++ b/include/llvm/ADT/StringSet.h @@ -1,14 +1,15 @@ //===--- StringSet.h - The LLVM Compiler Driver -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// StringSet - A set-like wrapper for the StringMap. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open +// Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// StringSet - A set-like wrapper for the StringMap. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_STRINGSET_H #define LLVM_ADT_STRINGSET_H diff --git a/include/llvm/ADT/StringSwitch.h b/include/llvm/ADT/StringSwitch.h index 072f76417e..5ef95d5fb7 100644 --- a/include/llvm/ADT/StringSwitch.h +++ b/include/llvm/ADT/StringSwitch.h @@ -1,15 +1,15 @@ //===--- StringSwitch.h - Switch-on-literal-string Construct --------------===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// StringSwitch.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StringSwitch template, which mimics a switch() // -// statement whose cases are string literals. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file implements the StringSwitch template, which mimics a switch() +// statement whose cases are string literals. +// +//===----------------------------------------------------------------------===/ #ifndef LLVM_ADT_STRINGSWITCH_H #define LLVM_ADT_STRINGSWITCH_H diff --git a/include/llvm/ADT/TinyPtrVector.h b/include/llvm/ADT/TinyPtrVector.h index 8aca11322d..f29608f3d3 100644 --- a/include/llvm/ADT/TinyPtrVector.h +++ b/include/llvm/ADT/TinyPtrVector.h @@ -1,12 +1,11 @@ //===- llvm/ADT/TinyPtrVector.h - 'Normally tiny' vectors -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TinyPtrVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_TINYPTRVECTOR_H #define LLVM_ADT_TINYPTRVECTOR_H diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 2a59f4c219..3f7f9e2660 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -1,12 +1,11 @@ //===-- llvm/ADT/Triple.h - Target triple helper class ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Triple.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_TRIPLE_H #define LLVM_ADT_TRIPLE_H diff --git a/include/llvm/ADT/Twine.h b/include/llvm/ADT/Twine.h index 36b7b5d7e0..db0bf4b68d 100644 --- a/include/llvm/ADT/Twine.h +++ b/include/llvm/ADT/Twine.h @@ -1,12 +1,11 @@ //===-- Twine.h - Fast Temporary String Concatenation -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Twine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_TWINE_H #define LLVM_ADT_TWINE_H diff --git a/include/llvm/ADT/UniqueVector.h b/include/llvm/ADT/UniqueVector.h index 97862d0554..372a2196fb 100644 --- a/include/llvm/ADT/UniqueVector.h +++ b/include/llvm/ADT/UniqueVector.h @@ -1,11 +1,11 @@ //===-- llvm/ADT/UniqueVector.h ---------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UniqueVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_UNIQUEVECTOR_H #define LLVM_ADT_UNIQUEVECTOR_H diff --git a/include/llvm/ADT/VariadicFunction.h b/include/llvm/ADT/VariadicFunction.h index 91d7730fd0..403130c623 100644 --- a/include/llvm/ADT/VariadicFunction.h +++ b/include/llvm/ADT/VariadicFunction.h @@ -1,14 +1,15 @@ //===--- VariadicFunctions.h - Variadic Functions ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VariadicFunction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements compile-time type-safe variadic functions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements compile-time type-safe variadic functions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_VARIADICFUNCTION_H #define LLVM_ADT_VARIADICFUNCTION_H diff --git a/include/llvm/ADT/edit_distance.h b/include/llvm/ADT/edit_distance.h index 3170a0f251..38cf144cbc 100644 --- a/include/llvm/ADT/edit_distance.h +++ b/include/llvm/ADT/edit_distance.h @@ -1,16 +1,17 @@ //===-- llvm/ADT/edit_distance.h - Array edit distance function --- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// edit_distance.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a Levenshtein distance function that works for any two // -// sequences, with each element of each sequence being analogous to a character// -// in a string. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a Levenshtein distance function that works for any two +// sequences, with each element of each sequence being analogous to a character +// in a string. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_EDIT_DISTANCE_H #define LLVM_ADT_EDIT_DISTANCE_H diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h index 90cecec5ef..ee31cf57dd 100644 --- a/include/llvm/ADT/ilist.h +++ b/include/llvm/ADT/ilist.h @@ -1,36 +1,37 @@ //==-- llvm/ADT/ilist.h - Intrusive Linked List Template ---------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ilist.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines classes to implement an intrusive doubly linked list class// -// (i.e. each node of the list must contain a next and previous field for the// -// list. // // -// The ilist_traits trait class is used to gain access to the next and previous// -// fields of the node type that the list is instantiated with. If it is not // -// specialized, the list defaults to using the getPrev(), getNext() method calls// -// to get the next and previous pointers. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines classes to implement an intrusive doubly linked list class +// (i.e. each node of the list must contain a next and previous field for the +// list. +// +// The ilist_traits trait class is used to gain access to the next and previous +// fields of the node type that the list is instantiated with. If it is not +// specialized, the list defaults to using the getPrev(), getNext() method calls +// to get the next and previous pointers. // -// The ilist class itself, should be a plug in replacement for list, assuming// -// that the nodes contain next/prev pointers. This list replacement does not// -// provide a constant time size() method, so be careful to use empty() when you// -// really want to know if it's empty. // +// The ilist class itself, should be a plug in replacement for list, assuming +// that the nodes contain next/prev pointers. This list replacement does not +// provide a constant time size() method, so be careful to use empty() when you +// really want to know if it's empty. // -// The ilist class is implemented by allocating a 'tail' node when the list is// -// created (using ilist_traits<>::createSentinel()). This tail node is // -// absolutely required because the user must be able to compute end()-1. Because// -// of this, users of the direct next/prev links will see an extra link on the// -// end of the list, which should be ignored. // +// The ilist class is implemented by allocating a 'tail' node when the list is +// created (using ilist_traits<>::createSentinel()). This tail node is +// absolutely required because the user must be able to compute end()-1. Because +// of this, users of the direct next/prev links will see an extra link on the +// end of the list, which should be ignored. // -// Requirements for a user of this list: // +// Requirements for a user of this list: // -// 1. The user must provide {g|s}et{Next|Prev} methods, or specialize // -// ilist_traits to provide an alternate way of getting and setting next and// -// prev links. // +// 1. The user must provide {g|s}et{Next|Prev} methods, or specialize +// ilist_traits to provide an alternate way of getting and setting next and +// prev links. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/ADT/ilist_node.h b/include/llvm/ADT/ilist_node.h index 62c1fe3313..26d0b55e40 100644 --- a/include/llvm/ADT/ilist_node.h +++ b/include/llvm/ADT/ilist_node.h @@ -1,15 +1,16 @@ //==-- llvm/ADT/ilist_node.h - Intrusive Linked List Helper ------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ilist_node.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ilist_node class template, which is a convenient // -// base class for creating classes that can be used with ilists. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ilist_node class template, which is a convenient +// base class for creating classes that can be used with ilists. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_ILIST_NODE_H #define LLVM_ADT_ILIST_NODE_H diff --git a/include/llvm/ADT/iterator.h b/include/llvm/ADT/iterator.h index 7b92a843c3..c307928927 100644 --- a/include/llvm/ADT/iterator.h +++ b/include/llvm/ADT/iterator.h @@ -1,12 +1,11 @@ //===- iterator.h - Utilities for using and defining iterators --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// iterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_ITERATOR_H #define LLVM_ADT_ITERATOR_H diff --git a/include/llvm/ADT/iterator_range.h b/include/llvm/ADT/iterator_range.h index 7f470f8aeb..523a86f02e 100644 --- a/include/llvm/ADT/iterator_range.h +++ b/include/llvm/ADT/iterator_range.h @@ -1,21 +1,20 @@ //===- iterator_range.h - A range adaptor for iterators ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// iterator_range.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This provides a very simple, boring adaptor for a begin and end iterator // -/// into a range type. This should be used to build range views that work well// -/// with range based for loops and range based constructors. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This provides a very simple, boring adaptor for a begin and end iterator +/// into a range type. This should be used to build range views that work well +/// with range based for loops and range based constructors. /// -/// Note that code here follows more standards-based coding conventions as it// -/// is mirroring proposed interfaces for standardization. // +/// Note that code here follows more standards-based coding conventions as it +/// is mirroring proposed interfaces for standardization. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_ITERATOR_RANGE_H #define LLVM_ADT_ITERATOR_RANGE_H diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h index 173455274f..36f8199a03 100644 --- a/include/llvm/Analysis/AliasAnalysis.h +++ b/include/llvm/Analysis/AliasAnalysis.h @@ -1,38 +1,39 @@ //===- llvm/Analysis/AliasAnalysis.h - Alias Analysis Interface -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the generic AliasAnalysis interface, which is used as the// -// common interface used by all clients of alias analysis information, and // -// implemented by all alias analysis implementations. Mod/Ref information is// -// also captured by this interface. // // -// Implementations of this interface must implement the various virtual methods,// -// which automatically provides functionality for the entire suite of client // -// APIs. // +// The LLVM Compiler Infrastructure // -// This API identifies memory regions with the MemoryLocation class. The pointer// -// component specifies the base memory address of the region. The Size specifies// -// the maximum size (in address units) of the memory region, or // -// MemoryLocation::UnknownSize if the size is not known. The TBAA tag // -// identifies the "type" of the memory reference; see the // -// TypeBasedAliasAnalysis class for details. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// Some non-obvious details include: // -// - Pointers that point to two completely different objects in memory never// -// alias, regardless of the value of the Size component. // -// - NoAlias doesn't imply inequal pointers. The most obvious example of this// -// is two pointers to constant memory. Even if they are equal, constant // -// memory is never stored to, so there will never be any dependencies. // -// In this and other situations, the pointers may be both NoAlias and // -// MustAlias at the same time. The current API can only return one result,// -// though this is rarely a problem in practice. // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file defines the generic AliasAnalysis interface, which is used as the +// common interface used by all clients of alias analysis information, and +// implemented by all alias analysis implementations. Mod/Ref information is +// also captured by this interface. +// +// Implementations of this interface must implement the various virtual methods, +// which automatically provides functionality for the entire suite of client +// APIs. +// +// This API identifies memory regions with the MemoryLocation class. The pointer +// component specifies the base memory address of the region. The Size specifies +// the maximum size (in address units) of the memory region, or +// MemoryLocation::UnknownSize if the size is not known. The TBAA tag +// identifies the "type" of the memory reference; see the +// TypeBasedAliasAnalysis class for details. +// +// Some non-obvious details include: +// - Pointers that point to two completely different objects in memory never +// alias, regardless of the value of the Size component. +// - NoAlias doesn't imply inequal pointers. The most obvious example of this +// is two pointers to constant memory. Even if they are equal, constant +// memory is never stored to, so there will never be any dependencies. +// In this and other situations, the pointers may be both NoAlias and +// MustAlias at the same time. The current API can only return one result, +// though this is rarely a problem in practice. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_ALIASANALYSIS_H #define LLVM_ANALYSIS_ALIASANALYSIS_H diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index 58df25f6c3..881699d092 100644 --- a/include/llvm/Analysis/AliasSetTracker.h +++ b/include/llvm/Analysis/AliasSetTracker.h @@ -1,17 +1,18 @@ //===- llvm/Analysis/AliasSetTracker.h - Build Alias Sets -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasSetTracker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines two classes: AliasSetTracker and AliasSet. These interface// -// are used to classify a collection of pointer references into a maximal number// -// of disjoint sets. Each AliasSet object constructed by the AliasSetTracker// -// object refers to memory disjoint from the other sets. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines two classes: AliasSetTracker and AliasSet. These interface +// are used to classify a collection of pointer references into a maximal number +// of disjoint sets. Each AliasSet object constructed by the AliasSetTracker +// object refers to memory disjoint from the other sets. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_ALIASSETTRACKER_H #define LLVM_ANALYSIS_ALIASSETTRACKER_H diff --git a/include/llvm/Analysis/AssumptionCache.h b/include/llvm/Analysis/AssumptionCache.h index 27e40d4db3..1f00b691b3 100644 --- a/include/llvm/Analysis/AssumptionCache.h +++ b/include/llvm/Analysis/AssumptionCache.h @@ -1,16 +1,17 @@ //===- llvm/Analysis/AssumptionCache.h - Track @llvm.assume ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AssumptionCache.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a pass that keeps track of @llvm.assume intrinsics in // -// the functions of a module (allowing assumptions within any function to be // -// found cheaply by other parts of the optimizer). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a pass that keeps track of @llvm.assume intrinsics in +// the functions of a module (allowing assumptions within any function to be +// found cheaply by other parts of the optimizer). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_ASSUMPTIONCACHE_H #define LLVM_ANALYSIS_ASSUMPTIONCACHE_H diff --git a/include/llvm/Analysis/BlockFrequencyInfo.h b/include/llvm/Analysis/BlockFrequencyInfo.h index 63fe13fadc..f27c32df92 100644 --- a/include/llvm/Analysis/BlockFrequencyInfo.h +++ b/include/llvm/Analysis/BlockFrequencyInfo.h @@ -1,14 +1,15 @@ //===- BlockFrequencyInfo.h - Block Frequency Analysis ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequencyInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loops should be simplified before this analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loops should be simplified before this analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_BLOCKFREQUENCYINFO_H #define LLVM_ANALYSIS_BLOCKFREQUENCYINFO_H diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h index f139bb567c..32d96090f4 100644 --- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -1,15 +1,16 @@ //==- BlockFrequencyInfoImpl.h - Block Frequency Implementation -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequencyInfoImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Shared implementation of BlockFrequency for IR and Machine Instructions. // -// See the documentation below for BlockFrequencyInfoImpl for details. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Shared implementation of BlockFrequency for IR and Machine Instructions. +// See the documentation below for BlockFrequencyInfoImpl for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_BLOCKFREQUENCYINFOIMPL_H #define LLVM_ANALYSIS_BLOCKFREQUENCYINFOIMPL_H diff --git a/include/llvm/Analysis/BranchProbabilityInfo.h b/include/llvm/Analysis/BranchProbabilityInfo.h index 22504b0f42..9d867567ba 100644 --- a/include/llvm/Analysis/BranchProbabilityInfo.h +++ b/include/llvm/Analysis/BranchProbabilityInfo.h @@ -1,14 +1,15 @@ //===--- BranchProbabilityInfo.h - Branch Probability Analysis --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchProbabilityInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is used to evaluate branch probabilties. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is used to evaluate branch probabilties. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_BRANCHPROBABILITYINFO_H #define LLVM_ANALYSIS_BRANCHPROBABILITYINFO_H diff --git a/include/llvm/Analysis/CFG.h b/include/llvm/Analysis/CFG.h index d7db52f25a..7c4df78019 100644 --- a/include/llvm/Analysis/CFG.h +++ b/include/llvm/Analysis/CFG.h @@ -1,15 +1,16 @@ //===-- Analysis/CFG.h - BasicBlock Analyses --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFG.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions performs analyses on basic blocks, and instructions// -// contained within basic blocks. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions performs analyses on basic blocks, and instructions +// contained within basic blocks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CFG_H #define LLVM_ANALYSIS_CFG_H diff --git a/include/llvm/Analysis/CFGPrinter.h b/include/llvm/Analysis/CFGPrinter.h index 79690f5907..035764837e 100644 --- a/include/llvm/Analysis/CFGPrinter.h +++ b/include/llvm/Analysis/CFGPrinter.h @@ -1,15 +1,16 @@ //===-- CFGPrinter.h - CFG printer external interface -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines external functions that can be called to explicitly // -// instantiate the CFG printer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines external functions that can be called to explicitly +// instantiate the CFG printer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CFGPRINTER_H #define LLVM_ANALYSIS_CFGPRINTER_H diff --git a/include/llvm/Analysis/CGSCCPassManager.h b/include/llvm/Analysis/CGSCCPassManager.h index 69c573c9a1..6a406cd244 100644 --- a/include/llvm/Analysis/CGSCCPassManager.h +++ b/include/llvm/Analysis/CGSCCPassManager.h @@ -1,23 +1,22 @@ //===- CGSCCPassManager.h - Call graph pass management ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGSCCPassManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This header provides classes for managing passes over SCCs of the call // -/// graph. These passes form an important component of LLVM's interprocedural// -/// optimizations. Because they operate on the SCCs of the call graph, and they// -/// wtraverse the graph in post order, they can effectively do pair-wise // -/// interprocedural optimizations for all call edges in the program. At each // -/// call site edge, the callee has already been optimized as much as is // -/// possible. This in turn allows very accurate analysis of it for IPO. // +/// This header provides classes for managing passes over SCCs of the call +/// graph. These passes form an important component of LLVM's interprocedural +/// optimizations. Because they operate on the SCCs of the call graph, and they +/// wtraverse the graph in post order, they can effectively do pair-wise +/// interprocedural optimizations for all call edges in the program. At each +/// call site edge, the callee has already been optimized as much as is +/// possible. This in turn allows very accurate analysis of it for IPO. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CGSCCPASSMANAGER_H #define LLVM_ANALYSIS_CGSCCPASSMANAGER_H diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index c40efffc43..27126af091 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -1,51 +1,51 @@ //===- CallGraph.h - Build a Module's call graph ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraph.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file provides interfaces used to build and manipulate a call graph, // -/// which is a very useful tool for interprocedural optimization. // +/// This file provides interfaces used to build and manipulate a call graph, +/// which is a very useful tool for interprocedural optimization. /// -/// Every function in a module is represented as a node in the call graph. The// -/// callgraph node keeps track of which functions are called by the function // -/// corresponding to the node. // +/// Every function in a module is represented as a node in the call graph. The +/// callgraph node keeps track of which functions are called by the function +/// corresponding to the node. /// -/// A call graph may contain nodes where the function that they correspond to// -/// is null. These 'external' nodes are used to represent control flow that is// -/// not represented (or analyzable) in the module. In particular, this // -/// analysis builds one external node such that: // -/// 1. All functions in the module without internal linkage will have edges// -/// from this external node, indicating that they could be called by // -/// functions outside of the module. // -/// 2. All functions whose address is used for something more than a direct// -/// call, for example being stored into a memory location will also have// -/// an edge from this external node. Since they may be called by an // -/// unknown caller later, they must be tracked as such. // +/// A call graph may contain nodes where the function that they correspond to +/// is null. These 'external' nodes are used to represent control flow that is +/// not represented (or analyzable) in the module. In particular, this +/// analysis builds one external node such that: +/// 1. All functions in the module without internal linkage will have edges +/// from this external node, indicating that they could be called by +/// functions outside of the module. +/// 2. All functions whose address is used for something more than a direct +/// call, for example being stored into a memory location will also have +/// an edge from this external node. Since they may be called by an +/// unknown caller later, they must be tracked as such. /// -/// There is a second external node added for calls that leave this module. // -/// Functions have a call edge to the external node iff: // -/// 1. The function is external, reflecting the fact that they could call // -/// anything without internal linkage or that has its address taken. // -/// 2. The function contains an indirect function call. // +/// There is a second external node added for calls that leave this module. +/// Functions have a call edge to the external node iff: +/// 1. The function is external, reflecting the fact that they could call +/// anything without internal linkage or that has its address taken. +/// 2. The function contains an indirect function call. /// -/// As an extension in the future, there may be multiple nodes with a null // -/// function. These will be used when we can prove (through pointer analysis)// -/// that an indirect call site can call only a specific set of functions. // +/// As an extension in the future, there may be multiple nodes with a null +/// function. These will be used when we can prove (through pointer analysis) +/// that an indirect call site can call only a specific set of functions. /// -/// Because of these properties, the CallGraph captures a conservative superset// -/// of all of the caller-callee relationships, which is useful for // -/// transformations. // +/// Because of these properties, the CallGraph captures a conservative superset +/// of all of the caller-callee relationships, which is useful for +/// transformations. /// -/// The CallGraph class also attempts to figure out what the root of the // -/// CallGraph is, which it currently does by looking for a function named // -/// 'main'. If no function named 'main' is found, the external node is used as// -/// the entry node, reflecting the fact that any function without internal // -/// linkage could be called into (which is common for libraries). // +/// The CallGraph class also attempts to figure out what the root of the +/// CallGraph is, which it currently does by looking for a function named +/// 'main'. If no function named 'main' is found, the external node is used as +/// the entry node, reflecting the fact that any function without internal +/// linkage could be called into (which is common for libraries). /// //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/CallGraphSCCPass.h b/include/llvm/Analysis/CallGraphSCCPass.h index 84f16708b8..667e171577 100644 --- a/include/llvm/Analysis/CallGraphSCCPass.h +++ b/include/llvm/Analysis/CallGraphSCCPass.h @@ -1,21 +1,22 @@ //===- CallGraphSCCPass.h - Pass that operates BU on call graph -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraphSCCPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CallGraphSCCPass class, which is used for passes which// -// are implemented as bottom-up traversals on the call graph. Because there may// -// be cycles in the call graph, passes of this type operate on the call-graph in// -// SCC order: that is, they process function bottom-up, except for recursive // -// functions, which they process all at once. // // -// These passes are inherently interprocedural, and are required to keep the // -// call graph up-to-date if they do anything which could modify it. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CallGraphSCCPass class, which is used for passes which +// are implemented as bottom-up traversals on the call graph. Because there may +// be cycles in the call graph, passes of this type operate on the call-graph in +// SCC order: that is, they process function bottom-up, except for recursive +// functions, which they process all at once. +// +// These passes are inherently interprocedural, and are required to keep the +// call graph up-to-date if they do anything which could modify it. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CALLGRAPHSCCPASS_H #define LLVM_ANALYSIS_CALLGRAPHSCCPASS_H diff --git a/include/llvm/Analysis/CallPrinter.h b/include/llvm/Analysis/CallPrinter.h index eb5b15716c..5f5d160c3c 100644 --- a/include/llvm/Analysis/CallPrinter.h +++ b/include/llvm/Analysis/CallPrinter.h @@ -1,15 +1,16 @@ //===-- CallPrinter.h - Call graph printer external interface ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines external functions that can be called to explicitly // -// instantiate the call graph printer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines external functions that can be called to explicitly +// instantiate the call graph printer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CALLPRINTER_H #define LLVM_ANALYSIS_CALLPRINTER_H diff --git a/include/llvm/Analysis/CaptureTracking.h b/include/llvm/Analysis/CaptureTracking.h index ddb573eaad..8b7c7a90f7 100644 --- a/include/llvm/Analysis/CaptureTracking.h +++ b/include/llvm/Analysis/CaptureTracking.h @@ -1,14 +1,15 @@ //===----- llvm/Analysis/CaptureTracking.h - Pointer capture ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CaptureTracking.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains routines that help determine which pointers are captured.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains routines that help determine which pointers are captured. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CAPTURETRACKING_H #define LLVM_ANALYSIS_CAPTURETRACKING_H diff --git a/include/llvm/Analysis/CodeMetrics.h b/include/llvm/Analysis/CodeMetrics.h index db82cd6e30..2f5969129e 100644 --- a/include/llvm/Analysis/CodeMetrics.h +++ b/include/llvm/Analysis/CodeMetrics.h @@ -1,15 +1,16 @@ //===- CodeMetrics.h - Code cost measurements -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeMetrics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements various weight measurements for code, helping // -// the Inliner and other passes decide whether to duplicate its contents. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements various weight measurements for code, helping +// the Inliner and other passes decide whether to duplicate its contents. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CODEMETRICS_H #define LLVM_ANALYSIS_CODEMETRICS_H diff --git a/include/llvm/Analysis/ConstantFolding.h b/include/llvm/Analysis/ConstantFolding.h index b3e592a7c4..e8185b3b63 100644 --- a/include/llvm/Analysis/ConstantFolding.h +++ b/include/llvm/Analysis/ConstantFolding.h @@ -1,20 +1,21 @@ //===-- ConstantFolding.h - Fold instructions into constants ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantFolding.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares routines for folding instructions into constants when all// -// operands are constants, for example "sub i32 1, 0" -> "1". // // -// Also, to supplement the basic VMCore ConstantExpr simplifications, // -// this file declares some additional folding routines that can make use of // -// DataLayout information. These functions cannot go in VMCore due to library// -// dependency issues. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares routines for folding instructions into constants when all +// operands are constants, for example "sub i32 1, 0" -> "1". +// +// Also, to supplement the basic VMCore ConstantExpr simplifications, +// this file declares some additional folding routines that can make use of +// DataLayout information. These functions cannot go in VMCore due to library +// dependency issues. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_CONSTANTFOLDING_H #define LLVM_ANALYSIS_CONSTANTFOLDING_H diff --git a/include/llvm/Analysis/DOTGraphTraitsPass.h b/include/llvm/Analysis/DOTGraphTraitsPass.h index 336d3c2cfb..efc4b746be 100644 --- a/include/llvm/Analysis/DOTGraphTraitsPass.h +++ b/include/llvm/Analysis/DOTGraphTraitsPass.h @@ -1,14 +1,15 @@ //===-- DOTGraphTraitsPass.h - Print/View dotty graphs-----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DOTGraphTraitsPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Templates to create dotty viewer and printer passes for GraphTraits graphs.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Templates to create dotty viewer and printer passes for GraphTraits graphs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_DOTGRAPHTRAITSPASS_H #define LLVM_ANALYSIS_DOTGRAPHTRAITSPASS_H diff --git a/include/llvm/Analysis/DependenceAnalysis.h b/include/llvm/Analysis/DependenceAnalysis.h index 752e4ee075..528b169360 100644 --- a/include/llvm/Analysis/DependenceAnalysis.h +++ b/include/llvm/Analysis/DependenceAnalysis.h @@ -1,40 +1,41 @@ //===-- llvm/Analysis/DependenceAnalysis.h -------------------- -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependenceAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// DependenceAnalysis is an LLVM pass that analyses dependences between memory// -// accesses. Currently, it is an implementation of the approach described in // // -// Practical Dependence Testing // -// Goff, Kennedy, Tseng // -// PLDI 1991 // +// The LLVM Compiler Infrastructure // -// There's a single entry point that analyzes the dependence between a pair // -// of memory references in a function, returning either NULL, for no dependence,// -// or a more-or-less detailed description of the dependence between them. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// This pass exists to support the DependenceGraph pass. There are two separate// -// passes because there's a useful separation of concerns. A dependence exists// -// if two conditions are met: // +//===----------------------------------------------------------------------===// // -// 1) Two instructions reference the same memory location, and // -// 2) There is a flow of control leading from one instruction to the other.// +// DependenceAnalysis is an LLVM pass that analyses dependences between memory +// accesses. Currently, it is an implementation of the approach described in // -// DependenceAnalysis attacks the first condition; DependenceGraph will attack// -// the second (it's not yet ready). // +// Practical Dependence Testing +// Goff, Kennedy, Tseng +// PLDI 1991 // -// Please note that this is work in progress and the interface is subject to // -// change. // +// There's a single entry point that analyzes the dependence between a pair +// of memory references in a function, returning either NULL, for no dependence, +// or a more-or-less detailed description of the dependence between them. // -// Plausible changes: // -// Return a set of more precise dependences instead of just one dependence// -// summarizing all. // +// This pass exists to support the DependenceGraph pass. There are two separate +// passes because there's a useful separation of concerns. A dependence exists +// if two conditions are met: // -/////////////////////////////////////////////////////////////////////////////// +// 1) Two instructions reference the same memory location, and +// 2) There is a flow of control leading from one instruction to the other. +// +// DependenceAnalysis attacks the first condition; DependenceGraph will attack +// the second (it's not yet ready). +// +// Please note that this is work in progress and the interface is subject to +// change. +// +// Plausible changes: +// Return a set of more precise dependences instead of just one dependence +// summarizing all. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_DEPENDENCEANALYSIS_H #define LLVM_ANALYSIS_DEPENDENCEANALYSIS_H diff --git a/include/llvm/Analysis/DomPrinter.h b/include/llvm/Analysis/DomPrinter.h index 4f72cac1a4..0ed2899499 100644 --- a/include/llvm/Analysis/DomPrinter.h +++ b/include/llvm/Analysis/DomPrinter.h @@ -1,15 +1,16 @@ //===-- DomPrinter.h - Dom printer external interface ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DomPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines external functions that can be called to explicitly // -// instantiate the dominance tree printer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines external functions that can be called to explicitly +// instantiate the dominance tree printer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_DOMPRINTER_H #define LLVM_ANALYSIS_DOMPRINTER_H diff --git a/include/llvm/Analysis/DominanceFrontier.h b/include/llvm/Analysis/DominanceFrontier.h index afc8d2a8a0..a3ccb40766 100644 --- a/include/llvm/Analysis/DominanceFrontier.h +++ b/include/llvm/Analysis/DominanceFrontier.h @@ -1,16 +1,17 @@ //===- llvm/Analysis/DominanceFrontier.h - Dominator Frontiers --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DominanceFrontier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DominanceFrontier class, which calculate and holds the// -// dominance frontier for a function. // // -// This should be considered deprecated, don't add any more uses of this data// -// structure. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DominanceFrontier class, which calculate and holds the +// dominance frontier for a function. +// +// This should be considered deprecated, don't add any more uses of this data +// structure. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/DominanceFrontierImpl.h b/include/llvm/Analysis/DominanceFrontierImpl.h index 1df56ea525..629ae38090 100644 --- a/include/llvm/Analysis/DominanceFrontierImpl.h +++ b/include/llvm/Analysis/DominanceFrontierImpl.h @@ -1,18 +1,19 @@ //===- llvm/Analysis/DominanceFrontier.h - Dominator Frontiers --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DominanceFrontierImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the generic implementation of the DominanceFrontier class, which // -// calculate and holds the dominance frontier for a function for. // // -// This should be considered deprecated, don't add any more uses of this data// -// structure. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the generic implementation of the DominanceFrontier class, which +// calculate and holds the dominance frontier for a function for. +// +// This should be considered deprecated, don't add any more uses of this data +// structure. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_DOMINANCEFRONTIERIMPL_H #define LLVM_ANALYSIS_DOMINANCEFRONTIERIMPL_H diff --git a/include/llvm/Analysis/IVUsers.h b/include/llvm/Analysis/IVUsers.h index 094aaf68c7..00dbcbdd78 100644 --- a/include/llvm/Analysis/IVUsers.h +++ b/include/llvm/Analysis/IVUsers.h @@ -1,15 +1,16 @@ //===- llvm/Analysis/IVUsers.h - Induction Variable Users -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IVUsers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements bookkeeping for "interesting" users of expressions // -// computed from induction variables. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements bookkeeping for "interesting" users of expressions +// computed from induction variables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_IVUSERS_H #define LLVM_ANALYSIS_IVUSERS_H diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index 1e5f2a3430..79ed74d824 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -1,14 +1,15 @@ //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineCost.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements heuristics for inlining decisions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements heuristics for inlining decisions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_INLINECOST_H #define LLVM_ANALYSIS_INLINECOST_H diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index 9801cc3dc6..d44c5ff407 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -1,32 +1,33 @@ //===-- InstructionSimplify.h - Fold instrs into simpler forms --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstructionSimplify.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares routines for folding instructions into simpler forms // -// that do not require creating new instructions. This does constant folding// -// ("add i32 1, 1" -> "2") but can also handle non-constant operands, either // -// returning a constant ("and i32 %x, 0" -> "0") or an already existing value// -// ("and i32 %x, %x" -> "%x"). If the simplification is also an instruction // -// then it dominates the original instruction. // // -// These routines implicitly resolve undef uses. The easiest way to be safe when// -// using these routines to obtain simplified values for existing instructions is// -// to always replace all uses of the instructions with the resulting simplified// -// values. This will prevent other code from seeing the same undef uses and // -// resolving them to different values. // +// The LLVM Compiler Infrastructure // -// These routines are designed to tolerate moderately incomplete IR, such as // -// instructions that are not connected to basic blocks yet. However, they do // -// require that all the IR that they encounter be valid. In particular, they // -// require that all non-constant values be defined in the same function, and the// -// same call context of that function (and not split between caller and callee// -// contexts of a directly recursive call, for example). // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file declares routines for folding instructions into simpler forms +// that do not require creating new instructions. This does constant folding +// ("add i32 1, 1" -> "2") but can also handle non-constant operands, either +// returning a constant ("and i32 %x, 0" -> "0") or an already existing value +// ("and i32 %x, %x" -> "%x"). If the simplification is also an instruction +// then it dominates the original instruction. +// +// These routines implicitly resolve undef uses. The easiest way to be safe when +// using these routines to obtain simplified values for existing instructions is +// to always replace all uses of the instructions with the resulting simplified +// values. This will prevent other code from seeing the same undef uses and +// resolving them to different values. +// +// These routines are designed to tolerate moderately incomplete IR, such as +// instructions that are not connected to basic blocks yet. However, they do +// require that all the IR that they encounter be valid. In particular, they +// require that all non-constant values be defined in the same function, and the +// same call context of that function (and not split between caller and callee +// contexts of a directly recursive call, for example). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_INSTRUCTIONSIMPLIFY_H #define LLVM_ANALYSIS_INSTRUCTIONSIMPLIFY_H diff --git a/include/llvm/Analysis/Interval.h b/include/llvm/Analysis/Interval.h index 6313852f32..819aaa9070 100644 --- a/include/llvm/Analysis/Interval.h +++ b/include/llvm/Analysis/Interval.h @@ -1,18 +1,19 @@ //===- llvm/Analysis/Interval.h - Interval Class Declaration ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Interval.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the Interval class, which // -// represents a set of CFG nodes and is a portion of an interval partition. // // -// Intervals have some interesting and useful properties, including the // -// following: // -// 1. The header node of an interval dominates all of the elements of the // -// interval // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the Interval class, which +// represents a set of CFG nodes and is a portion of an interval partition. +// +// Intervals have some interesting and useful properties, including the +// following: +// 1. The header node of an interval dominates all of the elements of the +// interval // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/IntervalIterator.h b/include/llvm/Analysis/IntervalIterator.h index e80bc2ae52..655ce2dab4 100644 --- a/include/llvm/Analysis/IntervalIterator.h +++ b/include/llvm/Analysis/IntervalIterator.h @@ -1,33 +1,34 @@ //===- IntervalIterator.h - Interval Iterator Declaration -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntervalIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines an iterator that enumerates the intervals in a control flow// -// graph of some sort. This iterator is parametric, allowing iterator over the// -// following types of graphs: // // -// 1. A Function* object, composed of BasicBlock nodes. // -// 2. An IntervalPartition& object, composed of Interval nodes. // +// The LLVM Compiler Infrastructure // -// This iterator is defined to walk the control flow graph, returning intervals// -// in depth first order. These intervals are completely filled in except for// -// the predecessor fields (the successor information is filled in however). // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// By default, the intervals created by this iterator are deleted after they // -// are no longer any use to the iterator. This behavior can be changed by // -// passing a false value into the intervals_begin() function. This causes the// -// IOwnMem member to be set, and the intervals to not be deleted. // +//===----------------------------------------------------------------------===// // -// It is only safe to use this if all of the intervals are deleted by the caller// -// and all of the intervals are processed. However, the user of the iterator is// -// not allowed to modify or delete the intervals until after the iterator has// -// been used completely. The IntervalPartition class uses this functionality.// +// This file defines an iterator that enumerates the intervals in a control flow +// graph of some sort. This iterator is parametric, allowing iterator over the +// following types of graphs: // -/////////////////////////////////////////////////////////////////////////////// +// 1. A Function* object, composed of BasicBlock nodes. +// 2. An IntervalPartition& object, composed of Interval nodes. +// +// This iterator is defined to walk the control flow graph, returning intervals +// in depth first order. These intervals are completely filled in except for +// the predecessor fields (the successor information is filled in however). +// +// By default, the intervals created by this iterator are deleted after they +// are no longer any use to the iterator. This behavior can be changed by +// passing a false value into the intervals_begin() function. This causes the +// IOwnMem member to be set, and the intervals to not be deleted. +// +// It is only safe to use this if all of the intervals are deleted by the caller +// and all of the intervals are processed. However, the user of the iterator is +// not allowed to modify or delete the intervals until after the iterator has +// been used completely. The IntervalPartition class uses this functionality. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_INTERVALITERATOR_H #define LLVM_ANALYSIS_INTERVALITERATOR_H diff --git a/include/llvm/Analysis/IntervalPartition.h b/include/llvm/Analysis/IntervalPartition.h index b7ebd6c0c8..361c2252f8 100644 --- a/include/llvm/Analysis/IntervalPartition.h +++ b/include/llvm/Analysis/IntervalPartition.h @@ -1,21 +1,22 @@ //===- IntervalPartition.h - Interval partition Calculation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntervalPartition.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the IntervalPartition class, which // -// calculates and represents the interval partition of a function, or a // -// preexisting interval partition. // // -// In this way, the interval partition may be used to reduce a flow graph down// -// to its degenerate single node interval partition (unless it is irreducible).// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the IntervalPartition class, which +// calculates and represents the interval partition of a function, or a +// preexisting interval partition. +// +// In this way, the interval partition may be used to reduce a flow graph down +// to its degenerate single node interval partition (unless it is irreducible). // -// TODO: The IntervalPartition class should take a bool parameter that tells // -// whether it should add the "tails" of an interval to an interval itself or if// -// they should be represented as distinct intervals. // +// TODO: The IntervalPartition class should take a bool parameter that tells +// whether it should add the "tails" of an interval to an interval itself or if +// they should be represented as distinct intervals. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/IteratedDominanceFrontier.h b/include/llvm/Analysis/IteratedDominanceFrontier.h index 14eaa962f6..5a339f10f5 100644 --- a/include/llvm/Analysis/IteratedDominanceFrontier.h +++ b/include/llvm/Analysis/IteratedDominanceFrontier.h @@ -1,24 +1,25 @@ //===- IteratedDominanceFrontier.h - Calculate IDF --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IteratedDominanceFrontier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \brief Compute iterated dominance frontiers using a linear time algorithm.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// \brief Compute iterated dominance frontiers using a linear time algorithm. /// -/// The algorithm used here is based on: // +/// The algorithm used here is based on: /// -/// Sreedhar and Gao. A linear time algorithm for placing phi-nodes. // -/// In Proceedings of the 22nd ACM SIGPLAN-SIGACT Symposium on Principles of// -/// Programming Languages // -/// POPL '95. ACM, New York, NY, 62-73. // +/// Sreedhar and Gao. A linear time algorithm for placing phi-nodes. +/// In Proceedings of the 22nd ACM SIGPLAN-SIGACT Symposium on Principles of +/// Programming Languages +/// POPL '95. ACM, New York, NY, 62-73. /// -/// It has been modified to not explicitly use the DJ graph data structure and// -/// to directly compute pruned SSA using per-variable liveness information. // +/// It has been modified to not explicitly use the DJ graph data structure and +/// to directly compute pruned SSA using per-variable liveness information. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_IDF_H #define LLVM_ANALYSIS_IDF_H diff --git a/include/llvm/Analysis/LazyCallGraph.h b/include/llvm/Analysis/LazyCallGraph.h index 4d12e52e42..b0b9068de3 100644 --- a/include/llvm/Analysis/LazyCallGraph.h +++ b/include/llvm/Analysis/LazyCallGraph.h @@ -1,37 +1,36 @@ //===- LazyCallGraph.h - Analysis of a Module's call graph ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LazyCallGraph.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// Implements a lazy call graph analysis and related passes for the new pass// -/// manager. // +/// Implements a lazy call graph analysis and related passes for the new pass +/// manager. /// -/// NB: This is *not* a traditional call graph! It is a graph which models both// -/// the current calls and potential calls. As a consequence there are many // -/// edges in this call graph that do not correspond to a 'call' or 'invoke' // -/// instruction. // +/// NB: This is *not* a traditional call graph! It is a graph which models both +/// the current calls and potential calls. As a consequence there are many +/// edges in this call graph that do not correspond to a 'call' or 'invoke' +/// instruction. /// -/// The primary use cases of this graph analysis is to facilitate iterating // -/// across the functions of a module in ways that ensure all callees are // -/// visited prior to a caller (given any SCC constraints), or vice versa. As // -/// such is it particularly well suited to organizing CGSCC optimizations such// -/// as inlining, outlining, argument promotion, etc. That is its primary use // -/// case and motivates the design. It may not be appropriate for other // -/// purposes. The use graph of functions or some other conservative analysis of// -/// call instructions may be interesting for optimizations and subsequent // -/// analyses which don't work in the context of an overly specified // -/// potential-call-edge graph. // +/// The primary use cases of this graph analysis is to facilitate iterating +/// across the functions of a module in ways that ensure all callees are +/// visited prior to a caller (given any SCC constraints), or vice versa. As +/// such is it particularly well suited to organizing CGSCC optimizations such +/// as inlining, outlining, argument promotion, etc. That is its primary use +/// case and motivates the design. It may not be appropriate for other +/// purposes. The use graph of functions or some other conservative analysis of +/// call instructions may be interesting for optimizations and subsequent +/// analyses which don't work in the context of an overly specified +/// potential-call-edge graph. /// -/// To understand the specific rules and nature of this call graph analysis, // -/// see the documentation of the \c LazyCallGraph below. // +/// To understand the specific rules and nature of this call graph analysis, +/// see the documentation of the \c LazyCallGraph below. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LAZYCALLGRAPH_H #define LLVM_ANALYSIS_LAZYCALLGRAPH_H diff --git a/include/llvm/Analysis/LazyValueInfo.h b/include/llvm/Analysis/LazyValueInfo.h index a720e032c3..1051cff5ef 100644 --- a/include/llvm/Analysis/LazyValueInfo.h +++ b/include/llvm/Analysis/LazyValueInfo.h @@ -1,15 +1,16 @@ //===- LazyValueInfo.h - Value constraint analysis --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LazyValueInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface for lazy computation of value constraint // -// information. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface for lazy computation of value constraint +// information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LAZYVALUEINFO_H #define LLVM_ANALYSIS_LAZYVALUEINFO_H diff --git a/include/llvm/Analysis/LibCallAliasAnalysis.h b/include/llvm/Analysis/LibCallAliasAnalysis.h index a0582b247e..6589ac13c7 100644 --- a/include/llvm/Analysis/LibCallAliasAnalysis.h +++ b/include/llvm/Analysis/LibCallAliasAnalysis.h @@ -1,14 +1,15 @@ //===- LibCallAliasAnalysis.h - Implement AliasAnalysis for libcalls ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LibCallAliasAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LibCallAliasAnalysis class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LibCallAliasAnalysis class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LIBCALLALIASANALYSIS_H #define LLVM_ANALYSIS_LIBCALLALIASANALYSIS_H diff --git a/include/llvm/Analysis/LibCallSemantics.h b/include/llvm/Analysis/LibCallSemantics.h index 282a2b91ed..b4bef310e5 100644 --- a/include/llvm/Analysis/LibCallSemantics.h +++ b/include/llvm/Analysis/LibCallSemantics.h @@ -1,15 +1,16 @@ //===- LibCallSemantics.h - Describe library semantics --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LibCallSemantics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines interfaces that can be used to describe language specific// -// runtime library interfaces (e.g. libc, libm, etc) to LLVM optimizers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines interfaces that can be used to describe language specific +// runtime library interfaces (e.g. libc, libm, etc) to LLVM optimizers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LIBCALLSEMANTICS_H #define LLVM_ANALYSIS_LIBCALLSEMANTICS_H diff --git a/include/llvm/Analysis/Lint.h b/include/llvm/Analysis/Lint.h index 1123d2cf47..7c88b137ec 100644 --- a/include/llvm/Analysis/Lint.h +++ b/include/llvm/Analysis/Lint.h @@ -1,20 +1,21 @@ //===-- llvm/Analysis/Lint.h - LLVM IR Lint ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Lint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines lint interfaces that can be used for some sanity checking// -// of input to the system, and for checking that transformations // -// haven't done something bad. In contrast to the Verifier, the Lint checker // -// checks for undefined behavior or constructions with likely unintended // -// behavior. // // -// To see what specifically is checked, look at Lint.cpp // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines lint interfaces that can be used for some sanity checking +// of input to the system, and for checking that transformations +// haven't done something bad. In contrast to the Verifier, the Lint checker +// checks for undefined behavior or constructions with likely unintended +// behavior. +// +// To see what specifically is checked, look at Lint.cpp +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LINT_H #define LLVM_ANALYSIS_LINT_H diff --git a/include/llvm/Analysis/Loads.h b/include/llvm/Analysis/Loads.h index f6dd4b3ffc..42667d2af1 100644 --- a/include/llvm/Analysis/Loads.h +++ b/include/llvm/Analysis/Loads.h @@ -1,14 +1,15 @@ //===- Loads.h - Local load analysis --------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Loads.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares simple local analyses for load instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares simple local analyses for load instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LOADS_H #define LLVM_ANALYSIS_LOADS_H diff --git a/include/llvm/Analysis/LoopAccessAnalysis.h b/include/llvm/Analysis/LoopAccessAnalysis.h index a4bbed263a..476e4b6686 100644 --- a/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/include/llvm/Analysis/LoopAccessAnalysis.h @@ -1,15 +1,16 @@ //===- llvm/Analysis/LoopAccessAnalysis.h -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopAccessAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface for the loop memory dependence framework that// -// was originally developed for the Loop Vectorizer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface for the loop memory dependence framework that +// was originally developed for the Loop Vectorizer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LOOPACCESSANALYSIS_H #define LLVM_ANALYSIS_LOOPACCESSANALYSIS_H diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 78dc03d763..d8141c7809 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -1,28 +1,29 @@ //===- llvm/Analysis/LoopInfo.h - Natural Loop Calculator -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LoopInfo class that is used to identify natural loops// -// and determine the loop depth of various nodes of the CFG. A natural loop // -// has exactly one entry-point, which is called the header. Note that natural// -// loops may actually be several loops that share the same header node. // // -// This analysis calculates the nesting structure of loops in a function. For// -// each natural loop identified, this analysis identifies natural loops // -// contained entirely within the loop and the basic blocks the make up the loop.// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LoopInfo class that is used to identify natural loops +// and determine the loop depth of various nodes of the CFG. A natural loop +// has exactly one entry-point, which is called the header. Note that natural +// loops may actually be several loops that share the same header node. +// +// This analysis calculates the nesting structure of loops in a function. For +// each natural loop identified, this analysis identifies natural loops +// contained entirely within the loop and the basic blocks the make up the loop. // -// It can calculate on the fly various bits of information, for example: // +// It can calculate on the fly various bits of information, for example: // -// * whether there is a preheader for the loop // -// * the number of back edges to the header // -// * whether or not a particular block branches out of the loop // -// * the successor blocks of the loop // -// * the loop depth // -// * etc... // +// * whether there is a preheader for the loop +// * the number of back edges to the header +// * whether or not a particular block branches out of the loop +// * the successor blocks of the loop +// * the loop depth +// * etc... // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/LoopInfoImpl.h b/include/llvm/Analysis/LoopInfoImpl.h index d33c52987d..3bb3ba89b3 100644 --- a/include/llvm/Analysis/LoopInfoImpl.h +++ b/include/llvm/Analysis/LoopInfoImpl.h @@ -1,13 +1,14 @@ //===- llvm/Analysis/LoopInfoImpl.h - Natural Loop Calculator ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopInfoImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the generic implementation of LoopInfo used for both Loops and // -// MachineLoops. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the generic implementation of LoopInfo used for both Loops and +// MachineLoops. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/LoopIterator.h b/include/llvm/Analysis/LoopIterator.h index 4d984a3036..e3dd96354c 100644 --- a/include/llvm/Analysis/LoopIterator.h +++ b/include/llvm/Analysis/LoopIterator.h @@ -1,26 +1,25 @@ //===--------- LoopIterator.h - Iterate over loop blocks --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines iterators to visit the basic blocks within a loop. // // -// These iterators currently visit blocks within subloops as well. // -// Unfortunately we have no efficient way of summarizing loop exits which would// -// allow skipping subloops during traversal. // +// The LLVM Compiler Infrastructure // -// If you want to visit all blocks in a loop and don't need an ordered traveral,// -// use Loop::block_begin() instead. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// This is intentionally designed to work with ill-formed loops in which the // -// backedge has been deleted. The only prerequisite is that all blocks // -// contained within the loop according to the most recent LoopInfo analysis are// -// reachable from the loop header. // -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// This file defines iterators to visit the basic blocks within a loop. +// +// These iterators currently visit blocks within subloops as well. +// Unfortunately we have no efficient way of summarizing loop exits which would +// allow skipping subloops during traversal. +// +// If you want to visit all blocks in a loop and don't need an ordered traveral, +// use Loop::block_begin() instead. +// +// This is intentionally designed to work with ill-formed loops in which the +// backedge has been deleted. The only prerequisite is that all blocks +// contained within the loop according to the most recent LoopInfo analysis are +// reachable from the loop header. +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LOOPITERATOR_H #define LLVM_ANALYSIS_LOOPITERATOR_H diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index 011c55a69f..8650000fcf 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -1,15 +1,16 @@ //===- LoopPass.h - LoopPass class ----------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines LoopPass class. All loop optimization // -// and transformation passes are derived from LoopPass. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines LoopPass class. All loop optimization +// and transformation passes are derived from LoopPass. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_LOOPPASS_H #define LLVM_ANALYSIS_LOOPPASS_H diff --git a/include/llvm/Analysis/MemoryBuiltins.h b/include/llvm/Analysis/MemoryBuiltins.h index f13a9f5fe3..7d3cd466fd 100644 --- a/include/llvm/Analysis/MemoryBuiltins.h +++ b/include/llvm/Analysis/MemoryBuiltins.h @@ -1,13 +1,14 @@ //===- llvm/Analysis/MemoryBuiltins.h- Calls to memory builtins -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryBuiltins.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions identifies calls to builtin functions that allocate// -// or free memory. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions identifies calls to builtin functions that allocate +// or free memory. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 13f22e6b8e..511898071c 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -1,14 +1,15 @@ //===- llvm/Analysis/MemoryDependenceAnalysis.h - Memory Deps --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryDependenceAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MemoryDependenceAnalysis analysis pass. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MemoryDependenceAnalysis analysis pass. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_MEMORYDEPENDENCEANALYSIS_H #define LLVM_ANALYSIS_MEMORYDEPENDENCEANALYSIS_H diff --git a/include/llvm/Analysis/MemoryLocation.h b/include/llvm/Analysis/MemoryLocation.h index 70e68ff19e..426b49a3ec 100644 --- a/include/llvm/Analysis/MemoryLocation.h +++ b/include/llvm/Analysis/MemoryLocation.h @@ -1,18 +1,17 @@ //===- MemoryLocation.h - Memory location descriptions ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryLocation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides utility analysis objects describing memory locations. // -/// These are used both by the Alias Analysis infrastructure and more // -/// specialized memory analysis layers. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides utility analysis objects describing memory locations. +/// These are used both by the Alias Analysis infrastructure and more +/// specialized memory analysis layers. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_MEMORYLOCATION_H #define LLVM_ANALYSIS_MEMORYLOCATION_H diff --git a/include/llvm/Analysis/PHITransAddr.h b/include/llvm/Analysis/PHITransAddr.h index ba5e7f2899..cbdbb88f74 100644 --- a/include/llvm/Analysis/PHITransAddr.h +++ b/include/llvm/Analysis/PHITransAddr.h @@ -1,14 +1,15 @@ //===- PHITransAddr.h - PHI Translation for Addresses -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PHITransAddr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the PHITransAddr class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the PHITransAddr class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_PHITRANSADDR_H #define LLVM_ANALYSIS_PHITRANSADDR_H diff --git a/include/llvm/Analysis/Passes.h b/include/llvm/Analysis/Passes.h index 2a02d439af..d112ab1823 100644 --- a/include/llvm/Analysis/Passes.h +++ b/include/llvm/Analysis/Passes.h @@ -1,15 +1,16 @@ //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Passes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file defines prototypes for accessor functions that expose passes// -// in the analysis libraries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file defines prototypes for accessor functions that expose passes +// in the analysis libraries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_PASSES_H #define LLVM_ANALYSIS_PASSES_H diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 1fecaaada9..0f7e2b88d2 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -1,14 +1,15 @@ //=- llvm/Analysis/PostDominators.h - Post Dominator Calculation-*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostDominators.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes interfaces to post dominance information. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes interfaces to post dominance information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_POSTDOMINATORS_H #define LLVM_ANALYSIS_POSTDOMINATORS_H diff --git a/include/llvm/Analysis/PtrUseVisitor.h b/include/llvm/Analysis/PtrUseVisitor.h index 9770a1bd1f..6e61fc3be3 100644 --- a/include/llvm/Analysis/PtrUseVisitor.h +++ b/include/llvm/Analysis/PtrUseVisitor.h @@ -1,24 +1,23 @@ //===- PtrUseVisitor.h - InstVisitors over a pointers uses ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PtrUseVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides a collection of visitors which walk the (instruction) // -/// uses of a pointer. These visitors all provide the same essential behavior// -/// as an InstVisitor with similar template-based flexibility and // -/// implementation strategies. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides a collection of visitors which walk the (instruction) +/// uses of a pointer. These visitors all provide the same essential behavior +/// as an InstVisitor with similar template-based flexibility and +/// implementation strategies. /// -/// These can be used, for example, to quickly analyze the uses of an alloca,// -/// global variable, or function argument. // +/// These can be used, for example, to quickly analyze the uses of an alloca, +/// global variable, or function argument. /// -/// FIXME: Provide a variant which doesn't track offsets and is cheaper. // +/// FIXME: Provide a variant which doesn't track offsets and is cheaper. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_PTRUSEVISITOR_H #define LLVM_ANALYSIS_PTRUSEVISITOR_H diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h index abcebbdb2a..49df24e703 100644 --- a/include/llvm/Analysis/RegionInfo.h +++ b/include/llvm/Analysis/RegionInfo.h @@ -1,35 +1,36 @@ //===- RegionInfo.h - SESE region analysis ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Calculate a program structure tree built out of single entry single exit // -// regions. // -// The basic ideas are taken from "The Program Structure Tree - Richard Johnson,// -// David Pearson, Keshav Pingali - 1994", however enriched with ideas from "The// -// Refined Process Structure Tree - Jussi Vanhatalo, Hagen Voelyer, Jana // -// Koehler - 2009". // -// The algorithm to calculate these data structures however is completely // -// different, as it takes advantage of existing information already available// -// in (Post)dominace tree and dominance frontier passes. This leads to a simpler// -// and in practice hopefully better performing algorithm. The runtime of the // -// algorithms described in the papers above are both linear in graph size, // -// O(V+E), whereas this algorithm is not, as the dominance frontier information// -// itself is not, but in practice runtime seems to be in the order of magnitude// -// of dominance tree calculation. // // -// WARNING: LLVM is generally very concerned about compile time such that // -// the use of additional analysis passes in the default // -// optimization sequence is avoided as much as possible. // -// Specifically, if you do not need the RegionInfo, but dominance // -// information could be sufficient please base your work only on // -// the dominator tree. Most passes maintain it, such that using // -// it has often near zero cost. In contrast RegionInfo is by // -// default not available, is not maintained by existing // -// transformations and there is no intention to do so. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Calculate a program structure tree built out of single entry single exit +// regions. +// The basic ideas are taken from "The Program Structure Tree - Richard Johnson, +// David Pearson, Keshav Pingali - 1994", however enriched with ideas from "The +// Refined Process Structure Tree - Jussi Vanhatalo, Hagen Voelyer, Jana +// Koehler - 2009". +// The algorithm to calculate these data structures however is completely +// different, as it takes advantage of existing information already available +// in (Post)dominace tree and dominance frontier passes. This leads to a simpler +// and in practice hopefully better performing algorithm. The runtime of the +// algorithms described in the papers above are both linear in graph size, +// O(V+E), whereas this algorithm is not, as the dominance frontier information +// itself is not, but in practice runtime seems to be in the order of magnitude +// of dominance tree calculation. +// +// WARNING: LLVM is generally very concerned about compile time such that +// the use of additional analysis passes in the default +// optimization sequence is avoided as much as possible. +// Specifically, if you do not need the RegionInfo, but dominance +// information could be sufficient please base your work only on +// the dominator tree. Most passes maintain it, such that using +// it has often near zero cost. In contrast RegionInfo is by +// default not available, is not maintained by existing +// transformations and there is no intention to do so. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/RegionInfoImpl.h b/include/llvm/Analysis/RegionInfoImpl.h index f14b020f2c..89c0112cba 100644 --- a/include/llvm/Analysis/RegionInfoImpl.h +++ b/include/llvm/Analysis/RegionInfoImpl.h @@ -1,12 +1,12 @@ //===- RegionInfoImpl.h - SESE region detection analysis --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionInfoImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Detects single entry single exit regions in the control flow graph. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Detects single entry single exit regions in the control flow graph. //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_REGIONINFOIMPL_H diff --git a/include/llvm/Analysis/RegionIterator.h b/include/llvm/Analysis/RegionIterator.h index f7a51cbdc9..88b37e6bb2 100644 --- a/include/llvm/Analysis/RegionIterator.h +++ b/include/llvm/Analysis/RegionIterator.h @@ -1,12 +1,12 @@ //===- RegionIterator.h - Iterators to iteratate over Regions ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the iterators to iterate over the elements of a Region. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file defines the iterators to iterate over the elements of a Region. //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_REGIONITERATOR_H #define LLVM_ANALYSIS_REGIONITERATOR_H diff --git a/include/llvm/Analysis/RegionPass.h b/include/llvm/Analysis/RegionPass.h index 24b7870966..090b2957ba 100644 --- a/include/llvm/Analysis/RegionPass.h +++ b/include/llvm/Analysis/RegionPass.h @@ -1,14 +1,15 @@ //===- RegionPass.h - RegionPass class --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RegionPass class. All region based analysis, // -// optimization and transformation passes are derived from RegionPass. // -// This class is implemented following the some ideas of the LoopPass.h class.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RegionPass class. All region based analysis, +// optimization and transformation passes are derived from RegionPass. +// This class is implemented following the some ideas of the LoopPass.h class. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/RegionPrinter.h b/include/llvm/Analysis/RegionPrinter.h index 5dc6884305..758748aad9 100644 --- a/include/llvm/Analysis/RegionPrinter.h +++ b/include/llvm/Analysis/RegionPrinter.h @@ -1,15 +1,16 @@ //===-- RegionPrinter.h - Region printer external interface -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines external functions that can be called to explicitly // -// instantiate the region printer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines external functions that can be called to explicitly +// instantiate the region printer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_REGIONPRINTER_H #define LLVM_ANALYSIS_REGIONPRINTER_H diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 1363c5858e..d47cab829c 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -1,21 +1,22 @@ //===- llvm/Analysis/ScalarEvolution.h - Scalar Evolution -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolution.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The ScalarEvolution class is an LLVM pass which can be used to analyze and// -// categorize scalar expressions in loops. It specializes in recognizing // -// general induction variables, representing them with the abstract and opaque// -// SCEV class. Given this analysis, trip counts of loops and other important// -// properties can be obtained. // // -// This analysis is primarily useful for induction variable substitution and // -// strength reduction. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The ScalarEvolution class is an LLVM pass which can be used to analyze and +// categorize scalar expressions in loops. It specializes in recognizing +// general induction variables, representing them with the abstract and opaque +// SCEV class. Given this analysis, trip counts of loops and other important +// properties can be obtained. +// +// This analysis is primarily useful for induction variable substitution and +// strength reduction. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_SCALAREVOLUTION_H #define LLVM_ANALYSIS_SCALAREVOLUTION_H diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index 513c897464..8ec2078258 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -1,14 +1,15 @@ //===---- llvm/Analysis/ScalarEvolutionExpander.h - SCEV Exprs --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionExpander.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the classes used to generate code from scalar expressions.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the classes used to generate code from scalar expressions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_SCALAREVOLUTIONEXPANDER_H #define LLVM_ANALYSIS_SCALAREVOLUTIONEXPANDER_H diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h index 4f2cfe9a1f..da24de281d 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -1,14 +1,15 @@ //===- llvm/Analysis/ScalarEvolutionExpressions.h - SCEV Exprs --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionExpressions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the classes used to represent and build scalar expressions.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the classes used to represent and build scalar expressions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_SCALAREVOLUTIONEXPRESSIONS_H #define LLVM_ANALYSIS_SCALAREVOLUTIONEXPRESSIONS_H diff --git a/include/llvm/Analysis/ScalarEvolutionNormalization.h b/include/llvm/Analysis/ScalarEvolutionNormalization.h index b90b47e03a..7c6423a21c 100644 --- a/include/llvm/Analysis/ScalarEvolutionNormalization.h +++ b/include/llvm/Analysis/ScalarEvolutionNormalization.h @@ -1,36 +1,37 @@ //===- llvm/Analysis/ScalarEvolutionNormalization.h - See below -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionNormalization.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines utilities for working with "normalized" ScalarEvolution // -// expressions. // // -// The following example illustrates post-increment uses and how normalized // -// expressions help. // +// The LLVM Compiler Infrastructure // -// for (i=0; i!=n; ++i) { // -// ... // -// } // -// use(i); // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// While the expression for most uses of i inside the loop is {0,+,1}<%L>, the// -// expression for the use of i outside the loop is {1,+,1}<%L>, since i is // -// incremented at the end of the loop body. This is inconveient, since it // -// suggests that we need two different induction variables, one that starts // -// at 0 and one that starts at 1. We'd prefer to be able to think of these as// -// the same induction variable, with uses inside the loop using the // -// "pre-incremented" value, and uses after the loop using the // -// "post-incremented" value. // +//===----------------------------------------------------------------------===// // -// Expressions for post-incremented uses are represented as an expression // -// paired with a set of loops for which the expression is in "post-increment"// -// mode (there may be multiple loops). // +// This file defines utilities for working with "normalized" ScalarEvolution +// expressions. // -/////////////////////////////////////////////////////////////////////////////// +// The following example illustrates post-increment uses and how normalized +// expressions help. +// +// for (i=0; i!=n; ++i) { +// ... +// } +// use(i); +// +// While the expression for most uses of i inside the loop is {0,+,1}<%L>, the +// expression for the use of i outside the loop is {1,+,1}<%L>, since i is +// incremented at the end of the loop body. This is inconveient, since it +// suggests that we need two different induction variables, one that starts +// at 0 and one that starts at 1. We'd prefer to be able to think of these as +// the same induction variable, with uses inside the loop using the +// "pre-incremented" value, and uses after the loop using the +// "post-incremented" value. +// +// Expressions for post-incremented uses are represented as an expression +// paired with a set of loops for which the expression is in "post-increment" +// mode (there may be multiple loops). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_SCALAREVOLUTIONNORMALIZATION_H #define LLVM_ANALYSIS_SCALAREVOLUTIONNORMALIZATION_H diff --git a/include/llvm/Analysis/SparsePropagation.h b/include/llvm/Analysis/SparsePropagation.h index e3391530b2..9ccae5ff89 100644 --- a/include/llvm/Analysis/SparsePropagation.h +++ b/include/llvm/Analysis/SparsePropagation.h @@ -1,15 +1,16 @@ //===- SparsePropagation.h - Sparse Conditional Property Propagation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparsePropagation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an abstract sparse conditional propagation algorithm,// -// modeled after SCCP, but with a customizable lattice function. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an abstract sparse conditional propagation algorithm, +// modeled after SCCP, but with a customizable lattice function. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_SPARSEPROPAGATION_H #define LLVM_ANALYSIS_SPARSEPROPAGATION_H diff --git a/include/llvm/Analysis/TargetFolder.h b/include/llvm/Analysis/TargetFolder.h index 573a7db628..12bf9fe78a 100644 --- a/include/llvm/Analysis/TargetFolder.h +++ b/include/llvm/Analysis/TargetFolder.h @@ -1,19 +1,20 @@ //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetFolder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TargetFolder class, a helper for IRBuilder. // -// It provides IRBuilder with a set of methods for creating constants with // -// target dependent folding, in addition to the same target-independent // -// folding that the ConstantFolder class provides. For general constant // -// creation and folding, use ConstantExpr and the routines in // -// llvm/Analysis/ConstantFolding.h. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TargetFolder class, a helper for IRBuilder. +// It provides IRBuilder with a set of methods for creating constants with +// target dependent folding, in addition to the same target-independent +// folding that the ConstantFolder class provides. For general constant +// creation and folding, use ConstantExpr and the routines in +// llvm/Analysis/ConstantFolding.h. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TARGETFOLDER_H #define LLVM_ANALYSIS_TARGETFOLDER_H diff --git a/include/llvm/Analysis/TargetLibraryInfo.def b/include/llvm/Analysis/TargetLibraryInfo.def index a366c34a8a..8411a82449 100644 --- a/include/llvm/Analysis/TargetLibraryInfo.def +++ b/include/llvm/Analysis/TargetLibraryInfo.def @@ -1,16 +1,11 @@ //===-- TargetLibraryInfo.def - Library information -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLibraryInfo.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// This .def file will either fill in the enum definition or fill in the // -// string representation array definition for TargetLibraryInfo. // -// Which is defined depends on whether TLI_DEFINE_ENUM is defined or // -// TLI_DEFINE_STRING is defined. Only one should be defined at a time. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #if !(defined(TLI_DEFINE_ENUM) || defined(TLI_DEFINE_STRING)) #error "Must define TLI_DEFINE_ENUM or TLI_DEFINE_STRING for TLI .def." diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/TargetLibraryInfo.h index 21eabf8e63..e0a1ee3782 100644 --- a/include/llvm/Analysis/TargetLibraryInfo.h +++ b/include/llvm/Analysis/TargetLibraryInfo.h @@ -1,12 +1,11 @@ //===-- TargetLibraryInfo.h - Library information ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLibraryInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TARGETLIBRARYINFO_H #define LLVM_ANALYSIS_TARGETLIBRARYINFO_H diff --git a/include/llvm/Analysis/TargetTransformInfo.h b/include/llvm/Analysis/TargetTransformInfo.h index 73675f2e13..01f0089641 100644 --- a/include/llvm/Analysis/TargetTransformInfo.h +++ b/include/llvm/Analysis/TargetTransformInfo.h @@ -1,24 +1,23 @@ //===- TargetTransformInfo.h ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetTransformInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This pass exposes codegen information to IR-level passes. Every // -/// transformation that uses codegen information is broken into three parts: // -/// 1. The IR-level analysis pass. // -/// 2. The IR-level transformation interface which provides the needed // -/// information. // -/// 3. Codegen-level implementation which uses target-specific hooks. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This pass exposes codegen information to IR-level passes. Every +/// transformation that uses codegen information is broken into three parts: +/// 1. The IR-level analysis pass. +/// 2. The IR-level transformation interface which provides the needed +/// information. +/// 3. Codegen-level implementation which uses target-specific hooks. /// -/// This file defines #2, which is the interface that IR-level transformations// -/// use for querying the codegen. // +/// This file defines #2, which is the interface that IR-level transformations +/// use for querying the codegen. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TARGETTRANSFORMINFO_H #define LLVM_ANALYSIS_TARGETTRANSFORMINFO_H diff --git a/include/llvm/Analysis/TargetTransformInfoImpl.h b/include/llvm/Analysis/TargetTransformInfoImpl.h index 101fba1635..035cb04870 100644 --- a/include/llvm/Analysis/TargetTransformInfoImpl.h +++ b/include/llvm/Analysis/TargetTransformInfoImpl.h @@ -1,17 +1,16 @@ //===- TargetTransformInfoImpl.h --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetTransformInfoImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides helpers for the implementation of // -/// a TargetTransformInfo-conforming class. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides helpers for the implementation of +/// a TargetTransformInfo-conforming class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TARGETTRANSFORMINFOIMPL_H #define LLVM_ANALYSIS_TARGETTRANSFORMINFOIMPL_H diff --git a/include/llvm/Analysis/Trace.h b/include/llvm/Analysis/Trace.h index 50359f42eb..bedd654c65 100644 --- a/include/llvm/Analysis/Trace.h +++ b/include/llvm/Analysis/Trace.h @@ -1,18 +1,19 @@ //===- llvm/Analysis/Trace.h - Represent one trace of LLVM code -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Trace.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class represents a single trace of LLVM basic blocks. A trace is a // -// single entry, multiple exit, region of code that is often hot. Trace-based// -// optimizations treat traces almost like they are a large, strange, basic // -// block: because the trace path is assumed to be hot, optimizations for the // -// fall-through path are made at the expense of the non-fall-through paths. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class represents a single trace of LLVM basic blocks. A trace is a +// single entry, multiple exit, region of code that is often hot. Trace-based +// optimizations treat traces almost like they are a large, strange, basic +// block: because the trace path is assumed to be hot, optimizations for the +// fall-through path are made at the expense of the non-fall-through paths. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_TRACE_H #define LLVM_ANALYSIS_TRACE_H diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h index 90b901de18..653821d022 100644 --- a/include/llvm/Analysis/ValueTracking.h +++ b/include/llvm/Analysis/ValueTracking.h @@ -1,15 +1,16 @@ //===- llvm/Analysis/ValueTracking.h - Walk computations --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueTracking.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains routines that help analyze properties that chains of // -// computations have. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains routines that help analyze properties that chains of +// computations have. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_VALUETRACKING_H #define LLVM_ANALYSIS_VALUETRACKING_H diff --git a/include/llvm/Analysis/VectorUtils.h b/include/llvm/Analysis/VectorUtils.h index f670718b22..d8e9ca42e6 100644 --- a/include/llvm/Analysis/VectorUtils.h +++ b/include/llvm/Analysis/VectorUtils.h @@ -1,14 +1,15 @@ //===- llvm/Transforms/Utils/VectorUtils.h - Vector utilities -*- C++ -*-=====// -/////////////////////////////////////////////////////////////////////////////// -// // -// VectorUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some vectorizer utilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some vectorizer utilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_VECTORUTILS_H #define LLVM_TRANSFORMS_UTILS_VECTORUTILS_H diff --git a/include/llvm/AsmParser/Parser.h b/include/llvm/AsmParser/Parser.h index 6d8a7d9ba3..52151409f9 100644 --- a/include/llvm/AsmParser/Parser.h +++ b/include/llvm/AsmParser/Parser.h @@ -1,14 +1,15 @@ //===-- Parser.h - Parser for LLVM IR text assembly files -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Parser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes are implemented by the lib/AsmParser library. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes are implemented by the lib/AsmParser library. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ASMPARSER_PARSER_H #define LLVM_ASMPARSER_PARSER_H diff --git a/include/llvm/AsmParser/SlotMapping.h b/include/llvm/AsmParser/SlotMapping.h index 8f2b65c844..c5f61d25c3 100644 --- a/include/llvm/AsmParser/SlotMapping.h +++ b/include/llvm/AsmParser/SlotMapping.h @@ -1,14 +1,15 @@ //===-- SlotMapping.h - Slot number mapping for unnamed values --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SlotMapping.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the SlotMapping struct. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the SlotMapping struct. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ASMPARSER_SLOTMAPPING_H #define LLVM_ASMPARSER_SLOTMAPPING_H diff --git a/include/llvm/Bitcode/BitCodes.h b/include/llvm/Bitcode/BitCodes.h index 9518174765..96c4201518 100644 --- a/include/llvm/Bitcode/BitCodes.h +++ b/include/llvm/Bitcode/BitCodes.h @@ -1,18 +1,19 @@ //===- BitCodes.h - Enum values for the bitcode format ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitCodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header Bitcode enum values. // // -// The enum values defined in this file should be considered permanent. If // -// new features are added, they should have values added at the end of the // -// respective lists. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header Bitcode enum values. +// +// The enum values defined in this file should be considered permanent. If +// new features are added, they should have values added at the end of the +// respective lists. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_BITCODE_BITCODES_H #define LLVM_BITCODE_BITCODES_H diff --git a/include/llvm/Bitcode/BitcodeWriterPass.h b/include/llvm/Bitcode/BitcodeWriterPass.h index 22f11fc877..ae915c688b 100644 --- a/include/llvm/Bitcode/BitcodeWriterPass.h +++ b/include/llvm/Bitcode/BitcodeWriterPass.h @@ -1,17 +1,16 @@ //===-- BitcodeWriterPass.h - Bitcode writing pass --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitcodeWriterPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file provides a bitcode writing pass. // +/// This file provides a bitcode writing pass. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_BITCODE_BITCODEWRITERPASS_H #define LLVM_BITCODE_BITCODEWRITERPASS_H diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 9c28492b2a..ea5e444f48 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -1,15 +1,16 @@ //===- BitstreamReader.h - Low-level bitstream reader interface -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitstreamReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the BitstreamReader class. This class can be used to // -// read an arbitrary bitstream, regardless of its contents. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the BitstreamReader class. This class can be used to +// read an arbitrary bitstream, regardless of its contents. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_BITCODE_BITSTREAMREADER_H #define LLVM_BITCODE_BITSTREAMREADER_H diff --git a/include/llvm/Bitcode/BitstreamWriter.h b/include/llvm/Bitcode/BitstreamWriter.h index 7b449fc9bf..9f23023a14 100644 --- a/include/llvm/Bitcode/BitstreamWriter.h +++ b/include/llvm/Bitcode/BitstreamWriter.h @@ -1,15 +1,16 @@ //===- BitstreamWriter.h - Low-level bitstream writer interface -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitstreamWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the BitstreamWriter class. This class can be used to // -// write an arbitrary bitstream, regardless of its contents. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the BitstreamWriter class. This class can be used to +// write an arbitrary bitstream, regardless of its contents. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_BITCODE_BITSTREAMWRITER_H #define LLVM_BITCODE_BITSTREAMWRITER_H diff --git a/include/llvm/Bitcode/LLVMBitCodes.h b/include/llvm/Bitcode/LLVMBitCodes.h index 7067f6c66d..7130ee7552 100644 --- a/include/llvm/Bitcode/LLVMBitCodes.h +++ b/include/llvm/Bitcode/LLVMBitCodes.h @@ -1,18 +1,19 @@ //===- LLVMBitCodes.h - Enum values for the LLVM bitcode format -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMBitCodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines Bitcode enum values for LLVM IR bitcode files. // // -// The enum values defined in this file should be considered permanent. If // -// new features are added, they should have values added at the end of the // -// respective lists. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines Bitcode enum values for LLVM IR bitcode files. +// +// The enum values defined in this file should be considered permanent. If +// new features are added, they should have values added at the end of the +// respective lists. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_BITCODE_LLVMBITCODES_H #define LLVM_BITCODE_LLVMBITCODES_H diff --git a/include/llvm/Bitcode/ReaderWriter.h b/include/llvm/Bitcode/ReaderWriter.h index 913cb54ed6..452ec3bd01 100644 --- a/include/llvm/Bitcode/ReaderWriter.h +++ b/include/llvm/Bitcode/ReaderWriter.h @@ -1,14 +1,15 @@ //===-- llvm/Bitcode/ReaderWriter.h - Bitcode reader/writers ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReaderWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines interfaces to read and write LLVM bitcode files/streams.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines interfaces to read and write LLVM bitcode files/streams. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_BITCODE_READERWRITER_H #define LLVM_BITCODE_READERWRITER_H diff --git a/include/llvm/CMakeLists.txt b/include/llvm/CMakeLists.txt index 4f8308a35a..ff805396eb 100644 --- a/include/llvm/CMakeLists.txt +++ b/include/llvm/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(IR) # If we're doing an out-of-tree build, copy a module map for generated diff --git a/include/llvm/CodeGen/Analysis.h b/include/llvm/CodeGen/Analysis.h index 80c0f1ca17..82d1e8ada1 100644 --- a/include/llvm/CodeGen/Analysis.h +++ b/include/llvm/CodeGen/Analysis.h @@ -1,14 +1,15 @@ //===- CodeGen/Analysis.h - CodeGen LLVM IR Analysis Utilities --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Analysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares several CodeGen-specific LLVM IR analysis utilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares several CodeGen-specific LLVM IR analysis utilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_ANALYSIS_H #define LLVM_CODEGEN_ANALYSIS_H diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 219ddde24b..fe7efae325 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -1,16 +1,17 @@ //===-- llvm/CodeGen/AsmPrinter.h - AsmPrinter Framework --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a class to be used as the base class for target specific// -// asm writers. This class primarily handles common functionality used by // -// all asm writers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a class to be used as the base class for target specific +// asm writers. This class primarily handles common functionality used by +// all asm writers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_ASMPRINTER_H #define LLVM_CODEGEN_ASMPRINTER_H diff --git a/include/llvm/CodeGen/BasicTTIImpl.h b/include/llvm/CodeGen/BasicTTIImpl.h index 09322f5917..9ba25169fd 100644 --- a/include/llvm/CodeGen/BasicTTIImpl.h +++ b/include/llvm/CodeGen/BasicTTIImpl.h @@ -1,18 +1,17 @@ //===- BasicTTIImpl.h -------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicTTIImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides a helper that implements much of the TTI interface in // -/// terms of the target-independent code generator and TargetLowering // -/// interfaces. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides a helper that implements much of the TTI interface in +/// terms of the target-independent code generator and TargetLowering +/// interfaces. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_BASICTTIIMPL_H #define LLVM_CODEGEN_BASICTTIIMPL_H diff --git a/include/llvm/CodeGen/CalcSpillWeights.h b/include/llvm/CodeGen/CalcSpillWeights.h index 214ba354a0..91fb0a9d7e 100644 --- a/include/llvm/CodeGen/CalcSpillWeights.h +++ b/include/llvm/CodeGen/CalcSpillWeights.h @@ -1,12 +1,11 @@ //===---------------- lib/CodeGen/CalcSpillWeights.h ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CalcSpillWeights.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_CALCSPILLWEIGHTS_H diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h index 278ef5b39a..1fd4eeb46b 100644 --- a/include/llvm/CodeGen/CallingConvLower.h +++ b/include/llvm/CodeGen/CallingConvLower.h @@ -1,15 +1,16 @@ //===-- llvm/CallingConvLower.h - Calling Conventions -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallingConvLower.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the CCState and CCValAssign classes, used for lowering // -// and implementing calling conventions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the CCState and CCValAssign classes, used for lowering +// and implementing calling conventions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_CALLINGCONVLOWER_H #define LLVM_CODEGEN_CALLINGCONVLOWER_H diff --git a/include/llvm/CodeGen/CommandFlags.h b/include/llvm/CodeGen/CommandFlags.h index b091e936ed..6652487f1f 100644 --- a/include/llvm/CodeGen/CommandFlags.h +++ b/include/llvm/CodeGen/CommandFlags.h @@ -1,16 +1,17 @@ //===-- CommandFlags.h - Command Line Flags Interface -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommandFlags.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains codegen-specific flags that are shared between different// -// command line tools. The tools "llc" and "opt" both use this file to prevent// -// flag duplication. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains codegen-specific flags that are shared between different +// command line tools. The tools "llc" and "opt" both use this file to prevent +// flag duplication. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_COMMANDFLAGS_H #define LLVM_CODEGEN_COMMANDFLAGS_H diff --git a/include/llvm/CodeGen/DAGCombine.h b/include/llvm/CodeGen/DAGCombine.h index 227dc01042..8b59190054 100644 --- a/include/llvm/CodeGen/DAGCombine.h +++ b/include/llvm/CodeGen/DAGCombine.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/DAGCombine.h ------- SelectionDAG Nodes ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGCombine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// // #ifndef LLVM_CODEGEN_DAGCOMBINE_H diff --git a/include/llvm/CodeGen/DFAPacketizer.h b/include/llvm/CodeGen/DFAPacketizer.h index f5031e4720..c44a7e0b67 100644 --- a/include/llvm/CodeGen/DFAPacketizer.h +++ b/include/llvm/CodeGen/DFAPacketizer.h @@ -1,27 +1,27 @@ //=- llvm/CodeGen/DFAPacketizer.h - DFA Packetizer for VLIW ---*- C++ -*-=====// -/////////////////////////////////////////////////////////////////////////////// -// // -// DFAPacketizer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements a deterministic finite automaton (DFA) based // -// packetizing mechanism for VLIW architectures. It provides APIs to // -// determine whether there exists a legal mapping of instructions to // -// functional unit assignments in a packet. The DFA is auto-generated from // -// the target's Schedule.td file. // // -// A DFA consists of 3 major elements: states, inputs, and transitions. For // -// the packetizing mechanism, the input is the set of instruction classes for// -// a target. The state models all possible combinations of functional unit // -// consumption for a given set of instructions in a packet. A transition // -// models the addition of an instruction to a packet. In the DFA constructed // -// by this class, if an instruction can be added to a packet, then a valid // -// transition exists from the corresponding state. Invalid transitions // -// indicate that the instruction cannot be added to the current packet. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This class implements a deterministic finite automaton (DFA) based +// packetizing mechanism for VLIW architectures. It provides APIs to +// determine whether there exists a legal mapping of instructions to +// functional unit assignments in a packet. The DFA is auto-generated from +// the target's Schedule.td file. +// +// A DFA consists of 3 major elements: states, inputs, and transitions. For +// the packetizing mechanism, the input is the set of instruction classes for +// a target. The state models all possible combinations of functional unit +// consumption for a given set of instructions in a packet. A transition +// models the addition of an instruction to a packet. In the DFA constructed +// by this class, if an instruction can be added to a packet, then a valid +// transition exists from the corresponding state. Invalid transitions +// indicate that the instruction cannot be added to the current packet. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_DFAPACKETIZER_H #define LLVM_CODEGEN_DFAPACKETIZER_H diff --git a/include/llvm/CodeGen/DIE.h b/include/llvm/CodeGen/DIE.h index ce1734ab6e..457613051e 100644 --- a/include/llvm/CodeGen/DIE.h +++ b/include/llvm/CodeGen/DIE.h @@ -1,14 +1,15 @@ //===--- lib/CodeGen/DIE.h - DWARF Info Entries -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIE.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Data structures for DWARF info entries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Data structures for DWARF info entries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DIE_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DIE_H diff --git a/include/llvm/CodeGen/DIEValue.def b/include/llvm/CodeGen/DIEValue.def index 8fd7103b01..2cfae7b608 100644 --- a/include/llvm/CodeGen/DIEValue.def +++ b/include/llvm/CodeGen/DIEValue.def @@ -1,14 +1,15 @@ //===- llvm/CodeGen/DIEValue.def - DIEValue types ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIEValue.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Macros for running through all types of DIEValue. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Macros for running through all types of DIEValue. +// +//===----------------------------------------------------------------------===// #if !(defined HANDLE_DIEVALUE || defined HANDLE_DIEVALUE_SMALL || \ defined HANDLE_DIEVALUE_LARGE) diff --git a/include/llvm/CodeGen/DwarfStringPoolEntry.h b/include/llvm/CodeGen/DwarfStringPoolEntry.h index 09ebef9c1a..fc2b5ddd2d 100644 --- a/include/llvm/CodeGen/DwarfStringPoolEntry.h +++ b/include/llvm/CodeGen/DwarfStringPoolEntry.h @@ -1,12 +1,11 @@ //===- llvm/CodeGen/DwarfStringPoolEntry.h - String pool entry --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfStringPoolEntry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H #define LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H diff --git a/include/llvm/CodeGen/EdgeBundles.h b/include/llvm/CodeGen/EdgeBundles.h index 2c3bc74e0f..c31fad246c 100644 --- a/include/llvm/CodeGen/EdgeBundles.h +++ b/include/llvm/CodeGen/EdgeBundles.h @@ -1,16 +1,17 @@ //===-------- EdgeBundles.h - Bundles of CFG edges --------------*- c++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EdgeBundles.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The EdgeBundles analysis forms equivalence classes of CFG edges such that all// -// edges leaving a machine basic block are in the same bundle, and all edges // -// leaving a basic block are in the same bundle. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The EdgeBundles analysis forms equivalence classes of CFG edges such that all +// edges leaving a machine basic block are in the same bundle, and all edges +// leaving a basic block are in the same bundle. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_EDGEBUNDLES_H #define LLVM_CODEGEN_EDGEBUNDLES_H diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 99a00f7b91..f04a7cd696 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -1,17 +1,16 @@ //===-- FastISel.h - Definition of the FastISel class ---*- C++ -*---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FastISel.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// This file defines the FastISel class. // +/// \file +/// This file defines the FastISel class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_FASTISEL_H #define LLVM_CODEGEN_FASTISEL_H diff --git a/include/llvm/CodeGen/FaultMaps.h b/include/llvm/CodeGen/FaultMaps.h index b1f8d1d478..f4b6463221 100644 --- a/include/llvm/CodeGen/FaultMaps.h +++ b/include/llvm/CodeGen/FaultMaps.h @@ -1,12 +1,11 @@ //===------------------- FaultMaps.h - The "FaultMaps" section --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FaultMaps.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_FAULTMAPS_H #define LLVM_CODEGEN_FAULTMAPS_H diff --git a/include/llvm/CodeGen/FunctionLoweringInfo.h b/include/llvm/CodeGen/FunctionLoweringInfo.h index c483c67eff..82c762ed85 100644 --- a/include/llvm/CodeGen/FunctionLoweringInfo.h +++ b/include/llvm/CodeGen/FunctionLoweringInfo.h @@ -1,15 +1,16 @@ //===-- FunctionLoweringInfo.h - Lower functions from LLVM IR to CodeGen --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionLoweringInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements routines for translating functions from LLVM IR into // -// Machine IR. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements routines for translating functions from LLVM IR into +// Machine IR. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_FUNCTIONLOWERINGINFO_H #define LLVM_CODEGEN_FUNCTIONLOWERINGINFO_H diff --git a/include/llvm/CodeGen/GCMetadata.h b/include/llvm/CodeGen/GCMetadata.h index 91341e82d5..e883bd196e 100644 --- a/include/llvm/CodeGen/GCMetadata.h +++ b/include/llvm/CodeGen/GCMetadata.h @@ -1,33 +1,34 @@ //===-- GCMetadata.h - Garbage collector metadata ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCMetadata.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the GCFunctionInfo and GCModuleInfo classes, which are // -// used as a communication channel from the target code generator to the target// -// garbage collectors. This interface allows code generators and garbage // -// collectors to be developed independently. // // -// The GCFunctionInfo class logs the data necessary to build a type accurate // -// stack map. The code generator outputs: // +// The LLVM Compiler Infrastructure // -// - Safe points as specified by the GCStrategy's NeededSafePoints. // -// - Stack offsets for GC roots, as specified by calls to llvm.gcroot // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// As a refinement, liveness analysis calculates the set of live roots at each// -// safe point. Liveness analysis is not presently performed by the code // -// generator, so all roots are assumed live. // +//===----------------------------------------------------------------------===// // -// GCModuleInfo simply collects GCFunctionInfo instances for each Function as// -// they are compiled. This accretion is necessary for collectors which must emit// -// a stack map for the compilation unit as a whole. Therefore, GCFunctionInfo// -// outlives the MachineFunction from which it is derived and must not refer to// -// any code generator data structures. // +// This file declares the GCFunctionInfo and GCModuleInfo classes, which are +// used as a communication channel from the target code generator to the target +// garbage collectors. This interface allows code generators and garbage +// collectors to be developed independently. // -/////////////////////////////////////////////////////////////////////////////// +// The GCFunctionInfo class logs the data necessary to build a type accurate +// stack map. The code generator outputs: +// +// - Safe points as specified by the GCStrategy's NeededSafePoints. +// - Stack offsets for GC roots, as specified by calls to llvm.gcroot +// +// As a refinement, liveness analysis calculates the set of live roots at each +// safe point. Liveness analysis is not presently performed by the code +// generator, so all roots are assumed live. +// +// GCModuleInfo simply collects GCFunctionInfo instances for each Function as +// they are compiled. This accretion is necessary for collectors which must emit +// a stack map for the compilation unit as a whole. Therefore, GCFunctionInfo +// outlives the MachineFunction from which it is derived and must not refer to +// any code generator data structures. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_GCMETADATA_H #define LLVM_CODEGEN_GCMETADATA_H diff --git a/include/llvm/CodeGen/GCMetadataPrinter.h b/include/llvm/CodeGen/GCMetadataPrinter.h index 7352212d93..2208470291 100644 --- a/include/llvm/CodeGen/GCMetadataPrinter.h +++ b/include/llvm/CodeGen/GCMetadataPrinter.h @@ -1,20 +1,21 @@ //===-- llvm/CodeGen/GCMetadataPrinter.h - Prints asm GC tables -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCMetadataPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The abstract base class GCMetadataPrinter supports writing GC metadata tables// -// as assembly code. This is a separate class from GCStrategy in order to allow// -// users of the LLVM JIT to avoid linking with the AsmWriter. // // -// Subclasses of GCMetadataPrinter must be registered using the // -// GCMetadataPrinterRegistry. This is separate from the GCStrategy itself // -// because these subclasses are logically plugins for the AsmWriter. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The abstract base class GCMetadataPrinter supports writing GC metadata tables +// as assembly code. This is a separate class from GCStrategy in order to allow +// users of the LLVM JIT to avoid linking with the AsmWriter. +// +// Subclasses of GCMetadataPrinter must be registered using the +// GCMetadataPrinterRegistry. This is separate from the GCStrategy itself +// because these subclasses are logically plugins for the AsmWriter. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_GCMETADATAPRINTER_H #define LLVM_CODEGEN_GCMETADATAPRINTER_H diff --git a/include/llvm/CodeGen/GCStrategy.h b/include/llvm/CodeGen/GCStrategy.h index b651557e67..a1b8e89589 100644 --- a/include/llvm/CodeGen/GCStrategy.h +++ b/include/llvm/CodeGen/GCStrategy.h @@ -1,50 +1,51 @@ //===-- llvm/CodeGen/GCStrategy.h - Garbage collection ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCStrategy.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// GCStrategy coordinates code generation algorithms and implements some itself// -// in order to generate code compatible with a target code generator as // -// specified in a function's 'gc' attribute. Algorithms are enabled by setting// -// flags in a subclass's constructor, and some virtual methods can be // -// overridden. // // -// GCStrategy is relevant for implementations using either gc.root or // -// gc.statepoint based lowering strategies, but is currently focused mostly on// -// options for gc.root. This will change over time. // +// The LLVM Compiler Infrastructure // -// When requested by a subclass of GCStrategy, the gc.root implementation will// -// populate GCModuleInfo and GCFunctionInfo with that about each Function in // -// the Module that opts in to garbage collection. Specifically: // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// - Safe points // -// Garbage collection is generally only possible at certain points in code.// -// GCStrategy can request that the collector insert such points: // +//===----------------------------------------------------------------------===// // -// - At and after any call to a subroutine // -// - Before returning from the current function // -// - Before backwards branches (loops) // +// GCStrategy coordinates code generation algorithms and implements some itself +// in order to generate code compatible with a target code generator as +// specified in a function's 'gc' attribute. Algorithms are enabled by setting +// flags in a subclass's constructor, and some virtual methods can be +// overridden. // -// - Roots // -// When a reference to a GC-allocated object exists on the stack, it must be// -// stored in an alloca registered with llvm.gcoot. // +// GCStrategy is relevant for implementations using either gc.root or +// gc.statepoint based lowering strategies, but is currently focused mostly on +// options for gc.root. This will change over time. // -// This information can used to emit the metadata tables which are required by// -// the target garbage collector runtime. // +// When requested by a subclass of GCStrategy, the gc.root implementation will +// populate GCModuleInfo and GCFunctionInfo with that about each Function in +// the Module that opts in to garbage collection. Specifically: // -// When used with gc.statepoint, information about safepoint and roots can be// -// found in the binary StackMap section after code generation. Safepoint // -// placement is currently the responsibility of the frontend, though late // -// insertion support is planned. gc.statepoint does not currently support // -// custom stack map formats; such can be generated by parsing the standard // -// stack map section if desired. // +// - Safe points +// Garbage collection is generally only possible at certain points in code. +// GCStrategy can request that the collector insert such points: // -// The read and write barrier support can be used with either implementation.// +// - At and after any call to a subroutine +// - Before returning from the current function +// - Before backwards branches (loops) // -/////////////////////////////////////////////////////////////////////////////// +// - Roots +// When a reference to a GC-allocated object exists on the stack, it must be +// stored in an alloca registered with llvm.gcoot. +// +// This information can used to emit the metadata tables which are required by +// the target garbage collector runtime. +// +// When used with gc.statepoint, information about safepoint and roots can be +// found in the binary StackMap section after code generation. Safepoint +// placement is currently the responsibility of the frontend, though late +// insertion support is planned. gc.statepoint does not currently support +// custom stack map formats; such can be generated by parsing the standard +// stack map section if desired. +// +// The read and write barrier support can be used with either implementation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GCSTRATEGY_H #define LLVM_IR_GCSTRATEGY_H diff --git a/include/llvm/CodeGen/GCs.h b/include/llvm/CodeGen/GCs.h index ee434d3937..5207f801c8 100644 --- a/include/llvm/CodeGen/GCs.h +++ b/include/llvm/CodeGen/GCs.h @@ -1,14 +1,15 @@ //===-- GCs.h - Garbage collector linkage hacks ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains hack functions to force linking in the GC components. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains hack functions to force linking in the GC components. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_GCS_H #define LLVM_CODEGEN_GCS_H diff --git a/include/llvm/CodeGen/ISDOpcodes.h b/include/llvm/CodeGen/ISDOpcodes.h index 7bbedd351b..fa44301a2d 100644 --- a/include/llvm/CodeGen/ISDOpcodes.h +++ b/include/llvm/CodeGen/ISDOpcodes.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/ISDOpcodes.h - CodeGen opcodes -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ISDOpcodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares codegen opcodes and related utilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares codegen opcodes and related utilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_ISDOPCODES_H #define LLVM_CODEGEN_ISDOPCODES_H diff --git a/include/llvm/CodeGen/IntrinsicLowering.h b/include/llvm/CodeGen/IntrinsicLowering.h index 7cad153b9f..9e6ab7d459 100644 --- a/include/llvm/CodeGen/IntrinsicLowering.h +++ b/include/llvm/CodeGen/IntrinsicLowering.h @@ -1,16 +1,17 @@ //===-- IntrinsicLowering.h - Intrinsic Function Lowering -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicLowering.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the IntrinsicLowering interface. This interface allows // -// addition of domain-specific or front-end specific intrinsics to LLVM without// -// having to modify all of the C backend or interpreter. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the IntrinsicLowering interface. This interface allows +// addition of domain-specific or front-end specific intrinsics to LLVM without +// having to modify all of the C backend or interpreter. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_INTRINSICLOWERING_H #define LLVM_CODEGEN_INTRINSICLOWERING_H diff --git a/include/llvm/CodeGen/LatencyPriorityQueue.h b/include/llvm/CodeGen/LatencyPriorityQueue.h index 41a70233c5..f347f66e09 100644 --- a/include/llvm/CodeGen/LatencyPriorityQueue.h +++ b/include/llvm/CodeGen/LatencyPriorityQueue.h @@ -1,16 +1,17 @@ //===---- LatencyPriorityQueue.h - A latency-oriented priority queue ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LatencyPriorityQueue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the LatencyPriorityQueue class, which is a // -// SchedulingPriorityQueue that schedules using latency information to // -// reduce the length of the critical path through the basic block. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the LatencyPriorityQueue class, which is a +// SchedulingPriorityQueue that schedules using latency information to +// reduce the length of the critical path through the basic block. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LATENCYPRIORITYQUEUE_H #define LLVM_CODEGEN_LATENCYPRIORITYQUEUE_H diff --git a/include/llvm/CodeGen/LexicalScopes.h b/include/llvm/CodeGen/LexicalScopes.h index 01d9d5ea54..c647c4cba8 100644 --- a/include/llvm/CodeGen/LexicalScopes.h +++ b/include/llvm/CodeGen/LexicalScopes.h @@ -1,15 +1,16 @@ //===- LexicalScopes.cpp - Collecting lexical scope info -*- C++ -*--------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LexicalScopes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements LexicalScopes analysis. // // -// This pass collects lexical scope information and maps machine instructions// -// to respective lexical scopes. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements LexicalScopes analysis. +// +// This pass collects lexical scope information and maps machine instructions +// to respective lexical scopes. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/LinkAllAsmWriterComponents.h b/include/llvm/CodeGen/LinkAllAsmWriterComponents.h index fcdf2eddaf..c3046da90b 100644 --- a/include/llvm/CodeGen/LinkAllAsmWriterComponents.h +++ b/include/llvm/CodeGen/LinkAllAsmWriterComponents.h @@ -1,15 +1,16 @@ //===- llvm/Codegen/LinkAllAsmWriterComponents.h ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkAllAsmWriterComponents.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file pulls in all assembler writer related passes for tools like// -// llc that need this functionality. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file pulls in all assembler writer related passes for tools like +// llc that need this functionality. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H #define LLVM_CODEGEN_LINKALLASMWRITERCOMPONENTS_H diff --git a/include/llvm/CodeGen/LinkAllCodegenComponents.h b/include/llvm/CodeGen/LinkAllCodegenComponents.h index 9c5c5aceac..fee131e4a3 100644 --- a/include/llvm/CodeGen/LinkAllCodegenComponents.h +++ b/include/llvm/CodeGen/LinkAllCodegenComponents.h @@ -1,15 +1,16 @@ //===- llvm/Codegen/LinkAllCodegenComponents.h ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkAllCodegenComponents.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file pulls in all codegen related passes for tools like lli and// -// llc that need this functionality. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file pulls in all codegen related passes for tools like lli and +// llc that need this functionality. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LINKALLCODEGENCOMPONENTS_H #define LLVM_CODEGEN_LINKALLCODEGENCOMPONENTS_H diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index aa9a60c439..9b8b91c9b8 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -1,21 +1,22 @@ //===-- llvm/CodeGen/LiveInterval.h - Interval representation ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveInterval.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveRange and LiveInterval classes. Given some // -// numbering of each the machine instructions an interval [i, j) is said to be a// -// live range for register v if there is no instruction with number j' >= j // -// such that v is live at j' and there is no instruction with number i' < i such// -// that v is live at i'. In this implementation ranges can have holes, // -// i.e. a range might look like [1,20), [50,65), [1000,1001). Each // -// individual segment is represented as an instance of LiveRange::Segment, // -// and the whole range is represented as an instance of LiveRange. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveRange and LiveInterval classes. Given some +// numbering of each the machine instructions an interval [i, j) is said to be a +// live range for register v if there is no instruction with number j' >= j +// such that v is live at j' and there is no instruction with number i' < i such +// that v is live at i'. In this implementation ranges can have holes, +// i.e. a range might look like [1,20), [50,65), [1000,1001). Each +// individual segment is represented as an instance of LiveRange::Segment, +// and the whole range is represented as an instance of LiveRange. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVEINTERVAL_H #define LLVM_CODEGEN_LIVEINTERVAL_H diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index bbebc136a1..9673f80e08 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -1,20 +1,21 @@ //===-- LiveIntervalAnalysis.h - Live Interval Analysis ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveIntervalAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveInterval analysis pass. Given some numbering of// -// each the machine instructions (in this implemention depth-first order) an // -// interval [i, j) is said to be a live interval for register v if there is no// -// instruction with number j' > j such that v is live at j' and there is no // -// instruction with number i' < i such that v is live at i'. In this // -// implementation intervals can have holes, i.e. an interval might look like // -// [1,20), [50,65), [1000,1001). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveInterval analysis pass. Given some numbering of +// each the machine instructions (in this implemention depth-first order) an +// interval [i, j) is said to be a live interval for register v if there is no +// instruction with number j' > j such that v is live at j' and there is no +// instruction with number i' < i such that v is live at i'. In this +// implementation intervals can have holes, i.e. an interval might look like +// [1,20), [50,65), [1000,1001). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVEINTERVALANALYSIS_H #define LLVM_CODEGEN_LIVEINTERVALANALYSIS_H diff --git a/include/llvm/CodeGen/LiveIntervalUnion.h b/include/llvm/CodeGen/LiveIntervalUnion.h index 6e1bff9d4c..f0f1637dc9 100644 --- a/include/llvm/CodeGen/LiveIntervalUnion.h +++ b/include/llvm/CodeGen/LiveIntervalUnion.h @@ -1,17 +1,18 @@ //===-- LiveIntervalUnion.h - Live interval union data struct --*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveIntervalUnion.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// LiveIntervalUnion is a union of live segments across multiple live virtual// -// registers. This may be used during coalescing to represent a congruence // -// class, or during register allocation to model liveness of a physical // -// register. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// LiveIntervalUnion is a union of live segments across multiple live virtual +// registers. This may be used during coalescing to represent a congruence +// class, or during register allocation to model liveness of a physical +// register. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVEINTERVALUNION_H #define LLVM_CODEGEN_LIVEINTERVALUNION_H diff --git a/include/llvm/CodeGen/LivePhysRegs.h b/include/llvm/CodeGen/LivePhysRegs.h index 9665a7844e..6475e7b4af 100644 --- a/include/llvm/CodeGen/LivePhysRegs.h +++ b/include/llvm/CodeGen/LivePhysRegs.h @@ -1,30 +1,30 @@ //===- llvm/CodeGen/LivePhysRegs.h - Live Physical Register Set -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LivePhysRegs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LivePhysRegs utility for tracking liveness of // -// physical registers. This can be used for ad-hoc liveness tracking after // -// register allocation. You can start with the live-ins/live-outs at the // -// beginning/end of a block and update the information while walking the // -// instructions inside the block. This implementation tracks the liveness on a// -// sub-register granularity. // // -// We assume that the high bits of a physical super-register are not preserved// -// unless the instruction has an implicit-use operand reading the super- // -// register. // +// The LLVM Compiler Infrastructure // -// X86 Example: // -// %YMM0 = ... // -// %XMM0 = ... (Kills %XMM0, all %XMM0s sub-registers, and %YMM0) // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// %YMM0 = ... // -// %XMM0 = ..., %YMM0 (%YMM0 and all its sub-registers are alive)// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file implements the LivePhysRegs utility for tracking liveness of +// physical registers. This can be used for ad-hoc liveness tracking after +// register allocation. You can start with the live-ins/live-outs at the +// beginning/end of a block and update the information while walking the +// instructions inside the block. This implementation tracks the liveness on a +// sub-register granularity. +// +// We assume that the high bits of a physical super-register are not preserved +// unless the instruction has an implicit-use operand reading the super- +// register. +// +// X86 Example: +// %YMM0 = ... +// %XMM0 = ... (Kills %XMM0, all %XMM0s sub-registers, and %YMM0) +// +// %YMM0 = ... +// %XMM0 = ..., %YMM0 (%YMM0 and all its sub-registers are alive) +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVEPHYSREGS_H #define LLVM_CODEGEN_LIVEPHYSREGS_H diff --git a/include/llvm/CodeGen/LiveRangeEdit.h b/include/llvm/CodeGen/LiveRangeEdit.h index 1496936d1f..c97c636abb 100644 --- a/include/llvm/CodeGen/LiveRangeEdit.h +++ b/include/llvm/CodeGen/LiveRangeEdit.h @@ -1,18 +1,19 @@ //===---- LiveRangeEdit.h - Basic tools for split and spill -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveRangeEdit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The LiveRangeEdit class represents changes done to a virtual register when it// -// is spilled or split. // // -// The parent register is never changed. Instead, a number of new virtual // -// registers are created and added to the newRegs vector. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The LiveRangeEdit class represents changes done to a virtual register when it +// is spilled or split. +// +// The parent register is never changed. Instead, a number of new virtual +// registers are created and added to the newRegs vector. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVERANGEEDIT_H #define LLVM_CODEGEN_LIVERANGEEDIT_H diff --git a/include/llvm/CodeGen/LiveRegMatrix.h b/include/llvm/CodeGen/LiveRegMatrix.h index febd32bb63..86a0c7bd62 100644 --- a/include/llvm/CodeGen/LiveRegMatrix.h +++ b/include/llvm/CodeGen/LiveRegMatrix.h @@ -1,24 +1,25 @@ //===-- LiveRegMatrix.h - Track register interference ---------*- C++ -*---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveRegMatrix.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The LiveRegMatrix analysis pass keeps track of virtual register interference// -// along two dimensions: Slot indexes and register units. The matrix is used by// -// register allocators to ensure that no interfering virtual registers get // -// assigned to overlapping physical registers. // // -// Register units are defined in MCRegisterInfo.h, they represent the smallest// -// unit of interference when dealing with overlapping physical registers. The// -// LiveRegMatrix is represented as a LiveIntervalUnion per register unit. When// -// a virtual register is assigned to a physical register, the live range for // -// the virtual register is inserted into the LiveIntervalUnion for each regunit// -// in the physreg. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The LiveRegMatrix analysis pass keeps track of virtual register interference +// along two dimensions: Slot indexes and register units. The matrix is used by +// register allocators to ensure that no interfering virtual registers get +// assigned to overlapping physical registers. +// +// Register units are defined in MCRegisterInfo.h, they represent the smallest +// unit of interference when dealing with overlapping physical registers. The +// LiveRegMatrix is represented as a LiveIntervalUnion per register unit. When +// a virtual register is assigned to a physical register, the live range for +// the virtual register is inserted into the LiveIntervalUnion for each regunit +// in the physreg. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVEREGMATRIX_H #define LLVM_CODEGEN_LIVEREGMATRIX_H diff --git a/include/llvm/CodeGen/LiveStackAnalysis.h b/include/llvm/CodeGen/LiveStackAnalysis.h index ff608d7e80..f495507c66 100644 --- a/include/llvm/CodeGen/LiveStackAnalysis.h +++ b/include/llvm/CodeGen/LiveStackAnalysis.h @@ -1,16 +1,17 @@ //===-- LiveStackAnalysis.h - Live Stack Slot Analysis ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveStackAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the live stack slot analysis pass. It is analogous to// -// live interval analysis except it's analyzing liveness of stack slots rather// -// than registers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the live stack slot analysis pass. It is analogous to +// live interval analysis except it's analyzing liveness of stack slots rather +// than registers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVESTACKANALYSIS_H #define LLVM_CODEGEN_LIVESTACKANALYSIS_H diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h index e4cf8cc608..55b97dc3e7 100644 --- a/include/llvm/CodeGen/LiveVariables.h +++ b/include/llvm/CodeGen/LiveVariables.h @@ -1,29 +1,30 @@ //===-- llvm/CodeGen/LiveVariables.h - Live Variable Analysis ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveVariables.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveVariables analysis pass. For each machine // -// instruction in the function, this pass calculates the set of registers that// -// are immediately dead after the instruction (i.e., the instruction calculates// -// the value, but it is never used) and the set of registers that are used by// -// the instruction, but are never used after the instruction (i.e., they are // -// killed). // // -// This class computes live variables using a sparse implementation based on // -// the machine code SSA form. This class computes live variable information for// -// each virtual and _register allocatable_ physical register in a function. It// -// uses the dominance properties of SSA form to efficiently compute live // -// variables for virtual registers, and assumes that physical registers are only// -// live within a single basic block (allowing it to do a single local analysis// -// to resolve physical register lifetimes in each basic block). If a physical// -// register is not register allocatable, it is not tracked. This is useful for// -// things like the stack pointer and condition codes. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveVariables analysis pass. For each machine +// instruction in the function, this pass calculates the set of registers that +// are immediately dead after the instruction (i.e., the instruction calculates +// the value, but it is never used) and the set of registers that are used by +// the instruction, but are never used after the instruction (i.e., they are +// killed). +// +// This class computes live variables using a sparse implementation based on +// the machine code SSA form. This class computes live variable information for +// each virtual and _register allocatable_ physical register in a function. It +// uses the dominance properties of SSA form to efficiently compute live +// variables for virtual registers, and assumes that physical registers are only +// live within a single basic block (allowing it to do a single local analysis +// to resolve physical register lifetimes in each basic block). If a physical +// register is not register allocatable, it is not tracked. This is useful for +// things like the stack pointer and condition codes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_LIVEVARIABLES_H #define LLVM_CODEGEN_LIVEVARIABLES_H diff --git a/include/llvm/CodeGen/MIRParser/MIRParser.h b/include/llvm/CodeGen/MIRParser/MIRParser.h index 64ca8bdb8c..67b756d5e8 100644 --- a/include/llvm/CodeGen/MIRParser/MIRParser.h +++ b/include/llvm/CodeGen/MIRParser/MIRParser.h @@ -1,18 +1,19 @@ //===- MIRParser.h - MIR serialization format parser ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIRParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This MIR serialization library is currently a work in progress. It can't // -// serialize machine functions at this time. // // -// This file declares the functions that parse the MIR serialization format // -// files. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This MIR serialization library is currently a work in progress. It can't +// serialize machine functions at this time. +// +// This file declares the functions that parse the MIR serialization format +// files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MIRPARSER_MIRPARSER_H #define LLVM_CODEGEN_MIRPARSER_MIRPARSER_H diff --git a/include/llvm/CodeGen/MIRYamlMapping.h b/include/llvm/CodeGen/MIRYamlMapping.h index 5368e6b7af..9798e5cef6 100644 --- a/include/llvm/CodeGen/MIRYamlMapping.h +++ b/include/llvm/CodeGen/MIRYamlMapping.h @@ -1,18 +1,19 @@ //===- MIRYAMLMapping.h - Describes the mapping between MIR and YAML ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIRYamlMapping.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The MIR serialization library is currently a work in progress. It can't // -// serialize machine functions at this time. // // -// This file implements the mapping between various MIR data structures and // -// their corresponding YAML representation. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The MIR serialization library is currently a work in progress. It can't +// serialize machine functions at this time. +// +// This file implements the mapping between various MIR data structures and +// their corresponding YAML representation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_MIRYAMLMAPPING_H #define LLVM_LIB_CODEGEN_MIRYAMLMAPPING_H diff --git a/include/llvm/CodeGen/MachORelocation.h b/include/llvm/CodeGen/MachORelocation.h index 2234ac6ccf..8c9b7a84e5 100644 --- a/include/llvm/CodeGen/MachORelocation.h +++ b/include/llvm/CodeGen/MachORelocation.h @@ -1,14 +1,15 @@ //=== MachORelocation.h - Mach-O Relocation Info ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachORelocation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachORelocation class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MachORelocation class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHORELOCATION_H diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index f83bdbbfd9..5e5f45cae8 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/MachineBasicBlock.h ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBasicBlock.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Collect the sequence of machine instructions for a basic block. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Collect the sequence of machine instructions for a basic block. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEBASICBLOCK_H #define LLVM_CODEGEN_MACHINEBASICBLOCK_H diff --git a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h index 8c3ade5a76..feb394e7a6 100644 --- a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h +++ b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h @@ -1,14 +1,15 @@ //===- MachineBlockFrequencyInfo.h - MBB Frequency Analysis -*- C++ -*-----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBlockFrequencyInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loops should be simplified before this analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loops should be simplified before this analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEBLOCKFREQUENCYINFO_H #define LLVM_CODEGEN_MACHINEBLOCKFREQUENCYINFO_H diff --git a/include/llvm/CodeGen/MachineBranchProbabilityInfo.h b/include/llvm/CodeGen/MachineBranchProbabilityInfo.h index dc8ed02595..7ba749559c 100644 --- a/include/llvm/CodeGen/MachineBranchProbabilityInfo.h +++ b/include/llvm/CodeGen/MachineBranchProbabilityInfo.h @@ -1,14 +1,15 @@ //=- MachineBranchProbabilityInfo.h - Branch Probability Analysis -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBranchProbabilityInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is used to evaluate branch probabilties on machine basic blocks.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is used to evaluate branch probabilties on machine basic blocks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEBRANCHPROBABILITYINFO_H #define LLVM_CODEGEN_MACHINEBRANCHPROBABILITYINFO_H diff --git a/include/llvm/CodeGen/MachineCombinerPattern.h b/include/llvm/CodeGen/MachineCombinerPattern.h index 7b0fb22e1a..176af14dc3 100644 --- a/include/llvm/CodeGen/MachineCombinerPattern.h +++ b/include/llvm/CodeGen/MachineCombinerPattern.h @@ -1,14 +1,16 @@ //===-- llvm/CodeGen/MachineCombinerPattern.h - Instruction pattern supported by -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineCombinerPattern.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines instruction pattern supported by combiner // +// combiner ------*- C++ -*-===// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines instruction pattern supported by combiner +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINECOMBINERPATTERN_H #define LLVM_CODEGEN_MACHINECOMBINERPATTERN_H diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 7373dcfff0..628400322f 100644 --- a/include/llvm/CodeGen/MachineConstantPool.h +++ b/include/llvm/CodeGen/MachineConstantPool.h @@ -1,16 +1,17 @@ //===-- CodeGen/MachineConstantPool.h - Abstract Constant Pool --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineConstantPool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// @file // -/// This file declares the MachineConstantPool class which is an abstract // -/// constant pool to keep track of constants referenced by a function. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// @file +/// This file declares the MachineConstantPool class which is an abstract +/// constant pool to keep track of constants referenced by a function. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINECONSTANTPOOL_H #define LLVM_CODEGEN_MACHINECONSTANTPOOL_H diff --git a/include/llvm/CodeGen/MachineDominanceFrontier.h b/include/llvm/CodeGen/MachineDominanceFrontier.h index c1d0d3244c..4131194a0c 100644 --- a/include/llvm/CodeGen/MachineDominanceFrontier.h +++ b/include/llvm/CodeGen/MachineDominanceFrontier.h @@ -1,12 +1,11 @@ //===- llvm/CodeGen/MachineDominanceFrontier.h ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineDominanceFrontier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEDOMINANCEFRONTIER_H #define LLVM_CODEGEN_MACHINEDOMINANCEFRONTIER_H diff --git a/include/llvm/CodeGen/MachineDominators.h b/include/llvm/CodeGen/MachineDominators.h index 0640e732f5..735dd069cf 100644 --- a/include/llvm/CodeGen/MachineDominators.h +++ b/include/llvm/CodeGen/MachineDominators.h @@ -1,15 +1,16 @@ //=- llvm/CodeGen/MachineDominators.h - Machine Dom Calculation --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineDominators.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines classes mirroring those in llvm/Analysis/Dominators.h, // -// but for target-specific code rather than target-independent IR. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines classes mirroring those in llvm/Analysis/Dominators.h, +// but for target-specific code rather than target-independent IR. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEDOMINATORS_H #define LLVM_CODEGEN_MACHINEDOMINATORS_H diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index 6efb31fa2c..cbc4e66ccc 100644 --- a/include/llvm/CodeGen/MachineFrameInfo.h +++ b/include/llvm/CodeGen/MachineFrameInfo.h @@ -1,14 +1,15 @@ //===-- CodeGen/MachineFrameInfo.h - Abstract Stack Frame Rep. --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFrameInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The file defines the MachineFrameInfo class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The file defines the MachineFrameInfo class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEFRAMEINFO_H #define LLVM_CODEGEN_MACHINEFRAMEINFO_H diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 2ad53cca66..c15ee1c006 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -1,18 +1,19 @@ //===-- llvm/CodeGen/MachineFunction.h --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Collect native machine code for a function. This class contains a list of// -// MachineBasicBlock instances that make up the current compiled function. // // -// This class also contains pointers to various classes which hold // -// target-specific information about the generated code. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Collect native machine code for a function. This class contains a list of +// MachineBasicBlock instances that make up the current compiled function. +// +// This class also contains pointers to various classes which hold +// target-specific information about the generated code. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEFUNCTION_H #define LLVM_CODEGEN_MACHINEFUNCTION_H diff --git a/include/llvm/CodeGen/MachineFunctionAnalysis.h b/include/llvm/CodeGen/MachineFunctionAnalysis.h index bcf1e5c4ff..4c0f5e63ea 100644 --- a/include/llvm/CodeGen/MachineFunctionAnalysis.h +++ b/include/llvm/CodeGen/MachineFunctionAnalysis.h @@ -1,14 +1,15 @@ //===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunctionAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MachineFunctionAnalysis class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MachineFunctionAnalysis class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEFUNCTIONANALYSIS_H #define LLVM_CODEGEN_MACHINEFUNCTIONANALYSIS_H diff --git a/include/llvm/CodeGen/MachineFunctionInitializer.h b/include/llvm/CodeGen/MachineFunctionInitializer.h index 7e4f1f832e..ff4c29cc01 100644 --- a/include/llvm/CodeGen/MachineFunctionInitializer.h +++ b/include/llvm/CodeGen/MachineFunctionInitializer.h @@ -1,15 +1,16 @@ //===- MachineFunctionInitalizer.h - machine function initializer ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunctionInitializer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares an interface that allows custom machine function // -// initialization. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares an interface that allows custom machine function +// initialization. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEFUNCTIONINITIALIZER_H #define LLVM_CODEGEN_MACHINEFUNCTIONINITIALIZER_H diff --git a/include/llvm/CodeGen/MachineFunctionPass.h b/include/llvm/CodeGen/MachineFunctionPass.h index b78a716d14..50a1f6e962 100644 --- a/include/llvm/CodeGen/MachineFunctionPass.h +++ b/include/llvm/CodeGen/MachineFunctionPass.h @@ -1,19 +1,20 @@ //===-- MachineFunctionPass.h - Pass for MachineFunctions --------*-C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunctionPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachineFunctionPass class. MachineFunctionPass's are// -// just FunctionPass's, except they operate on machine code as part of a code// -// generator. Because they operate on machine code, not the LLVM // -// representation, MachineFunctionPass's are not allowed to modify the LLVM // -// representation. Due to this limitation, the MachineFunctionPass class takes// -// care of declaring that no LLVM passes are invalidated. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MachineFunctionPass class. MachineFunctionPass's are +// just FunctionPass's, except they operate on machine code as part of a code +// generator. Because they operate on machine code, not the LLVM +// representation, MachineFunctionPass's are not allowed to modify the LLVM +// representation. Due to this limitation, the MachineFunctionPass class takes +// care of declaring that no LLVM passes are invalidated. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEFUNCTIONPASS_H #define LLVM_CODEGEN_MACHINEFUNCTIONPASS_H diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 4b84c47043..6092e9d1ba 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/MachineInstr.h - MachineInstr class --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineInstr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MachineInstr class, which is the// -// basic representation for all target dependent machine instructions used by// -// the back end. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MachineInstr class, which is the +// basic representation for all target dependent machine instructions used by +// the back end. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 8b47fb4b36..4f68f38b7b 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -1,17 +1,18 @@ //===-- CodeGen/MachineInstBuilder.h - Simplify creation of MIs -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineInstrBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes a function named BuildMI, which is useful for dramatically// -// simplifying how MachineInstr's are created. It allows use of code like this:// // -// M = BuildMI(X86::ADDrr8, 2).addReg(argVal1).addReg(argVal2); // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes a function named BuildMI, which is useful for dramatically +// simplifying how MachineInstr's are created. It allows use of code like this: +// +// M = BuildMI(X86::ADDrr8, 2).addReg(argVal1).addReg(argVal2); +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEINSTRBUILDER_H #define LLVM_CODEGEN_MACHINEINSTRBUILDER_H diff --git a/include/llvm/CodeGen/MachineInstrBundle.h b/include/llvm/CodeGen/MachineInstrBundle.h index bab1e030e6..58169ca730 100644 --- a/include/llvm/CodeGen/MachineInstrBundle.h +++ b/include/llvm/CodeGen/MachineInstrBundle.h @@ -1,13 +1,14 @@ //===-- CodeGen/MachineInstBundle.h - MI bundle utilities -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineInstrBundle.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provide utility functions to manipulate machine instruction // -// bundles. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provide utility functions to manipulate machine instruction +// bundles. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h index ace8a36886..adcd1d0de6 100644 --- a/include/llvm/CodeGen/MachineJumpTableInfo.h +++ b/include/llvm/CodeGen/MachineJumpTableInfo.h @@ -1,20 +1,21 @@ //===-- CodeGen/MachineJumpTableInfo.h - Abstract Jump Tables --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineJumpTableInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The MachineJumpTableInfo class keeps track of jump tables referenced by // -// lowered switch instructions in the MachineFunction. // // -// Instructions reference the address of these jump tables through the use of// -// MO_JumpTableIndex values. When emitting assembly or machine code, these // -// virtual address references are converted to refer to the address of the // -// function jump tables. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The MachineJumpTableInfo class keeps track of jump tables referenced by +// lowered switch instructions in the MachineFunction. +// +// Instructions reference the address of these jump tables through the use of +// MO_JumpTableIndex values. When emitting assembly or machine code, these +// virtual address references are converted to refer to the address of the +// function jump tables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEJUMPTABLEINFO_H #define LLVM_CODEGEN_MACHINEJUMPTABLEINFO_H diff --git a/include/llvm/CodeGen/MachineLoopInfo.h b/include/llvm/CodeGen/MachineLoopInfo.h index 1c47b371ed..4868b7363f 100644 --- a/include/llvm/CodeGen/MachineLoopInfo.h +++ b/include/llvm/CodeGen/MachineLoopInfo.h @@ -1,30 +1,31 @@ //===- llvm/CodeGen/MachineLoopInfo.h - Natural Loop Calculator -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineLoopInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachineLoopInfo class that is used to identify natural// -// loops and determine the loop depth of various nodes of the CFG. Note that// -// natural loops may actually be several loops that share the same header node.// // -// This analysis calculates the nesting structure of loops in a function. For// -// each natural loop identified, this analysis identifies natural loops // -// contained entirely within the loop and the basic blocks the make up the loop.// +// The LLVM Compiler Infrastructure // -// It can calculate on the fly various bits of information, for example: // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// * whether there is a preheader for the loop // -// * the number of back edges to the header // -// * whether or not a particular block branches out of the loop // -// * the successor blocks of the loop // -// * the loop depth // -// * the trip count // -// * etc... // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file defines the MachineLoopInfo class that is used to identify natural +// loops and determine the loop depth of various nodes of the CFG. Note that +// natural loops may actually be several loops that share the same header node. +// +// This analysis calculates the nesting structure of loops in a function. For +// each natural loop identified, this analysis identifies natural loops +// contained entirely within the loop and the basic blocks the make up the loop. +// +// It can calculate on the fly various bits of information, for example: +// +// * whether there is a preheader for the loop +// * the number of back edges to the header +// * whether or not a particular block branches out of the loop +// * the successor blocks of the loop +// * the loop depth +// * the trip count +// * etc... +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINELOOPINFO_H #define LLVM_CODEGEN_MACHINELOOPINFO_H diff --git a/include/llvm/CodeGen/MachineMemOperand.h b/include/llvm/CodeGen/MachineMemOperand.h index 614c3c5998..1899e6cacf 100644 --- a/include/llvm/CodeGen/MachineMemOperand.h +++ b/include/llvm/CodeGen/MachineMemOperand.h @@ -1,14 +1,15 @@ //==- llvm/CodeGen/MachineMemOperand.h - MachineMemOperand class -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineMemOperand.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MachineMemOperand class, which is a// -// description of a memory reference. It is used to help track dependencies // -// in the backend. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MachineMemOperand class, which is a +// description of a memory reference. It is used to help track dependencies +// in the backend. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 53528c5e17..c3d78fc143 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -1,29 +1,30 @@ //===-- llvm/CodeGen/MachineModuleInfo.h ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineModuleInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Collect meta information for a module. This information should be in a // -// neutral form that can be used by different debugging and exception handling// -// schemes. // // -// The organization of information is primarily clustered around the source // -// compile units. The main exception is source line correspondence where // -// inlining may interleave code from various compile units. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Collect meta information for a module. This information should be in a +// neutral form that can be used by different debugging and exception handling +// schemes. +// +// The organization of information is primarily clustered around the source +// compile units. The main exception is source line correspondence where +// inlining may interleave code from various compile units. // -// The following information can be retrieved from the MachineModuleInfo. // +// The following information can be retrieved from the MachineModuleInfo. // -// -- Source directories - Directories are uniqued based on their canonical // -// string and assigned a sequential numeric ID (base 1.) // -// -- Source files - Files are also uniqued based on their name and directory// -// ID. A file ID is sequential number (base 1.) // -// -- Source line correspondence - A vector of file ID, line#, column# triples.// -// A DEBUG_LOCATION instruction is generated by the DAG Legalizer // -// corresponding to each entry in the source line list. This allows a debug// -// emitter to generate labels referenced by debug information tables. // +// -- Source directories - Directories are uniqued based on their canonical +// string and assigned a sequential numeric ID (base 1.) +// -- Source files - Files are also uniqued based on their name and directory +// ID. A file ID is sequential number (base 1.) +// -- Source line correspondence - A vector of file ID, line#, column# triples. +// A DEBUG_LOCATION instruction is generated by the DAG Legalizer +// corresponding to each entry in the source line list. This allows a debug +// emitter to generate labels referenced by debug information tables. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineModuleInfoImpls.h b/include/llvm/CodeGen/MachineModuleInfoImpls.h index d463de60c6..a67f9b5666 100644 --- a/include/llvm/CodeGen/MachineModuleInfoImpls.h +++ b/include/llvm/CodeGen/MachineModuleInfoImpls.h @@ -1,15 +1,16 @@ //===-- llvm/CodeGen/MachineModuleInfoImpls.h -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineModuleInfoImpls.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines object-file format specific implementations of // -// MachineModuleInfoImpl. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines object-file format specific implementations of +// MachineModuleInfoImpl. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEMODULEINFOIMPLS_H #define LLVM_CODEGEN_MACHINEMODULEINFOIMPLS_H diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index 795d3b1ebe..c43e47c36d 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/MachineOperand.h - MachineOperand class ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineOperand.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MachineOperand class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MachineOperand class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEOPERAND_H #define LLVM_CODEGEN_MACHINEOPERAND_H diff --git a/include/llvm/CodeGen/MachinePassRegistry.h b/include/llvm/CodeGen/MachinePassRegistry.h index fe263cc6c1..cf04c640c3 100644 --- a/include/llvm/CodeGen/MachinePassRegistry.h +++ b/include/llvm/CodeGen/MachinePassRegistry.h @@ -1,16 +1,17 @@ //===-- llvm/CodeGen/MachinePassRegistry.h ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachinePassRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the mechanics for machine function pass registries. A // -// function pass registry (MachinePassRegistry) is auto filled by the static // -// constructors of MachinePassRegistryNode. Further there is a command line // -// parser (RegisterPassParser) which listens to each registry for additions // -// and deletions, so that the appropriate command option is updated. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the mechanics for machine function pass registries. A +// function pass registry (MachinePassRegistry) is auto filled by the static +// constructors of MachinePassRegistryNode. Further there is a command line +// parser (RegisterPassParser) which listens to each registry for additions +// and deletions, so that the appropriate command option is updated. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachinePostDominators.h b/include/llvm/CodeGen/MachinePostDominators.h index 610a732cc9..70bdb191ad 100644 --- a/include/llvm/CodeGen/MachinePostDominators.h +++ b/include/llvm/CodeGen/MachinePostDominators.h @@ -1,15 +1,16 @@ //=- llvm/CodeGen/MachineDominators.h ----------------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachinePostDominators.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes interfaces to post dominance information for // -// target-specific code. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes interfaces to post dominance information for +// target-specific code. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEPOSTDOMINATORS_H #define LLVM_CODEGEN_MACHINEPOSTDOMINATORS_H diff --git a/include/llvm/CodeGen/MachineRegionInfo.h b/include/llvm/CodeGen/MachineRegionInfo.h index 24a3fb0cf8..df9823f741 100644 --- a/include/llvm/CodeGen/MachineRegionInfo.h +++ b/include/llvm/CodeGen/MachineRegionInfo.h @@ -1,12 +1,11 @@ //===- llvm/CodeGen/MachineRegionInfo.h -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineRegionInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEREGIONINFO_H #define LLVM_CODEGEN_MACHINEREGIONINFO_H diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index 69a1295793..5e607cdae4 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/MachineRegisterInfo.h ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineRegisterInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachineRegisterInfo class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MachineRegisterInfo class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEREGISTERINFO_H #define LLVM_CODEGEN_MACHINEREGISTERINFO_H diff --git a/include/llvm/CodeGen/MachineSSAUpdater.h b/include/llvm/CodeGen/MachineSSAUpdater.h index 0ac2632ae7..5f988ad863 100644 --- a/include/llvm/CodeGen/MachineSSAUpdater.h +++ b/include/llvm/CodeGen/MachineSSAUpdater.h @@ -1,14 +1,15 @@ //===-- MachineSSAUpdater.h - Unstructured SSA Update Tool ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineSSAUpdater.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MachineSSAUpdater class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MachineSSAUpdater class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINESSAUPDATER_H #define LLVM_CODEGEN_MACHINESSAUPDATER_H diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h index 66f32d85c7..278d84ba5a 100644 --- a/include/llvm/CodeGen/MachineScheduler.h +++ b/include/llvm/CodeGen/MachineScheduler.h @@ -1,74 +1,76 @@ //==- MachineScheduler.h - MachineInstr Scheduling Pass ----------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineScheduler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides an interface for customizing the standard MachineScheduler// -// pass. Note that the entire pass may be replaced as follows: // // -// TargetMachine::createPassConfig(PassManagerBase &PM) { // -// PM.substitutePass(&MachineSchedulerID, &CustomSchedulerPassID); // -// ...} // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides an interface for customizing the standard MachineScheduler +// pass. Note that the entire pass may be replaced as follows: +// +// TargetMachine::createPassConfig(PassManagerBase &PM) { +// PM.substitutePass(&MachineSchedulerID, &CustomSchedulerPassID); +// ...} +// +// The MachineScheduler pass is only responsible for choosing the regions to be +// scheduled. Targets can override the DAG builder and scheduler without +// replacing the pass as follows: // -// The MachineScheduler pass is only responsible for choosing the regions to be// -// scheduled. Targets can override the DAG builder and scheduler without // -// replacing the pass as follows: // +// ScheduleDAGInstrs *PassConfig:: +// createMachineScheduler(MachineSchedContext *C) { +// return new CustomMachineScheduler(C); +// } // -// ScheduleDAGInstrs *PassConfig:: // -// createMachineScheduler(MachineSchedContext *C) { // -// return new CustomMachineScheduler(C); // -// } // +// The default scheduler, ScheduleDAGMILive, builds the DAG and drives list +// scheduling while updating the instruction stream, register pressure, and live +// intervals. Most targets don't need to override the DAG builder and list +// schedulier, but subtargets that require custom scheduling heuristics may +// plugin an alternate MachineSchedStrategy. The strategy is responsible for +// selecting the highest priority node from the list: // -// The default scheduler, ScheduleDAGMILive, builds the DAG and drives list // -// scheduling while updating the instruction stream, register pressure, and live// -// intervals. Most targets don't need to override the DAG builder and list // -// schedulier, but subtargets that require custom scheduling heuristics may // -// plugin an alternate MachineSchedStrategy. The strategy is responsible for // -// selecting the highest priority node from the list: // +// ScheduleDAGInstrs *PassConfig:: +// createMachineScheduler(MachineSchedContext *C) { +// return new ScheduleDAGMI(C, CustomStrategy(C)); +// } // -// ScheduleDAGInstrs *PassConfig:: // -// createMachineScheduler(MachineSchedContext *C) { // -// return new ScheduleDAGMI(C, CustomStrategy(C)); // -// } // +// The DAG builder can also be customized in a sense by adding DAG mutations +// that will run after DAG building and before list scheduling. DAG mutations +// can adjust dependencies based on target-specific knowledge or add weak edges +// to aid heuristics: // -// The DAG builder can also be customized in a sense by adding DAG mutations // -// that will run after DAG building and before list scheduling. DAG mutations// -// can adjust dependencies based on target-specific knowledge or add weak edges// -// to aid heuristics: // +// ScheduleDAGInstrs *PassConfig:: +// createMachineScheduler(MachineSchedContext *C) { +// ScheduleDAGMI *DAG = new ScheduleDAGMI(C, CustomStrategy(C)); +// DAG->addMutation(new CustomDependencies(DAG->TII, DAG->TRI)); +// return DAG; +// } // -// ScheduleDAGInstrs *PassConfig:: // -// createMachineScheduler(MachineSchedContext *C) { // -// ScheduleDAGMI *DAG = new ScheduleDAGMI(C, CustomStrategy(C)); // -// DAG->addMutation(new CustomDependencies(DAG->TII, DAG->TRI)); // -// return DAG; // -// } // +// A target that supports alternative schedulers can use the +// MachineSchedRegistry to allow command line selection. This can be done by +// implementing the following boilerplate: // -// A target that supports alternative schedulers can use the // -// MachineSchedRegistry to allow command line selection. This can be done by // -// implementing the following boilerplate: // +// static ScheduleDAGInstrs *createCustomMachineSched(MachineSchedContext *C) { +// return new CustomMachineScheduler(C); +// } +// static MachineSchedRegistry +// SchedCustomRegistry("custom", "Run my target's custom scheduler", +// createCustomMachineSched); // -// static ScheduleDAGInstrs *createCustomMachineSched(MachineSchedContext *C) {// -// return new CustomMachineScheduler(C); // -// } // -// static MachineSchedRegistry // -// SchedCustomRegistry("custom", "Run my target's custom scheduler", // -// createCustomMachineSched); // // -// Finally, subtargets that don't need to implement custom heuristics but would// -// like to configure the GenericScheduler's policy for a given scheduler region,// -// including scheduling direction and register pressure tracking policy, can do// -// this: // +// Finally, subtargets that don't need to implement custom heuristics but would +// like to configure the GenericScheduler's policy for a given scheduler region, +// including scheduling direction and register pressure tracking policy, can do +// this: // -// void Subtarget:: // -// overrideSchedPolicy(MachineSchedPolicy &Policy, // -// MachineInstr *begin, // -// MachineInstr *end, // -// unsigned NumRegionInstrs) const { // -// Policy. = true; // -// } // +// void Subtarget:: +// overrideSchedPolicy(MachineSchedPolicy &Policy, +// MachineInstr *begin, +// MachineInstr *end, +// unsigned NumRegionInstrs) const { +// Policy. = true; +// } // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineTraceMetrics.h b/include/llvm/CodeGen/MachineTraceMetrics.h index 224de576fe..bfe6e945b6 100644 --- a/include/llvm/CodeGen/MachineTraceMetrics.h +++ b/include/llvm/CodeGen/MachineTraceMetrics.h @@ -1,47 +1,48 @@ //===- lib/CodeGen/MachineTraceMetrics.h - Super-scalar metrics -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineTraceMetrics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface for the MachineTraceMetrics analysis pass // -// that estimates CPU resource usage and critical data dependency paths through// -// preferred traces. This is useful for super-scalar CPUs where execution speed// -// can be limited both by data dependencies and by limited execution resources.// // -// Out-of-order CPUs will often be executing instructions from multiple basic// -// blocks at the same time. This makes it difficult to estimate the resource // -// usage accurately in a single basic block. Resources can be estimated better// -// by looking at a trace through the current basic block. // +// The LLVM Compiler Infrastructure // -// For every block, the MachineTraceMetrics pass will pick a preferred trace // -// that passes through the block. The trace is chosen based on loop structure,// -// branch probabilities, and resource usage. The intention is to pick likely // -// traces that would be the most affected by code transformations. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// It is expensive to compute a full arbitrary trace for every block, so to // -// save some computations, traces are chosen to be convergent. This means that// -// if the traces through basic blocks A and B ever cross when moving away from// -// A and B, they never diverge again. This applies in both directions - If the// -// traces meet above A and B, they won't diverge when going further back. // +//===----------------------------------------------------------------------===// // -// Traces tend to align with loops. The trace through a block in an inner loop// -// will begin at the loop entry block and end at a back edge. If there are // -// nested loops, the trace may begin and end at those instead. // +// This file defines the interface for the MachineTraceMetrics analysis pass +// that estimates CPU resource usage and critical data dependency paths through +// preferred traces. This is useful for super-scalar CPUs where execution speed +// can be limited both by data dependencies and by limited execution resources. // -// For each trace, we compute the critical path length, which is the number of// -// cycles required to execute the trace when execution is limited by data // -// dependencies only. We also compute the resource height, which is the number// -// of cycles required to execute all instructions in the trace when ignoring // -// data dependencies. // +// Out-of-order CPUs will often be executing instructions from multiple basic +// blocks at the same time. This makes it difficult to estimate the resource +// usage accurately in a single basic block. Resources can be estimated better +// by looking at a trace through the current basic block. // -// Every instruction in the current block has a slack - the number of cycles // -// execution of the instruction can be delayed without extending the critical// -// path. // +// For every block, the MachineTraceMetrics pass will pick a preferred trace +// that passes through the block. The trace is chosen based on loop structure, +// branch probabilities, and resource usage. The intention is to pick likely +// traces that would be the most affected by code transformations. // -/////////////////////////////////////////////////////////////////////////////// +// It is expensive to compute a full arbitrary trace for every block, so to +// save some computations, traces are chosen to be convergent. This means that +// if the traces through basic blocks A and B ever cross when moving away from +// A and B, they never diverge again. This applies in both directions - If the +// traces meet above A and B, they won't diverge when going further back. +// +// Traces tend to align with loops. The trace through a block in an inner loop +// will begin at the loop entry block and end at a back edge. If there are +// nested loops, the trace may begin and end at those instead. +// +// For each trace, we compute the critical path length, which is the number of +// cycles required to execute the trace when execution is limited by data +// dependencies only. We also compute the resource height, which is the number +// of cycles required to execute all instructions in the trace when ignoring +// data dependencies. +// +// Every instruction in the current block has a slack - the number of cycles +// execution of the instruction can be delayed without extending the critical +// path. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINETRACEMETRICS_H #define LLVM_CODEGEN_MACHINETRACEMETRICS_H diff --git a/include/llvm/CodeGen/MachineValueType.h b/include/llvm/CodeGen/MachineValueType.h index 1d82fef59a..a728df3546 100644 --- a/include/llvm/CodeGen/MachineValueType.h +++ b/include/llvm/CodeGen/MachineValueType.h @@ -1,15 +1,16 @@ //===- CodeGen/MachineValueType.h - Machine-Level types ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineValueType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the set of machine-level target independent types which // -// legal values in the code generator use. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the set of machine-level target independent types which +// legal values in the code generator use. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_MACHINEVALUETYPE_H #define LLVM_CODEGEN_MACHINEVALUETYPE_H diff --git a/include/llvm/CodeGen/PBQP/CostAllocator.h b/include/llvm/CodeGen/PBQP/CostAllocator.h index d601d07fb6..02d39fe383 100644 --- a/include/llvm/CodeGen/PBQP/CostAllocator.h +++ b/include/llvm/CodeGen/PBQP/CostAllocator.h @@ -1,18 +1,19 @@ //===---------- CostAllocator.h - PBQP Cost Allocator -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CostAllocator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines classes conforming to the PBQP cost value manager concept. // // -// Cost value managers are memory managers for PBQP cost values (vectors and // -// matrices). Since PBQP graphs can grow very large (E.g. hundreds of thousands// -// of edges on the largest function in SPEC2006). // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines classes conforming to the PBQP cost value manager concept. +// +// Cost value managers are memory managers for PBQP cost values (vectors and +// matrices). Since PBQP graphs can grow very large (E.g. hundreds of thousands +// of edges on the largest function in SPEC2006). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PBQP_COSTALLOCATOR_H #define LLVM_CODEGEN_PBQP_COSTALLOCATOR_H diff --git a/include/llvm/CodeGen/PBQP/Graph.h b/include/llvm/CodeGen/PBQP/Graph.h index 5133ef8b4a..f73383ed10 100644 --- a/include/llvm/CodeGen/PBQP/Graph.h +++ b/include/llvm/CodeGen/PBQP/Graph.h @@ -1,14 +1,15 @@ //===-------------------- Graph.h - PBQP Graph ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Graph.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// PBQP Graph class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// PBQP Graph class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PBQP_GRAPH_H diff --git a/include/llvm/CodeGen/PBQP/Math.h b/include/llvm/CodeGen/PBQP/Math.h index ad79d7baec..2792608e29 100644 --- a/include/llvm/CodeGen/PBQP/Math.h +++ b/include/llvm/CodeGen/PBQP/Math.h @@ -1,12 +1,11 @@ //===------ Math.h - PBQP Vector and Matrix classes -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Math.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PBQP_MATH_H #define LLVM_CODEGEN_PBQP_MATH_H diff --git a/include/llvm/CodeGen/PBQP/ReductionRules.h b/include/llvm/CodeGen/PBQP/ReductionRules.h index ee596260f9..d4a544bfe7 100644 --- a/include/llvm/CodeGen/PBQP/ReductionRules.h +++ b/include/llvm/CodeGen/PBQP/ReductionRules.h @@ -1,14 +1,15 @@ //===----------- ReductionRules.h - Reduction Rules -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReductionRules.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Reduction Rules. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Reduction Rules. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PBQP_REDUCTIONRULES_H #define LLVM_CODEGEN_PBQP_REDUCTIONRULES_H diff --git a/include/llvm/CodeGen/PBQP/Solution.h b/include/llvm/CodeGen/PBQP/Solution.h index 09f61dcc69..a3bfaeb7e6 100644 --- a/include/llvm/CodeGen/PBQP/Solution.h +++ b/include/llvm/CodeGen/PBQP/Solution.h @@ -1,14 +1,15 @@ //===-- Solution.h ------- PBQP Solution ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Solution.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// PBQP Solution class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// PBQP Solution class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PBQP_SOLUTION_H #define LLVM_CODEGEN_PBQP_SOLUTION_H diff --git a/include/llvm/CodeGen/PBQPRAConstraint.h b/include/llvm/CodeGen/PBQPRAConstraint.h index 542fb4a919..833b9bad61 100644 --- a/include/llvm/CodeGen/PBQPRAConstraint.h +++ b/include/llvm/CodeGen/PBQPRAConstraint.h @@ -1,16 +1,17 @@ //===-- RegAllocPBQP.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PBQPRAConstraint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PBQPBuilder interface, for classes which build PBQP // -// instances to represent register allocation problems, and the RegAllocPBQP // -// interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PBQPBuilder interface, for classes which build PBQP +// instances to represent register allocation problems, and the RegAllocPBQP +// interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PBQPRACONSTRAINT_H #define LLVM_CODEGEN_PBQPRACONSTRAINT_H diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index a12414f575..5d82921744 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -1,15 +1,16 @@ //===-- Passes.h - Target independent code generation passes ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Passes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines interfaces to access the target independent code generation// -// passes provided by the LLVM backend. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines interfaces to access the target independent code generation +// passes provided by the LLVM backend. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PASSES_H #define LLVM_CODEGEN_PASSES_H diff --git a/include/llvm/CodeGen/PseudoSourceValue.h b/include/llvm/CodeGen/PseudoSourceValue.h index 631e0c23ee..a518b62332 100644 --- a/include/llvm/CodeGen/PseudoSourceValue.h +++ b/include/llvm/CodeGen/PseudoSourceValue.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/PseudoSourceValue.h ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PseudoSourceValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the PseudoSourceValue class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the PseudoSourceValue class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_PSEUDOSOURCEVALUE_H #define LLVM_CODEGEN_PSEUDOSOURCEVALUE_H diff --git a/include/llvm/CodeGen/RegAllocPBQP.h b/include/llvm/CodeGen/RegAllocPBQP.h index f85b10c36b..6046e46547 100644 --- a/include/llvm/CodeGen/RegAllocPBQP.h +++ b/include/llvm/CodeGen/RegAllocPBQP.h @@ -1,16 +1,17 @@ //===-- RegAllocPBQP.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocPBQP.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PBQPBuilder interface, for classes which build PBQP // -// instances to represent register allocation problems, and the RegAllocPBQP // -// interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PBQPBuilder interface, for classes which build PBQP +// instances to represent register allocation problems, and the RegAllocPBQP +// interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_REGALLOCPBQP_H #define LLVM_CODEGEN_REGALLOCPBQP_H diff --git a/include/llvm/CodeGen/RegAllocRegistry.h b/include/llvm/CodeGen/RegAllocRegistry.h index 9b895a5e1a..9a639ad817 100644 --- a/include/llvm/CodeGen/RegAllocRegistry.h +++ b/include/llvm/CodeGen/RegAllocRegistry.h @@ -1,13 +1,14 @@ //===-- llvm/CodeGen/RegAllocRegistry.h -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation for register allocator function // -// pass registry (RegisterRegAlloc). // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation for register allocator function +// pass registry (RegisterRegAlloc). // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/RegisterClassInfo.h b/include/llvm/CodeGen/RegisterClassInfo.h index c2dde58a0f..d784dfbda7 100644 --- a/include/llvm/CodeGen/RegisterClassInfo.h +++ b/include/llvm/CodeGen/RegisterClassInfo.h @@ -1,17 +1,18 @@ //===-- RegisterClassInfo.h - Dynamic Register Class Info -*- C++ -*-------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterClassInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the RegisterClassInfo class which provides dynamic // -// information about target register classes. Callee saved and reserved // -// registers depends on calling conventions and other dynamic information, so// -// some things cannot be determined statically. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the RegisterClassInfo class which provides dynamic +// information about target register classes. Callee saved and reserved +// registers depends on calling conventions and other dynamic information, so +// some things cannot be determined statically. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_REGISTERCLASSINFO_H #define LLVM_CODEGEN_REGISTERCLASSINFO_H diff --git a/include/llvm/CodeGen/RegisterPressure.h b/include/llvm/CodeGen/RegisterPressure.h index 1784552696..9d8843d1d7 100644 --- a/include/llvm/CodeGen/RegisterPressure.h +++ b/include/llvm/CodeGen/RegisterPressure.h @@ -1,15 +1,16 @@ //===-- RegisterPressure.h - Dynamic Register Pressure -*- C++ -*-------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterPressure.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RegisterPressure class which can be used to track // -// MachineInstr level register pressure. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RegisterPressure class which can be used to track +// MachineInstr level register pressure. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_REGISTERPRESSURE_H #define LLVM_CODEGEN_REGISTERPRESSURE_H diff --git a/include/llvm/CodeGen/RegisterScavenging.h b/include/llvm/CodeGen/RegisterScavenging.h index 6363332415..df3fd34e0a 100644 --- a/include/llvm/CodeGen/RegisterScavenging.h +++ b/include/llvm/CodeGen/RegisterScavenging.h @@ -1,17 +1,18 @@ //===-- RegisterScavenging.h - Machine register scavenging ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterScavenging.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the machine register scavenger class. It can provide // -// information such as unused register at any point in a machine basic block.// -// It also provides a mechanism to make registers available by evicting them // -// to spill slots. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the machine register scavenger class. It can provide +// information such as unused register at any point in a machine basic block. +// It also provides a mechanism to make registers available by evicting them +// to spill slots. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_REGISTERSCAVENGING_H #define LLVM_CODEGEN_REGISTERSCAVENGING_H diff --git a/include/llvm/CodeGen/ResourcePriorityQueue.h b/include/llvm/CodeGen/ResourcePriorityQueue.h index 4326677130..0097e0472e 100644 --- a/include/llvm/CodeGen/ResourcePriorityQueue.h +++ b/include/llvm/CodeGen/ResourcePriorityQueue.h @@ -1,17 +1,18 @@ //===----- ResourcePriorityQueue.h - A DFA-oriented priority queue -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ResourcePriorityQueue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ResourcePriorityQueue class, which is a // -// SchedulingPriorityQueue that schedules using DFA state to // -// reduce the length of the critical path through the basic block // -// on VLIW platforms. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ResourcePriorityQueue class, which is a +// SchedulingPriorityQueue that schedules using DFA state to +// reduce the length of the critical path through the basic block +// on VLIW platforms. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_RESOURCEPRIORITYQUEUE_H #define LLVM_CODEGEN_RESOURCEPRIORITYQUEUE_H diff --git a/include/llvm/CodeGen/RuntimeLibcalls.h b/include/llvm/CodeGen/RuntimeLibcalls.h index efa02fd6bd..2be5de640e 100644 --- a/include/llvm/CodeGen/RuntimeLibcalls.h +++ b/include/llvm/CodeGen/RuntimeLibcalls.h @@ -1,15 +1,16 @@ //===-- CodeGen/RuntimeLibcalls.h - Runtime Library Calls -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeLibcalls.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the enum representing the list of runtime library calls // -// the backend may emit during code generation, and also some helper functions.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the enum representing the list of runtime library calls +// the backend may emit during code generation, and also some helper functions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_RUNTIMELIBCALLS_H #define LLVM_CODEGEN_RUNTIMELIBCALLS_H diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index b688095eeb..8391314165 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -1,16 +1,17 @@ //===------- llvm/CodeGen/ScheduleDAG.h - Common Base Class------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAG.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ScheduleDAG class, which is used as the common // -// base class for instruction schedulers. This encapsulates the scheduling DAG,// -// which is shared between SelectionDAG and MachineInstr scheduling. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ScheduleDAG class, which is used as the common +// base class for instruction schedulers. This encapsulates the scheduling DAG, +// which is shared between SelectionDAG and MachineInstr scheduling. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SCHEDULEDAG_H #define LLVM_CODEGEN_SCHEDULEDAG_H diff --git a/include/llvm/CodeGen/ScheduleDAGInstrs.h b/include/llvm/CodeGen/ScheduleDAGInstrs.h index fffcf1bdf5..b56d5ec8ce 100644 --- a/include/llvm/CodeGen/ScheduleDAGInstrs.h +++ b/include/llvm/CodeGen/ScheduleDAGInstrs.h @@ -1,15 +1,16 @@ //==- ScheduleDAGInstrs.h - MachineInstr Scheduling --------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGInstrs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ScheduleDAGInstrs class, which implements // -// scheduling for a MachineInstr-based dependency graph. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ScheduleDAGInstrs class, which implements +// scheduling for a MachineInstr-based dependency graph. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SCHEDULEDAGINSTRS_H #define LLVM_CODEGEN_SCHEDULEDAGINSTRS_H diff --git a/include/llvm/CodeGen/ScheduleDFS.h b/include/llvm/CodeGen/ScheduleDFS.h index 87d149999c..b2108ad3be 100644 --- a/include/llvm/CodeGen/ScheduleDFS.h +++ b/include/llvm/CodeGen/ScheduleDFS.h @@ -1,14 +1,15 @@ //===- ScheduleDAGILP.h - ILP metric for ScheduleDAGInstrs ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDFS.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of an ILP metric for machine level instruction scheduling. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of an ILP metric for machine level instruction scheduling. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SCHEDULEDFS_H #define LLVM_CODEGEN_SCHEDULEDFS_H diff --git a/include/llvm/CodeGen/ScheduleHazardRecognizer.h b/include/llvm/CodeGen/ScheduleHazardRecognizer.h index c050f457f7..8a40e7212f 100644 --- a/include/llvm/CodeGen/ScheduleHazardRecognizer.h +++ b/include/llvm/CodeGen/ScheduleHazardRecognizer.h @@ -1,15 +1,16 @@ //=- llvm/CodeGen/ScheduleHazardRecognizer.h - Scheduling Support -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleHazardRecognizer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ScheduleHazardRecognizer class, which implements // -// hazard-avoidance heuristics for scheduling. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ScheduleHazardRecognizer class, which implements +// hazard-avoidance heuristics for scheduling. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SCHEDULEHAZARDRECOGNIZER_H #define LLVM_CODEGEN_SCHEDULEHAZARDRECOGNIZER_H diff --git a/include/llvm/CodeGen/SchedulerRegistry.h b/include/llvm/CodeGen/SchedulerRegistry.h index 237314778b..e4570a8adc 100644 --- a/include/llvm/CodeGen/SchedulerRegistry.h +++ b/include/llvm/CodeGen/SchedulerRegistry.h @@ -1,13 +1,14 @@ //===-- llvm/CodeGen/SchedulerRegistry.h ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SchedulerRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation for instruction scheduler function // -// pass registry (RegisterScheduler). // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation for instruction scheduler function +// pass registry (RegisterScheduler). // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/ScoreboardHazardRecognizer.h b/include/llvm/CodeGen/ScoreboardHazardRecognizer.h index 4a003fb99f..ab14c2de32 100644 --- a/include/llvm/CodeGen/ScoreboardHazardRecognizer.h +++ b/include/llvm/CodeGen/ScoreboardHazardRecognizer.h @@ -1,16 +1,17 @@ //=- llvm/CodeGen/ScoreboardHazardRecognizer.h - Schedule Support -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScoreboardHazardRecognizer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ScoreboardHazardRecognizer class, which // -// encapsulates hazard-avoidance heuristics for scheduling, based on the // -// scheduling itineraries specified for the target. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ScoreboardHazardRecognizer class, which +// encapsulates hazard-avoidance heuristics for scheduling, based on the +// scheduling itineraries specified for the target. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SCOREBOARDHAZARDRECOGNIZER_H #define LLVM_CODEGEN_SCOREBOARDHAZARDRECOGNIZER_H diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 1f40dc9f9c..1ee92380e6 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -1,15 +1,16 @@ //===-- llvm/CodeGen/SelectionDAG.h - InstSelection DAG ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAG.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SelectionDAG class, and transitively defines the // -// SDNode class and subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SelectionDAG class, and transitively defines the +// SDNode class and subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SELECTIONDAG_H #define LLVM_CODEGEN_SELECTIONDAG_H diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h index c97c1ab3d1..a011e4c338 100644 --- a/include/llvm/CodeGen/SelectionDAGISel.h +++ b/include/llvm/CodeGen/SelectionDAGISel.h @@ -1,15 +1,16 @@ //===-- llvm/CodeGen/SelectionDAGISel.h - Common Base Class------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGISel.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SelectionDAGISel class, which is used as the common// -// base class for SelectionDAG-based instruction selectors. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SelectionDAGISel class, which is used as the common +// base class for SelectionDAG-based instruction selectors. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SELECTIONDAGISEL_H #define LLVM_CODEGEN_SELECTIONDAGISEL_H diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index cd1e43955f..e1bb773967 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1,17 +1,18 @@ //===-- llvm/CodeGen/SelectionDAGNodes.h - SelectionDAG Nodes ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGNodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SDNode class and derived classes, which are used to// -// represent the nodes and operations present in a SelectionDAG. These nodes// -// and operations are machine code level operations, with some similarities to// -// the GCC RTL representation. // // -// Clients should include the SelectionDAG.h file instead of this file directly.// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SDNode class and derived classes, which are used to +// represent the nodes and operations present in a SelectionDAG. These nodes +// and operations are machine code level operations, with some similarities to +// the GCC RTL representation. +// +// Clients should include the SelectionDAG.h file instead of this file directly. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 83fc2cd747..9d6d6f5b1b 100644 --- a/include/llvm/CodeGen/SlotIndexes.h +++ b/include/llvm/CodeGen/SlotIndexes.h @@ -1,20 +1,20 @@ //===- llvm/CodeGen/SlotIndexes.h - Slot indexes representation -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SlotIndexes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements SlotIndex and related classes. The purpose of SlotIndex// -// is to describe a position at which a register can become live, or cease to// -// be live. // // -// SlotIndex is mostly a proxy for entries of the SlotIndexList, a class which// -// is held is LiveIntervals and provides the real numbering. This allows // -// LiveIntervals to perform largely transparent renumbering. // -// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements SlotIndex and related classes. The purpose of SlotIndex +// is to describe a position at which a register can become live, or cease to +// be live. +// +// SlotIndex is mostly a proxy for entries of the SlotIndexList, a class which +// is held is LiveIntervals and provides the real numbering. This allows +// LiveIntervals to perform largely transparent renumbering. +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_SLOTINDEXES_H #define LLVM_CODEGEN_SLOTINDEXES_H diff --git a/include/llvm/CodeGen/StackMaps.h b/include/llvm/CodeGen/StackMaps.h index 029d4fc9f3..fdc1a9143e 100644 --- a/include/llvm/CodeGen/StackMaps.h +++ b/include/llvm/CodeGen/StackMaps.h @@ -1,12 +1,11 @@ //===------------------- StackMaps.h - StackMaps ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackMaps.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_STACKMAPS_H #define LLVM_CODEGEN_STACKMAPS_H diff --git a/include/llvm/CodeGen/StackProtector.h b/include/llvm/CodeGen/StackProtector.h index 0d268fb5f8..8cef85cb44 100644 --- a/include/llvm/CodeGen/StackProtector.h +++ b/include/llvm/CodeGen/StackProtector.h @@ -1,17 +1,18 @@ //===-- StackProtector.h - Stack Protector Insertion ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackProtector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass inserts stack protectors into functions which need them. A variable// -// with a random value in it is stored onto the stack before the local variables// -// are allocated. Upon exiting the block, the stored value is checked. If it's// -// changed, then there was some sort of violation and the program aborts. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass inserts stack protectors into functions which need them. A variable +// with a random value in it is stored onto the stack before the local variables +// are allocated. Upon exiting the block, the stored value is checked. If it's +// changed, then there was some sort of violation and the program aborts. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_STACKPROTECTOR_H #define LLVM_CODEGEN_STACKPROTECTOR_H diff --git a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h index 65871bc114..10c099d2c2 100644 --- a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h +++ b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -1,15 +1,16 @@ //==-- llvm/CodeGen/TargetLoweringObjectFileImpl.h - Object Info -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLoweringObjectFileImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements classes used to handle lowerings specific to common // -// object file formats. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements classes used to handle lowerings specific to common +// object file formats. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_TARGETLOWERINGOBJECTFILEIMPL_H #define LLVM_CODEGEN_TARGETLOWERINGOBJECTFILEIMPL_H diff --git a/include/llvm/CodeGen/TargetSchedule.h b/include/llvm/CodeGen/TargetSchedule.h index ad7578b0b7..751fac411c 100644 --- a/include/llvm/CodeGen/TargetSchedule.h +++ b/include/llvm/CodeGen/TargetSchedule.h @@ -1,16 +1,17 @@ //===-- llvm/CodeGen/TargetSchedule.h - Sched Machine Model -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSchedule.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a wrapper around MCSchedModel that allows the interface to// -// benefit from information currently only available in TargetInstrInfo. // -// Ideally, the scheduling interface would be fully defined in the MC layer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a wrapper around MCSchedModel that allows the interface to +// benefit from information currently only available in TargetInstrInfo. +// Ideally, the scheduling interface would be fully defined in the MC layer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_TARGETSCHEDULE_H #define LLVM_CODEGEN_TARGETSCHEDULE_H diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index 364f9e1d12..e1a9fd3829 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -1,16 +1,17 @@ //===- CodeGen/ValueTypes.h - Low-Level Target independ. types --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the set of low-level target independent types which various// -// values in the code generator are. This allows the target specific behavior// -// of instructions to be described to target independent passes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the set of low-level target independent types which various +// values in the code generator are. This allows the target specific behavior +// of instructions to be described to target independent passes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_VALUETYPES_H #define LLVM_CODEGEN_VALUETYPES_H diff --git a/include/llvm/CodeGen/ValueTypes.td b/include/llvm/CodeGen/ValueTypes.td index d07aaef3e1..2b30f14f90 100644 --- a/include/llvm/CodeGen/ValueTypes.td +++ b/include/llvm/CodeGen/ValueTypes.td @@ -1,16 +1,17 @@ //===- ValueTypes.td - ValueType definitions ---------------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueTypes.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Value types - These values correspond to the register types defined in the// -// ValueTypes.h file. If you update anything here, you must update it there as// -// well! // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Value types - These values correspond to the register types defined in the +// ValueTypes.h file. If you update anything here, you must update it there as +// well! +// +//===----------------------------------------------------------------------===// class ValueType { string Namespace = "MVT"; diff --git a/include/llvm/CodeGen/VirtRegMap.h b/include/llvm/CodeGen/VirtRegMap.h index 11e81b4b2b..d7e9209487 100644 --- a/include/llvm/CodeGen/VirtRegMap.h +++ b/include/llvm/CodeGen/VirtRegMap.h @@ -1,17 +1,18 @@ //===-- llvm/CodeGen/VirtRegMap.h - Virtual Register Map -*- C++ -*--------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VirtRegMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a virtual register map. This maps virtual registers to// -// physical registers and virtual registers to stack slots. It is created and// -// updated by a register allocator and then used by a machine code rewriter that// -// adds spill code and rewrites virtual into physical register references. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a virtual register map. This maps virtual registers to +// physical registers and virtual registers to stack slots. It is created and +// updated by a register allocator and then used by a machine code rewriter that +// adds spill code and rewrites virtual into physical register references. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_VIRTREGMAP_H #define LLVM_CODEGEN_VIRTREGMAP_H diff --git a/include/llvm/CodeGen/WinEHFuncInfo.h b/include/llvm/CodeGen/WinEHFuncInfo.h index 5541383fd7..75638a058a 100644 --- a/include/llvm/CodeGen/WinEHFuncInfo.h +++ b/include/llvm/CodeGen/WinEHFuncInfo.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/WinEHFuncInfo.h ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinEHFuncInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Data structures and associated state for Windows exception handling schemes.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Data structures and associated state for Windows exception handling schemes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_WINEHFUNCINFO_H #define LLVM_CODEGEN_WINEHFUNCINFO_H diff --git a/include/llvm/Config/AsmParsers.def.in b/include/llvm/Config/AsmParsers.def.in index f37c40fca7..d63675351c 100644 --- a/include/llvm/Config/AsmParsers.def.in +++ b/include/llvm/Config/AsmParsers.def.in @@ -1,23 +1,24 @@ /*===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmParsers.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file enumerates all of the assembly-language parsers // -// supported by this build of LLVM. Clients of this file should define // -// the LLVM_ASM_PARSER macro to be a function-like macro with a // -// single parameter (the name of the target whose assembly can be // -// generated); including this file will then enumerate all of the // -// targets with assembly parsers. // -// // -// The set of targets supported by LLVM is generated at configuration // -// time, at which point this header is generated. Do not modify this // -// header directly. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file enumerates all of the assembly-language parsers *| +|* supported by this build of LLVM. Clients of this file should define *| +|* the LLVM_ASM_PARSER macro to be a function-like macro with a *| +|* single parameter (the name of the target whose assembly can be *| +|* generated); including this file will then enumerate all of the *| +|* targets with assembly parsers. *| +|* *| +|* The set of targets supported by LLVM is generated at configuration *| +|* time, at which point this header is generated. Do not modify this *| +|* header directly. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_ASM_PARSER # error Please define the macro LLVM_ASM_PARSER(TargetName) diff --git a/include/llvm/Config/AsmPrinters.def.in b/include/llvm/Config/AsmPrinters.def.in index e1eb040612..f0152a4aa9 100644 --- a/include/llvm/Config/AsmPrinters.def.in +++ b/include/llvm/Config/AsmPrinters.def.in @@ -1,23 +1,24 @@ /*===- llvm/Config/AsmPrinters.def - LLVM Assembly Printers -----*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmPrinters.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file enumerates all of the assembly-language printers // -// supported by this build of LLVM. Clients of this file should define // -// the LLVM_ASM_PRINTER macro to be a function-like macro with a // -// single parameter (the name of the target whose assembly can be // -// generated); including this file will then enumerate all of the // -// targets with assembly printers. // -// // -// The set of targets supported by LLVM is generated at configuration // -// time, at which point this header is generated. Do not modify this // -// header directly. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file enumerates all of the assembly-language printers *| +|* supported by this build of LLVM. Clients of this file should define *| +|* the LLVM_ASM_PRINTER macro to be a function-like macro with a *| +|* single parameter (the name of the target whose assembly can be *| +|* generated); including this file will then enumerate all of the *| +|* targets with assembly printers. *| +|* *| +|* The set of targets supported by LLVM is generated at configuration *| +|* time, at which point this header is generated. Do not modify this *| +|* header directly. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_ASM_PRINTER # error Please define the macro LLVM_ASM_PRINTER(TargetName) diff --git a/include/llvm/Config/Disassemblers.def.in b/include/llvm/Config/Disassemblers.def.in index f6c512017f..d3a9bbdeae 100644 --- a/include/llvm/Config/Disassemblers.def.in +++ b/include/llvm/Config/Disassemblers.def.in @@ -1,23 +1,24 @@ /*===- llvm/Config/Disassemblers.def - LLVM Assembly Parsers ----*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassemblers.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file enumerates all of the assembly-language parsers // -// supported by this build of LLVM. Clients of this file should define // -// the LLVM_DISASSEMBLER macro to be a function-like macro with a // -// single parameter (the name of the target whose assembly can be // -// generated); including this file will then enumerate all of the // -// targets with assembly parsers. // -// // -// The set of targets supported by LLVM is generated at configuration // -// time, at which point this header is generated. Do not modify this // -// header directly. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file enumerates all of the assembly-language parsers *| +|* supported by this build of LLVM. Clients of this file should define *| +|* the LLVM_DISASSEMBLER macro to be a function-like macro with a *| +|* single parameter (the name of the target whose assembly can be *| +|* generated); including this file will then enumerate all of the *| +|* targets with assembly parsers. *| +|* *| +|* The set of targets supported by LLVM is generated at configuration *| +|* time, at which point this header is generated. Do not modify this *| +|* header directly. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_DISASSEMBLER # error Please define the macro LLVM_DISASSEMBLER(TargetName) diff --git a/include/llvm/Config/Targets.def.in b/include/llvm/Config/Targets.def.in index 321cc4f0cc..d589ecee12 100644 --- a/include/llvm/Config/Targets.def.in +++ b/include/llvm/Config/Targets.def.in @@ -1,12 +1,23 @@ /*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Targets.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file enumerates all of the target architectures supported by *| +|* this build of LLVM. Clients of this file should define the *| +|* LLVM_TARGET macro to be a function-like macro with a single *| +|* parameter (the name of the target); including this file will then *| +|* enumerate all of the targets. *| +|* *| +|* The set of targets supported by LLVM is generated at configuration *| +|* time, at which point this header is generated. Do not modify this *| +|* header directly. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_TARGET # error Please define the macro LLVM_TARGET(TargetName) diff --git a/include/llvm/Config/llvm-config.h.cmake b/include/llvm/Config/llvm-config.h.cmake index 45b416d19d..e0f30678c0 100644 --- a/include/llvm/Config/llvm-config.h.cmake +++ b/include/llvm/Config/llvm-config.h.cmake @@ -1,12 +1,11 @@ /*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/ -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-config.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ /* This file enumerates variables from the LLVM configuration so that they can be in exported headers and won't override package specific directives. diff --git a/include/llvm/Config/llvm-config.h.in b/include/llvm/Config/llvm-config.h.in index aa573919dd..2dd5d0af7b 100644 --- a/include/llvm/Config/llvm-config.h.in +++ b/include/llvm/Config/llvm-config.h.in @@ -1,12 +1,11 @@ /*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/ -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-config.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ /* This file enumerates variables from the LLVM configuration so that they can be in exported headers and won't override package specific directives. diff --git a/include/llvm/DebugInfo/DIContext.h b/include/llvm/DebugInfo/DIContext.h index 4567be0d64..871e60c56b 100644 --- a/include/llvm/DebugInfo/DIContext.h +++ b/include/llvm/DebugInfo/DIContext.h @@ -1,15 +1,16 @@ //===-- DIContext.h ---------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines DIContext, an abstract data structure that holds // -// debug information data. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines DIContext, an abstract data structure that holds +// debug information data. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_DICONTEXT_H #define LLVM_DEBUGINFO_DICONTEXT_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h b/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h index 1d90682880..6ab5d5ce6f 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h +++ b/include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h @@ -1,12 +1,11 @@ //===-- DWARFAbbreviationDeclaration.h --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFAbbreviationDeclaration.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H #define LLVM_LIB_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h b/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h index 1805615249..47dbf5fd4f 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h +++ b/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h @@ -1,12 +1,11 @@ //===--- DWARFAcceleratorTable.h --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFAcceleratorTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFACCELERATORTABLE_H #define LLVM_LIB_DEBUGINFO_DWARFACCELERATORTABLE_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h b/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h index 1329be2888..743f9c696e 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h +++ b/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h @@ -1,12 +1,11 @@ //===-- DWARFCompileUnit.h --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFCompileUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H #define LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFContext.h b/include/llvm/DebugInfo/DWARF/DWARFContext.h index c2e7b3e9fc..423c0d32f1 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFContext.h +++ b/include/llvm/DebugInfo/DWARF/DWARFContext.h @@ -1,12 +1,11 @@ //===-- DWARFContext.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===/ #ifndef LLVM_LIB_DEBUGINFO_DWARFCONTEXT_H #define LLVM_LIB_DEBUGINFO_DWARFCONTEXT_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h b/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h index a7da7db205..21142089da 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h @@ -1,12 +1,11 @@ //===-- DWARFDebugAbbrev.h --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugAbbrev.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGABBREV_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGABBREV_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h b/include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h index 10fd189859..837a8e6346 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h @@ -1,12 +1,11 @@ //===-- DWARFDebugArangeSet.h -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugArangeSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGARANGESET_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGARANGESET_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h b/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h index 029c0b83c3..791f010a88 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h @@ -1,12 +1,11 @@ //===-- DWARFDebugAranges.h -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugAranges.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGARANGES_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGARANGES_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h b/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h index 61879ec7e1..be925cbe75 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h @@ -1,12 +1,11 @@ //===-- DWARFDebugFrame.h - Parsing of .debug_frame -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugFrame.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGFRAME_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGFRAME_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h b/include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h index e006e8383f..f29d5fe9ec 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h @@ -1,12 +1,11 @@ //===-- DWARFDebugInfoEntry.h -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugInfoEntry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGINFOENTRY_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGINFOENTRY_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h b/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h index f3114d9348..93e7c790cc 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h @@ -1,12 +1,11 @@ //===-- DWARFDebugLine.h ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugLine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGLINE_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGLINE_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h b/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h index 9c7f400178..bd44c2e5aa 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h @@ -1,12 +1,11 @@ //===-- DWARFDebugLoc.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugLoc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGLOC_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGLOC_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h b/include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h index ae4b58c0e3..c930bd603d 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h @@ -1,12 +1,11 @@ //===-- DWARFDebugRangeList.h -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugRangeList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGRANGELIST_H #define LLVM_LIB_DEBUGINFO_DWARFDEBUGRANGELIST_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFFormValue.h b/include/llvm/DebugInfo/DWARF/DWARFFormValue.h index fcdfefd52e..7ddcc0d81d 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFFormValue.h +++ b/include/llvm/DebugInfo/DWARF/DWARFFormValue.h @@ -1,12 +1,11 @@ //===-- DWARFFormValue.h ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFFormValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_DWARFFORMVALUE_H #define LLVM_DEBUGINFO_DWARFFORMVALUE_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFRelocMap.h b/include/llvm/DebugInfo/DWARF/DWARFRelocMap.h index 7e393ae3b1..d7fe3032e5 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFRelocMap.h +++ b/include/llvm/DebugInfo/DWARF/DWARFRelocMap.h @@ -1,12 +1,11 @@ //===-- DWARFRelocMap.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFRelocMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFRELOCMAP_H #define LLVM_LIB_DEBUGINFO_DWARFRELOCMAP_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFSection.h b/include/llvm/DebugInfo/DWARF/DWARFSection.h index 3b55f6c0d4..3e27b529e9 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFSection.h +++ b/include/llvm/DebugInfo/DWARF/DWARFSection.h @@ -1,12 +1,11 @@ //===-- DWARFSection.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFSection.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFSECTION_H #define LLVM_LIB_DEBUGINFO_DWARFSECTION_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h b/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h index 4c64fc7d9c..f24e27819d 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h +++ b/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h @@ -1,12 +1,11 @@ //===-- DWARFTypeUnit.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFTypeUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H #define LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H diff --git a/include/llvm/DebugInfo/DWARF/DWARFUnit.h b/include/llvm/DebugInfo/DWARF/DWARFUnit.h index ae234fe784..5604b93f22 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFUnit.h +++ b/include/llvm/DebugInfo/DWARF/DWARFUnit.h @@ -1,12 +1,11 @@ //===-- DWARFUnit.h ---------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_DWARFUNIT_H #define LLVM_LIB_DEBUGINFO_DWARFUNIT_H diff --git a/include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h b/include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h index f55a2e1e6d..b5fa8c3341 100644 --- a/include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h +++ b/include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h @@ -1,12 +1,11 @@ //===- ConcreteSymbolEnumerator.h -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConcreteSymbolEnumerator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_CONCRETESYMBOLENUMERATOR_H #define LLVM_DEBUGINFO_PDB_CONCRETESYMBOLENUMERATOR_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIADataStream.h b/include/llvm/DebugInfo/PDB/DIA/DIADataStream.h index 4b9fc59f0e..7b2bc146b3 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIADataStream.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIADataStream.h @@ -1,12 +1,11 @@ //===- DIADataStream.h - DIA implementation of IPDBDataStream ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIADataStream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H #define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h b/include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h index 449123a6d0..375bcdd7e3 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h @@ -1,12 +1,11 @@ //==- DIAEnumDebugStreams.h - DIA Debug Stream Enumerator impl ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumDebugStreams.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMDEBUGSTREAMS_H #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMDEBUGSTREAMS_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h b/include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h index f2fd0c4e4f..4cc85eda47 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h @@ -1,12 +1,11 @@ //==- DIAEnumLineNumbers.h - DIA Line Number Enumerator impl -----*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumLineNumbers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMLINENUMBERS_H #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMLINENUMBERS_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h b/include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h index e73be6a87d..88625f64e4 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h @@ -1,12 +1,11 @@ //==- DIAEnumSourceFiles.h - DIA Source File Enumerator impl -----*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumSourceFiles.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMSOURCEFILES_H #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSOURCEFILES_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h b/include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h index aab920d6cb..fe343f778a 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h @@ -1,12 +1,11 @@ //==- DIAEnumSymbols.h - DIA Symbol Enumerator impl --------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumSymbols.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMSYMBOLS_H #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSYMBOLS_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h b/include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h index ba4fd50f71..5950a0d383 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h @@ -1,12 +1,11 @@ //===- DIALineNumber.h - DIA implementation of IPDBLineNumber ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIALineNumber.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIALINENUMBER_H #define LLVM_DEBUGINFO_PDB_DIA_DIALINENUMBER_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h b/include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h index 6a0c257652..9308b8e826 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h @@ -1,12 +1,11 @@ //===- DIARawSymbol.h - DIA implementation of IPDBRawSymbol ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIARawSymbol.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIARAWSYMBOL_H #define LLVM_DEBUGINFO_PDB_DIA_DIARAWSYMBOL_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIASession.h b/include/llvm/DebugInfo/PDB/DIA/DIASession.h index 133cfeb705..9a8600fb85 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIASession.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIASession.h @@ -1,12 +1,11 @@ //===- DIASession.h - DIA implementation of IPDBSession ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIASession.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H #define LLVM_DEBUGINFO_PDB_DIA_DIASESSION_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h b/include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h index 47c018cfc8..c424e27493 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h @@ -1,12 +1,11 @@ //===- DIASourceFile.h - DIA implementation of IPDBSourceFile ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIASourceFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASOURCEFILE_H #define LLVM_DEBUGINFO_PDB_DIA_DIASOURCEFILE_H diff --git a/include/llvm/DebugInfo/PDB/DIA/DIASupport.h b/include/llvm/DebugInfo/PDB/DIA/DIASupport.h index b424ce019a..407a34551c 100644 --- a/include/llvm/DebugInfo/PDB/DIA/DIASupport.h +++ b/include/llvm/DebugInfo/PDB/DIA/DIASupport.h @@ -1,16 +1,15 @@ //===- DIASupport.h - Common header includes for DIA ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIASupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Common defines and header includes for all LLVMDebugInfoPDBDIA. The // -// definitions here configure the necessary #defines and include system headers// -// in the proper order for using DIA. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Common defines and header includes for all LLVMDebugInfoPDBDIA. The +// definitions here configure the necessary #defines and include system headers +// in the proper order for using DIA. +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H #define LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H diff --git a/include/llvm/DebugInfo/PDB/IPDBDataStream.h b/include/llvm/DebugInfo/PDB/IPDBDataStream.h index 30addf2e06..808a0f3ec3 100644 --- a/include/llvm/DebugInfo/PDB/IPDBDataStream.h +++ b/include/llvm/DebugInfo/PDB/IPDBDataStream.h @@ -1,12 +1,11 @@ //===- IPDBDataStream.h - base interface for child enumerator -*- C++ ---*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBDataStream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBDATASTREAM_H #define LLVM_DEBUGINFO_PDB_IPDBDATASTREAM_H diff --git a/include/llvm/DebugInfo/PDB/IPDBEnumChildren.h b/include/llvm/DebugInfo/PDB/IPDBEnumChildren.h index 3b7a4fcb8e..645ac96e23 100644 --- a/include/llvm/DebugInfo/PDB/IPDBEnumChildren.h +++ b/include/llvm/DebugInfo/PDB/IPDBEnumChildren.h @@ -1,12 +1,11 @@ //===- IPDBEnumChildren.h - base interface for child enumerator -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBEnumChildren.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBENUMCHILDREN_H #define LLVM_DEBUGINFO_PDB_IPDBENUMCHILDREN_H diff --git a/include/llvm/DebugInfo/PDB/IPDBLineNumber.h b/include/llvm/DebugInfo/PDB/IPDBLineNumber.h index 51a50a9aea..92cd58d866 100644 --- a/include/llvm/DebugInfo/PDB/IPDBLineNumber.h +++ b/include/llvm/DebugInfo/PDB/IPDBLineNumber.h @@ -1,12 +1,11 @@ //===- IPDBLineNumber.h - base interface for PDB line no. info ---*- C++-*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBLineNumber.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBLINENUMBER_H #define LLVM_DEBUGINFO_PDB_IPDBLINENUMBER_H diff --git a/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h b/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h index 9754a95ae3..139bff56fd 100644 --- a/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h +++ b/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h @@ -1,12 +1,11 @@ //===- IPDBRawSymbol.h - base interface for PDB symbol types ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBRawSymbol.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBRAWSYMBOL_H #define LLVM_DEBUGINFO_PDB_IPDBRAWSYMBOL_H diff --git a/include/llvm/DebugInfo/PDB/IPDBSession.h b/include/llvm/DebugInfo/PDB/IPDBSession.h index 5a959632e3..a130a38a65 100644 --- a/include/llvm/DebugInfo/PDB/IPDBSession.h +++ b/include/llvm/DebugInfo/PDB/IPDBSession.h @@ -1,12 +1,11 @@ //===- IPDBSession.h - base interface for a PDB symbol context --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBSession.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBSESSION_H #define LLVM_DEBUGINFO_PDB_IPDBSESSION_H diff --git a/include/llvm/DebugInfo/PDB/IPDBSourceFile.h b/include/llvm/DebugInfo/PDB/IPDBSourceFile.h index 711e5faef6..55000eff02 100644 --- a/include/llvm/DebugInfo/PDB/IPDBSourceFile.h +++ b/include/llvm/DebugInfo/PDB/IPDBSourceFile.h @@ -1,12 +1,11 @@ //===- IPDBSourceFile.h - base interface for a PDB source file --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBSourceFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H #define LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H diff --git a/include/llvm/DebugInfo/PDB/PDB.h b/include/llvm/DebugInfo/PDB/PDB.h index 238614e862..5df3be85e3 100644 --- a/include/llvm/DebugInfo/PDB/PDB.h +++ b/include/llvm/DebugInfo/PDB/PDB.h @@ -1,12 +1,11 @@ //===- PDB.h - base header file for creating a PDB reader -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDB.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDB_H #define LLVM_DEBUGINFO_PDB_PDB_H diff --git a/include/llvm/DebugInfo/PDB/PDBContext.h b/include/llvm/DebugInfo/PDB/PDBContext.h index 3f3f329b68..2bb97463f9 100644 --- a/include/llvm/DebugInfo/PDB/PDBContext.h +++ b/include/llvm/DebugInfo/PDB/PDBContext.h @@ -1,12 +1,11 @@ //===-- PDBContext.h --------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===/ #ifndef LLVM_DEBUGINFO_PDB_PDBCONTEXT_H #define LLVM_DEBUGINFO_PDB_PDBCONTEXT_H diff --git a/include/llvm/DebugInfo/PDB/PDBExtras.h b/include/llvm/DebugInfo/PDB/PDBExtras.h index c82389f860..48ce1c1271 100644 --- a/include/llvm/DebugInfo/PDB/PDBExtras.h +++ b/include/llvm/DebugInfo/PDB/PDBExtras.h @@ -1,12 +1,11 @@ //===- PDBExtras.h - helper functions and classes for PDBs -------*- C++-*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBExtras.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBEXTRAS_H #define LLVM_DEBUGINFO_PDB_PDBEXTRAS_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymDumper.h b/include/llvm/DebugInfo/PDB/PDBSymDumper.h index a80892dc4e..65110f3936 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymDumper.h +++ b/include/llvm/DebugInfo/PDB/PDBSymDumper.h @@ -1,12 +1,11 @@ //===- PDBSymDumper.h - base interface for PDB symbol dumper *- C++ -----*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMDUMPER_H #define LLVM_DEBUGINFO_PDB_PDBSYMDUMPER_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbol.h b/include/llvm/DebugInfo/PDB/PDBSymbol.h index 001b1b1241..4360c5431e 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbol.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbol.h @@ -1,12 +1,11 @@ //===- PDBSymbol.h - base class for user-facing symbol types -----*- C++-*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbol.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_IPDBSYMBOL_H #define LLVM_DEBUGINFO_PDB_IPDBSYMBOL_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h b/include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h index b5055d3302..c055dd7f3d 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h @@ -1,12 +1,11 @@ //===- PDBSymbolAnnotation.h - Accessors for querying PDB annotations ---*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolAnnotation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLANNOTATION_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLANNOTATION_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolBlock.h b/include/llvm/DebugInfo/PDB/PDBSymbolBlock.h index d3994ade1c..2ca12501d9 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolBlock.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolBlock.h @@ -1,12 +1,11 @@ //===- PDBSymbolBlock.h - Accessors for querying PDB blocks -------------*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolBlock.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h b/include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h index 8294d868ac..f8c796ae5b 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h @@ -1,12 +1,11 @@ //===- PDBSymbolCompiland.h - Accessors for querying PDB compilands -----*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCompiland.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h index 0e48bed1c5..7f29d6bde9 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h @@ -1,12 +1,11 @@ //===- PDBSymbolCompilandDetails.h - PDB compiland details ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCompilandDetails.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDDETAILS_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDDETAILS_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h index 755f9b44ff..7e2ea9018e 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h @@ -1,12 +1,11 @@ //===- PDBSymbolCompilandEnv.h - compiland environment variables *- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCompilandEnv.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h b/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h index 307ddf947c..86bfd5707a 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolCustom.h @@ -1,12 +1,11 @@ //===- PDBSymbolCustom.h - compiler-specific types --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCustom.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolData.h b/include/llvm/DebugInfo/PDB/PDBSymbolData.h index 23d9f97b45..79cbbf0e16 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolData.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolData.h @@ -1,12 +1,11 @@ //===- PDBSymbolData.h - PDB data (e.g. variable) accessors -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolData.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolExe.h b/include/llvm/DebugInfo/PDB/PDBSymbolExe.h index d033019da3..7c5f302ad6 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolExe.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolExe.h @@ -1,12 +1,11 @@ //===- PDBSymbolExe.h - Accessors for querying executables in a PDB ----*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolExe.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolFunc.h b/include/llvm/DebugInfo/PDB/PDBSymbolFunc.h index 2fa098472a..9db41d5353 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolFunc.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolFunc.h @@ -1,12 +1,11 @@ //===- PDBSymbolFunc.h - class representing a function instance -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolFunc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h b/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h index ac56f923b8..34d551cda7 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h @@ -1,12 +1,11 @@ //===- PDBSymbolFuncDebugEnd.h - function end bounds info -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolFuncDebugEnd.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNCDEBUGEND_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNCDEBUGEND_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h b/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h index 5d9768f5ea..7671be480d 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h @@ -1,12 +1,11 @@ //===- PDBSymbolFuncDebugStart.h - function start bounds info ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolFuncDebugStart.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNCDEBUGSTART_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNCDEBUGSTART_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolLabel.h b/include/llvm/DebugInfo/PDB/PDBSymbolLabel.h index fa733a230b..9d9903a11b 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolLabel.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolLabel.h @@ -1,12 +1,11 @@ //===- PDBSymbolLabel.h - label info ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolLabel.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLLABEL_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLLABEL_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h b/include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h index f7c3e70664..70dfcb5ddf 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h @@ -1,12 +1,11 @@ //===- PDBSymbolPublicSymbol.h - public symbol info -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolPublicSymbol.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLPUBLICSYMBOL_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLPUBLICSYMBOL_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolThunk.h b/include/llvm/DebugInfo/PDB/PDBSymbolThunk.h index 8af4feb9a7..bd5a9b2aa8 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolThunk.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolThunk.h @@ -1,12 +1,11 @@ //===- PDBSymbolThunk.h - Support for querying PDB thunks ---------------*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolThunk.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h index fa4e6b04c1..513a9ec05f 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeArray.h - array type information ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeArray.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEARRAY_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEARRAY_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h index d82c07cffa..2a9a8a0788 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeBaseClass.h - base class type information ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeBaseClass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEBASECLASS_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEBASECLASS_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h index 536612edb2..69a2028a1b 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeBuiltin.h - builtin type information --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeBuiltin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEBUILTIN_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEBUILTIN_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h index f9c6d6cfb5..c41c48933e 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeCustom.h - custom compiler type information -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeCustom.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPECUSTOM_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPECUSTOM_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h index 998a9e6d10..3f22ed8d73 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeDimension.h - array dimension type info -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeDimension.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEDIMENSION_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEDIMENSION_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h index 3fb00abe97..3188c71191 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeEnum.h - enum type info ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeEnum.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEENUM_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEENUM_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h index 9e5269e624..4d393d7b6c 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeFriend.h - friend type info -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeFriend.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFRIEND_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFRIEND_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h index 0806e99357..14f79d99b6 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeFunctionArg.h - function arg type info ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeFunctionArg.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFUNCTIONARG_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFUNCTIONARG_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h index d81ece65a7..4bb4265a22 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeFunctionSig.h - function signature type info *- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeFunctionSig.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFUNCTIONSIG_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFUNCTIONSIG_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h index 9628cff9af..cbfcec82a6 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeManaged.h - managed type info ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeManaged.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEMANAGED_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEMANAGED_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h index 8714e19b86..33578bad02 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypePointer.h - pointer type info ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypePointer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEPOINTER_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEPOINTER_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h index 216726ce4a..5ad83bb1ec 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeTypedef.h - typedef type info ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeTypedef.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPETYPEDEF_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPETYPEDEF_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h index e2dcc356ab..99cc307a83 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeUDT.h - UDT type info -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeUDT.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEUDT_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEUDT_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h index 79411c68bd..6efc549f0c 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeVTable.h - VTable type info -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeVTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEVTABLE_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEVTABLE_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h b/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h index 547e479cc6..f407595a4c 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h @@ -1,12 +1,11 @@ //===- PDBSymbolTypeVTableShape.h - VTable shape info -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeVTableShape.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEVTABLESHAPE_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEVTABLESHAPE_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h b/include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h index d04a81b524..94bd2c1407 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h @@ -1,12 +1,11 @@ //===- PDBSymbolUnknown.h - unknown symbol type -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolUnknown.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H diff --git a/include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h b/include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h index 12687d5cf1..7072f342be 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h @@ -1,12 +1,11 @@ //===- PDBSymbolUsingNamespace.h - using namespace info ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolUsingNamespace.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLUSINGNAMESPACE_H #define LLVM_DEBUGINFO_PDB_PDBSYMBOLUSINGNAMESPACE_H diff --git a/include/llvm/DebugInfo/PDB/PDBTypes.h b/include/llvm/DebugInfo/PDB/PDBTypes.h index 379bd5f8a0..7eaf958db4 100644 --- a/include/llvm/DebugInfo/PDB/PDBTypes.h +++ b/include/llvm/DebugInfo/PDB/PDBTypes.h @@ -1,12 +1,11 @@ //===- PDBTypes.h - Defines enums for various fields contained in PDB ---*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_DEBUGINFO_PDB_PDBTYPES_H #define LLVM_DEBUGINFO_PDB_PDBTYPES_H diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 2a34023b20..821c0181ce 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -1,15 +1,16 @@ //===- ExecutionEngine.h - Abstract Execution Engine Interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionEngine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the abstract interface that implements execution support// -// for LLVM. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the abstract interface that implements execution support +// for LLVM. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_EXECUTIONENGINE_H #define LLVM_EXECUTIONENGINE_EXECUTIONENGINE_H diff --git a/include/llvm/ExecutionEngine/GenericValue.h b/include/llvm/ExecutionEngine/GenericValue.h index 49a327dbab..0e92f79eba 100644 --- a/include/llvm/ExecutionEngine/GenericValue.h +++ b/include/llvm/ExecutionEngine/GenericValue.h @@ -1,14 +1,15 @@ //===-- GenericValue.h - Represent any type of LLVM value -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GenericValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The GenericValue class is used to represent an LLVM value of arbitrary type.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The GenericValue class is used to represent an LLVM value of arbitrary type. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_GENERICVALUE_H diff --git a/include/llvm/ExecutionEngine/Interpreter.h b/include/llvm/ExecutionEngine/Interpreter.h index db880af384..f49d0c487f 100644 --- a/include/llvm/ExecutionEngine/Interpreter.h +++ b/include/llvm/ExecutionEngine/Interpreter.h @@ -1,15 +1,16 @@ //===-- Interpreter.h - Abstract Execution Engine Interface -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Interpreter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file forces the interpreter to link in on certain operating systems. // -// (Windows). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file forces the interpreter to link in on certain operating systems. +// (Windows). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_INTERPRETER_H #define LLVM_EXECUTIONENGINE_INTERPRETER_H diff --git a/include/llvm/ExecutionEngine/JITEventListener.h b/include/llvm/ExecutionEngine/JITEventListener.h index bad2a99850..c3edec8687 100644 --- a/include/llvm/ExecutionEngine/JITEventListener.h +++ b/include/llvm/ExecutionEngine/JITEventListener.h @@ -1,15 +1,16 @@ //===- JITEventListener.h - Exposes events from JIT compilation -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// JITEventListener.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the JITEventListener interface, which lets users get // -// callbacks when significant events happen during the JIT compilation process.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the JITEventListener interface, which lets users get +// callbacks when significant events happen during the JIT compilation process. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H #define LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H diff --git a/include/llvm/ExecutionEngine/JITSymbolFlags.h b/include/llvm/ExecutionEngine/JITSymbolFlags.h index be79f3fe96..450e9481fa 100644 --- a/include/llvm/ExecutionEngine/JITSymbolFlags.h +++ b/include/llvm/ExecutionEngine/JITSymbolFlags.h @@ -1,14 +1,15 @@ //===------ JITSymbolFlags.h - Flags for symbols in the JIT -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// JITSymbolFlags.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Symbol flags for symbols in the JIT (e.g. weak, exported). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Symbol flags for symbols in the JIT (e.g. weak, exported). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_JITSYMBOLFLAGS_H #define LLVM_EXECUTIONENGINE_JITSYMBOLFLAGS_H diff --git a/include/llvm/ExecutionEngine/MCJIT.h b/include/llvm/ExecutionEngine/MCJIT.h index 440c610b6a..66ddb7cdb8 100644 --- a/include/llvm/ExecutionEngine/MCJIT.h +++ b/include/llvm/ExecutionEngine/MCJIT.h @@ -1,15 +1,16 @@ //===-- MCJIT.h - MC-Based Just-In-Time Execution Engine --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCJIT.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file forces the MCJIT to link in on certain operating systems. // -// (Windows). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file forces the MCJIT to link in on certain operating systems. +// (Windows). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_MCJIT_H #define LLVM_EXECUTIONENGINE_MCJIT_H diff --git a/include/llvm/ExecutionEngine/OProfileWrapper.h b/include/llvm/ExecutionEngine/OProfileWrapper.h index 0f823584d5..05da594a94 100644 --- a/include/llvm/ExecutionEngine/OProfileWrapper.h +++ b/include/llvm/ExecutionEngine/OProfileWrapper.h @@ -1,21 +1,21 @@ //===-- OProfileWrapper.h - OProfile JIT API Wrapper ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OProfileWrapper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a OProfileWrapper object that detects if the oprofile // -// daemon is running, and provides wrappers for opagent functions used to // -// communicate with the oprofile JIT interface. The dynamic library libopagent// -// does not need to be linked directly as this object lazily loads the library// -// when the first op_ function is called. // // -// See http://oprofile.sourceforge.net/doc/devel/jit-interface.html for the // -// definition of the interface. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file defines a OProfileWrapper object that detects if the oprofile +// daemon is running, and provides wrappers for opagent functions used to +// communicate with the oprofile JIT interface. The dynamic library libopagent +// does not need to be linked directly as this object lazily loads the library +// when the first op_ function is called. +// +// See http://oprofile.sourceforge.net/doc/devel/jit-interface.html for the +// definition of the interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_OPROFILEWRAPPER_H #define LLVM_EXECUTIONENGINE_OPROFILEWRAPPER_H diff --git a/include/llvm/ExecutionEngine/ObjectCache.h b/include/llvm/ExecutionEngine/ObjectCache.h index bbf4234771..cc01a4e589 100644 --- a/include/llvm/ExecutionEngine/ObjectCache.h +++ b/include/llvm/ExecutionEngine/ObjectCache.h @@ -1,12 +1,11 @@ //===-- ObjectCache.h - Class definition for the ObjectCache -----C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectCache.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_OBJECTCACHE_H #define LLVM_EXECUTIONENGINE_OBJECTCACHE_H diff --git a/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h b/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h index 7cd49e4291..b07561152e 100644 --- a/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h +++ b/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h @@ -1,15 +1,16 @@ //===- ObjectMemoryBuffer.h - SmallVector-backed MemoryBuffrer -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectMemoryBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares a wrapper class to hold the memory into which an // -// object will be generated. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares a wrapper class to hold the memory into which an +// object will be generated. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H #define LLVM_EXECUTIONENGINE_OBJECTMEMORYBUFFER_H diff --git a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index b82ad9a547..9694b80d19 100644 --- a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h +++ b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h @@ -1,15 +1,16 @@ //===- CompileOnDemandLayer.h - Compile each function on demand -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompileOnDemandLayer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// JIT layer for breaking up modules and inserting callbacks to allow // -// individual functions to be compiled on demand. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// JIT layer for breaking up modules and inserting callbacks to allow +// individual functions to be compiled on demand. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_COMPILEONDEMANDLAYER_H #define LLVM_EXECUTIONENGINE_ORC_COMPILEONDEMANDLAYER_H diff --git a/include/llvm/ExecutionEngine/Orc/CompileUtils.h b/include/llvm/ExecutionEngine/Orc/CompileUtils.h index 643f9e1251..49a1fbadb2 100644 --- a/include/llvm/ExecutionEngine/Orc/CompileUtils.h +++ b/include/llvm/ExecutionEngine/Orc/CompileUtils.h @@ -1,14 +1,15 @@ //===-- CompileUtils.h - Utilities for compiling IR in the JIT --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompileUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Contains utilities for compiling IR to object files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Contains utilities for compiling IR to object files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_COMPILEUTILS_H #define LLVM_EXECUTIONENGINE_ORC_COMPILEUTILS_H diff --git a/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h b/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h index 84716cd290..c10508cc8a 100644 --- a/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h +++ b/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h @@ -1,14 +1,15 @@ //===-- ExecutionUtils.h - Utilities for executing code in Orc --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Contains utilities for executing code in Orc. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Contains utilities for executing code in Orc. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_EXECUTIONUTILS_H #define LLVM_EXECUTIONENGINE_ORC_EXECUTIONUTILS_H diff --git a/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h b/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h index 18495c3c8c..6379022007 100644 --- a/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h +++ b/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h @@ -1,14 +1,15 @@ //===------ IRCompileLayer.h -- Eagerly compile IR for JIT ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRCompileLayer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Contains the definition for a basic, eagerly compiling layer of the JIT. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Contains the definition for a basic, eagerly compiling layer of the JIT. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_IRCOMPILELAYER_H #define LLVM_EXECUTIONENGINE_ORC_IRCOMPILELAYER_H diff --git a/include/llvm/ExecutionEngine/Orc/IRTransformLayer.h b/include/llvm/ExecutionEngine/Orc/IRTransformLayer.h index eb6c9d4cdd..4dabb9a414 100644 --- a/include/llvm/ExecutionEngine/Orc/IRTransformLayer.h +++ b/include/llvm/ExecutionEngine/Orc/IRTransformLayer.h @@ -1,14 +1,15 @@ //===----- IRTransformLayer.h - Run all IR through a functor ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRTransformLayer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Run all IR passed in through a user supplied functor. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Run all IR passed in through a user supplied functor. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_IRTRANSFORMLAYER_H #define LLVM_EXECUTIONENGINE_ORC_IRTRANSFORMLAYER_H diff --git a/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h b/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h index 02002d1dab..4b7fc5e84b 100644 --- a/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h +++ b/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h @@ -1,14 +1,15 @@ //===-- IndirectionUtils.h - Utilities for adding indirections --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndirectionUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Contains utilities for adding indirections and breaking up modules. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Contains utilities for adding indirections and breaking up modules. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_INDIRECTIONUTILS_H #define LLVM_EXECUTIONENGINE_ORC_INDIRECTIONUTILS_H diff --git a/include/llvm/ExecutionEngine/Orc/JITSymbol.h b/include/llvm/ExecutionEngine/Orc/JITSymbol.h index 1bde0a11ff..422a376183 100644 --- a/include/llvm/ExecutionEngine/Orc/JITSymbol.h +++ b/include/llvm/ExecutionEngine/Orc/JITSymbol.h @@ -1,14 +1,15 @@ //===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// JITSymbol.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Abstraction for target process addresses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Abstraction for target process addresses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H #define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H diff --git a/include/llvm/ExecutionEngine/Orc/LambdaResolver.h b/include/llvm/ExecutionEngine/Orc/LambdaResolver.h index 3ad63720ef..faa2365852 100644 --- a/include/llvm/ExecutionEngine/Orc/LambdaResolver.h +++ b/include/llvm/ExecutionEngine/Orc/LambdaResolver.h @@ -1,15 +1,16 @@ //===-- LambdaResolverMM - Redirect symbol lookup via a functor -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LambdaResolver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines a RuntimeDyld::SymbolResolver subclass that uses a user-supplied// -// functor for symbol resolution. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines a RuntimeDyld::SymbolResolver subclass that uses a user-supplied +// functor for symbol resolution. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H #define LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H diff --git a/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h b/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h index ed4a1cb80b..93ba02b387 100644 --- a/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h +++ b/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h @@ -1,14 +1,15 @@ //===- LazyEmittingLayer.h - Lazily emit IR to lower JIT layers -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LazyEmittingLayer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Contains the definition for a lazy-emitting layer for the JIT. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Contains the definition for a lazy-emitting layer for the JIT. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_LAZYEMITTINGLAYER_H #define LLVM_EXECUTIONENGINE_ORC_LAZYEMITTINGLAYER_H diff --git a/include/llvm/ExecutionEngine/Orc/LogicalDylib.h b/include/llvm/ExecutionEngine/Orc/LogicalDylib.h index 959662f2d3..28700ef347 100644 --- a/include/llvm/ExecutionEngine/Orc/LogicalDylib.h +++ b/include/llvm/ExecutionEngine/Orc/LogicalDylib.h @@ -1,14 +1,15 @@ //===--- LogicalDylib.h - Simulates dylib-style symbol lookup ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LogicalDylib.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Simulates symbol resolution inside a dylib. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Simulates symbol resolution inside a dylib. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_LOGICALDYLIB_H #define LLVM_EXECUTIONENGINE_ORC_LOGICALDYLIB_H diff --git a/include/llvm/ExecutionEngine/Orc/NullResolver.h b/include/llvm/ExecutionEngine/Orc/NullResolver.h index dab92d2a5a..1560c6d86e 100644 --- a/include/llvm/ExecutionEngine/Orc/NullResolver.h +++ b/include/llvm/ExecutionEngine/Orc/NullResolver.h @@ -1,15 +1,16 @@ //===------ NullResolver.h - Reject symbol lookup requests ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NullResolver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol // -// resolution requests, for clients that have no cross-object fixups. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol +// resolution requests, for clients that have no cross-object fixups. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H #define LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H diff --git a/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h b/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h index 715d541e85..f3094dafae 100644 --- a/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h +++ b/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h @@ -1,14 +1,15 @@ //===- ObjectLinkingLayer.h - Add object files to a JIT process -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectLinkingLayer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Contains the definition for the object layer of the JIT. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Contains the definition for the object layer of the JIT. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_OBJECTLINKINGLAYER_H #define LLVM_EXECUTIONENGINE_ORC_OBJECTLINKINGLAYER_H diff --git a/include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h b/include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h index 05f3a8780f..7af6620854 100644 --- a/include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h +++ b/include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h @@ -1,14 +1,15 @@ //===- ObjectTransformLayer.h - Run all objects through functor -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectTransformLayer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Run all objects passed in through a user supplied functor. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Run all objects passed in through a user supplied functor. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_OBJECTTRANSFORMLAYER_H #define LLVM_EXECUTIONENGINE_ORC_OBJECTTRANSFORMLAYER_H diff --git a/include/llvm/ExecutionEngine/Orc/OrcTargetSupport.h b/include/llvm/ExecutionEngine/Orc/OrcTargetSupport.h index 02ea2f0c08..309f5a9609 100644 --- a/include/llvm/ExecutionEngine/Orc/OrcTargetSupport.h +++ b/include/llvm/ExecutionEngine/Orc/OrcTargetSupport.h @@ -1,14 +1,15 @@ //===-- OrcTargetSupport.h - Code to support specific targets --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcTargetSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Target specific code for Orc, e.g. callback assembly. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Target specific code for Orc, e.g. callback assembly. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORC_ORCTARGETSUPPORT_H #define LLVM_EXECUTIONENGINE_ORC_ORCTARGETSUPPORT_H diff --git a/include/llvm/ExecutionEngine/OrcMCJITReplacement.h b/include/llvm/ExecutionEngine/OrcMCJITReplacement.h index b637b558ab..4cd5648b2f 100644 --- a/include/llvm/ExecutionEngine/OrcMCJITReplacement.h +++ b/include/llvm/ExecutionEngine/OrcMCJITReplacement.h @@ -1,15 +1,16 @@ //===---- OrcMCJITReplacement.h - Orc-based MCJIT replacement ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcMCJITReplacement.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file forces OrcMCJITReplacement to link in on certain operating systems.// -// (Windows). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file forces OrcMCJITReplacement to link in on certain operating systems. +// (Windows). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_ORCMCJITREPLACEMENT_H #define LLVM_EXECUTIONENGINE_ORCMCJITREPLACEMENT_H diff --git a/include/llvm/ExecutionEngine/RTDyldMemoryManager.h b/include/llvm/ExecutionEngine/RTDyldMemoryManager.h index 7358ec03f4..207bad06c2 100644 --- a/include/llvm/ExecutionEngine/RTDyldMemoryManager.h +++ b/include/llvm/ExecutionEngine/RTDyldMemoryManager.h @@ -1,14 +1,15 @@ //===-- RTDyldMemoryManager.cpp - Memory manager for MC-JIT -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RTDyldMemoryManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Interface of the runtime dynamic memory manager base class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Interface of the runtime dynamic memory manager base class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_RTDYLDMEMORYMANAGER_H #define LLVM_EXECUTIONENGINE_RTDYLDMEMORYMANAGER_H diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h index 78e822714b..a808d92311 100644 --- a/include/llvm/ExecutionEngine/RuntimeDyld.h +++ b/include/llvm/ExecutionEngine/RuntimeDyld.h @@ -1,14 +1,15 @@ //===-- RuntimeDyld.h - Run-time dynamic linker for MC-JIT ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyld.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Interface for the runtime dynamic linker facilities of the MC-JIT. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Interface for the runtime dynamic linker facilities of the MC-JIT. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_RUNTIMEDYLD_H #define LLVM_EXECUTIONENGINE_RUNTIMEDYLD_H diff --git a/include/llvm/ExecutionEngine/RuntimeDyldChecker.h b/include/llvm/ExecutionEngine/RuntimeDyldChecker.h index 10eaf1445d..31ce151c56 100644 --- a/include/llvm/ExecutionEngine/RuntimeDyldChecker.h +++ b/include/llvm/ExecutionEngine/RuntimeDyldChecker.h @@ -1,12 +1,11 @@ //===---- RuntimeDyldChecker.h - RuntimeDyld tester framework -----*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldChecker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_RUNTIMEDYLDCHECKER_H #define LLVM_EXECUTIONENGINE_RUNTIMEDYLDCHECKER_H diff --git a/include/llvm/ExecutionEngine/SectionMemoryManager.h b/include/llvm/ExecutionEngine/SectionMemoryManager.h index 100cec10e0..0b0dcb021f 100644 --- a/include/llvm/ExecutionEngine/SectionMemoryManager.h +++ b/include/llvm/ExecutionEngine/SectionMemoryManager.h @@ -1,15 +1,16 @@ //===- SectionMemoryManager.h - Memory manager for MCJIT/RtDyld -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SectionMemoryManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of a section-based memory manager used by// -// the MCJIT execution engine and RuntimeDyld. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of a section-based memory manager used by +// the MCJIT execution engine and RuntimeDyld. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_SECTIONMEMORYMANAGER_H #define LLVM_EXECUTIONENGINE_SECTIONMEMORYMANAGER_H diff --git a/include/llvm/IR/Argument.h b/include/llvm/IR/Argument.h index c580aec254..fc04fe71cb 100644 --- a/include/llvm/IR/Argument.h +++ b/include/llvm/IR/Argument.h @@ -1,14 +1,15 @@ //===-- llvm/Argument.h - Definition of the Argument class ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Argument.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the Argument class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the Argument class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_ARGUMENT_H #define LLVM_IR_ARGUMENT_H diff --git a/include/llvm/IR/AssemblyAnnotationWriter.h b/include/llvm/IR/AssemblyAnnotationWriter.h index b7ccb6ba2f..19e32a2dcd 100644 --- a/include/llvm/IR/AssemblyAnnotationWriter.h +++ b/include/llvm/IR/AssemblyAnnotationWriter.h @@ -1,17 +1,18 @@ //===-- AssemblyAnnotationWriter.h - Annotation .ll files -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AssemblyAnnotationWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Clients of the assembly writer can use this interface to add their own // -// special-purpose annotations to LLVM assembly language printouts. Note that// -// the assembly parser won't be able to parse these, in general, so // -// implementations are advised to print stuff as LLVM comments. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Clients of the assembly writer can use this interface to add their own +// special-purpose annotations to LLVM assembly language printouts. Note that +// the assembly parser won't be able to parse these, in general, so +// implementations are advised to print stuff as LLVM comments. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_ASSEMBLYANNOTATIONWRITER_H #define LLVM_IR_ASSEMBLYANNOTATIONWRITER_H diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index c4b62a25a9..8c5aa57e29 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -1,15 +1,15 @@ //===-- llvm/Attributes.h - Container for Attributes ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Attributes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file contains the simple types necessary to represent the // -/// attributes associated with functions and their calls. // +/// \file +/// \brief This file contains the simple types necessary to represent the +/// attributes associated with functions and their calls. /// //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/AutoUpgrade.h b/include/llvm/IR/AutoUpgrade.h index d3fae0b856..a4b3c410c4 100644 --- a/include/llvm/IR/AutoUpgrade.h +++ b/include/llvm/IR/AutoUpgrade.h @@ -1,14 +1,15 @@ //===- AutoUpgrade.h - AutoUpgrade Helpers ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AutoUpgrade.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These functions are implemented by lib/IR/AutoUpgrade.cpp. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These functions are implemented by lib/IR/AutoUpgrade.cpp. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_AUTOUPGRADE_H #define LLVM_IR_AUTOUPGRADE_H diff --git a/include/llvm/IR/BasicBlock.h b/include/llvm/IR/BasicBlock.h index e8d69ae8ce..66581bfedb 100644 --- a/include/llvm/IR/BasicBlock.h +++ b/include/llvm/IR/BasicBlock.h @@ -1,14 +1,15 @@ //===-- llvm/BasicBlock.h - Represent a basic block in the VM ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicBlock.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the BasicBlock class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the BasicBlock class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_BASICBLOCK_H #define LLVM_IR_BASICBLOCK_H diff --git a/include/llvm/IR/CFG.h b/include/llvm/IR/CFG.h index 935e54f184..0e4e6a9dc8 100644 --- a/include/llvm/IR/CFG.h +++ b/include/llvm/IR/CFG.h @@ -1,13 +1,14 @@ //===- CFG.h - Process LLVM structures as graphs ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFG.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines specializations of GraphTraits that allow Function and // -// BasicBlock graphs to be treated as proper graphs for generic algorithms. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines specializations of GraphTraits that allow Function and +// BasicBlock graphs to be treated as proper graphs for generic algorithms. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/CMakeLists.txt b/include/llvm/IR/CMakeLists.txt index 049fd9906f..dd8e04f151 100644 --- a/include/llvm/IR/CMakeLists.txt +++ b/include/llvm/IR/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_TARGET_DEFINITIONS Intrinsics.td) tablegen(LLVM Intrinsics.gen -gen-intrinsic) diff --git a/include/llvm/IR/CallSite.h b/include/llvm/IR/CallSite.h index 663e196d52..2841781e8a 100644 --- a/include/llvm/IR/CallSite.h +++ b/include/llvm/IR/CallSite.h @@ -1,26 +1,27 @@ //===- CallSite.h - Abstract Call & Invoke instrs ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallSite.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CallSite class, which is a handy wrapper for code that// -// wants to treat Call and Invoke instructions in a generic way. When in non-// -// mutation context (e.g. an analysis) ImmutableCallSite should be used. // -// Finally, when some degree of customization is necessary between these two // -// extremes, CallSiteBase<> can be supplied with fine-tuned parameters. // // -// NOTE: These classes are supposed to have "value semantics". So they should be// -// passed by value, not by reference; they should not be "new"ed or "delete"d.// -// They are efficiently copyable, assignable and constructable, with cost // -// equivalent to copying a pointer (notice that they have only a single data // -// member). The internal representation carries a flag which indicates which of// -// the two variants is enclosed. This allows for cheaper checks when various // -// accessors of CallSite are employed. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CallSite class, which is a handy wrapper for code that +// wants to treat Call and Invoke instructions in a generic way. When in non- +// mutation context (e.g. an analysis) ImmutableCallSite should be used. +// Finally, when some degree of customization is necessary between these two +// extremes, CallSiteBase<> can be supplied with fine-tuned parameters. +// +// NOTE: These classes are supposed to have "value semantics". So they should be +// passed by value, not by reference; they should not be "new"ed or "delete"d. +// They are efficiently copyable, assignable and constructable, with cost +// equivalent to copying a pointer (notice that they have only a single data +// member). The internal representation carries a flag which indicates which of +// the two variants is enclosed. This allows for cheaper checks when various +// accessors of CallSite are employed. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_CALLSITE_H #define LLVM_IR_CALLSITE_H diff --git a/include/llvm/IR/CallingConv.h b/include/llvm/IR/CallingConv.h index 8a76e3b4d7..9872e6ec79 100644 --- a/include/llvm/IR/CallingConv.h +++ b/include/llvm/IR/CallingConv.h @@ -1,14 +1,15 @@ //===-- llvm/CallingConv.h - LLVM Calling Conventions -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallingConv.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines LLVM's set of calling conventions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines LLVM's set of calling conventions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_CALLINGCONV_H #define LLVM_IR_CALLINGCONV_H diff --git a/include/llvm/IR/Comdat.h b/include/llvm/IR/Comdat.h index 5ab8cdabf7..4d4c15fb68 100644 --- a/include/llvm/IR/Comdat.h +++ b/include/llvm/IR/Comdat.h @@ -1,16 +1,17 @@ //===-- llvm/IR/Comdat.h - Comdat definitions -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Comdat.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// @file // -/// This file contains the declaration of the Comdat class, which represents a// -/// single COMDAT in LLVM. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// @file +/// This file contains the declaration of the Comdat class, which represents a +/// single COMDAT in LLVM. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_COMDAT_H #define LLVM_IR_COMDAT_H diff --git a/include/llvm/IR/Constant.h b/include/llvm/IR/Constant.h index 849f1fbe7f..019b4343a1 100644 --- a/include/llvm/IR/Constant.h +++ b/include/llvm/IR/Constant.h @@ -1,14 +1,15 @@ //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Constant.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the Constant class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the Constant class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_CONSTANT_H #define LLVM_IR_CONSTANT_H diff --git a/include/llvm/IR/ConstantFolder.h b/include/llvm/IR/ConstantFolder.h index a1816c54e1..fb6ca3b318 100644 --- a/include/llvm/IR/ConstantFolder.h +++ b/include/llvm/IR/ConstantFolder.h @@ -1,17 +1,18 @@ //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantFolder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ConstantFolder class, a helper for IRBuilder. // -// It provides IRBuilder with a set of methods for creating constants // -// with minimal folding. For general constant creation and folding, // -// use ConstantExpr and the routines in llvm/Analysis/ConstantFolding.h. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ConstantFolder class, a helper for IRBuilder. +// It provides IRBuilder with a set of methods for creating constants +// with minimal folding. For general constant creation and folding, +// use ConstantExpr and the routines in llvm/Analysis/ConstantFolding.h. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_CONSTANTFOLDER_H #define LLVM_IR_CONSTANTFOLDER_H diff --git a/include/llvm/IR/ConstantRange.h b/include/llvm/IR/ConstantRange.h index 6b32c647a7..9ded3ca36a 100644 --- a/include/llvm/IR/ConstantRange.h +++ b/include/llvm/IR/ConstantRange.h @@ -1,32 +1,33 @@ //===- ConstantRange.h - Represent a range ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantRange.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Represent a range of possible values that may occur when the program is run// -// for an integral value. This keeps track of a lower and upper bound for the// -// constant, which MAY wrap around the end of the numeric range. To do this, it// -// keeps track of a [lower, upper) bound, which specifies an interval just like// -// STL iterators. When used with boolean values, the following are important// -// ranges: : // // -// [F, F) = {} = Empty set // -// [T, F) = {T} // -// [F, T) = {F} // -// [T, T) = {F, T} = Full set // +// The LLVM Compiler Infrastructure // -// The other integral ranges use min/max values for special range values. For// -// example, for 8-bit types, it uses: // -// [0, 0) = {} = Empty set // -// [255, 255) = {0..255} = Full Set // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// Note that ConstantRange can be used to represent either signed or // -// unsigned ranges. // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// Represent a range of possible values that may occur when the program is run +// for an integral value. This keeps track of a lower and upper bound for the +// constant, which MAY wrap around the end of the numeric range. To do this, it +// keeps track of a [lower, upper) bound, which specifies an interval just like +// STL iterators. When used with boolean values, the following are important +// ranges: : +// +// [F, F) = {} = Empty set +// [T, F) = {T} +// [F, T) = {F} +// [T, T) = {F, T} = Full set +// +// The other integral ranges use min/max values for special range values. For +// example, for 8-bit types, it uses: +// [0, 0) = {} = Empty set +// [255, 255) = {0..255} = Full Set +// +// Note that ConstantRange can be used to represent either signed or +// unsigned ranges. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_CONSTANTRANGE_H #define LLVM_IR_CONSTANTRANGE_H diff --git a/include/llvm/IR/Constants.h b/include/llvm/IR/Constants.h index db5dade12f..134c98d38a 100644 --- a/include/llvm/IR/Constants.h +++ b/include/llvm/IR/Constants.h @@ -1,19 +1,20 @@ //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Constants.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// @file // -/// This file contains the declarations for the subclasses of Constant, // -/// which represent the different flavors of constant values that live in LLVM.// -/// Note that Constants are immutable (once created they never change) and are// -/// fully shared by structural equivalence. This means that two structurally// -/// equivalent constants will always have the same address. Constants are // -/// created on demand as needed and never deleted: thus clients don't have to// -/// worry about the lifetime of the objects. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// @file +/// This file contains the declarations for the subclasses of Constant, +/// which represent the different flavors of constant values that live in LLVM. +/// Note that Constants are immutable (once created they never change) and are +/// fully shared by structural equivalence. This means that two structurally +/// equivalent constants will always have the same address. Constants are +/// created on demand as needed and never deleted: thus clients don't have to +/// worry about the lifetime of the objects. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/DIBuilder.h b/include/llvm/IR/DIBuilder.h index 0755943efe..aa43c02d5c 100644 --- a/include/llvm/IR/DIBuilder.h +++ b/include/llvm/IR/DIBuilder.h @@ -1,15 +1,16 @@ //===- DIBuilder.h - Debug Information Builder ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a DIBuilder that is useful for creating debugging // -// information entries in LLVM IR form. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a DIBuilder that is useful for creating debugging +// information entries in LLVM IR form. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DIBUILDER_H #define LLVM_IR_DIBUILDER_H diff --git a/include/llvm/IR/DataLayout.h b/include/llvm/IR/DataLayout.h index f253ad4337..0d9bc2f5c2 100644 --- a/include/llvm/IR/DataLayout.h +++ b/include/llvm/IR/DataLayout.h @@ -1,20 +1,21 @@ //===--------- llvm/DataLayout.h - Data size & alignment info ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataLayout.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines layout properties related to datatype size/offset/alignment// -// information. It uses lazy annotations to cache information about how // -// structure types are laid out and used. // // -// This structure should be created once, filled in if the defaults are not // -// correct and then passed around by const&. None of the members functions // -// require modification to the object. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines layout properties related to datatype size/offset/alignment +// information. It uses lazy annotations to cache information about how +// structure types are laid out and used. +// +// This structure should be created once, filled in if the defaults are not +// correct and then passed around by const&. None of the members functions +// require modification to the object. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DATALAYOUT_H #define LLVM_IR_DATALAYOUT_H diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h index 64cc9a863f..7d03673844 100644 --- a/include/llvm/IR/DebugInfo.h +++ b/include/llvm/IR/DebugInfo.h @@ -1,17 +1,18 @@ //===- DebugInfo.h - Debug Information Helpers ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a bunch of datatypes that are useful for creating and // -// walking debug info in LLVM IR form. They essentially provide wrappers around// -// the information in the global variables that's needed when constructing the// -// DWARF information. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a bunch of datatypes that are useful for creating and +// walking debug info in LLVM IR form. They essentially provide wrappers around +// the information in the global variables that's needed when constructing the +// DWARF information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DEBUGINFO_H #define LLVM_IR_DEBUGINFO_H diff --git a/include/llvm/IR/DebugInfoFlags.def b/include/llvm/IR/DebugInfoFlags.def index e200be1e48..e4ae827246 100644 --- a/include/llvm/IR/DebugInfoFlags.def +++ b/include/llvm/IR/DebugInfoFlags.def @@ -1,15 +1,15 @@ //===- llvm/IR/DebugInfoFlags.def - Debug info flag definitions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugInfoFlags.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Macros for running through debug info flags. // -// // -/////////////////////////////////////////////////////////////////////////////// -// TODO: Add other DW-based macros. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Macros for running through debug info flags. +// +//===----------------------------------------------------------------------===// #ifndef HANDLE_DI_FLAG #error "Missing macro definition of HANDLE_DI_FLAG" diff --git a/include/llvm/IR/DebugInfoMetadata.h b/include/llvm/IR/DebugInfoMetadata.h index 998c95e76b..9c5a95721d 100644 --- a/include/llvm/IR/DebugInfoMetadata.h +++ b/include/llvm/IR/DebugInfoMetadata.h @@ -1,14 +1,15 @@ //===- llvm/IR/DebugInfoMetadata.h - Debug info metadata --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugInfoMetadata.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Declarations for metadata specific to debug info. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Declarations for metadata specific to debug info. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DEBUGINFOMETADATA_H #define LLVM_IR_DEBUGINFOMETADATA_H diff --git a/include/llvm/IR/DebugLoc.h b/include/llvm/IR/DebugLoc.h index 006f2642f5..8ea5875e1f 100644 --- a/include/llvm/IR/DebugLoc.h +++ b/include/llvm/IR/DebugLoc.h @@ -1,15 +1,16 @@ //===- DebugLoc.h - Debug Location Information ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugLoc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a number of light weight data structures used // -// to describe and track debug location information. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a number of light weight data structures used +// to describe and track debug location information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DEBUGLOC_H #define LLVM_IR_DEBUGLOC_H diff --git a/include/llvm/IR/DerivedTypes.h b/include/llvm/IR/DerivedTypes.h index addd95878e..4a94499b4c 100644 --- a/include/llvm/IR/DerivedTypes.h +++ b/include/llvm/IR/DerivedTypes.h @@ -1,18 +1,19 @@ //===-- llvm/DerivedTypes.h - Classes for handling data types ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DerivedTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declarations of classes that represent "derived // -// types". These are things like "arrays of x" or "structure of x, y, z" or // -// "function returning x taking (y,z) as parameters", etc... // // -// The implementations of these classes live in the Type.cpp file. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declarations of classes that represent "derived +// types". These are things like "arrays of x" or "structure of x, y, z" or +// "function returning x taking (y,z) as parameters", etc... +// +// The implementations of these classes live in the Type.cpp file. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DERIVEDTYPES_H #define LLVM_IR_DERIVEDTYPES_H diff --git a/include/llvm/IR/DiagnosticInfo.h b/include/llvm/IR/DiagnosticInfo.h index ea100de5dc..f38313f82e 100644 --- a/include/llvm/IR/DiagnosticInfo.h +++ b/include/llvm/IR/DiagnosticInfo.h @@ -1,16 +1,16 @@ //===- llvm/Support/DiagnosticInfo.h - Diagnostic Declaration ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the different classes involved in low level diagnostics.// // -// Diagnostics reporting is still done as part of the LLVMContext. // -// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the different classes involved in low level diagnostics. +// +// Diagnostics reporting is still done as part of the LLVMContext. +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DIAGNOSTICINFO_H #define LLVM_IR_DIAGNOSTICINFO_H diff --git a/include/llvm/IR/DiagnosticPrinter.h b/include/llvm/IR/DiagnosticPrinter.h index d835f775c0..735e3ad7a8 100644 --- a/include/llvm/IR/DiagnosticPrinter.h +++ b/include/llvm/IR/DiagnosticPrinter.h @@ -1,17 +1,17 @@ //===- llvm/Support/DiagnosticPrinter.h - Diagnostic Printer ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the main interface for printer backend diagnostic. // // -// Clients of the backend diagnostics should overload this interface based // -// on their needs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the main interface for printer backend diagnostic. +// +// Clients of the backend diagnostics should overload this interface based +// on their needs. +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DIAGNOSTICPRINTER_H #define LLVM_IR_DIAGNOSTICPRINTER_H diff --git a/include/llvm/IR/Dominators.h b/include/llvm/IR/Dominators.h index f38b8937d5..27d989b034 100644 --- a/include/llvm/IR/Dominators.h +++ b/include/llvm/IR/Dominators.h @@ -1,15 +1,16 @@ //===- Dominators.h - Dominator Info Calculation ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dominators.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DominatorTree class, which provides fast and efficient// -// dominance queries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DominatorTree class, which provides fast and efficient +// dominance queries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_DOMINATORS_H #define LLVM_IR_DOMINATORS_H diff --git a/include/llvm/IR/Function.h b/include/llvm/IR/Function.h index c937bdaf89..ec9f4cad09 100644 --- a/include/llvm/IR/Function.h +++ b/include/llvm/IR/Function.h @@ -1,18 +1,19 @@ //===-- llvm/Function.h - Class to represent a single function --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Function.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the Function class, which represents a// -// single function/procedure in LLVM. // // -// A function basically consists of a list of basic blocks, a list of arguments,// -// and a symbol table. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the Function class, which represents a +// single function/procedure in LLVM. +// +// A function basically consists of a list of basic blocks, a list of arguments, +// and a symbol table. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_FUNCTION_H #define LLVM_IR_FUNCTION_H diff --git a/include/llvm/IR/GVMaterializer.h b/include/llvm/IR/GVMaterializer.h index 18307a46a7..1d6c9157f0 100644 --- a/include/llvm/IR/GVMaterializer.h +++ b/include/llvm/IR/GVMaterializer.h @@ -1,18 +1,19 @@ //===- GVMaterializer.h - Interface for GV materializers --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GVMaterializer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides an abstract interface for loading a module from some // -// place. This interface allows incremental or random access loading of // -// functions from the file. This is useful for applications like JIT compilers// -// or interprocedural optimizers that do not need the entire program in memory// -// at the same time. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides an abstract interface for loading a module from some +// place. This interface allows incremental or random access loading of +// functions from the file. This is useful for applications like JIT compilers +// or interprocedural optimizers that do not need the entire program in memory +// at the same time. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GVMATERIALIZER_H #define LLVM_IR_GVMATERIALIZER_H diff --git a/include/llvm/IR/GetElementPtrTypeIterator.h b/include/llvm/IR/GetElementPtrTypeIterator.h index ed16c8c4e0..6bba0ae29e 100644 --- a/include/llvm/IR/GetElementPtrTypeIterator.h +++ b/include/llvm/IR/GetElementPtrTypeIterator.h @@ -1,15 +1,16 @@ //===- GetElementPtrTypeIterator.h ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GetElementPtrTypeIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an iterator for walking through the types indexed by // -// getelementptr instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an iterator for walking through the types indexed by +// getelementptr instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GETELEMENTPTRTYPEITERATOR_H #define LLVM_IR_GETELEMENTPTRTYPEITERATOR_H diff --git a/include/llvm/IR/GlobalAlias.h b/include/llvm/IR/GlobalAlias.h index 355f891e44..ce73b7af8c 100644 --- a/include/llvm/IR/GlobalAlias.h +++ b/include/llvm/IR/GlobalAlias.h @@ -1,15 +1,16 @@ //===-------- llvm/GlobalAlias.h - GlobalAlias class ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalAlias.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the GlobalAlias class, which // -// represents a single function or variable alias in the IR. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the GlobalAlias class, which +// represents a single function or variable alias in the IR. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GLOBALALIAS_H #define LLVM_IR_GLOBALALIAS_H diff --git a/include/llvm/IR/GlobalObject.h b/include/llvm/IR/GlobalObject.h index 8446a1468a..f0552410b6 100644 --- a/include/llvm/IR/GlobalObject.h +++ b/include/llvm/IR/GlobalObject.h @@ -1,15 +1,16 @@ //===-- llvm/GlobalObject.h - Class to represent global objects -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalObject.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This represents an independent object. That is, a function or a global // -// variable, but not an alias. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This represents an independent object. That is, a function or a global +// variable, but not an alias. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GLOBALOBJECT_H #define LLVM_IR_GLOBALOBJECT_H diff --git a/include/llvm/IR/GlobalValue.h b/include/llvm/IR/GlobalValue.h index 72ba2ebbe8..2961369a73 100644 --- a/include/llvm/IR/GlobalValue.h +++ b/include/llvm/IR/GlobalValue.h @@ -1,18 +1,19 @@ //===-- llvm/GlobalValue.h - Class to represent a global value --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is a common base class of all globally definable objects. As such,// -// it is subclassed by GlobalVariable, GlobalAlias and by Function. This is // -// used because you can do certain things with these global objects that you // -// can't do to anything else. For example, use the address of one as a // -// constant. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is a common base class of all globally definable objects. As such, +// it is subclassed by GlobalVariable, GlobalAlias and by Function. This is +// used because you can do certain things with these global objects that you +// can't do to anything else. For example, use the address of one as a +// constant. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GLOBALVALUE_H #define LLVM_IR_GLOBALVALUE_H diff --git a/include/llvm/IR/GlobalVariable.h b/include/llvm/IR/GlobalVariable.h index ea969e08b7..a0159830ba 100644 --- a/include/llvm/IR/GlobalVariable.h +++ b/include/llvm/IR/GlobalVariable.h @@ -1,20 +1,21 @@ //===-- llvm/GlobalVariable.h - GlobalVariable class ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalVariable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the GlobalVariable class, which // -// represents a single global variable (or constant) in the VM. // // -// Global variables are constant pointers that refer to hunks of space that are// -// allocated by either the VM, or by the linker in a static compiler. A global// -// variable may have an initial value, which is copied into the executables .data// -// area. Global Constants are required to have initializers. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the GlobalVariable class, which +// represents a single global variable (or constant) in the VM. +// +// Global variables are constant pointers that refer to hunks of space that are +// allocated by either the VM, or by the linker in a static compiler. A global +// variable may have an initial value, which is copied into the executables .data +// area. Global Constants are required to have initializers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_GLOBALVARIABLE_H #define LLVM_IR_GLOBALVARIABLE_H diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 79ed748418..6c67c79b6c 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -1,15 +1,16 @@ //===---- llvm/IRBuilder.h - Builder for LLVM Instructions ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the IRBuilder class, which is used as a convenient way // -// to create LLVM instructions with a consistent and simplified interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the IRBuilder class, which is used as a convenient way +// to create LLVM instructions with a consistent and simplified interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_IRBUILDER_H #define LLVM_IR_IRBUILDER_H diff --git a/include/llvm/IR/IRPrintingPasses.h b/include/llvm/IR/IRPrintingPasses.h index 727f02cc9a..5f1d56f7e8 100644 --- a/include/llvm/IR/IRPrintingPasses.h +++ b/include/llvm/IR/IRPrintingPasses.h @@ -1,21 +1,20 @@ //===- IRPrintingPasses.h - Passes to print out IR constructs ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRPrintingPasses.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file defines passes to print out IR in various granularities. The // -/// PrintModulePass pass simply prints out the entire module when it is // -/// executed. The PrintFunctionPass class is designed to be pipelined with // -/// other FunctionPass's, and prints out the functions of the module as they // -/// are processed. // +/// This file defines passes to print out IR in various granularities. The +/// PrintModulePass pass simply prints out the entire module when it is +/// executed. The PrintFunctionPass class is designed to be pipelined with +/// other FunctionPass's, and prints out the functions of the module as they +/// are processed. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_IRPRINTINGPASSES_H #define LLVM_IR_IRPRINTINGPASSES_H diff --git a/include/llvm/IR/InlineAsm.h b/include/llvm/IR/InlineAsm.h index 099c7e344b..08b5102111 100644 --- a/include/llvm/IR/InlineAsm.h +++ b/include/llvm/IR/InlineAsm.h @@ -1,16 +1,17 @@ //===-- llvm/InlineAsm.h - Class to represent inline asm strings-*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineAsm.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class represents the inline asm strings, which are Value*'s that are // -// used as the callee operand of call instructions. InlineAsm's are uniqued // -// like constants, and created via InlineAsm::get(...). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class represents the inline asm strings, which are Value*'s that are +// used as the callee operand of call instructions. InlineAsm's are uniqued +// like constants, and created via InlineAsm::get(...). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_INLINEASM_H #define LLVM_IR_INLINEASM_H diff --git a/include/llvm/IR/InstIterator.h b/include/llvm/IR/InstIterator.h index 408fbe2014..f3ce6490fb 100644 --- a/include/llvm/IR/InstIterator.h +++ b/include/llvm/IR/InstIterator.h @@ -1,19 +1,20 @@ //===- InstIterator.h - Classes for inst iteration --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains definitions of two iterators for iterating over the // -// instructions in a function. This is effectively a wrapper around a two level// -// iterator that can probably be genericized later. // // -// Note that this iterator gets invalidated any time that basic blocks or // -// instructions are moved around. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains definitions of two iterators for iterating over the +// instructions in a function. This is effectively a wrapper around a two level +// iterator that can probably be genericized later. +// +// Note that this iterator gets invalidated any time that basic blocks or +// instructions are moved around. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_INSTITERATOR_H #define LLVM_IR_INSTITERATOR_H diff --git a/include/llvm/IR/InstVisitor.h b/include/llvm/IR/InstVisitor.h index 58ac6b63ae..581e860b83 100644 --- a/include/llvm/IR/InstVisitor.h +++ b/include/llvm/IR/InstVisitor.h @@ -1,12 +1,11 @@ //===- InstVisitor.h - Instruction visitor templates ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_INSTVISITOR_H diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index dedf10246e..198d136aaa 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -1,14 +1,15 @@ //===-- llvm/InstrTypes.h - Important Instruction subclasses ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines various meta classes of instructions that exist in the VM// -// representation. Specific concrete subclasses of these may be found in the// -// i*.h files... // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines various meta classes of instructions that exist in the VM +// representation. Specific concrete subclasses of these may be found in the +// i*.h files... // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/Instruction.def b/include/llvm/IR/Instruction.def index 540fb391d9..5f26d34df3 100644 --- a/include/llvm/IR/Instruction.def +++ b/include/llvm/IR/Instruction.def @@ -1,17 +1,17 @@ //===-- llvm/Instruction.def - File that describes Instructions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instruction.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains descriptions of the various LLVM instructions. This is// -// used as a central place for enumerating the different instructions and // -// should eventually be the place to put comments about the instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// -// NOTE: NO INCLUDE GUARD DESIRED! // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains descriptions of the various LLVM instructions. This is +// used as a central place for enumerating the different instructions and +// should eventually be the place to put comments about the instructions. +// +//===----------------------------------------------------------------------===// // Provide definitions of macros so that users of this file do not have to // define everything to use it... diff --git a/include/llvm/IR/Instruction.h b/include/llvm/IR/Instruction.h index b4d8201dbd..31f363f70a 100644 --- a/include/llvm/IR/Instruction.h +++ b/include/llvm/IR/Instruction.h @@ -1,15 +1,16 @@ //===-- llvm/Instruction.h - Instruction class definition -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instruction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the Instruction class, which is the // -// base class for all of the LLVM instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the Instruction class, which is the +// base class for all of the LLVM instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_INSTRUCTION_H #define LLVM_IR_INSTRUCTION_H diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index d538ea1d6f..3b8ba33bd3 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -1,14 +1,15 @@ //===-- llvm/Instructions.h - Instruction subclass definitions --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instructions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes the class definitions of all of the subclasses of the // -// Instruction class. This is meant to be an easy way to get access to all // -// instruction subclasses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes the class definitions of all of the subclasses of the +// Instruction class. This is meant to be an easy way to get access to all +// instruction subclasses. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/IntrinsicInst.h b/include/llvm/IR/IntrinsicInst.h index bf01e6f619..2c8b6eb6f3 100644 --- a/include/llvm/IR/IntrinsicInst.h +++ b/include/llvm/IR/IntrinsicInst.h @@ -1,24 +1,25 @@ //===-- llvm/IntrinsicInst.h - Intrinsic Instruction Wrappers ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicInst.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines classes that make it really easy to deal with intrinsic // -// functions with the isa/dyncast family of functions. In particular, this // -// allows you to do things like: // // -// if (MemCpyInst *MCI = dyn_cast(Inst)) // -// ... MCI->getDest() ... MCI->getSource() ... // +// The LLVM Compiler Infrastructure // -// All intrinsic function calls are instances of the call instruction, so these// -// are all subclasses of the CallInst class. Note that none of these classes// -// has state or virtual methods, which is an important part of this gross/neat// -// hack working. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file defines classes that make it really easy to deal with intrinsic +// functions with the isa/dyncast family of functions. In particular, this +// allows you to do things like: +// +// if (MemCpyInst *MCI = dyn_cast(Inst)) +// ... MCI->getDest() ... MCI->getSource() ... +// +// All intrinsic function calls are instances of the call instruction, so these +// are all subclasses of the CallInst class. Note that none of these classes +// has state or virtual methods, which is an important part of this gross/neat +// hack working. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_INTRINSICINST_H #define LLVM_IR_INTRINSICINST_H diff --git a/include/llvm/IR/Intrinsics.h b/include/llvm/IR/Intrinsics.h index e50f39c11b..43b8325107 100644 --- a/include/llvm/IR/Intrinsics.h +++ b/include/llvm/IR/Intrinsics.h @@ -1,16 +1,17 @@ //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Intrinsics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a set of enums which allow processing of intrinsic // -// functions. Values of these enum types are returned by // -// Function::getIntrinsicID. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a set of enums which allow processing of intrinsic +// functions. Values of these enum types are returned by +// Function::getIntrinsicID. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_INTRINSICS_H #define LLVM_IR_INTRINSICS_H diff --git a/include/llvm/IR/Intrinsics.td b/include/llvm/IR/Intrinsics.td index ccf793fdb0..3d88241313 100644 --- a/include/llvm/IR/Intrinsics.td +++ b/include/llvm/IR/Intrinsics.td @@ -1,14 +1,15 @@ //===- Intrinsics.td - Defines all LLVM intrinsics ---------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Intrinsics.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines properties of all LLVM intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines properties of all LLVM intrinsics. +// +//===----------------------------------------------------------------------===// include "llvm/CodeGen/ValueTypes.td" diff --git a/include/llvm/IR/IntrinsicsAArch64.td b/include/llvm/IR/IntrinsicsAArch64.td index 91893fb8f4..7d69ed5217 100644 --- a/include/llvm/IR/IntrinsicsAArch64.td +++ b/include/llvm/IR/IntrinsicsAArch64.td @@ -1,14 +1,15 @@ //===- IntrinsicsAARCH64.td - Defines AARCH64 intrinsics ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsAArch64.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the AARCH64-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the AARCH64-specific intrinsics. +// +//===----------------------------------------------------------------------===// let TargetPrefix = "aarch64" in { diff --git a/include/llvm/IR/IntrinsicsAMDGPU.td b/include/llvm/IR/IntrinsicsAMDGPU.td index 267b28380a..510e5ad2d9 100644 --- a/include/llvm/IR/IntrinsicsAMDGPU.td +++ b/include/llvm/IR/IntrinsicsAMDGPU.td @@ -1,14 +1,15 @@ //===- IntrinsicsAMDGPU.td - Defines AMDGPU intrinsics -----*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsAMDGPU.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the R600-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the R600-specific intrinsics. +// +//===----------------------------------------------------------------------===// let TargetPrefix = "r600" in { diff --git a/include/llvm/IR/IntrinsicsARM.td b/include/llvm/IR/IntrinsicsARM.td index 5aa4d94bb6..649acc3fef 100644 --- a/include/llvm/IR/IntrinsicsARM.td +++ b/include/llvm/IR/IntrinsicsARM.td @@ -1,14 +1,15 @@ //===- IntrinsicsARM.td - Defines ARM intrinsics -----------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsARM.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the ARM-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the ARM-specific intrinsics. +// +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // TLS diff --git a/include/llvm/IR/IntrinsicsBPF.td b/include/llvm/IR/IntrinsicsBPF.td index 7920d658e7..221e95ac2a 100644 --- a/include/llvm/IR/IntrinsicsBPF.td +++ b/include/llvm/IR/IntrinsicsBPF.td @@ -1,15 +1,15 @@ //===- IntrinsicsBPF.td - Defines BPF intrinsics -----------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsBPF.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the BPF-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Specialized loads from packet // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the BPF-specific intrinsics. +// +//===----------------------------------------------------------------------===// let TargetPrefix = "bpf" in { // All intrinsics start with "llvm.bpf." def int_bpf_load_byte : GCCBuiltin<"__builtin_bpf_load_byte">, diff --git a/include/llvm/IR/IntrinsicsHexagon.td b/include/llvm/IR/IntrinsicsHexagon.td index 981338f1b4..b07c2a1e49 100644 --- a/include/llvm/IR/IntrinsicsHexagon.td +++ b/include/llvm/IR/IntrinsicsHexagon.td @@ -1,17 +1,14 @@ //===- IntrinsicsHexagon.td - Defines Hexagon intrinsics ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsHexagon.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the Hexagon-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Definitions for all Hexagon intrinsics. // -// // -// All Hexagon intrinsics start with "llvm.hexagon.". // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the Hexagon-specific intrinsics. +// +//===----------------------------------------------------------------------===// let TargetPrefix = "hexagon" in { /// Hexagon_Intrinsic - Base class for all Hexagon intrinsics. diff --git a/include/llvm/IR/IntrinsicsMips.td b/include/llvm/IR/IntrinsicsMips.td index 1bf3923a4b..4a022c0613 100644 --- a/include/llvm/IR/IntrinsicsMips.td +++ b/include/llvm/IR/IntrinsicsMips.td @@ -1,15 +1,15 @@ //===- IntrinsicsMips.td - Defines Mips intrinsics ---------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsMips.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the MIPS-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// -// MIPS DSP data types // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the MIPS-specific intrinsics. +// +//===----------------------------------------------------------------------===// def mips_v2q15_ty: LLVMType; def mips_v4q7_ty: LLVMType; diff --git a/include/llvm/IR/IntrinsicsNVVM.td b/include/llvm/IR/IntrinsicsNVVM.td index 13395ea396..9deed414b5 100644 --- a/include/llvm/IR/IntrinsicsNVVM.td +++ b/include/llvm/IR/IntrinsicsNVVM.td @@ -1,14 +1,15 @@ //===- IntrinsicsNVVM.td - Defines NVVM intrinsics ---------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsNVVM.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the NVVM-specific intrinsics for use with NVPTX. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the NVVM-specific intrinsics for use with NVPTX. +// +//===----------------------------------------------------------------------===// def llvm_anyi64ptr_ty : LLVMAnyPointerType; // (space)i64* diff --git a/include/llvm/IR/IntrinsicsPowerPC.td b/include/llvm/IR/IntrinsicsPowerPC.td index b5342a07fd..3b149393ff 100644 --- a/include/llvm/IR/IntrinsicsPowerPC.td +++ b/include/llvm/IR/IntrinsicsPowerPC.td @@ -1,16 +1,15 @@ //===- IntrinsicsPowerPC.td - Defines PowerPC intrinsics ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsPowerPC.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the PowerPC-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Definitions for all PowerPC intrinsics. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the PowerPC-specific intrinsics. +// +//===----------------------------------------------------------------------===// // Non-altivec intrinsics. let TargetPrefix = "ppc" in { // All intrinsics start with "llvm.ppc.". diff --git a/include/llvm/IR/IntrinsicsSystemZ.td b/include/llvm/IR/IntrinsicsSystemZ.td index 230dce501c..96e7ca5256 100644 --- a/include/llvm/IR/IntrinsicsSystemZ.td +++ b/include/llvm/IR/IntrinsicsSystemZ.td @@ -1,14 +1,15 @@ //===- IntrinsicsSystemZ.td - Defines SystemZ intrinsics ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsSystemZ.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the SystemZ-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the SystemZ-specific intrinsics. +// +//===----------------------------------------------------------------------===// class SystemZUnaryConv : GCCBuiltin<"__builtin_s390_" ## name>, diff --git a/include/llvm/IR/IntrinsicsWebAssembly.td b/include/llvm/IR/IntrinsicsWebAssembly.td index 0ba31fd669..3ccde47423 100644 --- a/include/llvm/IR/IntrinsicsWebAssembly.td +++ b/include/llvm/IR/IntrinsicsWebAssembly.td @@ -1,17 +1,16 @@ //===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsWebAssembly.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file defines all of the WebAssembly-specific intrinsics. // +/// \file +/// \brief This file defines all of the WebAssembly-specific intrinsics. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.". } diff --git a/include/llvm/IR/IntrinsicsX86.td b/include/llvm/IR/IntrinsicsX86.td index c33f130258..4bd9942d5a 100644 --- a/include/llvm/IR/IntrinsicsX86.td +++ b/include/llvm/IR/IntrinsicsX86.td @@ -1,15 +1,15 @@ //===- IntrinsicsX86.td - Defines X86 intrinsics -----------*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsX86.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the X86-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Interrupt traps // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the X86-specific intrinsics. +// +//===----------------------------------------------------------------------===// let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". def int_x86_int : Intrinsic<[], [llvm_i8_ty]>; diff --git a/include/llvm/IR/IntrinsicsXCore.td b/include/llvm/IR/IntrinsicsXCore.td index d2a24d7a12..b614e1ed6e 100644 --- a/include/llvm/IR/IntrinsicsXCore.td +++ b/include/llvm/IR/IntrinsicsXCore.td @@ -1,14 +1,15 @@ //==- IntrinsicsXCore.td - XCore intrinsics -*- tablegen -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicsXCore.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all of the XCore-specific intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all of the XCore-specific intrinsics. +// +//===----------------------------------------------------------------------===// let TargetPrefix = "xcore" in { // All intrinsics start with "llvm.xcore.". // Miscellaneous instructions. diff --git a/include/llvm/IR/LLVMContext.h b/include/llvm/IR/LLVMContext.h index 7534bf7bc5..e6c22090ab 100644 --- a/include/llvm/IR/LLVMContext.h +++ b/include/llvm/IR/LLVMContext.h @@ -1,15 +1,16 @@ //===-- llvm/LLVMContext.h - Class for managing "global" state --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares LLVMContext, a container of "global" state in LLVM, such// -// as the global type and constant uniquing tables. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares LLVMContext, a container of "global" state in LLVM, such +// as the global type and constant uniquing tables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_LLVMCONTEXT_H #define LLVM_IR_LLVMCONTEXT_H diff --git a/include/llvm/IR/LegacyPassManager.h b/include/llvm/IR/LegacyPassManager.h index c33dc14351..2b545e2625 100644 --- a/include/llvm/IR/LegacyPassManager.h +++ b/include/llvm/IR/LegacyPassManager.h @@ -1,17 +1,18 @@ //===- LegacyPassManager.h - Legacy Container for Passes --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegacyPassManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the legacy PassManager class. This class is used to hold,// -// maintain, and optimize execution of Passes. The PassManager class ensures// -// that analysis results are available before a pass runs, and that Pass's are// -// destroyed when the PassManager is destroyed. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the legacy PassManager class. This class is used to hold, +// maintain, and optimize execution of Passes. The PassManager class ensures +// that analysis results are available before a pass runs, and that Pass's are +// destroyed when the PassManager is destroyed. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_LEGACYPASSMANAGER_H #define LLVM_IR_LEGACYPASSMANAGER_H diff --git a/include/llvm/IR/LegacyPassManagers.h b/include/llvm/IR/LegacyPassManagers.h index 04d0d49070..d99cf22ee0 100644 --- a/include/llvm/IR/LegacyPassManagers.h +++ b/include/llvm/IR/LegacyPassManagers.h @@ -1,12 +1,13 @@ //===- LegacyPassManagers.h - Legacy Pass Infrastructure --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegacyPassManagers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the LLVM Pass Manager infrastructure. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the LLVM Pass Manager infrastructure. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/LegacyPassNameParser.h b/include/llvm/IR/LegacyPassNameParser.h index fefa9bfe61..7ce941e413 100644 --- a/include/llvm/IR/LegacyPassNameParser.h +++ b/include/llvm/IR/LegacyPassNameParser.h @@ -1,24 +1,25 @@ //===- LegacyPassNameParser.h -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegacyPassNameParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the PassNameParser and FilteredPassNameParser<> classes,// -// which are used to add command line arguments to a utility for all of the // -// passes that have been registered into the system. // // -// The PassNameParser class adds ALL passes linked into the system (that are // -// creatable) as command line arguments to the tool (when instantiated with the// -// appropriate command line option template). The FilteredPassNameParser<> // -// template is used for the same purposes as PassNameParser, except that it only// -// includes passes that have a PassType that are compatible with the filter // -// (which is the template argument). // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the PassNameParser and FilteredPassNameParser<> classes, +// which are used to add command line arguments to a utility for all of the +// passes that have been registered into the system. +// +// The PassNameParser class adds ALL passes linked into the system (that are +// creatable) as command line arguments to the tool (when instantiated with the +// appropriate command line option template). The FilteredPassNameParser<> +// template is used for the same purposes as PassNameParser, except that it only +// includes passes that have a PassType that are compatible with the filter +// (which is the template argument). // -// Note that this is part of the legacy pass manager infrastructure and will be// -// (eventually) going away. // +// Note that this is part of the legacy pass manager infrastructure and will be +// (eventually) going away. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/MDBuilder.h b/include/llvm/IR/MDBuilder.h index 30025d5d11..ceb1c736e5 100644 --- a/include/llvm/IR/MDBuilder.h +++ b/include/llvm/IR/MDBuilder.h @@ -1,15 +1,16 @@ //===---- llvm/MDBuilder.h - Builder for LLVM metadata ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MDBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MDBuilder class, which is used as a convenient way to// -// create LLVM metadata with a consistent and simplified interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MDBuilder class, which is used as a convenient way to +// create LLVM metadata with a consistent and simplified interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_MDBUILDER_H #define LLVM_IR_MDBUILDER_H diff --git a/include/llvm/IR/Mangler.h b/include/llvm/IR/Mangler.h index 6a22873c26..b72b259097 100644 --- a/include/llvm/IR/Mangler.h +++ b/include/llvm/IR/Mangler.h @@ -1,14 +1,15 @@ //===-- llvm/IR/Mangler.h - Self-contained name mangler ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mangler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Unified name mangler for various backends. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Unified name mangler for various backends. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_MANGLER_H #define LLVM_IR_MANGLER_H diff --git a/include/llvm/IR/Metadata.def b/include/llvm/IR/Metadata.def index cc9f0f0b72..857e4637d1 100644 --- a/include/llvm/IR/Metadata.def +++ b/include/llvm/IR/Metadata.def @@ -1,14 +1,15 @@ //===- llvm/IR/Metadata.def - Metadata definitions --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Metadata.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Macros for running through all types of metadata. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Macros for running through all types of metadata. +// +//===----------------------------------------------------------------------===// #if !(defined HANDLE_METADATA || defined HANDLE_METADATA_LEAF || \ defined HANDLE_METADATA_BRANCH || defined HANDLE_MDNODE_LEAF || \ diff --git a/include/llvm/IR/Metadata.h b/include/llvm/IR/Metadata.h index 2d1ba2a322..106c7567d9 100644 --- a/include/llvm/IR/Metadata.h +++ b/include/llvm/IR/Metadata.h @@ -1,14 +1,15 @@ //===- llvm/IR/Metadata.h - Metadata definitions ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Metadata.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// @file // -/// This file contains the declarations for metadata subclasses. // -/// They represent the different flavors of metadata that live in LLVM. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// @file +/// This file contains the declarations for metadata subclasses. +/// They represent the different flavors of metadata that live in LLVM. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/MetadataTracking.h b/include/llvm/IR/MetadataTracking.h index 565018133d..541d9b3b12 100644 --- a/include/llvm/IR/MetadataTracking.h +++ b/include/llvm/IR/MetadataTracking.h @@ -1,14 +1,15 @@ //===- llvm/IR/MetadataTracking.h - Metadata tracking ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MetadataTracking.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Low-level functions to enable tracking of metadata that could RAUW. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Low-level functions to enable tracking of metadata that could RAUW. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_METADATATRACKING_H #define LLVM_IR_METADATATRACKING_H diff --git a/include/llvm/IR/Module.h b/include/llvm/IR/Module.h index ed40b642ff..7e526db9ce 100644 --- a/include/llvm/IR/Module.h +++ b/include/llvm/IR/Module.h @@ -1,15 +1,16 @@ //===-- llvm/Module.h - C++ class to represent a VM module ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Module.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// @file // -/// Module.h This file contains the declarations for the Module class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// @file +/// Module.h This file contains the declarations for the Module class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_MODULE_H #define LLVM_IR_MODULE_H diff --git a/include/llvm/IR/ModuleSlotTracker.h b/include/llvm/IR/ModuleSlotTracker.h index 39ab501296..c37dcecf8e 100644 --- a/include/llvm/IR/ModuleSlotTracker.h +++ b/include/llvm/IR/ModuleSlotTracker.h @@ -1,12 +1,11 @@ //===-- llvm/IR/ModuleSlotTracker.h -----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleSlotTracker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_MODULESLOTTRACKER_H #define LLVM_IR_MODULESLOTTRACKER_H diff --git a/include/llvm/IR/NoFolder.h b/include/llvm/IR/NoFolder.h index 5c6a2de2e2..61f4817a9b 100644 --- a/include/llvm/IR/NoFolder.h +++ b/include/llvm/IR/NoFolder.h @@ -1,22 +1,23 @@ //===- NoFolder.h - Constant folding helper ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NoFolder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the NoFolder class, a helper for IRBuilder. It provides// -// IRBuilder with a set of methods for creating unfolded constants. This is // -// useful for learners trying to understand how LLVM IR works, and who don't // -// want details to be hidden by the constant folder. For general constant // -// creation and folding, use ConstantExpr and the routines in // -// llvm/Analysis/ConstantFolding.h. // // -// Note: since it is not actually possible to create unfolded constants, this// -// class returns instructions rather than constants. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the NoFolder class, a helper for IRBuilder. It provides +// IRBuilder with a set of methods for creating unfolded constants. This is +// useful for learners trying to understand how LLVM IR works, and who don't +// want details to be hidden by the constant folder. For general constant +// creation and folding, use ConstantExpr and the routines in +// llvm/Analysis/ConstantFolding.h. +// +// Note: since it is not actually possible to create unfolded constants, this +// class returns instructions rather than constants. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_NOFOLDER_H #define LLVM_IR_NOFOLDER_H diff --git a/include/llvm/IR/OperandTraits.h b/include/llvm/IR/OperandTraits.h index 50be87c202..ccd18a4d02 100644 --- a/include/llvm/IR/OperandTraits.h +++ b/include/llvm/IR/OperandTraits.h @@ -1,14 +1,15 @@ //===-- llvm/OperandTraits.h - OperandTraits class definition ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OperandTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the traits classes that are handy for enforcing the correct// -// layout of various User subclasses. It also provides the means for accessing// -// the operands in the most efficient manner. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the traits classes that are handy for enforcing the correct +// layout of various User subclasses. It also provides the means for accessing +// the operands in the most efficient manner. // #ifndef LLVM_IR_OPERANDTRAITS_H diff --git a/include/llvm/IR/Operator.h b/include/llvm/IR/Operator.h index be7c2c4b0b..5a94b8befd 100644 --- a/include/llvm/IR/Operator.h +++ b/include/llvm/IR/Operator.h @@ -1,15 +1,16 @@ //===-- llvm/Operator.h - Operator utility subclass -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Operator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines various classes for working with Instructions and // -// ConstantExprs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines various classes for working with Instructions and +// ConstantExprs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_OPERATOR_H #define LLVM_IR_OPERATOR_H diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index 6be5be62a0..4166babd63 100644 --- a/include/llvm/IR/PassManager.h +++ b/include/llvm/IR/PassManager.h @@ -1,40 +1,39 @@ //===- PassManager.h - Pass management infrastructure -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This header defines various interfaces for pass management in LLVM. There// -/// is no "pass" interface in LLVM per se. Instead, an instance of any class // -/// which supports a method to 'run' it over a unit of IR can be used as // -/// a pass. A pass manager is generally a tool to collect a sequence of passes// -/// which run over a particular IR construct, and run each of them in sequence// -/// over each such construct in the containing IR construct. As there is no // -/// containing IR construct for a Module, a manager for passes over modules // -/// forms the base case which runs its managed passes in sequence over the // -/// single module provided. // +/// This header defines various interfaces for pass management in LLVM. There +/// is no "pass" interface in LLVM per se. Instead, an instance of any class +/// which supports a method to 'run' it over a unit of IR can be used as +/// a pass. A pass manager is generally a tool to collect a sequence of passes +/// which run over a particular IR construct, and run each of them in sequence +/// over each such construct in the containing IR construct. As there is no +/// containing IR construct for a Module, a manager for passes over modules +/// forms the base case which runs its managed passes in sequence over the +/// single module provided. /// -/// The core IR library provides managers for running passes over // -/// modules and functions. // +/// The core IR library provides managers for running passes over +/// modules and functions. /// -/// * FunctionPassManager can run over a Module, runs each pass over // -/// a Function. // -/// * ModulePassManager must be directly run, runs each pass over the Module.// +/// * FunctionPassManager can run over a Module, runs each pass over +/// a Function. +/// * ModulePassManager must be directly run, runs each pass over the Module. /// -/// Note that the implementations of the pass managers use concept-based // -/// polymorphism as outlined in the "Value Semantics and Concept-based // -/// Polymorphism" talk (or its abbreviated sibling "Inheritance Is The Base // -/// Class of Evil") by Sean Parent: // -/// * http://github.com/sean-parent/sean-parent.github.com/wiki/Papers-and-Presentations// -/// * http://www.youtube.com/watch?v=_BpMYeUFXv8 // -/// * http://channel9.msdn.com/Events/GoingNative/2013/Inheritance-Is-The-Base-Class-of-Evil// +/// Note that the implementations of the pass managers use concept-based +/// polymorphism as outlined in the "Value Semantics and Concept-based +/// Polymorphism" talk (or its abbreviated sibling "Inheritance Is The Base +/// Class of Evil") by Sean Parent: +/// * http://github.com/sean-parent/sean-parent.github.com/wiki/Papers-and-Presentations +/// * http://www.youtube.com/watch?v=_BpMYeUFXv8 +/// * http://channel9.msdn.com/Events/GoingNative/2013/Inheritance-Is-The-Base-Class-of-Evil /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_PASSMANAGER_H #define LLVM_IR_PASSMANAGER_H diff --git a/include/llvm/IR/PassManagerInternal.h b/include/llvm/IR/PassManagerInternal.h index a37ec75bef..92de10bcd7 100644 --- a/include/llvm/IR/PassManagerInternal.h +++ b/include/llvm/IR/PassManagerInternal.h @@ -1,20 +1,19 @@ //===- PassManager internal APIs and implementation details -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassManagerInternal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This header provides internal APIs and implementation details used by the// -/// pass management interfaces exposed in PassManager.h. To understand more // -/// context of why these particular interfaces are needed, see that header // -/// file. None of these APIs should be used elsewhere. // +/// This header provides internal APIs and implementation details used by the +/// pass management interfaces exposed in PassManager.h. To understand more +/// context of why these particular interfaces are needed, see that header +/// file. None of these APIs should be used elsewhere. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_PASSMANAGERINTERNAL_H #define LLVM_IR_PASSMANAGERINTERNAL_H diff --git a/include/llvm/IR/PatternMatch.h b/include/llvm/IR/PatternMatch.h index 9c542eb596..da8b62f347 100644 --- a/include/llvm/IR/PatternMatch.h +++ b/include/llvm/IR/PatternMatch.h @@ -1,27 +1,28 @@ //===- PatternMatch.h - Match on the LLVM IR --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PatternMatch.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides a simple and efficient mechanism for performing general// -// tree-based pattern matches on the LLVM IR. The power of these routines is// -// that it allows you to write concise patterns that are expressive and easy to// -// understand. The other major advantage of this is that it allows you to // -// trivially capture/bind elements in the pattern to variables. For example,// -// you can do something like this: // // -// Value *Exp = ... // -// Value *X, *Y; ConstantInt *C1, *C2; // (X & C1) | (Y & C2) // -// if (match(Exp, m_Or(m_And(m_Value(X), m_ConstantInt(C1)), // -// m_And(m_Value(Y), m_ConstantInt(C2))))) { // -// ... Pattern is matched and variables are bound ... // -// } // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides a simple and efficient mechanism for performing general +// tree-based pattern matches on the LLVM IR. The power of these routines is +// that it allows you to write concise patterns that are expressive and easy to +// understand. The other major advantage of this is that it allows you to +// trivially capture/bind elements in the pattern to variables. For example, +// you can do something like this: +// +// Value *Exp = ... +// Value *X, *Y; ConstantInt *C1, *C2; // (X & C1) | (Y & C2) +// if (match(Exp, m_Or(m_And(m_Value(X), m_ConstantInt(C1)), +// m_And(m_Value(Y), m_ConstantInt(C2))))) { +// ... Pattern is matched and variables are bound ... +// } // -// This is primarily useful to things like the instruction combiner, but can // -// also be useful for static analysis tools or code generators. // +// This is primarily useful to things like the instruction combiner, but can +// also be useful for static analysis tools or code generators. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/PredIteratorCache.h b/include/llvm/IR/PredIteratorCache.h index e2ff87cc1c..118310aed1 100644 --- a/include/llvm/IR/PredIteratorCache.h +++ b/include/llvm/IR/PredIteratorCache.h @@ -1,14 +1,15 @@ //===- PredIteratorCache.h - pred_iterator Cache ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PredIteratorCache.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PredIteratorCache class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PredIteratorCache class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_PREDITERATORCACHE_H #define LLVM_IR_PREDITERATORCACHE_H diff --git a/include/llvm/IR/Statepoint.h b/include/llvm/IR/Statepoint.h index 6bf8db462c..4ab1f8497a 100644 --- a/include/llvm/IR/Statepoint.h +++ b/include/llvm/IR/Statepoint.h @@ -1,16 +1,17 @@ //===-- llvm/IR/Statepoint.h - gc.statepoint utilities ------ --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Statepoint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains utility functions and a wrapper class analogous to // -// CallSite for accessing the fields of gc.statepoint, gc.relocate, and // -// gc.result intrinsics // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains utility functions and a wrapper class analogous to +// CallSite for accessing the fields of gc.statepoint, gc.relocate, and +// gc.result intrinsics +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_STATEPOINT_H #define LLVM_IR_STATEPOINT_H diff --git a/include/llvm/IR/SymbolTableListTraits.h b/include/llvm/IR/SymbolTableListTraits.h index 3b3b8c6524..0a5149c3d9 100644 --- a/include/llvm/IR/SymbolTableListTraits.h +++ b/include/llvm/IR/SymbolTableListTraits.h @@ -1,25 +1,26 @@ //===-- llvm/SymbolTableListTraits.h - Traits for iplist --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolTableListTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a generic class that is used to implement the automatic // -// symbol table manipulation that occurs when you put (for example) a named // -// instruction into a basic block. // // -// The way that this is implemented is by using a special traits class with the// -// intrusive list that makes up the list of instructions in a basic block. When// -// a new element is added to the list of instructions, the traits class is // -// notified, allowing the symbol table to be updated. // +// The LLVM Compiler Infrastructure // -// This generic class implements the traits class. It must be generic so that// -// it can work for all uses it, which include lists of instructions, basic // -// blocks, arguments, functions, global variables, etc... // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file defines a generic class that is used to implement the automatic +// symbol table manipulation that occurs when you put (for example) a named +// instruction into a basic block. +// +// The way that this is implemented is by using a special traits class with the +// intrusive list that makes up the list of instructions in a basic block. When +// a new element is added to the list of instructions, the traits class is +// notified, allowing the symbol table to be updated. +// +// This generic class implements the traits class. It must be generic so that +// it can work for all uses it, which include lists of instructions, basic +// blocks, arguments, functions, global variables, etc... +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_SYMBOLTABLELISTTRAITS_H #define LLVM_IR_SYMBOLTABLELISTTRAITS_H diff --git a/include/llvm/IR/TrackingMDRef.h b/include/llvm/IR/TrackingMDRef.h index e184046e7a..e24112154e 100644 --- a/include/llvm/IR/TrackingMDRef.h +++ b/include/llvm/IR/TrackingMDRef.h @@ -1,14 +1,15 @@ //===- llvm/IR/TrackingMDRef.h - Tracking Metadata references ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TrackingMDRef.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// References to metadata that track RAUW. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// References to metadata that track RAUW. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_TRACKINGMDREF_H #define LLVM_IR_TRACKINGMDREF_H diff --git a/include/llvm/IR/Type.h b/include/llvm/IR/Type.h index 1caaa4535f..f9f7166d67 100644 --- a/include/llvm/IR/Type.h +++ b/include/llvm/IR/Type.h @@ -1,13 +1,14 @@ //===-- llvm/Type.h - Classes for handling data types -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Type.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the Type class. For more "Type" // -// stuff, look in DerivedTypes.h. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the Type class. For more "Type" +// stuff, look in DerivedTypes.h. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/TypeBuilder.h b/include/llvm/IR/TypeBuilder.h index e21edad1d9..d2c6f00079 100644 --- a/include/llvm/IR/TypeBuilder.h +++ b/include/llvm/IR/TypeBuilder.h @@ -1,15 +1,16 @@ //===---- llvm/TypeBuilder.h - Builder for LLVM types -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypeBuilder class, which is used as a convenient way to// -// create LLVM types with a consistent and simplified interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypeBuilder class, which is used as a convenient way to +// create LLVM types with a consistent and simplified interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_TYPEBUILDER_H #define LLVM_IR_TYPEBUILDER_H diff --git a/include/llvm/IR/TypeFinder.h b/include/llvm/IR/TypeFinder.h index 6b807fc48b..73a63ad034 100644 --- a/include/llvm/IR/TypeFinder.h +++ b/include/llvm/IR/TypeFinder.h @@ -1,14 +1,15 @@ //===-- llvm/IR/TypeFinder.h - Class to find used struct types --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeFinder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the TypeFinder class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the TypeFinder class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_TYPEFINDER_H #define LLVM_IR_TYPEFINDER_H diff --git a/include/llvm/IR/Use.h b/include/llvm/IR/Use.h index ac977dd9dc..160d71b03e 100644 --- a/include/llvm/IR/Use.h +++ b/include/llvm/IR/Use.h @@ -1,27 +1,26 @@ //===-- llvm/Use.h - Definition of the Use class ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Use.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This defines the Use class. The Use class represents the operand of an // -/// instruction or some other User instance which refers to a Value. The Use// -/// class keeps the "use list" of the referenced value up to date. // +/// This defines the Use class. The Use class represents the operand of an +/// instruction or some other User instance which refers to a Value. The Use +/// class keeps the "use list" of the referenced value up to date. /// -/// Pointer tagging is used to efficiently find the User corresponding to a Use// -/// without having to store a User pointer in every Use. A User is preceded in// -/// memory by all the Uses corresponding to its operands, and the low bits of// -/// one of the fields (Prev) of the Use class are used to encode offsets to be// -/// able to find that User given a pointer to any Use. For details, see: // +/// Pointer tagging is used to efficiently find the User corresponding to a Use +/// without having to store a User pointer in every Use. A User is preceded in +/// memory by all the Uses corresponding to its operands, and the low bits of +/// one of the fields (Prev) of the Use class are used to encode offsets to be +/// able to find that User given a pointer to any Use. For details, see: /// -/// http://www.llvm.org/docs/ProgrammersManual.html#UserLayout // +/// http://www.llvm.org/docs/ProgrammersManual.html#UserLayout /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_USE_H #define LLVM_IR_USE_H diff --git a/include/llvm/IR/UseListOrder.h b/include/llvm/IR/UseListOrder.h index 8dc1a910fb..b7c2418d34 100644 --- a/include/llvm/IR/UseListOrder.h +++ b/include/llvm/IR/UseListOrder.h @@ -1,15 +1,16 @@ //===- llvm/IR/UseListOrder.h - LLVM Use List Order -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UseListOrder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file has structures and command-line options for preserving use-list // -// order. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file has structures and command-line options for preserving use-list +// order. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_USELISTORDER_H #define LLVM_IR_USELISTORDER_H diff --git a/include/llvm/IR/User.h b/include/llvm/IR/User.h index 8c6100766a..13964eb06f 100644 --- a/include/llvm/IR/User.h +++ b/include/llvm/IR/User.h @@ -1,19 +1,20 @@ //===-- llvm/User.h - User class definition ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// User.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class defines the interface that one who uses a Value must implement.// -// Each instance of the Value class keeps track of what User's have handles // -// to it. // // -// * Instructions are the largest class of Users. // -// * Constants may be users of other constants (think arrays and stuff) // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class defines the interface that one who uses a Value must implement. +// Each instance of the Value class keeps track of what User's have handles +// to it. +// +// * Instructions are the largest class of Users. +// * Constants may be users of other constants (think arrays and stuff) +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_USER_H #define LLVM_IR_USER_H diff --git a/include/llvm/IR/Value.def b/include/llvm/IR/Value.def index 18a98b68fa..bc22f8f6e5 100644 --- a/include/llvm/IR/Value.def +++ b/include/llvm/IR/Value.def @@ -1,16 +1,16 @@ //===-------- llvm/IR/Value.def - File that describes Values ---v-*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Value.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains descriptions of the various LLVM values. This is // -// used as a central place for enumerating the different values. // -// // -/////////////////////////////////////////////////////////////////////////////// -// NOTE: NO INCLUDE GUARD DESIRED! // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains descriptions of the various LLVM values. This is +// used as a central place for enumerating the different values. +// +//===----------------------------------------------------------------------===// // Provide definitions of macros so that users of this file do not have to // define everything to use it... diff --git a/include/llvm/IR/Value.h b/include/llvm/IR/Value.h index e395097437..a5c967f4f7 100644 --- a/include/llvm/IR/Value.h +++ b/include/llvm/IR/Value.h @@ -1,12 +1,13 @@ //===-- llvm/Value.h - Definition of the Value class ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Value.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the Value class. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the Value class. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/IR/ValueHandle.h b/include/llvm/IR/ValueHandle.h index e5921b5b72..53fa80a626 100644 --- a/include/llvm/IR/ValueHandle.h +++ b/include/llvm/IR/ValueHandle.h @@ -1,14 +1,15 @@ //===- ValueHandle.h - Value Smart Pointer classes --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueHandle.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the ValueHandle class and its sub-classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the ValueHandle class and its sub-classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_VALUEHANDLE_H #define LLVM_IR_VALUEHANDLE_H diff --git a/include/llvm/IR/ValueMap.h b/include/llvm/IR/ValueMap.h index f90a194610..4d00b63760 100644 --- a/include/llvm/IR/ValueMap.h +++ b/include/llvm/IR/ValueMap.h @@ -1,26 +1,27 @@ //===- ValueMap.h - Safe map from Values to data ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ValueMap class. ValueMap maps Value* or any subclass// -// to an arbitrary other type. It provides the DenseMap interface but updates// -// itself to remain safe when keys are RAUWed or deleted. By default, when a// -// key is RAUWed from V1 to V2, the old mapping V1->target is removed, and a new// -// mapping V2->target is added. If V2 already existed, its old target is // -// overwritten. When a key is deleted, its mapping is removed. // // -// You can override a ValueMap's Config parameter to control exactly what // -// happens on RAUW and destruction and to get called back on each event. It's// -// legal to call back into the ValueMap from a Config's callbacks. Config // -// parameters should inherit from ValueMapConfig to get default // -// implementations of all the methods ValueMap uses. See ValueMapConfig for // -// documentation of the functions you can override. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ValueMap class. ValueMap maps Value* or any subclass +// to an arbitrary other type. It provides the DenseMap interface but updates +// itself to remain safe when keys are RAUWed or deleted. By default, when a +// key is RAUWed from V1 to V2, the old mapping V1->target is removed, and a new +// mapping V2->target is added. If V2 already existed, its old target is +// overwritten. When a key is deleted, its mapping is removed. +// +// You can override a ValueMap's Config parameter to control exactly what +// happens on RAUW and destruction and to get called back on each event. It's +// legal to call back into the ValueMap from a Config's callbacks. Config +// parameters should inherit from ValueMapConfig to get default +// implementations of all the methods ValueMap uses. See ValueMapConfig for +// documentation of the functions you can override. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_VALUEMAP_H #define LLVM_IR_VALUEMAP_H diff --git a/include/llvm/IR/ValueSymbolTable.h b/include/llvm/IR/ValueSymbolTable.h index e52dd0c5f0..bf1fade1cc 100644 --- a/include/llvm/IR/ValueSymbolTable.h +++ b/include/llvm/IR/ValueSymbolTable.h @@ -1,14 +1,15 @@ //===-- llvm/ValueSymbolTable.h - Implement a Value Symtab ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueSymbolTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the name/Value symbol table for LLVM. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the name/Value symbol table for LLVM. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_VALUESYMBOLTABLE_H #define LLVM_IR_VALUESYMBOLTABLE_H diff --git a/include/llvm/IR/Verifier.h b/include/llvm/IR/Verifier.h index 71347e4525..89039d2419 100644 --- a/include/llvm/IR/Verifier.h +++ b/include/llvm/IR/Verifier.h @@ -1,21 +1,22 @@ //===- Verifier.h - LLVM IR Verifier ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Verifier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the function verifier interface, that can be used for some// -// sanity checking of input to the system, and for checking that transformations// -// haven't done something bad. // // -// Note that this does not provide full 'java style' security and verifications,// -// instead it just tries to ensure that code is well formed. // +// The LLVM Compiler Infrastructure // -// To see what specifically is checked, look at the top of Verifier.cpp // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file defines the function verifier interface, that can be used for some +// sanity checking of input to the system, and for checking that transformations +// haven't done something bad. +// +// Note that this does not provide full 'java style' security and verifications, +// instead it just tries to ensure that code is well formed. +// +// To see what specifically is checked, look at the top of Verifier.cpp +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_VERIFIER_H #define LLVM_IR_VERIFIER_H diff --git a/include/llvm/IRReader/IRReader.h b/include/llvm/IRReader/IRReader.h index 6c4c6c5a03..2d9ace0b62 100644 --- a/include/llvm/IRReader/IRReader.h +++ b/include/llvm/IRReader/IRReader.h @@ -1,15 +1,16 @@ //===---- llvm/IRReader/IRReader.h - Reader for LLVM IR files ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines functions for reading LLVM IR. They support both // -// Bitcode and Assembly, automatically detecting the input format. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines functions for reading LLVM IR. They support both +// Bitcode and Assembly, automatically detecting the input format. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IRREADER_IRREADER_H #define LLVM_IRREADER_IRREADER_H diff --git a/include/llvm/InitializePasses.h b/include/llvm/InitializePasses.h index fa148756d4..d120c8cf8b 100644 --- a/include/llvm/InitializePasses.h +++ b/include/llvm/InitializePasses.h @@ -1,14 +1,16 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// InitializePasses.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declarations for the pass initialization routines // -// for the entire LLVM project. // +//===- llvm/InitializePasses.h -------- Initialize All Passes ---*- C++ -*-===// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declarations for the pass initialization routines +// for the entire LLVM project. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_INITIALIZEPASSES_H #define LLVM_INITIALIZEPASSES_H diff --git a/include/llvm/LTO/LTOCodeGenerator.h b/include/llvm/LTO/LTOCodeGenerator.h index b0f2aac30e..889d477d36 100644 --- a/include/llvm/LTO/LTOCodeGenerator.h +++ b/include/llvm/LTO/LTOCodeGenerator.h @@ -1,33 +1,34 @@ //===-LTOCodeGenerator.h - LLVM Link Time Optimizer -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LTOCodeGenerator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the LTOCodeGenerator class. // // -// LTO compilation consists of three phases: Pre-IPO, IPO and Post-IPO. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the LTOCodeGenerator class. +// +// LTO compilation consists of three phases: Pre-IPO, IPO and Post-IPO. // -// The Pre-IPO phase compiles source code into bitcode file. The resulting // -// bitcode files, along with object files and libraries, will be fed to the // -// linker to through the IPO and Post-IPO phases. By using obj-file extension,// -// the resulting bitcode file disguises itself as an object file, and therefore// -// obviates the need of writing a special set of the make-rules only for LTO // -// compilation. // +// The Pre-IPO phase compiles source code into bitcode file. The resulting +// bitcode files, along with object files and libraries, will be fed to the +// linker to through the IPO and Post-IPO phases. By using obj-file extension, +// the resulting bitcode file disguises itself as an object file, and therefore +// obviates the need of writing a special set of the make-rules only for LTO +// compilation. // -// The IPO phase perform inter-procedural analyses and optimizations, and // -// the Post-IPO consists two sub-phases: intra-procedural scalar optimizations// -// (SOPT), and intra-procedural target-dependent code generator (CG). // +// The IPO phase perform inter-procedural analyses and optimizations, and +// the Post-IPO consists two sub-phases: intra-procedural scalar optimizations +// (SOPT), and intra-procedural target-dependent code generator (CG). // -// As of this writing, we don't separate IPO and the Post-IPO SOPT. They // -// are intermingled together, and are driven by a single pass manager (see // -// PassManagerBuilder::populateLTOPassManager()). // +// As of this writing, we don't separate IPO and the Post-IPO SOPT. They +// are intermingled together, and are driven by a single pass manager (see +// PassManagerBuilder::populateLTOPassManager()). // -// The "LTOCodeGenerator" is the driver for the IPO and Post-IPO stages. // -// The "CodeGenerator" here is bit confusing. Don't confuse the "CodeGenerator"// -// with the machine specific code generator. // +// The "LTOCodeGenerator" is the driver for the IPO and Post-IPO stages. +// The "CodeGenerator" here is bit confusing. Don't confuse the "CodeGenerator" +// with the machine specific code generator. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/LTO/LTOModule.h b/include/llvm/LTO/LTOModule.h index 0972d7688e..a30f254745 100644 --- a/include/llvm/LTO/LTOModule.h +++ b/include/llvm/LTO/LTOModule.h @@ -1,12 +1,13 @@ //===-LTOModule.h - LLVM Link Time Optimizer ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LTOModule.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the LTOModule class. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the LTOModule class. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/LibDriver/LibDriver.h b/include/llvm/LibDriver/LibDriver.h index 086bcec9a8..aaaa7b7d21 100644 --- a/include/llvm/LibDriver/LibDriver.h +++ b/include/llvm/LibDriver/LibDriver.h @@ -1,15 +1,16 @@ //===- llvm/LibDriver/LibDriver.h - lib.exe-compatible driver ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LibDriver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines an interface to a lib.exe-compatible driver that also understands // -// bitcode files. Used by llvm-lib and lld-link2 /lib. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines an interface to a lib.exe-compatible driver that also understands +// bitcode files. Used by llvm-lib and lld-link2 /lib. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIBDRIVER_LIBDRIVER_H #define LLVM_LIBDRIVER_LIBDRIVER_H diff --git a/include/llvm/LineEditor/LineEditor.h b/include/llvm/LineEditor/LineEditor.h index 85ee5f1ab9..bb106f87ca 100644 --- a/include/llvm/LineEditor/LineEditor.h +++ b/include/llvm/LineEditor/LineEditor.h @@ -1,12 +1,11 @@ //===-- llvm/LineEditor/LineEditor.h - line editor --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LineEditor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LINEEDITOR_LINEEDITOR_H #define LLVM_LINEEDITOR_LINEEDITOR_H diff --git a/include/llvm/LinkAllIR.h b/include/llvm/LinkAllIR.h index d0f513e783..2b0604aee0 100644 --- a/include/llvm/LinkAllIR.h +++ b/include/llvm/LinkAllIR.h @@ -1,15 +1,17 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkAllIR.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file pulls in all the object modules of the VMCore library so // -// that tools like llc, opt, and lli can ensure they are linked with all symbols// -// from libVMCore.a It should only be used from a tool's main program. // +//===----- LinkAllIR.h - Reference All VMCore Code --------------*- C++ -*-===// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file pulls in all the object modules of the VMCore library so +// that tools like llc, opt, and lli can ensure they are linked with all symbols +// from libVMCore.a It should only be used from a tool's main program. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LINKALLIR_H #define LLVM_LINKALLIR_H diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index 769c6c8996..4a600c01d2 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -1,14 +1,16 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkAllPasses.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file pulls in all transformation and analysis passes for tools// -// like opt and bugpoint that need this functionality. // +//===- llvm/LinkAllPasses.h ------------ Reference All Passes ---*- C++ -*-===// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file pulls in all transformation and analysis passes for tools +// like opt and bugpoint that need this functionality. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LINKALLPASSES_H #define LLVM_LINKALLPASSES_H diff --git a/include/llvm/Linker/Linker.h b/include/llvm/Linker/Linker.h index 35346f5696..c43b90e9cd 100644 --- a/include/llvm/Linker/Linker.h +++ b/include/llvm/Linker/Linker.h @@ -1,12 +1,11 @@ //===- Linker.h - Module Linker Interface -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Linker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LINKER_LINKER_H #define LLVM_LINKER_LINKER_H diff --git a/include/llvm/MC/ConstantPools.h b/include/llvm/MC/ConstantPools.h index aee21099a1..9aa4663ba0 100644 --- a/include/llvm/MC/ConstantPools.h +++ b/include/llvm/MC/ConstantPools.h @@ -1,14 +1,15 @@ //===- ConstantPool.h - Keep track of assembler-generated ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantPools.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the ConstantPool and AssemblerConstantPools classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the ConstantPool and AssemblerConstantPools classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_CONSTANTPOOLS_H diff --git a/include/llvm/MC/MCAsmBackend.h b/include/llvm/MC/MCAsmBackend.h index aeea5139d5..2bfad2d355 100644 --- a/include/llvm/MC/MCAsmBackend.h +++ b/include/llvm/MC/MCAsmBackend.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCAsmBackend.h - MC Asm Backend -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmBackend.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASMBACKEND_H #define LLVM_MC_MCASMBACKEND_H diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 3a7de40825..9bb0fa63c5 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -1,16 +1,17 @@ //===-- llvm/MC/MCAsmInfo.h - Asm info --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a class to be used as the basis for target specific // -// asm writers. This class primarily takes care of global printing constants,// -// which are used in very similar ways across all targets. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a class to be used as the basis for target specific +// asm writers. This class primarily takes care of global printing constants, +// which are used in very similar ways across all targets. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASMINFO_H #define LLVM_MC_MCASMINFO_H diff --git a/include/llvm/MC/MCAsmInfoCOFF.h b/include/llvm/MC/MCAsmInfoCOFF.h index 06423b5fba..56444f3c7c 100644 --- a/include/llvm/MC/MCAsmInfoCOFF.h +++ b/include/llvm/MC/MCAsmInfoCOFF.h @@ -1,12 +1,11 @@ //===-- MCAsmInfoCOFF.h - COFF asm properties -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfoCOFF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASMINFOCOFF_H #define LLVM_MC_MCASMINFOCOFF_H diff --git a/include/llvm/MC/MCAsmInfoDarwin.h b/include/llvm/MC/MCAsmInfoDarwin.h index e65074cab5..d587c3ce9d 100644 --- a/include/llvm/MC/MCAsmInfoDarwin.h +++ b/include/llvm/MC/MCAsmInfoDarwin.h @@ -1,15 +1,16 @@ //===---- MCAsmInfoDarwin.h - Darwin asm properties -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfoDarwin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines target asm properties related what form asm statements // -// should take in general on Darwin-based targets // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines target asm properties related what form asm statements +// should take in general on Darwin-based targets +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASMINFODARWIN_H #define LLVM_MC_MCASMINFODARWIN_H diff --git a/include/llvm/MC/MCAsmInfoELF.h b/include/llvm/MC/MCAsmInfoELF.h index 50cb21e632..7125f5c7ad 100644 --- a/include/llvm/MC/MCAsmInfoELF.h +++ b/include/llvm/MC/MCAsmInfoELF.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCAsmInfoELF.h - ELF Asm info -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfoELF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASMINFOELF_H #define LLVM_MC_MCASMINFOELF_H diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h index da07e4b6ca..1b20d5b804 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -1,12 +1,11 @@ //===- MCAsmLayout.h - Assembly Layout Object -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmLayout.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASMLAYOUT_H #define LLVM_MC_MCASMLAYOUT_H diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index e856e8ff9d..0642af837e 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -1,12 +1,11 @@ //===- MCAssembler.h - Object File Generation -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAssembler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCASSEMBLER_H #define LLVM_MC_MCASSEMBLER_H diff --git a/include/llvm/MC/MCCodeEmitter.h b/include/llvm/MC/MCCodeEmitter.h index 63438f4e45..b6c19150c1 100644 --- a/include/llvm/MC/MCCodeEmitter.h +++ b/include/llvm/MC/MCCodeEmitter.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCCodeEmitter.h - Instruction Encoding ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCCodeEmitter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCCODEEMITTER_H #define LLVM_MC_MCCODEEMITTER_H diff --git a/include/llvm/MC/MCCodeGenInfo.h b/include/llvm/MC/MCCodeGenInfo.h index d52ceb8125..0a4744f1d0 100644 --- a/include/llvm/MC/MCCodeGenInfo.h +++ b/include/llvm/MC/MCCodeGenInfo.h @@ -1,15 +1,16 @@ //===-- llvm/MC/MCCodeGenInfo.h - Target CodeGen Info -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCCodeGenInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file tracks information about the target which can affect codegen, // -// asm parsing, and asm printing. For example, relocation model. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file tracks information about the target which can affect codegen, +// asm parsing, and asm printing. For example, relocation model. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCCODEGENINFO_H #define LLVM_MC_MCCODEGENINFO_H diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index f3c293af30..41169e9a12 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -1,12 +1,11 @@ //===- MCContext.h - Machine Code Context -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCCONTEXT_H #define LLVM_MC_MCCONTEXT_H diff --git a/include/llvm/MC/MCDirectives.h b/include/llvm/MC/MCDirectives.h index a8d58a458a..f9d66e0b15 100644 --- a/include/llvm/MC/MCDirectives.h +++ b/include/llvm/MC/MCDirectives.h @@ -1,14 +1,15 @@ //===- MCDirectives.h - Enums for directives on various targets -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCDirectives.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines various enums that represent target-specific directives.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines various enums that represent target-specific directives. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCDIRECTIVES_H #define LLVM_MC_MCDIRECTIVES_H diff --git a/include/llvm/MC/MCDisassembler.h b/include/llvm/MC/MCDisassembler.h index d25ea2719e..57c40d660f 100644 --- a/include/llvm/MC/MCDisassembler.h +++ b/include/llvm/MC/MCDisassembler.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCDisassembler.h - Disassembler interface -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCDisassembler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCDISASSEMBLER_H #define LLVM_MC_MCDISASSEMBLER_H diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h index d116784252..1e72dfee4a 100644 --- a/include/llvm/MC/MCDwarf.h +++ b/include/llvm/MC/MCDwarf.h @@ -1,15 +1,16 @@ //===- MCDwarf.h - Machine Code Dwarf support -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCDwarf.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCDwarfFile to support the dwarf// -// .file directive and the .loc directive. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCDwarfFile to support the dwarf +// .file directive and the .loc directive. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCDWARF_H #define LLVM_MC_MCDWARF_H diff --git a/include/llvm/MC/MCELFObjectWriter.h b/include/llvm/MC/MCELFObjectWriter.h index 13b46f1267..01f694d3b7 100644 --- a/include/llvm/MC/MCELFObjectWriter.h +++ b/include/llvm/MC/MCELFObjectWriter.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCELFObjectWriter.h - ELF Object Writer ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCELFObjectWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCELFOBJECTWRITER_H #define LLVM_MC_MCELFOBJECTWRITER_H diff --git a/include/llvm/MC/MCELFStreamer.h b/include/llvm/MC/MCELFStreamer.h index 5dd4a3fb72..a5b257f595 100644 --- a/include/llvm/MC/MCELFStreamer.h +++ b/include/llvm/MC/MCELFStreamer.h @@ -1,12 +1,11 @@ //===- MCELFStreamer.h - MCStreamer ELF Object File Interface ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCELFStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCELFSTREAMER_H #define LLVM_MC_MCELFSTREAMER_H diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h index 7124b3d812..b3a607351a 100644 --- a/include/llvm/MC/MCExpr.h +++ b/include/llvm/MC/MCExpr.h @@ -1,12 +1,11 @@ //===- MCExpr.h - Assembly Level Expressions --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCExpr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCEXPR_H #define LLVM_MC_MCEXPR_H diff --git a/include/llvm/MC/MCExternalSymbolizer.h b/include/llvm/MC/MCExternalSymbolizer.h index 1a38525eda..2c7d23707c 100644 --- a/include/llvm/MC/MCExternalSymbolizer.h +++ b/include/llvm/MC/MCExternalSymbolizer.h @@ -1,16 +1,17 @@ //===-- llvm/MC/MCExternalSymbolizer.h - ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCExternalSymbolizer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCExternalSymbolizer class, which// -// enables library users to provide callbacks (through the C API) to do the // -// symbolization externally. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCExternalSymbolizer class, which +// enables library users to provide callbacks (through the C API) to do the +// symbolization externally. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCEXTERNALSYMBOLIZER_H #define LLVM_MC_MCEXTERNALSYMBOLIZER_H diff --git a/include/llvm/MC/MCFixedLenDisassembler.h b/include/llvm/MC/MCFixedLenDisassembler.h index d2dccf896e..ad99943df2 100644 --- a/include/llvm/MC/MCFixedLenDisassembler.h +++ b/include/llvm/MC/MCFixedLenDisassembler.h @@ -1,14 +1,13 @@ //===-- llvm/MC/MCFixedLenDisassembler.h - Decoder driver -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCFixedLenDisassembler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Fixed length disassembler decoder state machine driver. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Fixed length disassembler decoder state machine driver. +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCFIXEDLENDISASSEMBLER_H #define LLVM_MC_MCFIXEDLENDISASSEMBLER_H diff --git a/include/llvm/MC/MCFixup.h b/include/llvm/MC/MCFixup.h index e015325277..8ab477c401 100644 --- a/include/llvm/MC/MCFixup.h +++ b/include/llvm/MC/MCFixup.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCFixup.h - Instruction Relocation and Patching -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCFixup.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCFIXUP_H #define LLVM_MC_MCFIXUP_H diff --git a/include/llvm/MC/MCFixupKindInfo.h b/include/llvm/MC/MCFixupKindInfo.h index 1c77c20c9d..58183bd778 100644 --- a/include/llvm/MC/MCFixupKindInfo.h +++ b/include/llvm/MC/MCFixupKindInfo.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCFixupKindInfo.h - Fixup Descriptors -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCFixupKindInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCFIXUPKINDINFO_H #define LLVM_MC_MCFIXUPKINDINFO_H diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index ee7b2f059e..4688b5f2b6 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -1,16 +1,17 @@ //===-- llvm/MC/MCInst.h - MCInst class -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInst.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCInst and MCOperand classes, which// -// is the basic representation used to represent low-level machine code // -// instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCInst and MCOperand classes, which +// is the basic representation used to represent low-level machine code +// instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCINST_H #define LLVM_MC_MCINST_H diff --git a/include/llvm/MC/MCInstBuilder.h b/include/llvm/MC/MCInstBuilder.h index ea9019ff4a..30609bdb8b 100644 --- a/include/llvm/MC/MCInstBuilder.h +++ b/include/llvm/MC/MCInstBuilder.h @@ -1,15 +1,16 @@ //===-- llvm/MC/MCInstBuilder.h - Simplify creation of MCInsts --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the MCInstBuilder class for convenient creation of // -// MCInsts. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the MCInstBuilder class for convenient creation of +// MCInsts. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCINSTBUILDER_H #define LLVM_MC_MCINSTBUILDER_H diff --git a/include/llvm/MC/MCInstPrinter.h b/include/llvm/MC/MCInstPrinter.h index 172743175a..0eafd02c51 100644 --- a/include/llvm/MC/MCInstPrinter.h +++ b/include/llvm/MC/MCInstPrinter.h @@ -1,12 +1,11 @@ //===- MCInstPrinter.h - MCInst to target assembly syntax -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCINSTPRINTER_H #define LLVM_MC_MCINSTPRINTER_H diff --git a/include/llvm/MC/MCInstrAnalysis.h b/include/llvm/MC/MCInstrAnalysis.h index 3f0fcddead..8f5159e9e1 100644 --- a/include/llvm/MC/MCInstrAnalysis.h +++ b/include/llvm/MC/MCInstrAnalysis.h @@ -1,15 +1,16 @@ //===-- llvm/MC/MCInstrAnalysis.h - InstrDesc target hooks ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstrAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MCInstrAnalysis class which the MCTargetDescs can // -// derive from to give additional information to MC. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MCInstrAnalysis class which the MCTargetDescs can +// derive from to give additional information to MC. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCINSTRANALYSIS_H #define LLVM_MC_MCINSTRANALYSIS_H diff --git a/include/llvm/MC/MCInstrDesc.h b/include/llvm/MC/MCInstrDesc.h index 562758ddf3..addc89a189 100644 --- a/include/llvm/MC/MCInstrDesc.h +++ b/include/llvm/MC/MCInstrDesc.h @@ -1,13 +1,14 @@ //===-- llvm/MC/MCInstrDesc.h - Instruction Descriptors -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstrDesc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MCOperandInfo and MCInstrDesc classes, which // -// are used to describe target instructions and their operands. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MCOperandInfo and MCInstrDesc classes, which +// are used to describe target instructions and their operands. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/MC/MCInstrInfo.h b/include/llvm/MC/MCInstrInfo.h index 2080d04ac0..70c86587b0 100644 --- a/include/llvm/MC/MCInstrInfo.h +++ b/include/llvm/MC/MCInstrInfo.h @@ -1,14 +1,15 @@ //===-- llvm/MC/MCInstrInfo.h - Target Instruction Info ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstrInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the target machine instruction set. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the target machine instruction set. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCINSTRINFO_H #define LLVM_MC_MCINSTRINFO_H diff --git a/include/llvm/MC/MCInstrItineraries.h b/include/llvm/MC/MCInstrItineraries.h index 3134281295..328e793629 100644 --- a/include/llvm/MC/MCInstrItineraries.h +++ b/include/llvm/MC/MCInstrItineraries.h @@ -1,14 +1,15 @@ //===-- llvm/MC/MCInstrItineraries.h - Scheduling ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstrItineraries.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the structures used for instruction // -// itineraries, stages, and operand reads/writes. This is used by // -// schedulers to determine instruction stages and latencies. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the structures used for instruction +// itineraries, stages, and operand reads/writes. This is used by +// schedulers to determine instruction stages and latencies. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/MC/MCLabel.h b/include/llvm/MC/MCLabel.h index 08419112a5..a12473fdad 100644 --- a/include/llvm/MC/MCLabel.h +++ b/include/llvm/MC/MCLabel.h @@ -1,14 +1,15 @@ //===- MCLabel.h - Machine Code Directional Local Labels --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCLabel.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCLabel class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCLabel class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCLABEL_H #define LLVM_MC_MCLABEL_H diff --git a/include/llvm/MC/MCLinkerOptimizationHint.h b/include/llvm/MC/MCLinkerOptimizationHint.h index b7f06445d2..4b6f7ecc9f 100644 --- a/include/llvm/MC/MCLinkerOptimizationHint.h +++ b/include/llvm/MC/MCLinkerOptimizationHint.h @@ -1,17 +1,18 @@ //===- MCLinkerOptimizationHint.h - LOH interface ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCLinkerOptimizationHint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares some helpers classes to handle Linker Optimization Hint// -// (LOH). // // -// FIXME: LOH interface supports only MachO format at the moment. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares some helpers classes to handle Linker Optimization Hint +// (LOH). +// +// FIXME: LOH interface supports only MachO format at the moment. +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCLINKEROPTIMIZATIONHINT_H #define LLVM_MC_MCLINKEROPTIMIZATIONHINT_H diff --git a/include/llvm/MC/MCMachObjectWriter.h b/include/llvm/MC/MCMachObjectWriter.h index fa06e9ae03..175d73e72c 100644 --- a/include/llvm/MC/MCMachObjectWriter.h +++ b/include/llvm/MC/MCMachObjectWriter.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCMachObjectWriter.h - Mach Object Writer -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCMachObjectWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCMACHOBJECTWRITER_H #define LLVM_MC_MCMACHOBJECTWRITER_H diff --git a/include/llvm/MC/MCObjectFileInfo.h b/include/llvm/MC/MCObjectFileInfo.h index eff3fec790..99e3f92bfe 100644 --- a/include/llvm/MC/MCObjectFileInfo.h +++ b/include/llvm/MC/MCObjectFileInfo.h @@ -1,14 +1,15 @@ //===-- llvm/MC/MCObjectFileInfo.h - Object File Info -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCObjectFileInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes common object file formats. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes common object file formats. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCOBJECTFILEINFO_H #define LLVM_MC_MCOBJECTFILEINFO_H diff --git a/include/llvm/MC/MCObjectStreamer.h b/include/llvm/MC/MCObjectStreamer.h index cfcdc17139..ce1fc80f2c 100644 --- a/include/llvm/MC/MCObjectStreamer.h +++ b/include/llvm/MC/MCObjectStreamer.h @@ -1,12 +1,11 @@ //===- MCObjectStreamer.h - MCStreamer Object File Interface ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCObjectStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCOBJECTSTREAMER_H #define LLVM_MC_MCOBJECTSTREAMER_H diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h index 32cfaa757f..2211673efc 100644 --- a/include/llvm/MC/MCObjectWriter.h +++ b/include/llvm/MC/MCObjectWriter.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCObjectWriter.h - Object File Writer Interface -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCObjectWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCOBJECTWRITER_H #define LLVM_MC_MCOBJECTWRITER_H diff --git a/include/llvm/MC/MCParser/AsmCond.h b/include/llvm/MC/MCParser/AsmCond.h index 400a6b1d86..a918b5600e 100644 --- a/include/llvm/MC/MCParser/AsmCond.h +++ b/include/llvm/MC/MCParser/AsmCond.h @@ -1,12 +1,11 @@ //===- AsmCond.h - Assembly file conditional assembly ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmCond.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_ASMCOND_H #define LLVM_MC_MCPARSER_ASMCOND_H diff --git a/include/llvm/MC/MCParser/AsmLexer.h b/include/llvm/MC/MCParser/AsmLexer.h index 84ba9da51d..62d39b26c8 100644 --- a/include/llvm/MC/MCParser/AsmLexer.h +++ b/include/llvm/MC/MCParser/AsmLexer.h @@ -1,14 +1,15 @@ //===- AsmLexer.h - Lexer for Assembly Files --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class declares the lexer for assembly files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class declares the lexer for assembly files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_ASMLEXER_H #define LLVM_MC_MCPARSER_ASMLEXER_H diff --git a/include/llvm/MC/MCParser/MCAsmLexer.h b/include/llvm/MC/MCParser/MCAsmLexer.h index 050face8d6..71f15b37c3 100644 --- a/include/llvm/MC/MCParser/MCAsmLexer.h +++ b/include/llvm/MC/MCParser/MCAsmLexer.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCAsmLexer.h - Abstract Asm Lexer Interface -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_MCASMLEXER_H #define LLVM_MC_MCPARSER_MCASMLEXER_H diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h index d00aff4b08..ac8706d995 100644 --- a/include/llvm/MC/MCParser/MCAsmParser.h +++ b/include/llvm/MC/MCParser/MCAsmParser.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCAsmParser.h - Abstract Asm Parser Interface ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_MCASMPARSER_H #define LLVM_MC_MCPARSER_MCASMPARSER_H diff --git a/include/llvm/MC/MCParser/MCAsmParserExtension.h b/include/llvm/MC/MCParser/MCAsmParserExtension.h index 099296dd5b..077fd21e07 100644 --- a/include/llvm/MC/MCParser/MCAsmParserExtension.h +++ b/include/llvm/MC/MCParser/MCAsmParserExtension.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCAsmParserExtension.h - Asm Parser Hooks -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmParserExtension.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_MCASMPARSEREXTENSION_H #define LLVM_MC_MCPARSER_MCASMPARSEREXTENSION_H diff --git a/include/llvm/MC/MCParser/MCAsmParserUtils.h b/include/llvm/MC/MCParser/MCAsmParserUtils.h index 0aef4c8e07..9834fe9630 100644 --- a/include/llvm/MC/MCParser/MCAsmParserUtils.h +++ b/include/llvm/MC/MCParser/MCAsmParserUtils.h @@ -1,12 +1,11 @@ //===------ llvm/MC/MCAsmParserUtils.h - Asm Parser Utilities ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmParserUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H diff --git a/include/llvm/MC/MCParser/MCParsedAsmOperand.h b/include/llvm/MC/MCParser/MCParsedAsmOperand.h index 746237b454..aa8802ad60 100644 --- a/include/llvm/MC/MCParser/MCParsedAsmOperand.h +++ b/include/llvm/MC/MCParser/MCParsedAsmOperand.h @@ -1,11 +1,11 @@ //===-- llvm/MC/MCParsedAsmOperand.h - Asm Parser Operand -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCParsedAsmOperand.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H #define LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H diff --git a/include/llvm/MC/MCRegisterInfo.h b/include/llvm/MC/MCRegisterInfo.h index 28dfe070e2..fff223d947 100644 --- a/include/llvm/MC/MCRegisterInfo.h +++ b/include/llvm/MC/MCRegisterInfo.h @@ -1,14 +1,15 @@ //=== MC/MCRegisterInfo.h - Target Register Description ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCRegisterInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes an abstract interface used to get information about a // -// target machines register file. This information is used for a variety of // -// purposed, especially register allocation. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes an abstract interface used to get information about a +// target machines register file. This information is used for a variety of +// purposed, especially register allocation. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/MC/MCRelocationInfo.h b/include/llvm/MC/MCRelocationInfo.h index 8cf7bf0a8e..40e0217b8d 100644 --- a/include/llvm/MC/MCRelocationInfo.h +++ b/include/llvm/MC/MCRelocationInfo.h @@ -1,16 +1,17 @@ //==-- llvm/MC/MCRelocationInfo.h --------------------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCRelocationInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MCRelocationInfo class, which provides methods to // -// create MCExprs from relocations, either found in an object::ObjectFile // -// (object::RelocationRef), or provided through the C API. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MCRelocationInfo class, which provides methods to +// create MCExprs from relocations, either found in an object::ObjectFile +// (object::RelocationRef), or provided through the C API. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCRELOCATIONINFO_H #define LLVM_MC_MCRELOCATIONINFO_H diff --git a/include/llvm/MC/MCSchedule.h b/include/llvm/MC/MCSchedule.h index 0deffe8719..c097916310 100644 --- a/include/llvm/MC/MCSchedule.h +++ b/include/llvm/MC/MCSchedule.h @@ -1,15 +1,16 @@ //===-- llvm/MC/MCSchedule.h - Scheduling -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSchedule.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the classes used to describe a subtarget's machine model// -// for scheduling and other instruction cost heuristics. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the classes used to describe a subtarget's machine model +// for scheduling and other instruction cost heuristics. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSCHEDULE_H #define LLVM_MC_MCSCHEDULE_H diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index 05fa0a45ab..2d0d4dfc59 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -1,14 +1,15 @@ //===- MCSection.h - Machine Code Sections ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSection.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MCSection class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MCSection class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSECTION_H #define LLVM_MC_MCSECTION_H diff --git a/include/llvm/MC/MCSectionCOFF.h b/include/llvm/MC/MCSectionCOFF.h index 56697efa13..237f6d31fb 100644 --- a/include/llvm/MC/MCSectionCOFF.h +++ b/include/llvm/MC/MCSectionCOFF.h @@ -1,14 +1,15 @@ //===- MCSectionCOFF.h - COFF Machine Code Sections -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSectionCOFF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MCSectionCOFF class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MCSectionCOFF class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSECTIONCOFF_H #define LLVM_MC_MCSECTIONCOFF_H diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index e917288bf6..f6730371fe 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -1,14 +1,15 @@ //===- MCSectionELF.h - ELF Machine Code Sections ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSectionELF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MCSectionELF class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MCSectionELF class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSECTIONELF_H #define LLVM_MC_MCSECTIONELF_H diff --git a/include/llvm/MC/MCSectionMachO.h b/include/llvm/MC/MCSectionMachO.h index 1877ed2b47..97227517c8 100644 --- a/include/llvm/MC/MCSectionMachO.h +++ b/include/llvm/MC/MCSectionMachO.h @@ -1,14 +1,15 @@ //===- MCSectionMachO.h - MachO Machine Code Sections -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSectionMachO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MCSectionMachO class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MCSectionMachO class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSECTIONMACHO_H #define LLVM_MC_MCSECTIONMACHO_H diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index baf6f0c57f..f95eb4f121 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -1,14 +1,15 @@ //===- MCStreamer.h - High-level Streaming Machine Code Output --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MCStreamer class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MCStreamer class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSTREAMER_H #define LLVM_MC_MCSTREAMER_H diff --git a/include/llvm/MC/MCSubtargetInfo.h b/include/llvm/MC/MCSubtargetInfo.h index bbd38bdf7e..6051c8e3a6 100644 --- a/include/llvm/MC/MCSubtargetInfo.h +++ b/include/llvm/MC/MCSubtargetInfo.h @@ -1,12 +1,13 @@ //==-- llvm/MC/MCSubtargetInfo.h - Subtarget Information ---------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSubtargetInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the subtarget options of a Target machine. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the subtarget options of a Target machine. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h index 5e1b4c81cf..b2910dfccd 100644 --- a/include/llvm/MC/MCSymbol.h +++ b/include/llvm/MC/MCSymbol.h @@ -1,14 +1,15 @@ //===- MCSymbol.h - Machine Code Symbols ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbol.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCSymbol class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCSymbol class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSYMBOL_H #define LLVM_MC_MCSYMBOL_H diff --git a/include/llvm/MC/MCSymbolCOFF.h b/include/llvm/MC/MCSymbolCOFF.h index f173983af5..2172c67981 100644 --- a/include/llvm/MC/MCSymbolCOFF.h +++ b/include/llvm/MC/MCSymbolCOFF.h @@ -1,12 +1,11 @@ //===- MCSymbolCOFF.h - ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbolCOFF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSYMBOLCOFF_H #define LLVM_MC_MCSYMBOLCOFF_H diff --git a/include/llvm/MC/MCSymbolELF.h b/include/llvm/MC/MCSymbolELF.h index b4cc163bb7..bbcd22e8e7 100644 --- a/include/llvm/MC/MCSymbolELF.h +++ b/include/llvm/MC/MCSymbolELF.h @@ -1,12 +1,11 @@ //===- MCSymbolELF.h - -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbolELF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSYMBOLELF_H #define LLVM_MC_MCSYMBOLELF_H diff --git a/include/llvm/MC/MCSymbolMachO.h b/include/llvm/MC/MCSymbolMachO.h index c66bd2a62a..5b0321fe9f 100644 --- a/include/llvm/MC/MCSymbolMachO.h +++ b/include/llvm/MC/MCSymbolMachO.h @@ -1,12 +1,11 @@ //===- MCSymbolMachO.h - ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbolMachO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSYMBOLMACHO_H #define LLVM_MC_MCSYMBOLMACHO_H diff --git a/include/llvm/MC/MCSymbolizer.h b/include/llvm/MC/MCSymbolizer.h index 5921e3272b..2ef17673f0 100644 --- a/include/llvm/MC/MCSymbolizer.h +++ b/include/llvm/MC/MCSymbolizer.h @@ -1,16 +1,17 @@ //===-- llvm/MC/MCSymbolizer.h - MCSymbolizer class -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbolizer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCSymbolizer class, which is used// -// to symbolize instructions decoded from an object, that is, transform their// -// immediate operands to MCExprs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCSymbolizer class, which is used +// to symbolize instructions decoded from an object, that is, transform their +// immediate operands to MCExprs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCSYMBOLIZER_H #define LLVM_MC_MCSYMBOLIZER_H diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h index 250079718c..36db3914f0 100644 --- a/include/llvm/MC/MCTargetAsmParser.h +++ b/include/llvm/MC/MCTargetAsmParser.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCTargetAsmParser.h - Target Assembly Parser ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCTargetAsmParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCTARGETASMPARSER_H #define LLVM_MC_MCTARGETASMPARSER_H diff --git a/include/llvm/MC/MCTargetOptions.h b/include/llvm/MC/MCTargetOptions.h index 57a1b8ffce..97b92b99fa 100644 --- a/include/llvm/MC/MCTargetOptions.h +++ b/include/llvm/MC/MCTargetOptions.h @@ -1,12 +1,11 @@ //===- MCTargetOptions.h - MC Target Options -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCTargetOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCTARGETOPTIONS_H #define LLVM_MC_MCTARGETOPTIONS_H diff --git a/include/llvm/MC/MCTargetOptionsCommandFlags.h b/include/llvm/MC/MCTargetOptionsCommandFlags.h index a74eedd44d..af23a92e6e 100644 --- a/include/llvm/MC/MCTargetOptionsCommandFlags.h +++ b/include/llvm/MC/MCTargetOptionsCommandFlags.h @@ -1,15 +1,16 @@ //===-- MCTargetOptionsCommandFlags.h --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCTargetOptionsCommandFlags.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains machine code-specific flags that are shared between // -// different command line tools. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains machine code-specific flags that are shared between +// different command line tools. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H #define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H diff --git a/include/llvm/MC/MCValue.h b/include/llvm/MC/MCValue.h index 9747a5bcfd..6bdf43685f 100644 --- a/include/llvm/MC/MCValue.h +++ b/include/llvm/MC/MCValue.h @@ -1,14 +1,15 @@ //===-- llvm/MC/MCValue.h - MCValue class -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declaration of the MCValue class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declaration of the MCValue class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCVALUE_H #define LLVM_MC_MCVALUE_H diff --git a/include/llvm/MC/MCWin64EH.h b/include/llvm/MC/MCWin64EH.h index 14443a87a0..0e81a191cd 100644 --- a/include/llvm/MC/MCWin64EH.h +++ b/include/llvm/MC/MCWin64EH.h @@ -1,15 +1,16 @@ //===- MCWin64EH.h - Machine Code Win64 EH support --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCWin64EH.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains declarations to support the Win64 Exception Handling // -// scheme in MC. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains declarations to support the Win64 Exception Handling +// scheme in MC. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCWIN64EH_H #define LLVM_MC_MCWIN64EH_H diff --git a/include/llvm/MC/MCWinCOFFObjectWriter.h b/include/llvm/MC/MCWinCOFFObjectWriter.h index a0e180c1d7..e2e95c7df7 100644 --- a/include/llvm/MC/MCWinCOFFObjectWriter.h +++ b/include/llvm/MC/MCWinCOFFObjectWriter.h @@ -1,12 +1,11 @@ //===-- llvm/MC/MCWinCOFFObjectWriter.h - Win COFF Object Writer *- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCWinCOFFObjectWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCWINCOFFOBJECTWRITER_H #define LLVM_MC_MCWINCOFFOBJECTWRITER_H diff --git a/include/llvm/MC/MCWinCOFFStreamer.h b/include/llvm/MC/MCWinCOFFStreamer.h index ccc96999e1..6fbc754f11 100644 --- a/include/llvm/MC/MCWinCOFFStreamer.h +++ b/include/llvm/MC/MCWinCOFFStreamer.h @@ -1,12 +1,11 @@ //===- MCWinCOFFStreamer.h - COFF Object File Interface ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCWinCOFFStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCWINCOFFSTREAMER_H #define LLVM_MC_MCWINCOFFSTREAMER_H diff --git a/include/llvm/MC/MCWinEH.h b/include/llvm/MC/MCWinEH.h index ad5d5c4f1e..723d7a397c 100644 --- a/include/llvm/MC/MCWinEH.h +++ b/include/llvm/MC/MCWinEH.h @@ -1,12 +1,11 @@ //===- MCWinEH.h - Windows Unwinding Support --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCWinEH.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MCWINEH_H #define LLVM_MC_MCWINEH_H diff --git a/include/llvm/MC/MachineLocation.h b/include/llvm/MC/MachineLocation.h index 3ff6fa4e85..2a18615eff 100644 --- a/include/llvm/MC/MachineLocation.h +++ b/include/llvm/MC/MachineLocation.h @@ -1,17 +1,16 @@ //===-- llvm/MC/MachineLocation.h -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineLocation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The MachineLocation class is used to represent a simple location in a machine// -// frame. Locations will be one of two forms; a register or an address formed// -// from a base address plus an offset. Register indirection can be specified by// -// explicitly passing an offset to the constructor. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// The MachineLocation class is used to represent a simple location in a machine +// frame. Locations will be one of two forms; a register or an address formed +// from a base address plus an offset. Register indirection can be specified by +// explicitly passing an offset to the constructor. +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_MACHINELOCATION_H diff --git a/include/llvm/MC/SectionKind.h b/include/llvm/MC/SectionKind.h index ea7e386cf0..9e8b68f434 100644 --- a/include/llvm/MC/SectionKind.h +++ b/include/llvm/MC/SectionKind.h @@ -1,15 +1,16 @@ //===-- llvm/Target/TargetLoweringObjectFile.h - Object Info ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SectionKind.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements classes used to handle lowerings specific to common // -// object file formats. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements classes used to handle lowerings specific to common +// object file formats. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_SECTIONKIND_H #define LLVM_MC_SECTIONKIND_H diff --git a/include/llvm/MC/StringTableBuilder.h b/include/llvm/MC/StringTableBuilder.h index 288eacbac2..897d449254 100644 --- a/include/llvm/MC/StringTableBuilder.h +++ b/include/llvm/MC/StringTableBuilder.h @@ -1,12 +1,11 @@ //===-- StringTableBuilder.h - String table building utility ------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringTableBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_MC_STRINGTABLEBUILDER_H #define LLVM_MC_STRINGTABLEBUILDER_H diff --git a/include/llvm/MC/SubtargetFeature.h b/include/llvm/MC/SubtargetFeature.h index 149a9e466a..9ed9471dc0 100644 --- a/include/llvm/MC/SubtargetFeature.h +++ b/include/llvm/MC/SubtargetFeature.h @@ -1,16 +1,17 @@ //===-- llvm/MC/SubtargetFeature.h - CPU characteristics --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SubtargetFeature.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines and manages user or tool specified CPU characteristics. // -// The intent is to be able to package specific features that should or should// -// not be used on a specific target processor. A tool, such as llc, could, as// -// as example, gather chip info from the command line, a long with features // -// that should be used on that chip. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines and manages user or tool specified CPU characteristics. +// The intent is to be able to package specific features that should or should +// not be used on a specific target processor. A tool, such as llc, could, as +// as example, gather chip info from the command line, a long with features +// that should be used on that chip. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/MC/YAML.h b/include/llvm/MC/YAML.h index 9d29b3027a..ec22fc8b80 100644 --- a/include/llvm/MC/YAML.h +++ b/include/llvm/MC/YAML.h @@ -1,12 +1,3 @@ -//===- YAML.h ---------------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAML.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #ifndef LLVM_MC_YAML_H #define LLVM_MC_YAML_H diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h index 8253574510..597f0d48c1 100644 --- a/include/llvm/Object/Archive.h +++ b/include/llvm/Object/Archive.h @@ -1,14 +1,15 @@ //===- Archive.h - ar archive file format -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Archive.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the ar archive file format class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the ar archive file format class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ARCHIVE_H #define LLVM_OBJECT_ARCHIVE_H diff --git a/include/llvm/Object/ArchiveWriter.h b/include/llvm/Object/ArchiveWriter.h index 0961ea824c..3648d0c77f 100644 --- a/include/llvm/Object/ArchiveWriter.h +++ b/include/llvm/Object/ArchiveWriter.h @@ -1,14 +1,15 @@ //===- ArchiveWriter.h - ar archive file format writer ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArchiveWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Declares the writeArchive function for writing an archive file. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Declares the writeArchive function for writing an archive file. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ARCHIVEWRITER_H #define LLVM_OBJECT_ARCHIVEWRITER_H diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index 2c235d53c6..a3d6d0d4d4 100644 --- a/include/llvm/Object/Binary.h +++ b/include/llvm/Object/Binary.h @@ -1,14 +1,15 @@ //===- Binary.h - A generic binary file -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Binary.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the Binary class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the Binary class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_BINARY_H #define LLVM_OBJECT_BINARY_H diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index ff14dfb633..025a9dbc6b 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -1,14 +1,15 @@ //===- COFF.h - COFF object file implementation -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the COFFObjectFile class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the COFFObjectFile class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_COFF_H #define LLVM_OBJECT_COFF_H diff --git a/include/llvm/Object/COFFYAML.h b/include/llvm/Object/COFFYAML.h index 40063934e8..12a25223bd 100644 --- a/include/llvm/Object/COFFYAML.h +++ b/include/llvm/Object/COFFYAML.h @@ -1,14 +1,15 @@ //===- COFFYAML.h - COFF YAMLIO implementation ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFFYAML.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares classes for handling the YAML representation of COFF. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares classes for handling the YAML representation of COFF. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_COFFYAML_H #define LLVM_OBJECT_COFFYAML_H diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index f1ff90874e..cc271851e6 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -1,14 +1,15 @@ //===- ELF.h - ELF object file implementation -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the ELFFile template class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the ELFFile template class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ELF_H #define LLVM_OBJECT_ELF_H diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 36a3c32d41..6e8ace427a 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -1,14 +1,15 @@ //===- ELFObjectFile.h - ELF object file implementation ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFObjectFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the ELFObjectFile template class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the ELFObjectFile template class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ELFOBJECTFILE_H #define LLVM_OBJECT_ELFOBJECTFILE_H diff --git a/include/llvm/Object/ELFTypes.h b/include/llvm/Object/ELFTypes.h index edcacb4446..27e987ba28 100644 --- a/include/llvm/Object/ELFTypes.h +++ b/include/llvm/Object/ELFTypes.h @@ -1,12 +1,11 @@ //===- ELFTypes.h - Endian specific types for ELF ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ELFTYPES_H #define LLVM_OBJECT_ELFTYPES_H diff --git a/include/llvm/Object/ELFYAML.h b/include/llvm/Object/ELFYAML.h index 7387007188..df0aa500c8 100644 --- a/include/llvm/Object/ELFYAML.h +++ b/include/llvm/Object/ELFYAML.h @@ -1,18 +1,17 @@ //===- ELFYAML.h - ELF YAMLIO implementation --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFYAML.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file declares classes for handling the YAML representation // -/// of ELF. // +/// \file +/// \brief This file declares classes for handling the YAML representation +/// of ELF. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ELFYAML_H #define LLVM_OBJECT_ELFYAML_H diff --git a/include/llvm/Object/Error.h b/include/llvm/Object/Error.h index ffc5905f3b..aa320bb51a 100644 --- a/include/llvm/Object/Error.h +++ b/include/llvm/Object/Error.h @@ -1,14 +1,15 @@ //===- Error.h - system_error extensions for Object -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This declares a new error_category for the Object library. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This declares a new error_category for the Object library. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_ERROR_H #define LLVM_OBJECT_ERROR_H diff --git a/include/llvm/Object/IRObjectFile.h b/include/llvm/Object/IRObjectFile.h index 1402432fe6..ef655287c3 100644 --- a/include/llvm/Object/IRObjectFile.h +++ b/include/llvm/Object/IRObjectFile.h @@ -1,14 +1,15 @@ //===- IRObjectFile.h - LLVM IR object file implementation ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRObjectFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the IRObjectFile template class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the IRObjectFile template class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_IROBJECTFILE_H #define LLVM_OBJECT_IROBJECTFILE_H diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index 2882bb2ac6..489ecef5c9 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -1,15 +1,16 @@ //===- MachO.h - MachO object file implementation ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MachOObjectFile class, which implement the ObjectFile// -// interface for MachO files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MachOObjectFile class, which implement the ObjectFile +// interface for MachO files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_MACHO_H #define LLVM_OBJECT_MACHO_H diff --git a/include/llvm/Object/MachOUniversal.h b/include/llvm/Object/MachOUniversal.h index 94748c3a04..a11d381a70 100644 --- a/include/llvm/Object/MachOUniversal.h +++ b/include/llvm/Object/MachOUniversal.h @@ -1,14 +1,15 @@ //===- MachOUniversal.h - Mach-O universal binaries -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachOUniversal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares Mach-O fat/universal binaries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares Mach-O fat/universal binaries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_MACHOUNIVERSAL_H #define LLVM_OBJECT_MACHOUNIVERSAL_H diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index 5a5623ba71..8dd5256262 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -1,14 +1,15 @@ //===- ObjectFile.h - File format independent object file -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares a file format independent ObjectFile class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares a file format independent ObjectFile class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_OBJECTFILE_H #define LLVM_OBJECT_OBJECTFILE_H diff --git a/include/llvm/Object/RelocVisitor.h b/include/llvm/Object/RelocVisitor.h index 89f6c3f98a..d5e4258cb0 100644 --- a/include/llvm/Object/RelocVisitor.h +++ b/include/llvm/Object/RelocVisitor.h @@ -1,16 +1,17 @@ //===-- RelocVisitor.h - Visitor for object file relocations -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RelocVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides a wrapper around all the different types of relocations// -// in different file formats, such that a client can handle them in a unified// -// manner by only implementing a minimal number of functions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides a wrapper around all the different types of relocations +// in different file formats, such that a client can handle them in a unified +// manner by only implementing a minimal number of functions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_RELOCVISITOR_H #define LLVM_OBJECT_RELOCVISITOR_H diff --git a/include/llvm/Object/StackMapParser.h b/include/llvm/Object/StackMapParser.h index 50cb46d1fc..276eab6c29 100644 --- a/include/llvm/Object/StackMapParser.h +++ b/include/llvm/Object/StackMapParser.h @@ -1,12 +1,11 @@ //===-------- StackMapParser.h - StackMap Parsing Support -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackMapParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CODEGEN_STACKMAPPARSER_H #define LLVM_CODEGEN_STACKMAPPARSER_H diff --git a/include/llvm/Object/SymbolSize.h b/include/llvm/Object/SymbolSize.h index 9fc869d6dc..f2ce70f420 100644 --- a/include/llvm/Object/SymbolSize.h +++ b/include/llvm/Object/SymbolSize.h @@ -1,12 +1,12 @@ //===- SymbolSize.h ---------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolSize.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_SYMBOLSIZE_H #define LLVM_OBJECT_SYMBOLSIZE_H diff --git a/include/llvm/Object/SymbolicFile.h b/include/llvm/Object/SymbolicFile.h index 1fe9845778..537997ac63 100644 --- a/include/llvm/Object/SymbolicFile.h +++ b/include/llvm/Object/SymbolicFile.h @@ -1,14 +1,15 @@ //===- SymbolicFile.h - Interface that only provides symbols ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolicFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SymbolicFile interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SymbolicFile interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OBJECT_SYMBOLICFILE_H #define LLVM_OBJECT_SYMBOLICFILE_H diff --git a/include/llvm/Option/Arg.h b/include/llvm/Option/Arg.h index ea52347d36..e1b72b6267 100644 --- a/include/llvm/Option/Arg.h +++ b/include/llvm/Option/Arg.h @@ -1,17 +1,16 @@ //===--- Arg.h - Parsed Argument Classes ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Arg.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the llvm::Arg class for parsed arguments. // +/// \file +/// \brief Defines the llvm::Arg class for parsed arguments. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_OPTION_ARG_H #define LLVM_OPTION_ARG_H diff --git a/include/llvm/Option/ArgList.h b/include/llvm/Option/ArgList.h index c021e57c35..ef4005761b 100644 --- a/include/llvm/Option/ArgList.h +++ b/include/llvm/Option/ArgList.h @@ -1,12 +1,11 @@ //===--- ArgList.h - Argument List Management -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArgList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OPTION_ARGLIST_H #define LLVM_OPTION_ARGLIST_H diff --git a/include/llvm/Option/OptParser.td b/include/llvm/Option/OptParser.td index 4a762d6f88..16354c255d 100644 --- a/include/llvm/Option/OptParser.td +++ b/include/llvm/Option/OptParser.td @@ -1,16 +1,16 @@ //===--- OptParser.td - Common Option Parsing Interfaces ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptParser.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the common interfaces used by the option parsing TableGen// -// backend. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Define the kinds of options. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the common interfaces used by the option parsing TableGen +// backend. +// +//===----------------------------------------------------------------------===// class OptionKind { string Name = name; diff --git a/include/llvm/Option/OptSpecifier.h b/include/llvm/Option/OptSpecifier.h index f42490a085..0b2aaaec3a 100644 --- a/include/llvm/Option/OptSpecifier.h +++ b/include/llvm/Option/OptSpecifier.h @@ -1,12 +1,11 @@ //===--- OptSpecifier.h - Option Specifiers ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptSpecifier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OPTION_OPTSPECIFIER_H #define LLVM_OPTION_OPTSPECIFIER_H diff --git a/include/llvm/Option/OptTable.h b/include/llvm/Option/OptTable.h index ff8b451a6c..96f51cf331 100644 --- a/include/llvm/Option/OptTable.h +++ b/include/llvm/Option/OptTable.h @@ -1,12 +1,11 @@ //===--- OptTable.h - Option Table ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OPTION_OPTTABLE_H #define LLVM_OPTION_OPTTABLE_H diff --git a/include/llvm/Option/Option.h b/include/llvm/Option/Option.h index ce2b940a9b..09be26c7cf 100644 --- a/include/llvm/Option/Option.h +++ b/include/llvm/Option/Option.h @@ -1,12 +1,11 @@ //===--- Option.h - Abstract Driver Options ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Option.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_OPTION_OPTION_H #define LLVM_OPTION_OPTION_H diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index b87ebc1888..a20a90ba15 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -1,26 +1,28 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// Pass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a base class that indicates that a specified class is a // -// transformation pass implementation. // +//===- llvm/Pass.h - Base class for Passes ----------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a base class that indicates that a specified class is a +// transformation pass implementation. // -// Passes are designed this way so that it is possible to run passes in a cache// -// and organizationally optimal order without having to specify it at the front// -// end. This allows arbitrary passes to be strung together and have them // -// executed as efficiently as possible. // +// Passes are designed this way so that it is possible to run passes in a cache +// and organizationally optimal order without having to specify it at the front +// end. This allows arbitrary passes to be strung together and have them +// executed as efficiently as possible. // -// Passes should extend one of the classes below, depending on the guarantees// -// that it can make about what will be modified as it is run. For example, most// -// global optimizations should derive from FunctionPass, because they do not add// -// or delete functions, they operate on the internals of the function. // +// Passes should extend one of the classes below, depending on the guarantees +// that it can make about what will be modified as it is run. For example, most +// global optimizations should derive from FunctionPass, because they do not add +// or delete functions, they operate on the internals of the function. // -// Note that this file #includes PassSupport.h and PassAnalysisSupport.h (at the// -// bottom), so the APIs exposed by these files are also automatically available// -// to all users of this file. // +// Note that this file #includes PassSupport.h and PassAnalysisSupport.h (at the +// bottom), so the APIs exposed by these files are also automatically available +// to all users of this file. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h index 1a9a2663ac..c19ac329ae 100644 --- a/include/llvm/PassAnalysisSupport.h +++ b/include/llvm/PassAnalysisSupport.h @@ -1,17 +1,18 @@ //===- llvm/PassAnalysisSupport.h - Analysis Pass Support code --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassAnalysisSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines stuff that is used to define and "use" Analysis Passes. // -// This file is automatically #included by Pass.h, so: // // -// NO .CPP FILES SHOULD INCLUDE THIS FILE DIRECTLY // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines stuff that is used to define and "use" Analysis Passes. +// This file is automatically #included by Pass.h, so: +// +// NO .CPP FILES SHOULD INCLUDE THIS FILE DIRECTLY // -// Instead, #include Pass.h // +// Instead, #include Pass.h // //===----------------------------------------------------------------------===// diff --git a/include/llvm/PassInfo.h b/include/llvm/PassInfo.h index bad00a23d2..d10761831b 100644 --- a/include/llvm/PassInfo.h +++ b/include/llvm/PassInfo.h @@ -1,14 +1,15 @@ //===- llvm/PassInfo.h - Pass Info class ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines and implements the PassInfo class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines and implements the PassInfo class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PASSINFO_H #define LLVM_PASSINFO_H diff --git a/include/llvm/PassRegistry.h b/include/llvm/PassRegistry.h index ea41dd90dd..72b4be89be 100644 --- a/include/llvm/PassRegistry.h +++ b/include/llvm/PassRegistry.h @@ -1,17 +1,18 @@ //===- llvm/PassRegistry.h - Pass Information Registry ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines PassRegistry, a class that is used in the initialization// -// and registration of passes. At application startup, passes are registered// -// with the PassRegistry, which is later provided to the PassManager for // -// dependency resolution and similar tasks. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines PassRegistry, a class that is used in the initialization +// and registration of passes. At application startup, passes are registered +// with the PassRegistry, which is later provided to the PassManager for +// dependency resolution and similar tasks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PASSREGISTRY_H #define LLVM_PASSREGISTRY_H diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 823187f84c..6cb6516412 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -1,21 +1,22 @@ //===- llvm/PassSupport.h - Pass Support code -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines stuff that is used to define and "use" Passes. This file// -// is automatically #included by Pass.h, so: // // -// NO .CPP FILES SHOULD INCLUDE THIS FILE DIRECTLY // +// The LLVM Compiler Infrastructure // -// Instead, #include Pass.h. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// This file defines Pass registration code and classes used for it. // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file defines stuff that is used to define and "use" Passes. This file +// is automatically #included by Pass.h, so: +// +// NO .CPP FILES SHOULD INCLUDE THIS FILE DIRECTLY +// +// Instead, #include Pass.h. +// +// This file defines Pass registration code and classes used for it. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PASSSUPPORT_H #define LLVM_PASSSUPPORT_H diff --git a/include/llvm/Passes/PassBuilder.h b/include/llvm/Passes/PassBuilder.h index 8b2bdc1b46..1e605e3741 100644 --- a/include/llvm/Passes/PassBuilder.h +++ b/include/llvm/Passes/PassBuilder.h @@ -1,18 +1,17 @@ //===- Parsing, selection, and construction of pass pipelines --*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// Interfaces for registering analysis passes, producing common pass manager// -/// configurations, and parsing of pass pipelines. // +/// Interfaces for registering analysis passes, producing common pass manager +/// configurations, and parsing of pass pipelines. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_PASSES_PASSBUILDER_H #define LLVM_PASSES_PASSBUILDER_H diff --git a/include/llvm/ProfileData/CoverageMapping.h b/include/llvm/ProfileData/CoverageMapping.h index 883c51345c..3488e793d8 100644 --- a/include/llvm/ProfileData/CoverageMapping.h +++ b/include/llvm/ProfileData/CoverageMapping.h @@ -1,15 +1,16 @@ //=-- CoverageMapping.h - Code coverage mapping support ---------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMapping.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Code coverage mapping data is generated by clang and read by // -// llvm-cov to show code coverage statistics for a file. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Code coverage mapping data is generated by clang and read by +// llvm-cov to show code coverage statistics for a file. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_COVERAGEMAPPING_H_ #define LLVM_PROFILEDATA_COVERAGEMAPPING_H_ diff --git a/include/llvm/ProfileData/CoverageMappingReader.h b/include/llvm/ProfileData/CoverageMappingReader.h index 410a464262..38fb468047 100644 --- a/include/llvm/ProfileData/CoverageMappingReader.h +++ b/include/llvm/ProfileData/CoverageMappingReader.h @@ -1,15 +1,16 @@ //=-- CoverageMappingReader.h - Code coverage mapping reader ------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for reading coverage mapping data for // -// instrumentation based coverage. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for reading coverage mapping data for +// instrumentation based coverage. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_COVERAGEMAPPINGREADER_H #define LLVM_PROFILEDATA_COVERAGEMAPPINGREADER_H diff --git a/include/llvm/ProfileData/CoverageMappingWriter.h b/include/llvm/ProfileData/CoverageMappingWriter.h index 1a35841e99..2e3b0378d0 100644 --- a/include/llvm/ProfileData/CoverageMappingWriter.h +++ b/include/llvm/ProfileData/CoverageMappingWriter.h @@ -1,15 +1,16 @@ //=-- CoverageMappingWriter.h - Code coverage mapping writer ------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing coverage mapping data for // -// instrumentation based coverage. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing coverage mapping data for +// instrumentation based coverage. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_COVERAGEMAPPINGWRITER_H #define LLVM_PROFILEDATA_COVERAGEMAPPINGWRITER_H diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index 01da063f31..77055ba872 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -1,16 +1,17 @@ //=-- InstrProf.h - Instrumented profiling format support ---------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProf.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Instrumentation-based profiling data is generated by instrumented // -// binaries through library functions in compiler-rt, and read by the clang // -// frontend to feed PGO. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Instrumentation-based profiling data is generated by instrumented +// binaries through library functions in compiler-rt, and read by the clang +// frontend to feed PGO. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_INSTRPROF_H_ #define LLVM_PROFILEDATA_INSTRPROF_H_ diff --git a/include/llvm/ProfileData/InstrProfReader.h b/include/llvm/ProfileData/InstrProfReader.h index f2a83410e3..f937e7d08d 100644 --- a/include/llvm/ProfileData/InstrProfReader.h +++ b/include/llvm/ProfileData/InstrProfReader.h @@ -1,15 +1,16 @@ //=-- InstrProfReader.h - Instrumented profiling readers ----------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for reading profiling data for instrumentation // -// based PGO and coverage. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for reading profiling data for instrumentation +// based PGO and coverage. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_INSTRPROFREADER_H #define LLVM_PROFILEDATA_INSTRPROFREADER_H diff --git a/include/llvm/ProfileData/InstrProfWriter.h b/include/llvm/ProfileData/InstrProfWriter.h index 8e02397e1e..ce0bb52424 100644 --- a/include/llvm/ProfileData/InstrProfWriter.h +++ b/include/llvm/ProfileData/InstrProfWriter.h @@ -1,15 +1,16 @@ //=-- InstrProfWriter.h - Instrumented profiling writer -----------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing profiling data for instrumentation // -// based PGO and coverage. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing profiling data for instrumentation +// based PGO and coverage. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_INSTRPROFWRITER_H #define LLVM_PROFILEDATA_INSTRPROFWRITER_H diff --git a/include/llvm/ProfileData/SampleProf.h b/include/llvm/ProfileData/SampleProf.h index ef8e249a54..1b82e55aa7 100644 --- a/include/llvm/ProfileData/SampleProf.h +++ b/include/llvm/ProfileData/SampleProf.h @@ -1,15 +1,16 @@ //=-- SampleProf.h - Sampling profiling format support --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProf.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains common definitions used in the reading and writing of // -// sample profile data. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains common definitions used in the reading and writing of +// sample profile data. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_SAMPLEPROF_H_ #define LLVM_PROFILEDATA_SAMPLEPROF_H_ diff --git a/include/llvm/ProfileData/SampleProfReader.h b/include/llvm/ProfileData/SampleProfReader.h index 25b696581f..c082a1abe9 100644 --- a/include/llvm/ProfileData/SampleProfReader.h +++ b/include/llvm/ProfileData/SampleProfReader.h @@ -1,14 +1,15 @@ //===- SampleProfReader.h - Read LLVM sample profile data -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProfReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains definitions needed for reading sample profiles. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains definitions needed for reading sample profiles. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_SAMPLEPROFREADER_H #define LLVM_PROFILEDATA_SAMPLEPROFREADER_H diff --git a/include/llvm/ProfileData/SampleProfWriter.h b/include/llvm/ProfileData/SampleProfWriter.h index 19b0f4b93f..302a82d328 100644 --- a/include/llvm/ProfileData/SampleProfWriter.h +++ b/include/llvm/ProfileData/SampleProfWriter.h @@ -1,14 +1,15 @@ //===- SampleProfWriter.h - Write LLVM sample profile data ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProfWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains definitions needed for writing sample profiles. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains definitions needed for writing sample profiles. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_PROFILEDATA_SAMPLEPROFWRITER_H #define LLVM_PROFILEDATA_SAMPLEPROFWRITER_H diff --git a/include/llvm/Support/AIXDataTypesFix.h b/include/llvm/Support/AIXDataTypesFix.h index 46a4c034cc..a9a9147de2 100644 --- a/include/llvm/Support/AIXDataTypesFix.h +++ b/include/llvm/Support/AIXDataTypesFix.h @@ -1,16 +1,17 @@ //===-- llvm/Support/AIXDataTypesFix.h - Fix datatype defs ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AIXDataTypesFix.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file overrides default system-defined types and limits which cannot be// -// done in DataTypes.h.in because it is processed by autoheader first, which // -// comments out any #undef statement // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file overrides default system-defined types and limits which cannot be +// done in DataTypes.h.in because it is processed by autoheader first, which +// comments out any #undef statement +// +//===----------------------------------------------------------------------===// // No include guards desired! diff --git a/include/llvm/Support/ARMBuildAttributes.h b/include/llvm/Support/ARMBuildAttributes.h index d236e876d4..fc14cb2d0b 100644 --- a/include/llvm/Support/ARMBuildAttributes.h +++ b/include/llvm/Support/ARMBuildAttributes.h @@ -1,19 +1,20 @@ //===-- ARMBuildAttributes.h - ARM Build Attributes -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMBuildAttributes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains enumerations and support routines for ARM build attributes// -// as defined in ARM ABI addenda document (ABI release 2.08). // // -// ELF for the ARM Architecture r2.09 - November 30, 2012 // +// The LLVM Compiler Infrastructure // -// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file contains enumerations and support routines for ARM build attributes +// as defined in ARM ABI addenda document (ABI release 2.08). +// +// ELF for the ARM Architecture r2.09 - November 30, 2012 +// +// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ARMBUILDATTRIBUTES_H #define LLVM_SUPPORT_ARMBUILDATTRIBUTES_H diff --git a/include/llvm/Support/ARMEHABI.h b/include/llvm/Support/ARMEHABI.h index 8abece5f31..9b052df0a9 100644 --- a/include/llvm/Support/ARMEHABI.h +++ b/include/llvm/Support/ARMEHABI.h @@ -1,22 +1,23 @@ //===--- ARMEHABI.h - ARM Exception Handling ABI ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMEHABI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the constants for the ARM unwind opcodes and exception // -// handling table entry kinds. // // -// The enumerations and constants in this file reflect the ARM EHABI // -// Specification as published by ARM. // +// The LLVM Compiler Infrastructure // -// Exception Handling ABI for the ARM Architecture r2.09 - November 30, 2012 // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038a/IHI0038A_ehabi.pdf// +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file defines the constants for the ARM unwind opcodes and exception +// handling table entry kinds. +// +// The enumerations and constants in this file reflect the ARM EHABI +// Specification as published by ARM. +// +// Exception Handling ABI for the ARM Architecture r2.09 - November 30, 2012 +// +// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038a/IHI0038A_ehabi.pdf +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ARMEHABI_H #define LLVM_SUPPORT_ARMEHABI_H diff --git a/include/llvm/Support/ARMWinEH.h b/include/llvm/Support/ARMWinEH.h index cab3ee9645..1463629f45 100644 --- a/include/llvm/Support/ARMWinEH.h +++ b/include/llvm/Support/ARMWinEH.h @@ -1,12 +1,11 @@ //===-- llvm/Support/WinARMEH.h - Windows on ARM EH Constants ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMWinEH.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ARMWINEH_H #define LLVM_SUPPORT_ARMWINEH_H diff --git a/include/llvm/Support/AlignOf.h b/include/llvm/Support/AlignOf.h index 5e681397f0..07da02d063 100644 --- a/include/llvm/Support/AlignOf.h +++ b/include/llvm/Support/AlignOf.h @@ -1,15 +1,16 @@ //===--- AlignOf.h - Portable calculation of type alignment -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AlignOf.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AlignOf function that computes alignments for // -// arbitrary types. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AlignOf function that computes alignments for +// arbitrary types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ALIGNOF_H #define LLVM_SUPPORT_ALIGNOF_H diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index fe04e5cc0a..046e737366 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -1,23 +1,22 @@ //===--- Allocator.h - Simple memory allocation abstraction -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Allocator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file defines the MallocAllocator and BumpPtrAllocator interfaces. Both// -/// of these conform to an LLVM "Allocator" concept which consists of an // -/// Allocate method accepting a size and alignment, and a Deallocate accepting// -/// a pointer and size. Further, the LLVM "Allocator" concept has overloads of// -/// Allocate and Deallocate for setting size and alignment based on the final// -/// type. These overloads are typically provided by a base class template \c // -/// AllocatorBase. // +/// This file defines the MallocAllocator and BumpPtrAllocator interfaces. Both +/// of these conform to an LLVM "Allocator" concept which consists of an +/// Allocate method accepting a size and alignment, and a Deallocate accepting +/// a pointer and size. Further, the LLVM "Allocator" concept has overloads of +/// Allocate and Deallocate for setting size and alignment based on the final +/// type. These overloads are typically provided by a base class template \c +/// AllocatorBase. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ALLOCATOR_H #define LLVM_SUPPORT_ALLOCATOR_H diff --git a/include/llvm/Support/ArrayRecycler.h b/include/llvm/Support/ArrayRecycler.h index b74d48de94..36f644af28 100644 --- a/include/llvm/Support/ArrayRecycler.h +++ b/include/llvm/Support/ArrayRecycler.h @@ -1,15 +1,16 @@ //==- llvm/Support/ArrayRecycler.h - Recycling of Arrays ---------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArrayRecycler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ArrayRecycler class template which can recycle small// -// arrays allocated from one of the allocators in Allocator.h // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ArrayRecycler class template which can recycle small +// arrays allocated from one of the allocators in Allocator.h +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ARRAYRECYCLER_H #define LLVM_SUPPORT_ARRAYRECYCLER_H diff --git a/include/llvm/Support/Atomic.h b/include/llvm/Support/Atomic.h index 2b03d42611..9ec23e8270 100644 --- a/include/llvm/Support/Atomic.h +++ b/include/llvm/Support/Atomic.h @@ -1,14 +1,15 @@ //===- llvm/Support/Atomic.h - Atomic Operations -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Atomic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys atomic operations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys atomic operations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ATOMIC_H #define LLVM_SUPPORT_ATOMIC_H diff --git a/include/llvm/Support/BlockFrequency.h b/include/llvm/Support/BlockFrequency.h index 1c270a382b..4304a253b2 100644 --- a/include/llvm/Support/BlockFrequency.h +++ b/include/llvm/Support/BlockFrequency.h @@ -1,14 +1,15 @@ //===-------- BlockFrequency.h - Block Frequency Wrapper --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequency.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Block Frequency class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Block Frequency class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_BLOCKFREQUENCY_H #define LLVM_SUPPORT_BLOCKFREQUENCY_H diff --git a/include/llvm/Support/BranchProbability.h b/include/llvm/Support/BranchProbability.h index 40c19ba191..a6429dd22a 100644 --- a/include/llvm/Support/BranchProbability.h +++ b/include/llvm/Support/BranchProbability.h @@ -1,14 +1,15 @@ //===- BranchProbability.h - Branch Probability Wrapper ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchProbability.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of BranchProbability shared by IR and Machine Instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of BranchProbability shared by IR and Machine Instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_BRANCHPROBABILITY_H #define LLVM_SUPPORT_BRANCHPROBABILITY_H diff --git a/include/llvm/Support/CBindingWrapping.h b/include/llvm/Support/CBindingWrapping.h index 3d3aa2278f..786ba183b3 100644 --- a/include/llvm/Support/CBindingWrapping.h +++ b/include/llvm/Support/CBindingWrapping.h @@ -1,14 +1,15 @@ //===- llvm/Support/CBindingWrapph.h - C Interface Wrapping -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CBindingWrapping.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the wrapping macros for the C interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the wrapping macros for the C interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_CBINDINGWRAPPING_H #define LLVM_SUPPORT_CBINDINGWRAPPING_H diff --git a/include/llvm/Support/COFF.h b/include/llvm/Support/COFF.h index 7609dd39a6..3c5ee06969 100644 --- a/include/llvm/Support/COFF.h +++ b/include/llvm/Support/COFF.h @@ -1,23 +1,24 @@ //===-- llvm/Support/COFF.h -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an definitions used in Windows COFF Files. // // -// Structures and enums defined within this file where created using // -// information from Microsoft's publicly available PE/COFF format document: // +// The LLVM Compiler Infrastructure // -// Microsoft Portable Executable and Common Object File Format Specification // -// Revision 8.1 - February 15, 2008 // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// As of 5/2/2010, hosted by Microsoft at: // -// http://www.microsoft.com/whdc/system/platform/firmware/pecoff.mspx // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file contains an definitions used in Windows COFF Files. +// +// Structures and enums defined within this file where created using +// information from Microsoft's publicly available PE/COFF format document: +// +// Microsoft Portable Executable and Common Object File Format Specification +// Revision 8.1 - February 15, 2008 +// +// As of 5/2/2010, hosted by Microsoft at: +// http://www.microsoft.com/whdc/system/platform/firmware/pecoff.mspx +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_COFF_H #define LLVM_SUPPORT_COFF_H diff --git a/include/llvm/Support/COM.h b/include/llvm/Support/COM.h index b3105f2d41..a2d5a7a68b 100644 --- a/include/llvm/Support/COM.h +++ b/include/llvm/Support/COM.h @@ -1,17 +1,16 @@ //===- llvm/Support/COM.h ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COM.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// Provides a library for accessing COM functionality of the Host OS. // +/// Provides a library for accessing COM functionality of the Host OS. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_COM_H #define LLVM_SUPPORT_COM_H diff --git a/include/llvm/Support/Capacity.h b/include/llvm/Support/Capacity.h index a843701a21..7460f9825b 100644 --- a/include/llvm/Support/Capacity.h +++ b/include/llvm/Support/Capacity.h @@ -1,15 +1,16 @@ //===--- Capacity.h - Generic computation of ADT memory use -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Capacity.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the capacity function that computes the amount of // -// memory used by an ADT. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the capacity function that computes the amount of +// memory used by an ADT. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_CAPACITY_H #define LLVM_SUPPORT_CAPACITY_H diff --git a/include/llvm/Support/Casting.h b/include/llvm/Support/Casting.h index 055db3dc75..f00c193265 100644 --- a/include/llvm/Support/Casting.h +++ b/include/llvm/Support/Casting.h @@ -1,13 +1,14 @@ //===-- llvm/Support/Casting.h - Allow flexible, checked, casts -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Casting.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the isa(), cast(), dyn_cast(), cast_or_null(),// -// and dyn_cast_or_null() templates. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the isa(), cast(), dyn_cast(), cast_or_null(), +// and dyn_cast_or_null() templates. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Support/CodeGen.h b/include/llvm/Support/CodeGen.h index acc3c608ba..243f2dd749 100644 --- a/include/llvm/Support/CodeGen.h +++ b/include/llvm/Support/CodeGen.h @@ -1,15 +1,16 @@ //===-- llvm/Support/CodeGen.h - CodeGen Concepts ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGen.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file define some types which define code generation concepts. For // -// example, relocation model. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file define some types which define code generation concepts. For +// example, relocation model. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_CODEGEN_H #define LLVM_SUPPORT_CODEGEN_H diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 2e91735260..56cad07af9 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -1,18 +1,19 @@ //===- llvm/Support/CommandLine.h - Command line handler --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommandLine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements a command line argument processor that is useful when// -// creating a tool. It provides a simple, minimalistic interface that is easily// -// extensible and supports nonlocal (library) command line options. // // -// Note that rather than trying to figure out what this code does, you should// -// read the library documentation located in docs/CommandLine.html or looks at// -// the many example usages in tools/*/*.cpp // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements a command line argument processor that is useful when +// creating a tool. It provides a simple, minimalistic interface that is easily +// extensible and supports nonlocal (library) command line options. +// +// Note that rather than trying to figure out what this code does, you should +// read the library documentation located in docs/CommandLine.html or looks at +// the many example usages in tools/*/*.cpp // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index bf0b58a1c0..141639839c 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -1,15 +1,16 @@ //===-- llvm/Support/Compiler.h - Compiler abstraction support --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Compiler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines several macros, based on the current compiler. This allows// -// use of compiler-specific features in a way that remains portable. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines several macros, based on the current compiler. This allows +// use of compiler-specific features in a way that remains portable. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_COMPILER_H #define LLVM_SUPPORT_COMPILER_H diff --git a/include/llvm/Support/Compression.h b/include/llvm/Support/Compression.h index b44f30db68..28274d67aa 100644 --- a/include/llvm/Support/Compression.h +++ b/include/llvm/Support/Compression.h @@ -1,14 +1,15 @@ //===-- llvm/Support/Compression.h ---Compression----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Compression.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains basic functions for compression/uncompression. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains basic functions for compression/uncompression. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_COMPRESSION_H #define LLVM_SUPPORT_COMPRESSION_H diff --git a/include/llvm/Support/ConvertUTF.h b/include/llvm/Support/ConvertUTF.h index 29cec754d8..edc631fa2d 100644 --- a/include/llvm/Support/ConvertUTF.h +++ b/include/llvm/Support/ConvertUTF.h @@ -1,12 +1,12 @@ /*===--- ConvertUTF.h - Universal Character Names conversions ---------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// ConvertUTF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -////////////////////////////////////////////////////////////////////////////////* + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *==------------------------------------------------------------------------==*/ +/* * Copyright 2001-2004 Unicode, Inc. * * Disclaimer diff --git a/include/llvm/Support/CrashRecoveryContext.h b/include/llvm/Support/CrashRecoveryContext.h index 1bef559b80..c08c3c1f0d 100644 --- a/include/llvm/Support/CrashRecoveryContext.h +++ b/include/llvm/Support/CrashRecoveryContext.h @@ -1,12 +1,11 @@ //===--- CrashRecoveryContext.h - Crash Recovery ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CrashRecoveryContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_CRASHRECOVERYCONTEXT_H #define LLVM_SUPPORT_CRASHRECOVERYCONTEXT_H diff --git a/include/llvm/Support/DOTGraphTraits.h b/include/llvm/Support/DOTGraphTraits.h index 0b0dd45db1..95e37c01d7 100644 --- a/include/llvm/Support/DOTGraphTraits.h +++ b/include/llvm/Support/DOTGraphTraits.h @@ -1,17 +1,18 @@ //===-- llvm/Support/DotGraphTraits.h - Customize .dot output ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DOTGraphTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a template class that can be used to customize dot output// -// graphs generated by the GraphWriter.h file. The default implementation of// -// this file will produce a simple, but not very polished graph. By // -// specializing this template, lots of customization opportunities are possible.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a template class that can be used to customize dot output +// graphs generated by the GraphWriter.h file. The default implementation of +// this file will produce a simple, but not very polished graph. By +// specializing this template, lots of customization opportunities are possible. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_DOTGRAPHTRAITS_H #define LLVM_SUPPORT_DOTGRAPHTRAITS_H diff --git a/include/llvm/Support/DataExtractor.h b/include/llvm/Support/DataExtractor.h index 3776613dab..3ffa9bc90d 100644 --- a/include/llvm/Support/DataExtractor.h +++ b/include/llvm/Support/DataExtractor.h @@ -1,12 +1,11 @@ //===-- DataExtractor.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataExtractor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_DATAEXTRACTOR_H #define LLVM_SUPPORT_DATAEXTRACTOR_H diff --git a/include/llvm/Support/DataStream.h b/include/llvm/Support/DataStream.h index 0341340d58..a544316f43 100644 --- a/include/llvm/Support/DataStream.h +++ b/include/llvm/Support/DataStream.h @@ -1,16 +1,17 @@ //===---- llvm/Support/DataStream.h - Lazy bitcode streaming ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataStream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines DataStreamer, which fetches bytes of data from // -// a stream source. It provides support for streaming (lazy reading) of // -// data, e.g. bitcode // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines DataStreamer, which fetches bytes of data from +// a stream source. It provides support for streaming (lazy reading) of +// data, e.g. bitcode +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_DATASTREAM_H diff --git a/include/llvm/Support/DataTypes.h.cmake b/include/llvm/Support/DataTypes.h.cmake index 77774dd343..c90bf51afa 100644 --- a/include/llvm/Support/DataTypes.h.cmake +++ b/include/llvm/Support/DataTypes.h.cmake @@ -1,22 +1,23 @@ /*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// DataTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains definitions to figure out the size of _HOST_ data types// -// This file is important because different host OS's define different macros// -// which makes portability tough. This file exports the following // -// definitions: // -// // -// [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system type// -// [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. // -// // -// No library is required when using these functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file contains definitions to figure out the size of _HOST_ data types.*| +|* This file is important because different host OS's define different macros,*| +|* which makes portability tough. This file exports the following *| +|* definitions: *| +|* *| +|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*| +|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *| +|* *| +|* No library is required when using these functions. *| +|* *| +|*===----------------------------------------------------------------------===*/ /* Please leave this file C-compatible. */ diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in index ccddfd95fc..b8b2ba56ff 100644 --- a/include/llvm/Support/DataTypes.h.in +++ b/include/llvm/Support/DataTypes.h.in @@ -1,22 +1,23 @@ /*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// DataTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains definitions to figure out the size of _HOST_ data types// -// This file is important because different host OS's define different macros// -// which makes portability tough. This file exports the following // -// definitions: // -// // -// [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system type// -// [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. // -// // -// No library is required when using these functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file contains definitions to figure out the size of _HOST_ data types.*| +|* This file is important because different host OS's define different macros,*| +|* which makes portability tough. This file exports the following *| +|* definitions: *| +|* *| +|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*| +|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *| +|* *| +|* No library is required when using these functions. *| +|* *| +|*===----------------------------------------------------------------------===*/ /* Please leave this file C-compatible. */ diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h index 70536e5fee..ab82400b5c 100644 --- a/include/llvm/Support/Debug.h +++ b/include/llvm/Support/Debug.h @@ -1,28 +1,29 @@ //===- llvm/Support/Debug.h - Easy way to add debug output ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Debug.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a handy way of adding debugging information to your // -// code, without it being enabled all of the time, and without having to add // -// command line options to enable it. // // -// In particular, just wrap your code with the DEBUG() macro, and it will be // -// enabled automatically if you specify '-debug' on the command-line. // -// Alternatively, you can also define the DEBUG_TYPE macro to "foo" specify // -// that your debug code belongs to class "foo". Be careful that you only do // -// this after including Debug.h and not around any #include of headers. Headers// -// should define and undef the macro acround the code that needs to use the // -// DEBUG() macro. Then, on the command line, you can specify '-debug-only=foo'// -// to enable JUST the debug information for the foo class. // +// The LLVM Compiler Infrastructure // -// When compiling without assertions, the -debug-* options and all code in // -// DEBUG() statements disappears, so it does not affect the runtime of the code.// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file implements a handy way of adding debugging information to your +// code, without it being enabled all of the time, and without having to add +// command line options to enable it. +// +// In particular, just wrap your code with the DEBUG() macro, and it will be +// enabled automatically if you specify '-debug' on the command-line. +// Alternatively, you can also define the DEBUG_TYPE macro to "foo" specify +// that your debug code belongs to class "foo". Be careful that you only do +// this after including Debug.h and not around any #include of headers. Headers +// should define and undef the macro acround the code that needs to use the +// DEBUG() macro. Then, on the command line, you can specify '-debug-only=foo' +// to enable JUST the debug information for the foo class. +// +// When compiling without assertions, the -debug-* options and all code in +// DEBUG() statements disappears, so it does not affect the runtime of the code. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_DEBUG_H #define LLVM_SUPPORT_DEBUG_H diff --git a/include/llvm/Support/Dwarf.def b/include/llvm/Support/Dwarf.def index 18aa66d566..376d25d08a 100644 --- a/include/llvm/Support/Dwarf.def +++ b/include/llvm/Support/Dwarf.def @@ -1,15 +1,15 @@ //===- llvm/Support/Dwarf.def - Dwarf definitions ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dwarf.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Macros for running through Dwarf enumerators. // -// // -/////////////////////////////////////////////////////////////////////////////// -// TODO: Add other DW-based macros. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Macros for running through Dwarf enumerators. +// +//===----------------------------------------------------------------------===// #if !(defined HANDLE_DW_TAG || defined HANDLE_DW_OP || \ defined HANDLE_DW_LANG || defined HANDLE_DW_ATE || \ diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index a61f82de55..3c7a34ad22 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -1,18 +1,19 @@ //===-- llvm/Support/Dwarf.h ---Dwarf Constants------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dwarf.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// \file // -// \brief This file contains constants used for implementing Dwarf // -// debug support. // // -// For details on the Dwarf specfication see the latest DWARF Debugging // -// Information Format standard document on http://www.dwarfstd.org. This // -// file often includes support for non-released standard features. // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// \file +// \brief This file contains constants used for implementing Dwarf +// debug support. +// +// For details on the Dwarf specfication see the latest DWARF Debugging +// Information Format standard document on http://www.dwarfstd.org. This +// file often includes support for non-released standard features. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Support/DynamicLibrary.h b/include/llvm/Support/DynamicLibrary.h index 995a818b3c..a7d22212db 100644 --- a/include/llvm/Support/DynamicLibrary.h +++ b/include/llvm/Support/DynamicLibrary.h @@ -1,14 +1,15 @@ //===-- llvm/Support/DynamicLibrary.h - Portable Dynamic Library -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DynamicLibrary.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the sys::DynamicLibrary class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the sys::DynamicLibrary class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_DYNAMICLIBRARY_H #define LLVM_SUPPORT_DYNAMICLIBRARY_H diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index 76cbe6f149..94a4bfb220 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -1,20 +1,21 @@ //===-- llvm/Support/ELF.h - ELF constants and data structures --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header contains common, non-processor-specific data structures and // -// constants for the ELF file format. // // -// The details of the ELF32 bits in this file are largely based on the Tool // -// Interface Standard (TIS) Executable and Linking Format (ELF) Specification// -// Version 1.2, May 1995. The ELF64 stuff is based on ELF-64 Object File Format// -// Version 1.5, Draft 2, May 1998 as well as OpenBSD header files. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains common, non-processor-specific data structures and +// constants for the ELF file format. +// +// The details of the ELF32 bits in this file are largely based on the Tool +// Interface Standard (TIS) Executable and Linking Format (ELF) Specification +// Version 1.2, May 1995. The ELF64 stuff is based on ELF-64 Object File Format +// Version 1.5, Draft 2, May 1998 as well as OpenBSD header files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ELF_H #define LLVM_SUPPORT_ELF_H diff --git a/include/llvm/Support/Endian.h b/include/llvm/Support/Endian.h index 09c544883f..be97f96b0b 100644 --- a/include/llvm/Support/Endian.h +++ b/include/llvm/Support/Endian.h @@ -1,14 +1,15 @@ //===- Endian.h - Utilities for IO with endian specific data ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Endian.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares generic functions to read and write endian specific data.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares generic functions to read and write endian specific data. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ENDIAN_H #define LLVM_SUPPORT_ENDIAN_H diff --git a/include/llvm/Support/EndianStream.h b/include/llvm/Support/EndianStream.h index d27811074e..d44a9b3b7c 100644 --- a/include/llvm/Support/EndianStream.h +++ b/include/llvm/Support/EndianStream.h @@ -1,15 +1,16 @@ //===- EndianStream.h - Stream ops with endian specific data ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EndianStream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines utilities for operating on streams that have endian // -// specific data. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines utilities for operating on streams that have endian +// specific data. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ENDIANSTREAM_H #define LLVM_SUPPORT_ENDIANSTREAM_H diff --git a/include/llvm/Support/Errc.h b/include/llvm/Support/Errc.h index 13045aadf0..80bfe2ac2e 100644 --- a/include/llvm/Support/Errc.h +++ b/include/llvm/Support/Errc.h @@ -1,31 +1,31 @@ //===- llvm/Support/Errc.h - Defines the llvm::errc enum --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Errc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// While std::error_code works OK on all platforms we use, there are some // -// some problems with std::errc that can be avoided by using our own // -// enumeration: // // -// * std::errc is a namespace in some implementations. That meas that ADL // -// doesn't work and it is sometimes necessary to write std::make_error_code// -// or in templates: // -// using std::make_error_code; // -// make_error_code(...); // +// The LLVM Compiler Infrastructure // -// with this enum it is safe to always just use make_error_code. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// * Some implementations define fewer names than others. This header has // -// the intersection of all the ones we support. // +//===----------------------------------------------------------------------===// // -// * std::errc is just marked with is_error_condition_enum. This means that // -// common patters like AnErrorCode == errc::no_such_file_or_directory take // -// 4 virtual calls instead of two comparisons. // -// // -/////////////////////////////////////////////////////////////////////////////// +// While std::error_code works OK on all platforms we use, there are some +// some problems with std::errc that can be avoided by using our own +// enumeration: +// +// * std::errc is a namespace in some implementations. That meas that ADL +// doesn't work and it is sometimes necessary to write std::make_error_code +// or in templates: +// using std::make_error_code; +// make_error_code(...); +// +// with this enum it is safe to always just use make_error_code. +// +// * Some implementations define fewer names than others. This header has +// the intersection of all the ones we support. +// +// * std::errc is just marked with is_error_condition_enum. This means that +// common patters like AnErrorCode == errc::no_such_file_or_directory take +// 4 virtual calls instead of two comparisons. +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ERRC_H #define LLVM_SUPPORT_ERRC_H diff --git a/include/llvm/Support/Errno.h b/include/llvm/Support/Errno.h index 7dde3d9973..8e145c7b0b 100644 --- a/include/llvm/Support/Errno.h +++ b/include/llvm/Support/Errno.h @@ -1,14 +1,15 @@ //===- llvm/Support/Errno.h - Portable+convenient errno handling -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Errno.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares some portable and convenient functions to deal with errno.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares some portable and convenient functions to deal with errno. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ERRNO_H #define LLVM_SUPPORT_ERRNO_H diff --git a/include/llvm/Support/ErrorHandling.h b/include/llvm/Support/ErrorHandling.h index 79e24dc85c..9afd52d1ab 100644 --- a/include/llvm/Support/ErrorHandling.h +++ b/include/llvm/Support/ErrorHandling.h @@ -1,15 +1,16 @@ //===- llvm/Support/ErrorHandling.h - Fatal error handling ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ErrorHandling.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines an API used to indicate fatal error conditions. Non-fatal// -// errors (most of them) should be handled through LLVMContext. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines an API used to indicate fatal error conditions. Non-fatal +// errors (most of them) should be handled through LLVMContext. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ERRORHANDLING_H #define LLVM_SUPPORT_ERRORHANDLING_H diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index 9b90704b9d..589404f9b4 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -1,18 +1,17 @@ //===- llvm/Support/ErrorOr.h - Error Smart Pointer -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ErrorOr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // +/// \file /// -/// Provides ErrorOr smart pointer. // +/// Provides ErrorOr smart pointer. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ERROROR_H #define LLVM_SUPPORT_ERROROR_H diff --git a/include/llvm/Support/FileOutputBuffer.h b/include/llvm/Support/FileOutputBuffer.h index 86aa0eab7c..fd8879c846 100644 --- a/include/llvm/Support/FileOutputBuffer.h +++ b/include/llvm/Support/FileOutputBuffer.h @@ -1,14 +1,15 @@ //=== FileOutputBuffer.h - File Output Buffer -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileOutputBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Utility for creating a in-memory buffer that will be written to a file. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Utility for creating a in-memory buffer that will be written to a file. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_FILEOUTPUTBUFFER_H #define LLVM_SUPPORT_FILEOUTPUTBUFFER_H diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index e905fc73ef..c7ac5a8488 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -1,27 +1,28 @@ //===- llvm/Support/FileSystem.h - File System OS Concept -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileSystem.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::fs namespace. It is designed after // -// TR2/boost filesystem (v3), but modified to remove exception handling and the// -// path class. // // -// All functions return an error_code and their actual work via the last out // -// argument. The out argument is defined if and only if errc::success is // -// returned. A function may return any error code in the generic or system // -// category. However, they shall be equivalent to any error conditions listed// -// in each functions respective documentation if the condition applies. [ note:// -// this does not guarantee that error_code will be in the set of explicitly // -// listed codes, but it does guarantee that if any of the explicitly listed // -// errors occur, the correct error_code will be used ]. All functions may // -// return errc::not_enough_memory if there is not enough memory to complete the// -// operation. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::fs namespace. It is designed after +// TR2/boost filesystem (v3), but modified to remove exception handling and the +// path class. +// +// All functions return an error_code and their actual work via the last out +// argument. The out argument is defined if and only if errc::success is +// returned. A function may return any error code in the generic or system +// category. However, they shall be equivalent to any error conditions listed +// in each functions respective documentation if the condition applies. [ note: +// this does not guarantee that error_code will be in the set of explicitly +// listed codes, but it does guarantee that if any of the explicitly listed +// errors occur, the correct error_code will be used ]. All functions may +// return errc::not_enough_memory if there is not enough memory to complete the +// operation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_FILESYSTEM_H #define LLVM_SUPPORT_FILESYSTEM_H diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 9a8a581b13..2ee2c60b99 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -1,15 +1,16 @@ //===- llvm/Support/FileUtilities.h - File System Utilities -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileUtilities.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a family of utility functions which are useful for doing// -// various things with files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a family of utility functions which are useful for doing +// various things with files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_FILEUTILITIES_H #define LLVM_SUPPORT_FILEUTILITIES_H diff --git a/include/llvm/Support/Format.h b/include/llvm/Support/Format.h index 5389d8de26..65a2c280b7 100644 --- a/include/llvm/Support/Format.h +++ b/include/llvm/Support/Format.h @@ -1,23 +1,24 @@ //===- Format.h - Efficient printf-style formatting for streams -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Format.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the format() function, which can be used with other // -// LLVM subsystems to provide printf-style formatting. This gives all the power// -// and risk of printf. This can be used like this (with raw_ostreams as an // -// example): // // -// OS << "mynumber: " << format("%4.5f", 1234.412) << '\n'; // +// The LLVM Compiler Infrastructure // -// Or if you prefer: // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// OS << format("mynumber: %4.5f\n", 1234.412); // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file implements the format() function, which can be used with other +// LLVM subsystems to provide printf-style formatting. This gives all the power +// and risk of printf. This can be used like this (with raw_ostreams as an +// example): +// +// OS << "mynumber: " << format("%4.5f", 1234.412) << '\n'; +// +// Or if you prefer: +// +// OS << format("mynumber: %4.5f\n", 1234.412); +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_FORMAT_H #define LLVM_SUPPORT_FORMAT_H diff --git a/include/llvm/Support/FormattedStream.h b/include/llvm/Support/FormattedStream.h index 431ebba9ed..4a135cd231 100644 --- a/include/llvm/Support/FormattedStream.h +++ b/include/llvm/Support/FormattedStream.h @@ -1,15 +1,16 @@ //===-- llvm/Support/FormattedStream.h - Formatted streams ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormattedStream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains raw_ostream implementations for streams to do // -// things like pretty-print comments. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains raw_ostream implementations for streams to do +// things like pretty-print comments. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_FORMATTEDSTREAM_H #define LLVM_SUPPORT_FORMATTEDSTREAM_H diff --git a/include/llvm/Support/GCOV.h b/include/llvm/Support/GCOV.h index 2efb58dda0..c2e34bd3ea 100644 --- a/include/llvm/Support/GCOV.h +++ b/include/llvm/Support/GCOV.h @@ -1,15 +1,16 @@ //===- GCOV.h - LLVM coverage tool ----------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCOV.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header provides the interface to read and write coverage files that // -// use 'gcov' format. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header provides the interface to read and write coverage files that +// use 'gcov' format. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_GCOV_H #define LLVM_SUPPORT_GCOV_H diff --git a/include/llvm/Support/GenericDomTree.h b/include/llvm/Support/GenericDomTree.h index 53b962d73b..63678bb98b 100644 --- a/include/llvm/Support/GenericDomTree.h +++ b/include/llvm/Support/GenericDomTree.h @@ -1,20 +1,19 @@ //===- GenericDomTree.h - Generic dominator trees for graphs ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GenericDomTree.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file defines a set of templates that efficiently compute a dominator// -/// tree over a generic graph. This is used typically in LLVM for fast // -/// dominance queries on the CFG, but is fully generic w.r.t. the underlying // -/// graph types. // +/// This file defines a set of templates that efficiently compute a dominator +/// tree over a generic graph. This is used typically in LLVM for fast +/// dominance queries on the CFG, but is fully generic w.r.t. the underlying +/// graph types. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_GENERICDOMTREE_H #define LLVM_SUPPORT_GENERICDOMTREE_H diff --git a/include/llvm/Support/GenericDomTreeConstruction.h b/include/llvm/Support/GenericDomTreeConstruction.h index a52257503f..7c065f9392 100644 --- a/include/llvm/Support/GenericDomTreeConstruction.h +++ b/include/llvm/Support/GenericDomTreeConstruction.h @@ -1,26 +1,25 @@ //===- GenericDomTreeConstruction.h - Dominator Calculation ------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// GenericDomTreeConstruction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// Generic dominator tree construction - This file provides routines to // -/// construct immediate dominator information for a flow-graph based on the // -/// algorithm described in this document: // +/// Generic dominator tree construction - This file provides routines to +/// construct immediate dominator information for a flow-graph based on the +/// algorithm described in this document: /// -/// A Fast Algorithm for Finding Dominators in a Flowgraph // -/// T. Lengauer & R. Tarjan, ACM TOPLAS July 1979, pgs 121-141. // +/// A Fast Algorithm for Finding Dominators in a Flowgraph +/// T. Lengauer & R. Tarjan, ACM TOPLAS July 1979, pgs 121-141. /// -/// This implements the O(n*log(n)) versions of EVAL and LINK, because it turns// -/// out that the theoretically slower O(n*log(n)) implementation is actually // -/// faster than the almost-linear O(n*alpha(n)) version, even for large CFGs.// +/// This implements the O(n*log(n)) versions of EVAL and LINK, because it turns +/// out that the theoretically slower O(n*log(n)) implementation is actually +/// faster than the almost-linear O(n*alpha(n)) version, even for large CFGs. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_GENERICDOMTREECONSTRUCTION_H diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index a33b50a59d..b1af3d7c26 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -1,23 +1,24 @@ //===-- llvm/Support/GraphWriter.h - Write graph to a .dot file -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GraphWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a simple interface that can be used to print out generic// -// LLVM graphs to ".dot" files. "dot" is a tool that is part of the AT&T // -// graphviz package (http://www.research.att.com/sw/tools/graphviz/) which can// -// be used to turn the files output by this interface into a variety of // -// different graphics formats. // // -// Graphs do not need to implement any interface past what is already required// -// by the GraphTraits template, but they can choose to implement specializations// -// of the DOTGraphTraits template if they want to customize the graphs output in// -// any way. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a simple interface that can be used to print out generic +// LLVM graphs to ".dot" files. "dot" is a tool that is part of the AT&T +// graphviz package (http://www.research.att.com/sw/tools/graphviz/) which can +// be used to turn the files output by this interface into a variety of +// different graphics formats. +// +// Graphs do not need to implement any interface past what is already required +// by the GraphTraits template, but they can choose to implement specializations +// of the DOTGraphTraits template if they want to customize the graphs output in +// any way. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_GRAPHWRITER_H #define LLVM_SUPPORT_GRAPHWRITER_H diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h index 7ff66bc448..3c6cf4b87c 100644 --- a/include/llvm/Support/Host.h +++ b/include/llvm/Support/Host.h @@ -1,14 +1,15 @@ //===- llvm/Support/Host.h - Host machine characteristics --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Host.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Methods for querying the nature of the host machine. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Methods for querying the nature of the host machine. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_HOST_H #define LLVM_SUPPORT_HOST_H diff --git a/include/llvm/Support/LEB128.h b/include/llvm/Support/LEB128.h index 58feb3fe83..1324cb82ca 100644 --- a/include/llvm/Support/LEB128.h +++ b/include/llvm/Support/LEB128.h @@ -1,15 +1,16 @@ //===- llvm/Support/LEB128.h - [SU]LEB128 utility functions -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LEB128.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares some utility functions for encoding SLEB128 and // -// ULEB128 values. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares some utility functions for encoding SLEB128 and +// ULEB128 values. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_LEB128_H #define LLVM_SUPPORT_LEB128_H diff --git a/include/llvm/Support/LineIterator.h b/include/llvm/Support/LineIterator.h index a9c299230f..9d4cd3bd4c 100644 --- a/include/llvm/Support/LineIterator.h +++ b/include/llvm/Support/LineIterator.h @@ -1,12 +1,11 @@ //===- LineIterator.h - Iterator to read a text buffer's lines --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LineIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_LINEITERATOR_H #define LLVM_SUPPORT_LINEITERATOR_H diff --git a/include/llvm/Support/Locale.h b/include/llvm/Support/Locale.h index 85557ea07c..4589830c37 100644 --- a/include/llvm/Support/Locale.h +++ b/include/llvm/Support/Locale.h @@ -1,12 +1,3 @@ -//===- Locale.h -------------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Locale.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #ifndef LLVM_SUPPORT_LOCALE_H #define LLVM_SUPPORT_LOCALE_H diff --git a/include/llvm/Support/LockFileManager.h b/include/llvm/Support/LockFileManager.h index 0f7a2b3e79..8e88d4279b 100644 --- a/include/llvm/Support/LockFileManager.h +++ b/include/llvm/Support/LockFileManager.h @@ -1,12 +1,11 @@ //===--- LockFileManager.h - File-level locking utility ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LockFileManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_LOCKFILEMANAGER_H #define LLVM_SUPPORT_LOCKFILEMANAGER_H diff --git a/include/llvm/Support/MD5.h b/include/llvm/Support/MD5.h index dad803148f..f6e1e92c9f 100644 --- a/include/llvm/Support/MD5.h +++ b/include/llvm/Support/MD5.h @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// MD5.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /* * This code is derived from (original license follows): * diff --git a/include/llvm/Support/MachO.h b/include/llvm/Support/MachO.h index c2c007df05..7751275059 100644 --- a/include/llvm/Support/MachO.h +++ b/include/llvm/Support/MachO.h @@ -1,14 +1,15 @@ //===-- llvm/Support/MachO.h - The MachO file format ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines manifest constants for the MachO object file format. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines manifest constants for the MachO object file format. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MACHO_H #define LLVM_SUPPORT_MACHO_H diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h index dcac73ecdc..addd34e704 100644 --- a/include/llvm/Support/ManagedStatic.h +++ b/include/llvm/Support/ManagedStatic.h @@ -1,14 +1,15 @@ //===-- llvm/Support/ManagedStatic.h - Static Global wrapper ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ManagedStatic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ManagedStatic class and the llvm_shutdown() function.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ManagedStatic class and the llvm_shutdown() function. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MANAGEDSTATIC_H #define LLVM_SUPPORT_MANAGEDSTATIC_H diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 9d9715b95b..f9366af2fe 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -1,14 +1,15 @@ //===-- llvm/Support/MathExtras.h - Useful math functions -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MathExtras.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains some functions that are useful for math stuff. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains some functions that are useful for math stuff. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MATHEXTRAS_H #define LLVM_SUPPORT_MATHEXTRAS_H diff --git a/include/llvm/Support/Memory.h b/include/llvm/Support/Memory.h index 808f964423..b4305cb697 100644 --- a/include/llvm/Support/Memory.h +++ b/include/llvm/Support/Memory.h @@ -1,14 +1,15 @@ //===- llvm/Support/Memory.h - Memory Support --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Memory.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::Memory class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::Memory class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MEMORY_H #define LLVM_SUPPORT_MEMORY_H diff --git a/include/llvm/Support/MemoryBuffer.h b/include/llvm/Support/MemoryBuffer.h index e861f6d474..81616d8ba3 100644 --- a/include/llvm/Support/MemoryBuffer.h +++ b/include/llvm/Support/MemoryBuffer.h @@ -1,14 +1,15 @@ //===--- MemoryBuffer.h - Memory Buffer Interface ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MemoryBuffer interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MemoryBuffer interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MEMORYBUFFER_H #define LLVM_SUPPORT_MEMORYBUFFER_H diff --git a/include/llvm/Support/MemoryObject.h b/include/llvm/Support/MemoryObject.h index ee751c6a6a..e0c8749da3 100644 --- a/include/llvm/Support/MemoryObject.h +++ b/include/llvm/Support/MemoryObject.h @@ -1,12 +1,11 @@ //===- MemoryObject.h - Abstract memory interface ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryObject.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MEMORYOBJECT_H #define LLVM_SUPPORT_MEMORYOBJECT_H diff --git a/include/llvm/Support/MipsABIFlags.h b/include/llvm/Support/MipsABIFlags.h index e8c7d545e5..93f6b416ba 100644 --- a/include/llvm/Support/MipsABIFlags.h +++ b/include/llvm/Support/MipsABIFlags.h @@ -1,17 +1,18 @@ //===--- MipsABIFlags.h - MIPS ABI flags ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MipsABIFlags.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the constants for the ABI flags structure contained // -// in the .MIPS.abiflags section. // // -// https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the constants for the ABI flags structure contained +// in the .MIPS.abiflags section. +// +// https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MIPSABIFLAGS_H #define LLVM_SUPPORT_MIPSABIFLAGS_H diff --git a/include/llvm/Support/Mutex.h b/include/llvm/Support/Mutex.h index 424ed289d2..0f4e61af44 100644 --- a/include/llvm/Support/Mutex.h +++ b/include/llvm/Support/Mutex.h @@ -1,14 +1,15 @@ //===- llvm/Support/Mutex.h - Mutex Operating System Concept -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mutex.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::Mutex class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::Mutex class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MUTEX_H #define LLVM_SUPPORT_MUTEX_H diff --git a/include/llvm/Support/MutexGuard.h b/include/llvm/Support/MutexGuard.h index 9c1bf6221c..07b64b6119 100644 --- a/include/llvm/Support/MutexGuard.h +++ b/include/llvm/Support/MutexGuard.h @@ -1,15 +1,16 @@ //===-- Support/MutexGuard.h - Acquire/Release Mutex In Scope ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MutexGuard.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a guard for a block of code that ensures a Mutex is locked// -// upon construction and released upon destruction. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a guard for a block of code that ensures a Mutex is locked +// upon construction and released upon destruction. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MUTEXGUARD_H #define LLVM_SUPPORT_MUTEXGUARD_H diff --git a/include/llvm/Support/OnDiskHashTable.h b/include/llvm/Support/OnDiskHashTable.h index 1e8e6f2321..40ed1eef28 100644 --- a/include/llvm/Support/OnDiskHashTable.h +++ b/include/llvm/Support/OnDiskHashTable.h @@ -1,17 +1,16 @@ //===--- OnDiskHashTable.h - On-Disk Hash Table Implementation --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OnDiskHashTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines facilities for reading and writing on-disk hash tables. // +/// \file +/// \brief Defines facilities for reading and writing on-disk hash tables. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_ONDISKHASHTABLE_H #define LLVM_SUPPORT_ONDISKHASHTABLE_H diff --git a/include/llvm/Support/Options.h b/include/llvm/Support/Options.h index 07b1114a2d..2742d3907c 100644 --- a/include/llvm/Support/Options.h +++ b/include/llvm/Support/Options.h @@ -1,39 +1,38 @@ //===- llvm/Support/Options.h - Debug options support -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Options.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file declares helper objects for defining debug options that can be // -/// configured via the command line. The new API currently builds on the cl::opt// -/// API, but does not require the use of static globals. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file declares helper objects for defining debug options that can be +/// configured via the command line. The new API currently builds on the cl::opt +/// API, but does not require the use of static globals. /// -/// With this API options are registered during initialization. For passes, this// -/// happens during pass initialization. Passes with options will call a static// -/// registerOptions method during initialization that registers options with the// -/// OptionRegistry. An example implementation of registerOptions is: // +/// With this API options are registered during initialization. For passes, this +/// happens during pass initialization. Passes with options will call a static +/// registerOptions method during initialization that registers options with the +/// OptionRegistry. An example implementation of registerOptions is: /// -/// static void registerOptions() { // -/// OptionRegistry::registerOption( // -/// "scalarize-load-store", // -/// "Allow the scalarizer pass to scalarize loads and store", false); // -/// } // +/// static void registerOptions() { +/// OptionRegistry::registerOption( +/// "scalarize-load-store", +/// "Allow the scalarizer pass to scalarize loads and store", false); +/// } /// -/// When reading data for options the interface is via the LLVMContext. Option// -/// data for passes should be read from the context during doInitialization. An// -/// example of reading the above option would be: // +/// When reading data for options the interface is via the LLVMContext. Option +/// data for passes should be read from the context during doInitialization. An +/// example of reading the above option would be: /// -/// ScalarizeLoadStore = // -/// M.getContext().getOption(); // +/// ScalarizeLoadStore = +/// M.getContext().getOption(); /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_OPTIONS_H #define LLVM_SUPPORT_OPTIONS_H diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h index d5136b3d70..6b98e99e28 100644 --- a/include/llvm/Support/OutputBuffer.h +++ b/include/llvm/Support/OutputBuffer.h @@ -1,14 +1,15 @@ //=== OutputBuffer.h - Output Buffer ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OutputBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Methods to output values to a data buffer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Methods to output values to a data buffer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_OUTPUTBUFFER_H #define LLVM_SUPPORT_OUTPUTBUFFER_H diff --git a/include/llvm/Support/Path.h b/include/llvm/Support/Path.h index f26b7c4fa3..8fae853e2c 100644 --- a/include/llvm/Support/Path.h +++ b/include/llvm/Support/Path.h @@ -1,16 +1,17 @@ //===- llvm/Support/Path.h - Path Operating System Concept ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Path.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::path namespace. It is designed after // -// TR2/boost filesystem (v3), but modified to remove exception handling and the// -// path class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::path namespace. It is designed after +// TR2/boost filesystem (v3), but modified to remove exception handling and the +// path class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_PATH_H #define LLVM_SUPPORT_PATH_H diff --git a/include/llvm/Support/PluginLoader.h b/include/llvm/Support/PluginLoader.h index 264d8f7830..822d923c00 100644 --- a/include/llvm/Support/PluginLoader.h +++ b/include/llvm/Support/PluginLoader.h @@ -1,17 +1,18 @@ //===-- llvm/Support/PluginLoader.h - Plugin Loader for Tools ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PluginLoader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A tool can #include this file to get a -load option that allows the user to// -// load arbitrary shared objects into the tool's address space. Note that this// -// header can only be included by a program ONCE, so it should never to used by// -// library authors. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A tool can #include this file to get a -load option that allows the user to +// load arbitrary shared objects into the tool's address space. Note that this +// header can only be included by a program ONCE, so it should never to used by +// library authors. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_PLUGINLOADER_H #define LLVM_SUPPORT_PLUGINLOADER_H diff --git a/include/llvm/Support/PointerLikeTypeTraits.h b/include/llvm/Support/PointerLikeTypeTraits.h index 437bad944d..8370821392 100644 --- a/include/llvm/Support/PointerLikeTypeTraits.h +++ b/include/llvm/Support/PointerLikeTypeTraits.h @@ -1,15 +1,16 @@ //===- llvm/Support/PointerLikeTypeTraits.h - Pointer Traits ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerLikeTypeTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PointerLikeTypeTraits class. This allows data // -// structures to reason about pointers and other things that are pointer sized.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PointerLikeTypeTraits class. This allows data +// structures to reason about pointers and other things that are pointer sized. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_POINTERLIKETYPETRAITS_H #define LLVM_SUPPORT_POINTERLIKETYPETRAITS_H diff --git a/include/llvm/Support/PrettyStackTrace.h b/include/llvm/Support/PrettyStackTrace.h index cddb612023..96afb60d8e 100644 --- a/include/llvm/Support/PrettyStackTrace.h +++ b/include/llvm/Support/PrettyStackTrace.h @@ -1,16 +1,17 @@ //===- llvm/Support/PrettyStackTrace.h - Pretty Crash Handling --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrettyStackTrace.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PrettyStackTraceEntry class, which is used to make // -// crashes give more contextual information about what the program was doing // -// when it crashed. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PrettyStackTraceEntry class, which is used to make +// crashes give more contextual information about what the program was doing +// when it crashed. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_PRETTYSTACKTRACE_H #define LLVM_SUPPORT_PRETTYSTACKTRACE_H diff --git a/include/llvm/Support/Process.h b/include/llvm/Support/Process.h index 7803547093..cfdd06c62f 100644 --- a/include/llvm/Support/Process.h +++ b/include/llvm/Support/Process.h @@ -1,27 +1,26 @@ //===- llvm/Support/Process.h -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Process.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// Provides a library for accessing information about this process and other// -/// processes on the operating system. Also provides means of spawning // -/// subprocess for commands. The design of this library is modeled after the // -/// proposed design of the Boost.Process library, and is design specifically to// -/// follow the style of standard libraries and potentially become a proposal // -/// for a standard library. // +/// Provides a library for accessing information about this process and other +/// processes on the operating system. Also provides means of spawning +/// subprocess for commands. The design of this library is modeled after the +/// proposed design of the Boost.Process library, and is design specifically to +/// follow the style of standard libraries and potentially become a proposal +/// for a standard library. /// -/// This file declares the llvm::sys::Process class which contains a collection// -/// of legacy static interfaces for extracting various information about the // -/// current process. The goal is to migrate users of this API over to the new// -/// interfaces. // +/// This file declares the llvm::sys::Process class which contains a collection +/// of legacy static interfaces for extracting various information about the +/// current process. The goal is to migrate users of this API over to the new +/// interfaces. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_PROCESS_H #define LLVM_SUPPORT_PROCESS_H diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h index cbb7f2dcf3..b89a0f73ec 100644 --- a/include/llvm/Support/Program.h +++ b/include/llvm/Support/Program.h @@ -1,14 +1,15 @@ //===- llvm/Support/Program.h ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Program.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::Program class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::Program class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_PROGRAM_H #define LLVM_SUPPORT_PROGRAM_H diff --git a/include/llvm/Support/RWMutex.h b/include/llvm/Support/RWMutex.h index a9d400b093..4be9313377 100644 --- a/include/llvm/Support/RWMutex.h +++ b/include/llvm/Support/RWMutex.h @@ -1,14 +1,15 @@ //===- RWMutex.h - Reader/Writer Mutual Exclusion Lock ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RWMutex.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::RWMutex class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::RWMutex class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_RWMUTEX_H #define LLVM_SUPPORT_RWMUTEX_H diff --git a/include/llvm/Support/RandomNumberGenerator.h b/include/llvm/Support/RandomNumberGenerator.h index 324575a4d2..7446558f0c 100644 --- a/include/llvm/Support/RandomNumberGenerator.h +++ b/include/llvm/Support/RandomNumberGenerator.h @@ -1,16 +1,17 @@ //==- llvm/Support/RandomNumberGenerator.h - RNG for diversity ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RandomNumberGenerator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines an abstraction for deterministic random number // -// generation (RNG). Note that the current implementation is not // -// cryptographically secure as it uses the C++11 facilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines an abstraction for deterministic random number +// generation (RNG). Note that the current implementation is not +// cryptographically secure as it uses the C++11 facilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_RANDOMNUMBERGENERATOR_H_ #define LLVM_SUPPORT_RANDOMNUMBERGENERATOR_H_ diff --git a/include/llvm/Support/Recycler.h b/include/llvm/Support/Recycler.h index f4115cdeec..e97f36a735 100644 --- a/include/llvm/Support/Recycler.h +++ b/include/llvm/Support/Recycler.h @@ -1,15 +1,16 @@ //==- llvm/Support/Recycler.h - Recycling Allocator --------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Recycler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Recycler class template. See the doxygen comment for// -// Recycler for more details. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Recycler class template. See the doxygen comment for +// Recycler for more details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_RECYCLER_H #define LLVM_SUPPORT_RECYCLER_H diff --git a/include/llvm/Support/RecyclingAllocator.h b/include/llvm/Support/RecyclingAllocator.h index 4685488a7b..001d1cf7c3 100644 --- a/include/llvm/Support/RecyclingAllocator.h +++ b/include/llvm/Support/RecyclingAllocator.h @@ -1,15 +1,16 @@ //==- llvm/Support/RecyclingAllocator.h - Recycling Allocator ----*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecyclingAllocator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RecyclingAllocator class. See the doxygen comment for// -// RecyclingAllocator for more details on the implementation. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RecyclingAllocator class. See the doxygen comment for +// RecyclingAllocator for more details on the implementation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_RECYCLINGALLOCATOR_H #define LLVM_SUPPORT_RECYCLINGALLOCATOR_H diff --git a/include/llvm/Support/Regex.h b/include/llvm/Support/Regex.h index 2a21e2b84f..31b35ed0ca 100644 --- a/include/llvm/Support/Regex.h +++ b/include/llvm/Support/Regex.h @@ -1,17 +1,18 @@ //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Regex.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a POSIX regular expression matcher. Both Basic and // -// Extended POSIX regular expressions (ERE) are supported. EREs were extended// -// to support backreferences in matches. // -// This implementation also supports matching strings with embedded NUL chars.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a POSIX regular expression matcher. Both Basic and +// Extended POSIX regular expressions (ERE) are supported. EREs were extended +// to support backreferences in matches. +// This implementation also supports matching strings with embedded NUL chars. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_REGEX_H #define LLVM_SUPPORT_REGEX_H diff --git a/include/llvm/Support/Registry.h b/include/llvm/Support/Registry.h index 6b6e542328..95c4e96f7f 100644 --- a/include/llvm/Support/Registry.h +++ b/include/llvm/Support/Registry.h @@ -1,14 +1,15 @@ //=== Registry.h - Linker-supported plugin registries -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Registry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines a registry template for discovering pluggable modules. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines a registry template for discovering pluggable modules. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_REGISTRY_H #define LLVM_SUPPORT_REGISTRY_H diff --git a/include/llvm/Support/RegistryParser.h b/include/llvm/Support/RegistryParser.h index 668f38954d..a6997b6fe7 100644 --- a/include/llvm/Support/RegistryParser.h +++ b/include/llvm/Support/RegistryParser.h @@ -1,14 +1,15 @@ //=== RegistryParser.h - Linker-supported plugin registries -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegistryParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines a command-line parser for a registry. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines a command-line parser for a registry. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_REGISTRYPARSER_H #define LLVM_SUPPORT_REGISTRYPARSER_H diff --git a/include/llvm/Support/SMLoc.h b/include/llvm/Support/SMLoc.h index fa6e23fe2b..d5b4c57a8f 100644 --- a/include/llvm/Support/SMLoc.h +++ b/include/llvm/Support/SMLoc.h @@ -1,15 +1,16 @@ //===- SMLoc.h - Source location for use with diagnostics -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SMLoc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SMLoc class. This class encapsulates a location in// -// source code for use in diagnostics. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SMLoc class. This class encapsulates a location in +// source code for use in diagnostics. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SMLOC_H #define LLVM_SUPPORT_SMLOC_H diff --git a/include/llvm/Support/SaveAndRestore.h b/include/llvm/Support/SaveAndRestore.h index 79cf4a6e27..ef154ac9c9 100644 --- a/include/llvm/Support/SaveAndRestore.h +++ b/include/llvm/Support/SaveAndRestore.h @@ -1,18 +1,17 @@ //===-- SaveAndRestore.h - Utility -------------------------------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// SaveAndRestore.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// This file provides utility classes that use RAII to save and restore // -/// values. // +/// \file +/// This file provides utility classes that use RAII to save and restore +/// values. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SAVEANDRESTORE_H #define LLVM_SUPPORT_SAVEANDRESTORE_H diff --git a/include/llvm/Support/ScaledNumber.h b/include/llvm/Support/ScaledNumber.h index dfad19215a..0a4262b7ee 100644 --- a/include/llvm/Support/ScaledNumber.h +++ b/include/llvm/Support/ScaledNumber.h @@ -1,22 +1,23 @@ //===- llvm/Support/ScaledNumber.h - Support for scaled numbers -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScaledNumber.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains functions (and a class) useful for working with scaled // -// numbers -- in particular, pairs of integers where one represents digits and// -// another represents a scale. The functions are helpers and live in the // -// namespace ScaledNumbers. The class ScaledNumber is useful for modelling // -// certain cost metrics that need simple, integer-like semantics that are easy// -// to reason about. // // -// These might remind you of soft-floats. If you want one of those, you're in// -// the wrong place. Look at include/llvm/ADT/APFloat.h instead. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains functions (and a class) useful for working with scaled +// numbers -- in particular, pairs of integers where one represents digits and +// another represents a scale. The functions are helpers and live in the +// namespace ScaledNumbers. The class ScaledNumber is useful for modelling +// certain cost metrics that need simple, integer-like semantics that are easy +// to reason about. +// +// These might remind you of soft-floats. If you want one of those, you're in +// the wrong place. Look at include/llvm/ADT/APFloat.h instead. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SCALEDNUMBER_H #define LLVM_SUPPORT_SCALEDNUMBER_H diff --git a/include/llvm/Support/Signals.h b/include/llvm/Support/Signals.h index c76a31ac5e..9fbe10d0da 100644 --- a/include/llvm/Support/Signals.h +++ b/include/llvm/Support/Signals.h @@ -1,15 +1,16 @@ //===- llvm/Support/Signals.h - Signal Handling support ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Signals.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some helpful functions for dealing with the possibility of// -// unix signals occurring while your program is running. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some helpful functions for dealing with the possibility of +// unix signals occurring while your program is running. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SIGNALS_H #define LLVM_SUPPORT_SIGNALS_H diff --git a/include/llvm/Support/Solaris.h b/include/llvm/Support/Solaris.h index 9c33af87a8..7b839baeb8 100644 --- a/include/llvm/Support/Solaris.h +++ b/include/llvm/Support/Solaris.h @@ -1,12 +1,15 @@ /*===- llvm/Support/Solaris.h ------------------------------------*- C++ -*-===* -/////////////////////////////////////////////////////////////////////////////// -// // -// Solaris.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *===----------------------------------------------------------------------===* + * + * This file contains portability fixes for Solaris hosts. + * + *===----------------------------------------------------------------------===*/ #ifndef LLVM_SUPPORT_SOLARIS_H #define LLVM_SUPPORT_SOLARIS_H diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index a1116d48b7..4a22e371c9 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -1,16 +1,17 @@ //===- SourceMgr.h - Manager for Source Buffers & Diagnostics ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceMgr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SMDiagnostic and SourceMgr classes. This // -// provides a simple substrate for diagnostics, #include handling, and other low// -// level things for simple parsers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SMDiagnostic and SourceMgr classes. This +// provides a simple substrate for diagnostics, #include handling, and other low +// level things for simple parsers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SOURCEMGR_H #define LLVM_SUPPORT_SOURCEMGR_H diff --git a/include/llvm/Support/SpecialCaseList.h b/include/llvm/Support/SpecialCaseList.h index 87c734f036..ce693c5013 100644 --- a/include/llvm/Support/SpecialCaseList.h +++ b/include/llvm/Support/SpecialCaseList.h @@ -1,49 +1,49 @@ //===-- SpecialCaseList.h - special case list for sanitizers ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SpecialCaseList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a utility class used to parse user-provided text files with // -// "special case lists" for code sanitizers. Such files are used to // -// define "ABI list" for DataFlowSanitizer and blacklists for another sanitizers// -// like AddressSanitizer or UndefinedBehaviorSanitizer. // // -// Empty lines and lines starting with "#" are ignored. All the rest lines // -// should have the form: // -// section:wildcard_expression[=category] // -// If category is not specified, it is assumed to be empty string. // -// Definitions of "section" and "category" are sanitizer-specific. For example,// -// sanitizer blacklists support sections "src", "fun" and "global". // -// Wildcard expressions define, respectively, source files, functions or // -// globals which shouldn't be instrumented. // -// Examples of categories: // -// "functional": used in DFSan to list functions with pure functional // -// semantics. // -// "init": used in ASan blacklist to disable initialization-order bugs // -// detection for certain globals or source files. // -// Full special case list file example: // -// --- // -// # Blacklisted items: // -// fun:*_ZN4base6subtle* // -// global:*global_with_bad_access_or_initialization* // -// global:*global_with_initialization_issues*=init // -// type:*Namespace::ClassName*=init // -// src:file_with_tricky_code.cc // -// src:ignore-global-initializers-issues.cc=init // +// The LLVM Compiler Infrastructure // -// # Functions with pure functional semantics: // -// fun:cos=functional // -// fun:sin=functional // -// --- // -// Note that the wild card is in fact an llvm::Regex, but * is automatically // -// replaced with .* // -// This is similar to the "ignore" feature of ThreadSanitizer. // -// http://code.google.com/p/data-race-test/wiki/ThreadSanitizerIgnores // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This is a utility class used to parse user-provided text files with +// "special case lists" for code sanitizers. Such files are used to +// define "ABI list" for DataFlowSanitizer and blacklists for another sanitizers +// like AddressSanitizer or UndefinedBehaviorSanitizer. +// +// Empty lines and lines starting with "#" are ignored. All the rest lines +// should have the form: +// section:wildcard_expression[=category] +// If category is not specified, it is assumed to be empty string. +// Definitions of "section" and "category" are sanitizer-specific. For example, +// sanitizer blacklists support sections "src", "fun" and "global". +// Wildcard expressions define, respectively, source files, functions or +// globals which shouldn't be instrumented. +// Examples of categories: +// "functional": used in DFSan to list functions with pure functional +// semantics. +// "init": used in ASan blacklist to disable initialization-order bugs +// detection for certain globals or source files. +// Full special case list file example: +// --- +// # Blacklisted items: +// fun:*_ZN4base6subtle* +// global:*global_with_bad_access_or_initialization* +// global:*global_with_initialization_issues*=init +// type:*Namespace::ClassName*=init +// src:file_with_tricky_code.cc +// src:ignore-global-initializers-issues.cc=init +// +// # Functions with pure functional semantics: +// fun:cos=functional +// fun:sin=functional +// --- +// Note that the wild card is in fact an llvm::Regex, but * is automatically +// replaced with .* +// This is similar to the "ignore" feature of ThreadSanitizer. +// http://code.google.com/p/data-race-test/wiki/ThreadSanitizerIgnores +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SPECIALCASELIST_H #define LLVM_SUPPORT_SPECIALCASELIST_H diff --git a/include/llvm/Support/StreamingMemoryObject.h b/include/llvm/Support/StreamingMemoryObject.h index 05c1198103..7cb6438d13 100644 --- a/include/llvm/Support/StreamingMemoryObject.h +++ b/include/llvm/Support/StreamingMemoryObject.h @@ -1,12 +1,11 @@ //===- StreamingMemoryObject.h - Streamable data interface -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StreamingMemoryObject.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_STREAMINGMEMORYOBJECT_H #define LLVM_SUPPORT_STREAMINGMEMORYOBJECT_H diff --git a/include/llvm/Support/StringPool.h b/include/llvm/Support/StringPool.h index 4bc9043780..2ec0c3b76c 100644 --- a/include/llvm/Support/StringPool.h +++ b/include/llvm/Support/StringPool.h @@ -1,29 +1,30 @@ //===-- StringPool.h - Interned string pool ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringPool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares an interned string pool, which helps reduce the cost of// -// strings by using the same storage for identical strings. // // -// To intern a string: // +// The LLVM Compiler Infrastructure // -// StringPool Pool; // -// PooledStringPtr Str = Pool.intern("wakka wakka"); // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// To use the value of an interned string, use operator bool and operator*: // +//===----------------------------------------------------------------------===// // -// if (Str) // -// cerr << "the string is" << *Str << "\n"; // +// This file declares an interned string pool, which helps reduce the cost of +// strings by using the same storage for identical strings. // -// Pooled strings are immutable, but you can change a PooledStringPtr to point// -// to another instance. So that interned strings can eventually be freed, // -// strings in the string pool are reference-counted (automatically). // +// To intern a string: // -/////////////////////////////////////////////////////////////////////////////// +// StringPool Pool; +// PooledStringPtr Str = Pool.intern("wakka wakka"); +// +// To use the value of an interned string, use operator bool and operator*: +// +// if (Str) +// cerr << "the string is" << *Str << "\n"; +// +// Pooled strings are immutable, but you can change a PooledStringPtr to point +// to another instance. So that interned strings can eventually be freed, +// strings in the string pool are reference-counted (automatically). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_STRINGPOOL_H #define LLVM_SUPPORT_STRINGPOOL_H diff --git a/include/llvm/Support/StringSaver.h b/include/llvm/Support/StringSaver.h index a4136637b2..f3853ee915 100644 --- a/include/llvm/Support/StringSaver.h +++ b/include/llvm/Support/StringSaver.h @@ -1,12 +1,11 @@ //===- llvm/Support/StringSaver.h -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringSaver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_STRINGSAVER_H #define LLVM_SUPPORT_STRINGSAVER_H diff --git a/include/llvm/Support/SwapByteOrder.h b/include/llvm/Support/SwapByteOrder.h index 0dba621cd9..7761fa1d7e 100644 --- a/include/llvm/Support/SwapByteOrder.h +++ b/include/llvm/Support/SwapByteOrder.h @@ -1,15 +1,16 @@ //===- SwapByteOrder.h - Generic and optimized byte swaps -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SwapByteOrder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares generic and optimized functions to swap the byte order of// -// an integral type. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares generic and optimized functions to swap the byte order of +// an integral type. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SWAPBYTEORDER_H #define LLVM_SUPPORT_SWAPBYTEORDER_H diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index 8a27c9d73e..2997b1b0c9 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -1,15 +1,16 @@ //===- SystemUtils.h - Utilities to do low-level system stuff ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SystemUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains functions used to do a variety of low-level, often // -// system-specific, tasks. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains functions used to do a variety of low-level, often +// system-specific, tasks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_SYSTEMUTILS_H #define LLVM_SUPPORT_SYSTEMUTILS_H diff --git a/include/llvm/Support/TargetParser.h b/include/llvm/Support/TargetParser.h index 83a1a12d44..dab724895e 100644 --- a/include/llvm/Support/TargetParser.h +++ b/include/llvm/Support/TargetParser.h @@ -1,15 +1,16 @@ //===-- TargetParser - Parser for target features ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a target parser to recognise hardware features such as// -// FPU/CPU/ARCH names as well as specific support such as HDIV, etc. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a target parser to recognise hardware features such as +// FPU/CPU/ARCH names as well as specific support such as HDIV, etc. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TARGETPARSER_H #define LLVM_SUPPORT_TARGETPARSER_H diff --git a/include/llvm/Support/TargetRegistry.h b/include/llvm/Support/TargetRegistry.h index 338e738db6..40bf6fb20c 100644 --- a/include/llvm/Support/TargetRegistry.h +++ b/include/llvm/Support/TargetRegistry.h @@ -1,19 +1,20 @@ //===-- Support/TargetRegistry.h - Target Registration ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes the TargetRegistry interface, which tools can use to access// -// the appropriate target specific classes (TargetMachine, AsmPrinter, etc.) // -// which have been registered. // // -// Target specific class implementations should register themselves using the// -// appropriate TargetRegistry interfaces. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes the TargetRegistry interface, which tools can use to access +// the appropriate target specific classes (TargetMachine, AsmPrinter, etc.) +// which have been registered. +// +// Target specific class implementations should register themselves using the +// appropriate TargetRegistry interfaces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TARGETREGISTRY_H #define LLVM_SUPPORT_TARGETREGISTRY_H diff --git a/include/llvm/Support/TargetSelect.h b/include/llvm/Support/TargetSelect.h index 29a17dd6ba..a86e953f00 100644 --- a/include/llvm/Support/TargetSelect.h +++ b/include/llvm/Support/TargetSelect.h @@ -1,16 +1,17 @@ //===- TargetSelect.h - Target Selection & Registration ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSelect.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides utilities to make sure that certain classes of targets are// -// linked into the main application executable, and initialize them as // -// appropriate. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides utilities to make sure that certain classes of targets are +// linked into the main application executable, and initialize them as +// appropriate. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TARGETSELECT_H #define LLVM_SUPPORT_TARGETSELECT_H diff --git a/include/llvm/Support/ThreadLocal.h b/include/llvm/Support/ThreadLocal.h index 6adbf06915..427a67e2a9 100644 --- a/include/llvm/Support/ThreadLocal.h +++ b/include/llvm/Support/ThreadLocal.h @@ -1,14 +1,15 @@ //===- llvm/Support/ThreadLocal.h - Thread Local Data ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadLocal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::ThreadLocal class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::ThreadLocal class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_THREADLOCAL_H #define LLVM_SUPPORT_THREADLOCAL_H diff --git a/include/llvm/Support/Threading.h b/include/llvm/Support/Threading.h index ac43a0a4ea..3cca1d6a99 100644 --- a/include/llvm/Support/Threading.h +++ b/include/llvm/Support/Threading.h @@ -1,15 +1,16 @@ //===-- llvm/Support/Threading.h - Control multithreading mode --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Threading.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares helper functions for running LLVM in a multi-threaded // -// environment. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares helper functions for running LLVM in a multi-threaded +// environment. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_THREADING_H #define LLVM_SUPPORT_THREADING_H diff --git a/include/llvm/Support/TimeValue.h b/include/llvm/Support/TimeValue.h index 6756f5afaa..6bca58b6bc 100644 --- a/include/llvm/Support/TimeValue.h +++ b/include/llvm/Support/TimeValue.h @@ -1,14 +1,15 @@ //===-- TimeValue.h - Declare OS TimeValue Concept --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TimeValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file declares the operating system TimeValue concept. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file declares the operating system TimeValue concept. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TIMEVALUE_H #define LLVM_SUPPORT_TIMEVALUE_H diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index fc4c1d1b25..2cd30e2aaf 100644 --- a/include/llvm/Support/Timer.h +++ b/include/llvm/Support/Timer.h @@ -1,12 +1,11 @@ //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Timer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TIMER_H #define LLVM_SUPPORT_TIMER_H diff --git a/include/llvm/Support/ToolOutputFile.h b/include/llvm/Support/ToolOutputFile.h index 61f35c3cfa..1be26c2cb5 100644 --- a/include/llvm/Support/ToolOutputFile.h +++ b/include/llvm/Support/ToolOutputFile.h @@ -1,14 +1,15 @@ //===- ToolOutputFile.h - Output files for compiler-like tools -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolOutputFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the tool_output_file class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the tool_output_file class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TOOLOUTPUTFILE_H #define LLVM_SUPPORT_TOOLOUTPUTFILE_H diff --git a/include/llvm/Support/Unicode.h b/include/llvm/Support/Unicode.h index 5ba46fc33d..f668a5bc88 100644 --- a/include/llvm/Support/Unicode.h +++ b/include/llvm/Support/Unicode.h @@ -1,15 +1,16 @@ //===- llvm/Support/Unicode.h - Unicode character properties -*- C++ -*-=====// -/////////////////////////////////////////////////////////////////////////////// -// // -// Unicode.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines functions that allow querying certain properties of Unicode// -// characters. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines functions that allow querying certain properties of Unicode +// characters. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_UNICODE_H #define LLVM_SUPPORT_UNICODE_H diff --git a/include/llvm/Support/UnicodeCharRanges.h b/include/llvm/Support/UnicodeCharRanges.h index 3732721e0a..9f738dff11 100644 --- a/include/llvm/Support/UnicodeCharRanges.h +++ b/include/llvm/Support/UnicodeCharRanges.h @@ -1,12 +1,11 @@ //===--- UnicodeCharRanges.h - Types and functions for character ranges ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnicodeCharRanges.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_UNICODECHARRANGES_H #define LLVM_SUPPORT_UNICODECHARRANGES_H diff --git a/include/llvm/Support/UniqueLock.h b/include/llvm/Support/UniqueLock.h index 55d613fae6..529284d386 100644 --- a/include/llvm/Support/UniqueLock.h +++ b/include/llvm/Support/UniqueLock.h @@ -1,15 +1,16 @@ //===-- Support/UniqueLock.h - Acquire/Release Mutex In Scope ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UniqueLock.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a guard for a block of code that ensures a Mutex is locked// -// upon construction and released upon destruction. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a guard for a block of code that ensures a Mutex is locked +// upon construction and released upon destruction. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_UNIQUE_LOCK_H #define LLVM_SUPPORT_UNIQUE_LOCK_H diff --git a/include/llvm/Support/Valgrind.h b/include/llvm/Support/Valgrind.h index 1185444780..cebf75c49c 100644 --- a/include/llvm/Support/Valgrind.h +++ b/include/llvm/Support/Valgrind.h @@ -1,16 +1,17 @@ //===- llvm/Support/Valgrind.h - Communication with Valgrind -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Valgrind.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Methods for communicating with a valgrind instance this program is running// -// under. These are all no-ops unless LLVM was configured on a system with the// -// valgrind headers installed and valgrind is controlling this process. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Methods for communicating with a valgrind instance this program is running +// under. These are all no-ops unless LLVM was configured on a system with the +// valgrind headers installed and valgrind is controlling this process. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_VALGRIND_H #define LLVM_SUPPORT_VALGRIND_H diff --git a/include/llvm/Support/Watchdog.h b/include/llvm/Support/Watchdog.h index 4645d55d0e..01e1d926eb 100644 --- a/include/llvm/Support/Watchdog.h +++ b/include/llvm/Support/Watchdog.h @@ -1,14 +1,15 @@ //===--- Watchdog.h - Watchdog timer ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Watchdog.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the llvm::sys::Watchdog class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the llvm::sys::Watchdog class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_WATCHDOG_H #define LLVM_SUPPORT_WATCHDOG_H diff --git a/include/llvm/Support/Win64EH.h b/include/llvm/Support/Win64EH.h index d7798d56dc..f6c4927948 100644 --- a/include/llvm/Support/Win64EH.h +++ b/include/llvm/Support/Win64EH.h @@ -1,16 +1,17 @@ //===-- llvm/Support/Win64EH.h ---Win64 EH Constants-------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Win64EH.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains constants and structures used for implementing // -// exception handling on Win64 platforms. For more information, see // -// http://msdn.microsoft.com/en-us/library/1eyas8tf.aspx // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains constants and structures used for implementing +// exception handling on Win64 platforms. For more information, see +// http://msdn.microsoft.com/en-us/library/1eyas8tf.aspx +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_WIN64EH_H #define LLVM_SUPPORT_WIN64EH_H diff --git a/include/llvm/Support/WindowsError.h b/include/llvm/Support/WindowsError.h index 05e0210ed6..63bfe59765 100644 --- a/include/llvm/Support/WindowsError.h +++ b/include/llvm/Support/WindowsError.h @@ -1,12 +1,11 @@ //===-- WindowsError.h - Support for mapping windows errors to posix-------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WindowsError.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_WINDOWSERROR_H #define LLVM_SUPPORT_WINDOWSERROR_H diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h index dd74e668f1..0fbb7d2e6c 100644 --- a/include/llvm/Support/YAMLParser.h +++ b/include/llvm/Support/YAMLParser.h @@ -1,38 +1,39 @@ //===--- YAMLParser.h - Simple YAML parser --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a YAML 1.2 parser. // // -// See http://www.yaml.org/spec/1.2/spec.html for the full standard. // +// The LLVM Compiler Infrastructure // -// This currently does not implement the following: // -// * Multi-line literal folding. // -// * Tag resolution. // -// * UTF-16. // -// * BOMs anywhere other than the first Unicode scalar value in the file. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// The most important class here is Stream. This represents a YAML stream with// -// 0, 1, or many documents. // +//===----------------------------------------------------------------------===// // -// SourceMgr sm; // -// StringRef input = getInput(); // -// yaml::Stream stream(input, sm); // +// This is a YAML 1.2 parser. // -// for (yaml::document_iterator di = stream.begin(), de = stream.end(); // -// di != de; ++di) { // -// yaml::Node *n = di->getRoot(); // -// if (n) { // -// // Do something with n... // -// } else // -// break; // -// } // +// See http://www.yaml.org/spec/1.2/spec.html for the full standard. // -/////////////////////////////////////////////////////////////////////////////// +// This currently does not implement the following: +// * Multi-line literal folding. +// * Tag resolution. +// * UTF-16. +// * BOMs anywhere other than the first Unicode scalar value in the file. +// +// The most important class here is Stream. This represents a YAML stream with +// 0, 1, or many documents. +// +// SourceMgr sm; +// StringRef input = getInput(); +// yaml::Stream stream(input, sm); +// +// for (yaml::document_iterator di = stream.begin(), de = stream.end(); +// di != de; ++di) { +// yaml::Node *n = di->getRoot(); +// if (n) { +// // Do something with n... +// } else +// break; +// } +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_YAMLPARSER_H #define LLVM_SUPPORT_YAMLPARSER_H diff --git a/include/llvm/Support/YAMLTraits.h b/include/llvm/Support/YAMLTraits.h index c35a057036..c04294a5e8 100644 --- a/include/llvm/Support/YAMLTraits.h +++ b/include/llvm/Support/YAMLTraits.h @@ -1,12 +1,11 @@ //===- llvm/Support/YAMLTraits.h --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_YAMLTRAITS_H #define LLVM_SUPPORT_YAMLTRAITS_H diff --git a/include/llvm/Support/circular_raw_ostream.h b/include/llvm/Support/circular_raw_ostream.h index 7df05298d9..19f9c2c4b1 100644 --- a/include/llvm/Support/circular_raw_ostream.h +++ b/include/llvm/Support/circular_raw_ostream.h @@ -1,15 +1,16 @@ //===-- llvm/Support/circular_raw_ostream.h - Buffered streams --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// circular_raw_ostream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains raw_ostream implementations for streams to do circular // -// buffering of their output. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains raw_ostream implementations for streams to do circular +// buffering of their output. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_CIRCULAR_RAW_OSTREAM_H #define LLVM_SUPPORT_CIRCULAR_RAW_OSTREAM_H diff --git a/include/llvm/Support/raw_os_ostream.h b/include/llvm/Support/raw_os_ostream.h index a7ad9782b7..a983aeb908 100644 --- a/include/llvm/Support/raw_os_ostream.h +++ b/include/llvm/Support/raw_os_ostream.h @@ -1,14 +1,15 @@ //===- raw_os_ostream.h - std::ostream adaptor for raw_ostream --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// raw_os_ostream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the raw_os_ostream class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the raw_os_ostream class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_RAW_OS_OSTREAM_H #define LLVM_SUPPORT_RAW_OS_OSTREAM_H diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 8e5b9c0bc2..bdc1040919 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -1,12 +1,13 @@ //===--- raw_ostream.h - Raw output stream ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// raw_ostream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the raw_ostream class. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the raw_ostream class. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 0c760eacda..45465aea00 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -1,14 +1,15 @@ //===- llvm/Support/type_traits.h - Simplfied type traits -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// type_traits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides useful additions to the standard type_traits library. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides useful additions to the standard type_traits library. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_TYPE_TRAITS_H #define LLVM_SUPPORT_TYPE_TRAITS_H diff --git a/include/llvm/TableGen/Error.h b/include/llvm/TableGen/Error.h index 5ee6856691..3df658df88 100644 --- a/include/llvm/TableGen/Error.h +++ b/include/llvm/TableGen/Error.h @@ -1,15 +1,16 @@ //===- llvm/TableGen/Error.h - tblgen error handling helpers ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains error handling helper routines to pretty-print diagnostic// -// messages from tblgen. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains error handling helper routines to pretty-print diagnostic +// messages from tblgen. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TABLEGEN_ERROR_H #define LLVM_TABLEGEN_ERROR_H diff --git a/include/llvm/TableGen/Main.h b/include/llvm/TableGen/Main.h index 8647efed93..fa90780506 100644 --- a/include/llvm/TableGen/Main.h +++ b/include/llvm/TableGen/Main.h @@ -1,14 +1,15 @@ //===- llvm/TableGen/Main.h - tblgen entry point ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Main.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the common entry point for tblgen tools. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the common entry point for tblgen tools. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TABLEGEN_MAIN_H #define LLVM_TABLEGEN_MAIN_H diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index 75c8e16135..d2d92c81ab 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -1,13 +1,14 @@ //===- llvm/TableGen/Record.h - Classes for Table Records -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Record.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the main TableGen data structures, including the TableGen// -// types, values, and high-level data structures. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the main TableGen data structures, including the TableGen +// types, values, and high-level data structures. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/TableGen/SetTheory.h b/include/llvm/TableGen/SetTheory.h index 52d2bdd084..d4e0f53d3e 100644 --- a/include/llvm/TableGen/SetTheory.h +++ b/include/llvm/TableGen/SetTheory.h @@ -1,47 +1,48 @@ //===- SetTheory.h - Generate ordered sets from DAG expressions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SetTheory.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SetTheory class that computes ordered sets of // -// Records from DAG expressions. Operators for standard set operations are // -// predefined, and it is possible to add special purpose set operators as well.// // -// The user may define named sets as Records of predefined classes. Set // -// expanders can be added to a SetTheory instance to teach it how to find the// -// elements of such a named set. // +// The LLVM Compiler Infrastructure // -// These are the predefined operators. The argument lists can be individual // -// elements (defs), other sets (defs of expandable classes), lists, or DAG // -// expressions that are evaluated recursively. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// - (add S1, S2 ...) Union sets. This is also how sets are created from element// -// lists. // +//===----------------------------------------------------------------------===// // -// - (sub S1, S2, ...) Set difference. Every element in S1 except for the // -// elements in S2, ... // +// This file implements the SetTheory class that computes ordered sets of +// Records from DAG expressions. Operators for standard set operations are +// predefined, and it is possible to add special purpose set operators as well. // -// - (and S1, S2) Set intersection. Every element in S1 that is also in S2. // +// The user may define named sets as Records of predefined classes. Set +// expanders can be added to a SetTheory instance to teach it how to find the +// elements of such a named set. // -// - (shl S, N) Shift left. Remove the first N elements from S. // +// These are the predefined operators. The argument lists can be individual +// elements (defs), other sets (defs of expandable classes), lists, or DAG +// expressions that are evaluated recursively. // -// - (trunc S, N) Truncate. The first N elements of S. // +// - (add S1, S2 ...) Union sets. This is also how sets are created from element +// lists. // -// - (rotl S, N) Rotate left. Same as (add (shl S, N), (trunc S, N)). // +// - (sub S1, S2, ...) Set difference. Every element in S1 except for the +// elements in S2, ... // -// - (rotr S, N) Rotate right. // +// - (and S1, S2) Set intersection. Every element in S1 that is also in S2. // -// - (decimate S, N) Decimate S by picking every N'th element, starting with // -// the first one. For instance, (decimate S, 2) returns the even elements of// -// S. // +// - (shl S, N) Shift left. Remove the first N elements from S. // -// - (sequence "Format", From, To) Generate a sequence of defs with printf. // -// For instance, (sequence "R%u", 0, 3) -> [ R0, R1, R2, R3 ] // +// - (trunc S, N) Truncate. The first N elements of S. // -/////////////////////////////////////////////////////////////////////////////// +// - (rotl S, N) Rotate left. Same as (add (shl S, N), (trunc S, N)). +// +// - (rotr S, N) Rotate right. +// +// - (decimate S, N) Decimate S by picking every N'th element, starting with +// the first one. For instance, (decimate S, 2) returns the even elements of +// S. +// +// - (sequence "Format", From, To) Generate a sequence of defs with printf. +// For instance, (sequence "R%u", 0, 3) -> [ R0, R1, R2, R3 ] +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TABLEGEN_SETTHEORY_H #define LLVM_TABLEGEN_SETTHEORY_H diff --git a/include/llvm/TableGen/StringMatcher.h b/include/llvm/TableGen/StringMatcher.h index ef03734b33..b438779108 100644 --- a/include/llvm/TableGen/StringMatcher.h +++ b/include/llvm/TableGen/StringMatcher.h @@ -1,14 +1,15 @@ //===- StringMatcher.h - Generate a matcher for input strings ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringMatcher.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StringMatcher class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the StringMatcher class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TABLEGEN_STRINGMATCHER_H #define LLVM_TABLEGEN_STRINGMATCHER_H diff --git a/include/llvm/TableGen/StringToOffsetTable.h b/include/llvm/TableGen/StringToOffsetTable.h index 80945ab796..e3277036dc 100644 --- a/include/llvm/TableGen/StringToOffsetTable.h +++ b/include/llvm/TableGen/StringToOffsetTable.h @@ -1,12 +1,11 @@ //===- StringToOffsetTable.h - Emit a big concatenated string ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringToOffsetTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TABLEGEN_STRINGTOOFFSETTABLE_H #define LLVM_TABLEGEN_STRINGTOOFFSETTABLE_H diff --git a/include/llvm/TableGen/TableGenBackend.h b/include/llvm/TableGen/TableGenBackend.h index bb8aff0c4f..d226f1f1af 100644 --- a/include/llvm/TableGen/TableGenBackend.h +++ b/include/llvm/TableGen/TableGenBackend.h @@ -1,14 +1,15 @@ //===- llvm/TableGen/TableGenBackend.h - Backend utilities ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TableGenBackend.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Useful utilities for TableGen backends. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Useful utilities for TableGen backends. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TABLEGEN_TABLEGENBACKEND_H #define LLVM_TABLEGEN_TABLEGENBACKEND_H diff --git a/include/llvm/Target/CostTable.h b/include/llvm/Target/CostTable.h index fa1aacedba..34f6041137 100644 --- a/include/llvm/Target/CostTable.h +++ b/include/llvm/Target/CostTable.h @@ -1,17 +1,16 @@ //===-- CostTable.h - Instruction Cost Table handling -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CostTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Cost tables and simple lookup functions // +/// \file +/// \brief Cost tables and simple lookup functions /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_COSTTABLE_H_ #define LLVM_TARGET_COSTTABLE_H_ diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td index 59614f7985..6682b31302 100644 --- a/include/llvm/Target/Target.td +++ b/include/llvm/Target/Target.td @@ -1,16 +1,16 @@ //===- Target.td - Target Independent TableGen interface ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Target.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the target-independent interfaces which should be // -// implemented by each target which is using a TableGen based code generator.// -// // -/////////////////////////////////////////////////////////////////////////////// -// Include all information about LLVM intrinsics. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the target-independent interfaces which should be +// implemented by each target which is using a TableGen based code generator. +// +//===----------------------------------------------------------------------===// include "llvm/IR/Intrinsics.td" diff --git a/include/llvm/Target/TargetCallingConv.h b/include/llvm/Target/TargetCallingConv.h index 028f72127e..9d4e7a04d9 100644 --- a/include/llvm/Target/TargetCallingConv.h +++ b/include/llvm/Target/TargetCallingConv.h @@ -1,14 +1,15 @@ //===-- llvm/Target/TargetCallingConv.h - Calling Convention ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetCallingConv.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines types for working with calling-convention information. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines types for working with calling-convention information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETCALLINGCONV_H #define LLVM_TARGET_TARGETCALLINGCONV_H diff --git a/include/llvm/Target/TargetCallingConv.td b/include/llvm/Target/TargetCallingConv.td index 7b1f11e31f..2e766c448b 100644 --- a/include/llvm/Target/TargetCallingConv.td +++ b/include/llvm/Target/TargetCallingConv.td @@ -1,15 +1,16 @@ //===- TargetCallingConv.td - Target Calling Conventions ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetCallingConv.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the target-independent interfaces with which targets // -// describe their calling conventions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the target-independent interfaces with which targets +// describe their calling conventions. +// +//===----------------------------------------------------------------------===// class CCAction; class CallingConv; diff --git a/include/llvm/Target/TargetFrameLowering.h b/include/llvm/Target/TargetFrameLowering.h index a05e210170..3af2227410 100644 --- a/include/llvm/Target/TargetFrameLowering.h +++ b/include/llvm/Target/TargetFrameLowering.h @@ -1,14 +1,15 @@ //===-- llvm/Target/TargetFrameLowering.h ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetFrameLowering.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Interface to describe the layout of a stack frame on the target machine. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Interface to describe the layout of a stack frame on the target machine. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETFRAMELOWERING_H #define LLVM_TARGET_TARGETFRAMELOWERING_H diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 27656628b0..8b314f454b 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -1,14 +1,15 @@ //===-- llvm/Target/TargetInstrInfo.h - Instruction Info --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetInstrInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the target machine instruction set to the code generator.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the target machine instruction set to the code generator. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETINSTRINFO_H #define LLVM_TARGET_TARGETINSTRINFO_H diff --git a/include/llvm/Target/TargetIntrinsicInfo.h b/include/llvm/Target/TargetIntrinsicInfo.h index ecef150ea6..c630f5b12a 100644 --- a/include/llvm/Target/TargetIntrinsicInfo.h +++ b/include/llvm/Target/TargetIntrinsicInfo.h @@ -1,14 +1,15 @@ //===-- llvm/Target/TargetIntrinsicInfo.h - Instruction Info ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetIntrinsicInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the target intrinsic instructions to the code generator.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the target intrinsic instructions to the code generator. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETINTRINSICINFO_H #define LLVM_TARGET_TARGETINTRINSICINFO_H diff --git a/include/llvm/Target/TargetItinerary.td b/include/llvm/Target/TargetItinerary.td index acba52d113..6661d2d520 100644 --- a/include/llvm/Target/TargetItinerary.td +++ b/include/llvm/Target/TargetItinerary.td @@ -1,25 +1,19 @@ //===- TargetItinerary.td - Target Itinierary Description --*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetItinerary.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the target-independent scheduling interfaces // -// which should be implemented by each target that uses instruction // -// itineraries for scheduling. Itineraries are details reservation // -// tables for each instruction class. They are most appropriate for // -// in-order machine with complicated scheduling or bundling constraints. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Processor functional unit - These values represent the function units // -// available across all chip sets for the target. Eg., IntUnit, FPUnit, ... // -// These may be independent values for each chip set or may be shared across // -// all chip sets of the target. Each functional unit is treated as a resource// -// during scheduling and has an affect instruction order based on availability// -// during a time interval. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the target-independent scheduling interfaces +// which should be implemented by each target that uses instruction +// itineraries for scheduling. Itineraries are details reservation +// tables for each instruction class. They are most appropriate for +// in-order machine with complicated scheduling or bundling constraints. +// +//===----------------------------------------------------------------------===// class FuncUnit; diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 6cab21dd52..4412d9b3c6 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1,25 +1,24 @@ //===-- llvm/Target/TargetLowering.h - Target Lowering Info -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLowering.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// This file describes how to lower LLVM code to machine code. This has two// -/// main components: // +/// \file +/// This file describes how to lower LLVM code to machine code. This has two +/// main components: /// -/// 1. Which ValueTypes are natively supported by the target. // -/// 2. Which operations are supported for supported ValueTypes. // -/// 3. Cost thresholds for alternative implementations of certain operations.// +/// 1. Which ValueTypes are natively supported by the target. +/// 2. Which operations are supported for supported ValueTypes. +/// 3. Cost thresholds for alternative implementations of certain operations. /// -/// In addition it has a few other components, like information about FP // -/// immediates. // +/// In addition it has a few other components, like information about FP +/// immediates. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETLOWERING_H #define LLVM_TARGET_TARGETLOWERING_H diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index edf612256a..5b626c244b 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -1,15 +1,16 @@ //===-- llvm/Target/TargetLoweringObjectFile.h - Object Info ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLoweringObjectFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements classes used to handle lowerings specific to common // -// object file formats. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements classes used to handle lowerings specific to common +// object file formats. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H #define LLVM_TARGET_TARGETLOWERINGOBJECTFILE_H diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index ccb76000e6..29a3522048 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -1,12 +1,13 @@ //===-- llvm/Target/TargetMachine.h - Target Information --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetMachine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TargetMachine and LLVMTargetMachine classes. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TargetMachine and LLVMTargetMachine classes. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Target/TargetOpcodes.h b/include/llvm/Target/TargetOpcodes.h index 5ae3af081f..5019719110 100644 --- a/include/llvm/Target/TargetOpcodes.h +++ b/include/llvm/Target/TargetOpcodes.h @@ -1,14 +1,15 @@ //===-- llvm/Target/TargetOpcodes.h - Target Indep Opcodes ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetOpcodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the target independent instruction opcodes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the target independent instruction opcodes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETOPCODES_H #define LLVM_TARGET_TARGETOPCODES_H diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index 4e6ee85d28..d52cb60cf1 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -1,15 +1,16 @@ //===-- llvm/Target/TargetOptions.h - Target Options ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines command line option flags that are shared across various// -// targets. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines command line option flags that are shared across various +// targets. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETOPTIONS_H #define LLVM_TARGET_TARGETOPTIONS_H diff --git a/include/llvm/Target/TargetRecip.h b/include/llvm/Target/TargetRecip.h index 9f05689726..4cc3672d75 100644 --- a/include/llvm/Target/TargetRecip.h +++ b/include/llvm/Target/TargetRecip.h @@ -1,17 +1,18 @@ //===--------------------- llvm/Target/TargetRecip.h ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRecip.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class is used to customize machine-specific reciprocal estimate code // -// generation in a target-independent way. // -// If a target does not support operations in this specification, then code // -// generation will default to using supported operations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class is used to customize machine-specific reciprocal estimate code +// generation in a target-independent way. +// If a target does not support operations in this specification, then code +// generation will default to using supported operations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TARGET_TARGETRECIP_H #define LLVM_TARGET_TARGETRECIP_H diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index cf3d08d7eb..de8b0a611c 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -1,14 +1,15 @@ //=== Target/TargetRegisterInfo.h - Target Register Information -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRegisterInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes an abstract interface used to get information about a // -// target machines register file. This information is used for a variety of // -// purposed, especially register allocation. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes an abstract interface used to get information about a +// target machines register file. This information is used for a variety of +// purposed, especially register allocation. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Target/TargetSchedule.td b/include/llvm/Target/TargetSchedule.td index fc81906677..c0a1e17238 100644 --- a/include/llvm/Target/TargetSchedule.td +++ b/include/llvm/Target/TargetSchedule.td @@ -1,55 +1,54 @@ //===- TargetSchedule.td - Target Independent Scheduling ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSchedule.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the target-independent scheduling interfaces which should// -// be implemented by each target which is using TableGen based scheduling. // -// // -// The SchedMachineModel is defined by subtargets for three categories of data:// -// 1. Basic properties for coarse grained instruction cost model. // -// 2. Scheduler Read/Write resources for simple per-opcode cost model. // -// 3. Instruction itineraties for detailed reservation tables. // -// // -// (1) Basic properties are defined by the SchedMachineModel // -// class. Target hooks allow subtargets to associate opcodes with // -// those properties. // -// // -// (2) A per-operand machine model can be implemented in any // -// combination of the following ways: // -// // -// A. Associate per-operand SchedReadWrite types with Instructions by // -// modifying the Instruction definition to inherit from Sched. For // -// each subtarget, define WriteRes and ReadAdvance to associate // -// processor resources and latency with each SchedReadWrite type. // -// // -// B. In each instruction definition, name an ItineraryClass. For each // -// subtarget, define ItinRW entries to map ItineraryClass to // -// per-operand SchedReadWrite types. Unlike method A, these types may // -// be subtarget specific and can be directly associated with resources // -// by defining SchedWriteRes and SchedReadAdvance. // -// // -// C. In the subtarget, map SchedReadWrite types to specific // -// opcodes. This overrides any SchedReadWrite types or // -// ItineraryClasses defined by the Instruction. As in method B, the // -// subtarget can directly associate resources with SchedReadWrite // -// types by defining SchedWriteRes and SchedReadAdvance. // -// // -// D. In either the target or subtarget, define SchedWriteVariant or // -// SchedReadVariant to map one SchedReadWrite type onto another // -// sequence of SchedReadWrite types. This allows dynamic selection of // -// an instruction's machine model via custom C++ code. It also allows // -// a machine-independent SchedReadWrite type to map to a sequence of // -// machine-dependent types. // -// // -// (3) A per-pipeline-stage machine model can be implemented by providing // -// Itineraries in addition to mapping instructions to ItineraryClasses. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Include legacy support for instruction itineraries. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the target-independent scheduling interfaces which should +// be implemented by each target which is using TableGen based scheduling. +// +// The SchedMachineModel is defined by subtargets for three categories of data: +// 1. Basic properties for coarse grained instruction cost model. +// 2. Scheduler Read/Write resources for simple per-opcode cost model. +// 3. Instruction itineraties for detailed reservation tables. +// +// (1) Basic properties are defined by the SchedMachineModel +// class. Target hooks allow subtargets to associate opcodes with +// those properties. +// +// (2) A per-operand machine model can be implemented in any +// combination of the following ways: +// +// A. Associate per-operand SchedReadWrite types with Instructions by +// modifying the Instruction definition to inherit from Sched. For +// each subtarget, define WriteRes and ReadAdvance to associate +// processor resources and latency with each SchedReadWrite type. +// +// B. In each instruction definition, name an ItineraryClass. For each +// subtarget, define ItinRW entries to map ItineraryClass to +// per-operand SchedReadWrite types. Unlike method A, these types may +// be subtarget specific and can be directly associated with resources +// by defining SchedWriteRes and SchedReadAdvance. +// +// C. In the subtarget, map SchedReadWrite types to specific +// opcodes. This overrides any SchedReadWrite types or +// ItineraryClasses defined by the Instruction. As in method B, the +// subtarget can directly associate resources with SchedReadWrite +// types by defining SchedWriteRes and SchedReadAdvance. +// +// D. In either the target or subtarget, define SchedWriteVariant or +// SchedReadVariant to map one SchedReadWrite type onto another +// sequence of SchedReadWrite types. This allows dynamic selection of +// an instruction's machine model via custom C++ code. It also allows +// a machine-independent SchedReadWrite type to map to a sequence of +// machine-dependent types. +// +// (3) A per-pipeline-stage machine model can be implemented by providing +// Itineraries in addition to mapping instructions to ItineraryClasses. +//===----------------------------------------------------------------------===// include "llvm/Target/TargetItinerary.td" diff --git a/include/llvm/Target/TargetSelectionDAG.td b/include/llvm/Target/TargetSelectionDAG.td index ce9209da7b..df55815bfe 100644 --- a/include/llvm/Target/TargetSelectionDAG.td +++ b/include/llvm/Target/TargetSelectionDAG.td @@ -1,20 +1,16 @@ //===- TargetSelectionDAG.td - Common code for DAG isels ---*- tablegen -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSelectionDAG.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the target-independent interfaces used by SelectionDAG // -// instruction selection generators. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Selection DAG Type Constraint definitions. // -// // -// Note that the semantics of these constraints are hard coded into tblgen. To// -// modify or add constraints, you have to hack tblgen. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the target-independent interfaces used by SelectionDAG +// instruction selection generators. +// +//===----------------------------------------------------------------------===// class SDTypeConstraint { int OperandNum = opnum; diff --git a/include/llvm/Target/TargetSelectionDAGInfo.h b/include/llvm/Target/TargetSelectionDAGInfo.h index b2b3e4deee..68b07237ba 100644 --- a/include/llvm/Target/TargetSelectionDAGInfo.h +++ b/include/llvm/Target/TargetSelectionDAGInfo.h @@ -1,14 +1,15 @@ //==-- llvm/Target/TargetSelectionDAGInfo.h - SelectionDAG Info --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSelectionDAGInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the TargetSelectionDAGInfo class, which targets can // -// subclass to parameterize the SelectionDAG lowering and instruction // -// selection process. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the TargetSelectionDAGInfo class, which targets can +// subclass to parameterize the SelectionDAG lowering and instruction +// selection process. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Target/TargetSubtargetInfo.h b/include/llvm/Target/TargetSubtargetInfo.h index 080ab142fb..8ebe3239c3 100644 --- a/include/llvm/Target/TargetSubtargetInfo.h +++ b/include/llvm/Target/TargetSubtargetInfo.h @@ -1,12 +1,13 @@ //==-- llvm/Target/TargetSubtargetInfo.h - Target Information ----*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSubtargetInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the subtarget options of a Target machine. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the subtarget options of a Target machine. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 9191b3aa1c..2f592f7ab9 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -1,13 +1,14 @@ //===- llvm/Transforms/IPO.h - Interprocedural Transformations --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file defines prototypes for accessor functions that expose passes// -// in the IPO transformations library. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file defines prototypes for accessor functions that expose passes +// in the IPO transformations library. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h index 1a5053faec..b90b0aaaf4 100644 --- a/include/llvm/Transforms/IPO/InlinerPass.h +++ b/include/llvm/Transforms/IPO/InlinerPass.h @@ -1,17 +1,18 @@ //===- InlinerPass.h - Code common to all inliners --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlinerPass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a simple policy-based bottom-up inliner. This file // -// implements all of the boring mechanics of the bottom-up inlining, while the// -// subclass determines WHAT to inline, which is the much more interesting // -// component. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a simple policy-based bottom-up inliner. This file +// implements all of the boring mechanics of the bottom-up inlining, while the +// subclass determines WHAT to inline, which is the much more interesting +// component. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_IPO_INLINERPASS_H #define LLVM_TRANSFORMS_IPO_INLINERPASS_H diff --git a/include/llvm/Transforms/IPO/LowerBitSets.h b/include/llvm/Transforms/IPO/LowerBitSets.h index 837a6c3343..55d7d84560 100644 --- a/include/llvm/Transforms/IPO/LowerBitSets.h +++ b/include/llvm/Transforms/IPO/LowerBitSets.h @@ -1,15 +1,16 @@ //===- LowerBitSets.h - Bitset lowering pass --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerBitSets.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines parts of the bitset lowering pass implementation that may// -// be usefully unit tested. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines parts of the bitset lowering pass implementation that may +// be usefully unit tested. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_IPO_LOWERBITSETS_H #define LLVM_TRANSFORMS_IPO_LOWERBITSETS_H diff --git a/include/llvm/Transforms/IPO/PassManagerBuilder.h b/include/llvm/Transforms/IPO/PassManagerBuilder.h index 1685ed9cd5..9867f77537 100644 --- a/include/llvm/Transforms/IPO/PassManagerBuilder.h +++ b/include/llvm/Transforms/IPO/PassManagerBuilder.h @@ -1,15 +1,16 @@ -//= llvm/Transforms/IPO/PassManagerBuilder.h - Build Standard Pass -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// DxilRootSignature.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PassManagerBuilder class, which is used to set up a // -// "standard" optimization sequence suitable for languages like C and C++. // -// // -/////////////////////////////////////////////////////////////////////////////// +// llvm/Transforms/IPO/PassManagerBuilder.h - Build Standard Pass -*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PassManagerBuilder class, which is used to set up a +// "standard" optimization sequence suitable for languages like C and C++. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_IPO_PASSMANAGERBUILDER_H #define LLVM_TRANSFORMS_IPO_PASSMANAGERBUILDER_H diff --git a/include/llvm/Transforms/InstCombine/InstCombine.h b/include/llvm/Transforms/InstCombine/InstCombine.h index 34df3b444f..f48ec13107 100644 --- a/include/llvm/Transforms/InstCombine/InstCombine.h +++ b/include/llvm/Transforms/InstCombine/InstCombine.h @@ -1,20 +1,19 @@ //===- InstCombine.h - InstCombine pass -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file provides the primary interface to the instcombine pass. This pass// -/// is suitable for use in the new pass manager. For a pass that works with the// -/// legacy pass manager, please look for \c createInstructionCombiningPass() in// -/// Scalar.h. // +/// This file provides the primary interface to the instcombine pass. This pass +/// is suitable for use in the new pass manager. For a pass that works with the +/// legacy pass manager, please look for \c createInstructionCombiningPass() in +/// Scalar.h. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_INSTCOMBINE_INSTCOMBINE_H #define LLVM_TRANSFORMS_INSTCOMBINE_INSTCOMBINE_H diff --git a/include/llvm/Transforms/InstCombine/InstCombineWorklist.h b/include/llvm/Transforms/InstCombine/InstCombineWorklist.h index 3022dadd67..a6bad343db 100644 --- a/include/llvm/Transforms/InstCombine/InstCombineWorklist.h +++ b/include/llvm/Transforms/InstCombine/InstCombineWorklist.h @@ -1,12 +1,11 @@ //===- InstCombineWorklist.h - Worklist for InstCombine pass ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineWorklist.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_INSTCOMBINE_INSTCOMBINEWORKLIST_H #define LLVM_TRANSFORMS_INSTCOMBINE_INSTCOMBINEWORKLIST_H diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 2c706425e1..250e3893cb 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -1,14 +1,15 @@ //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instrumentation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines constructor functions for instrumentation passes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines constructor functions for instrumentation passes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_H #define LLVM_TRANSFORMS_INSTRUMENTATION_H diff --git a/include/llvm/Transforms/ObjCARC.h b/include/llvm/Transforms/ObjCARC.h index 67500384b4..3038c6779b 100644 --- a/include/llvm/Transforms/ObjCARC.h +++ b/include/llvm/Transforms/ObjCARC.h @@ -1,13 +1,14 @@ //===-- ObjCARC.h - ObjCARC Scalar Transformations --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARC.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file defines prototypes for accessor functions that expose passes// -// in the ObjCARC Scalar Transformations library. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file defines prototypes for accessor functions that expose passes +// in the ObjCARC Scalar Transformations library. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index bce0ee0101..23c4987e2a 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -1,13 +1,14 @@ //===-- Scalar.h - Scalar Transformations -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Scalar.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file defines prototypes for accessor functions that expose passes// -// in the Scalar transformations library. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file defines prototypes for accessor functions that expose passes +// in the Scalar transformations library. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Transforms/Scalar/EarlyCSE.h b/include/llvm/Transforms/Scalar/EarlyCSE.h index 885029e23f..e3dd3c050d 100644 --- a/include/llvm/Transforms/Scalar/EarlyCSE.h +++ b/include/llvm/Transforms/Scalar/EarlyCSE.h @@ -1,16 +1,15 @@ //===- EarlyCSE.h - Simple and fast CSE pass --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EarlyCSE.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides the interface for a simple, fast CSE pass. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides the interface for a simple, fast CSE pass. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_SCALAR_EARLYCSE_H #define LLVM_TRANSFORMS_SCALAR_EARLYCSE_H diff --git a/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h b/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h index 22ad3396ec..40283203f3 100644 --- a/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h +++ b/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h @@ -1,18 +1,17 @@ //===- LowerExpectIntrinsic.h - LowerExpectIntrinsic pass -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerExpectIntrinsic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// The header file for the LowerExpectIntrinsic pass as used by the new pass// -/// manager. // +/// The header file for the LowerExpectIntrinsic pass as used by the new pass +/// manager. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_SCALAR_LOWEREXPECTINTRINSIC_H #define LLVM_TRANSFORMS_SCALAR_LOWEREXPECTINTRINSIC_H diff --git a/include/llvm/Transforms/Scalar/SimplifyCFG.h b/include/llvm/Transforms/Scalar/SimplifyCFG.h index 0b5226d315..ef28e0f78a 100644 --- a/include/llvm/Transforms/Scalar/SimplifyCFG.h +++ b/include/llvm/Transforms/Scalar/SimplifyCFG.h @@ -1,17 +1,16 @@ //===- SimplifyCFG.h - Simplify and canonicalize the CFG --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyCFG.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides the interface for the pass responsible for both // -/// simplifying and canonicalizing the CFG. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides the interface for the pass responsible for both +/// simplifying and canonicalizing the CFG. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_SCALAR_SIMPLIFYCFG_H #define LLVM_TRANSFORMS_SCALAR_SIMPLIFYCFG_H diff --git a/include/llvm/Transforms/Utils/ASanStackFrameLayout.h b/include/llvm/Transforms/Utils/ASanStackFrameLayout.h index b27923ff28..4e4f02c84e 100644 --- a/include/llvm/Transforms/Utils/ASanStackFrameLayout.h +++ b/include/llvm/Transforms/Utils/ASanStackFrameLayout.h @@ -1,14 +1,15 @@ //===- ASanStackFrameLayout.h - ComputeASanStackFrameLayout -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASanStackFrameLayout.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines ComputeASanStackFrameLayout and auxiliary data structs.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines ComputeASanStackFrameLayout and auxiliary data structs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_ASANSTACKFRAMELAYOUT_H #define LLVM_TRANSFORMS_UTILS_ASANSTACKFRAMELAYOUT_H #include "llvm/ADT/SmallString.h" diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h index 7a9353f963..9b919b62ee 100644 --- a/include/llvm/Transforms/Utils/BasicBlockUtils.h +++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h @@ -1,15 +1,16 @@ //===-- Transform/Utils/BasicBlockUtils.h - BasicBlock Utils ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicBlockUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions perform manipulations on basic blocks, and // -// instructions contained within basic blocks. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions perform manipulations on basic blocks, and +// instructions contained within basic blocks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_BASICBLOCKUTILS_H #define LLVM_TRANSFORMS_UTILS_BASICBLOCKUTILS_H diff --git a/include/llvm/Transforms/Utils/BuildLibCalls.h b/include/llvm/Transforms/Utils/BuildLibCalls.h index 9fc9b28f1d..879f295caf 100644 --- a/include/llvm/Transforms/Utils/BuildLibCalls.h +++ b/include/llvm/Transforms/Utils/BuildLibCalls.h @@ -1,15 +1,16 @@ //===- BuildLibCalls.h - Utility builder for libcalls -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuildLibCalls.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes an interface to build some C language libcalls for // -// optimization passes that need to call the various functions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes an interface to build some C language libcalls for +// optimization passes that need to call the various functions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_BUILDLIBCALLS_H #define LLVM_TRANSFORMS_UTILS_BUILDLIBCALLS_H diff --git a/include/llvm/Transforms/Utils/BypassSlowDivision.h b/include/llvm/Transforms/Utils/BypassSlowDivision.h index a9734e5775..0d081c0194 100644 --- a/include/llvm/Transforms/Utils/BypassSlowDivision.h +++ b/include/llvm/Transforms/Utils/BypassSlowDivision.h @@ -1,18 +1,19 @@ //===- llvm/Transforms/Utils/BypassSlowDivision.h --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BypassSlowDivision.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an optimization for div and rem on architectures that // -// execute short instructions significantly faster than longer instructions. // -// For example, on Intel Atom 32-bit divides are slow enough that during // -// runtime it is profitable to check the value of the operands, and if they are// -// positive and less than 256 use an unsigned 8-bit divide. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains an optimization for div and rem on architectures that +// execute short instructions significantly faster than longer instructions. +// For example, on Intel Atom 32-bit divides are slow enough that during +// runtime it is profitable to check the value of the operands, and if they are +// positive and less than 256 use an unsigned 8-bit divide. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_BYPASSSLOWDIVISION_H #define LLVM_TRANSFORMS_UTILS_BYPASSSLOWDIVISION_H diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h index fceffee3be..2caa9a2462 100644 --- a/include/llvm/Transforms/Utils/Cloning.h +++ b/include/llvm/Transforms/Utils/Cloning.h @@ -1,18 +1,19 @@ //===- Cloning.h - Clone various parts of LLVM programs ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Cloning.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines various functions that are used to clone chunks of LLVM // -// code for various purposes. This varies from copying whole modules into new// -// modules, to cloning functions with different arguments, to inlining // -// functions, to copying basic blocks to support loop unrolling or superblock// -// formation, etc. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines various functions that are used to clone chunks of LLVM +// code for various purposes. This varies from copying whole modules into new +// modules, to cloning functions with different arguments, to inlining +// functions, to copying basic blocks to support loop unrolling or superblock +// formation, etc. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_CLONING_H #define LLVM_TRANSFORMS_UTILS_CLONING_H diff --git a/include/llvm/Transforms/Utils/CmpInstAnalysis.h b/include/llvm/Transforms/Utils/CmpInstAnalysis.h index d78f2bbad1..73c15e42c3 100644 --- a/include/llvm/Transforms/Utils/CmpInstAnalysis.h +++ b/include/llvm/Transforms/Utils/CmpInstAnalysis.h @@ -1,15 +1,16 @@ //===-- CmpInstAnalysis.h - Utils to help fold compare insts ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CmpInstAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file holds routines to help analyse compare instructions // -// and fold them into constants or other compare instructions // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file holds routines to help analyse compare instructions +// and fold them into constants or other compare instructions +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_CMPINSTANALYSIS_H #define LLVM_TRANSFORMS_UTILS_CMPINSTANALYSIS_H diff --git a/include/llvm/Transforms/Utils/CodeExtractor.h b/include/llvm/Transforms/Utils/CodeExtractor.h index 9f65c666e2..3a96d955ca 100644 --- a/include/llvm/Transforms/Utils/CodeExtractor.h +++ b/include/llvm/Transforms/Utils/CodeExtractor.h @@ -1,15 +1,16 @@ //===-- Transform/Utils/CodeExtractor.h - Code extraction util --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeExtractor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A utility to support extracting code from one function into its own // -// stand-alone function. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A utility to support extracting code from one function into its own +// stand-alone function. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_CODEEXTRACTOR_H #define LLVM_TRANSFORMS_UTILS_CODEEXTRACTOR_H diff --git a/include/llvm/Transforms/Utils/CtorUtils.h b/include/llvm/Transforms/Utils/CtorUtils.h index bc2ee570f6..63e564dcb8 100644 --- a/include/llvm/Transforms/Utils/CtorUtils.h +++ b/include/llvm/Transforms/Utils/CtorUtils.h @@ -1,14 +1,15 @@ //===- CtorUtils.h - Helpers for working with global_ctors ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CtorUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines functions that are used to process llvm.global_ctors. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines functions that are used to process llvm.global_ctors. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_CTORUTILS_H #define LLVM_TRANSFORMS_UTILS_CTORUTILS_H diff --git a/include/llvm/Transforms/Utils/GlobalStatus.h b/include/llvm/Transforms/Utils/GlobalStatus.h index f5a6e423f6..c366095088 100644 --- a/include/llvm/Transforms/Utils/GlobalStatus.h +++ b/include/llvm/Transforms/Utils/GlobalStatus.h @@ -1,12 +1,11 @@ //===- GlobalStatus.h - Compute status info for globals ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalStatus.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_GLOBALSTATUS_H #define LLVM_TRANSFORMS_UTILS_GLOBALSTATUS_H diff --git a/include/llvm/Transforms/Utils/IntegerDivision.h b/include/llvm/Transforms/Utils/IntegerDivision.h index 60f6e173be..0ec3321b9c 100644 --- a/include/llvm/Transforms/Utils/IntegerDivision.h +++ b/include/llvm/Transforms/Utils/IntegerDivision.h @@ -1,17 +1,18 @@ //===- llvm/Transforms/Utils/IntegerDivision.h ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntegerDivision.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an implementation of 32bit and 64bit scalar integer // -// division for targets that don't have native support. It's largely derived // -// from compiler-rt's implementations of __udivsi3 and __udivmoddi4, // -// but hand-tuned for targets that prefer less control flow. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains an implementation of 32bit and 64bit scalar integer +// division for targets that don't have native support. It's largely derived +// from compiler-rt's implementations of __udivsi3 and __udivmoddi4, +// but hand-tuned for targets that prefer less control flow. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_INTEGERDIVISION_H #define LLVM_TRANSFORMS_UTILS_INTEGERDIVISION_H diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index b654851dbb..82e2271089 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -1,13 +1,14 @@ //===-- Local.h - Functions to perform local transformations ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Local.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions perform various local transformations to the // -// program. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions perform various local transformations to the +// program. // //===----------------------------------------------------------------------===// diff --git a/include/llvm/Transforms/Utils/LoopUtils.h b/include/llvm/Transforms/Utils/LoopUtils.h index db73cf3c87..15747bc7f1 100644 --- a/include/llvm/Transforms/Utils/LoopUtils.h +++ b/include/llvm/Transforms/Utils/LoopUtils.h @@ -1,14 +1,15 @@ //===- llvm/Transforms/Utils/LoopUtils.h - Loop utilities -*- C++ -*-=========// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some loop transformation utilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some loop transformation utilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_LOOPUTILS_H #define LLVM_TRANSFORMS_UTILS_LOOPUTILS_H diff --git a/include/llvm/Transforms/Utils/LoopVersioning.h b/include/llvm/Transforms/Utils/LoopVersioning.h index 5cf07dd148..009fba48c6 100644 --- a/include/llvm/Transforms/Utils/LoopVersioning.h +++ b/include/llvm/Transforms/Utils/LoopVersioning.h @@ -1,16 +1,17 @@ //===- LoopVersioning.h - Utility to version a loop -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopVersioning.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a utility class to perform loop versioning. The versioned// -// loop speculates that otherwise may-aliasing memory accesses don't overlap and// -// emits checks to prove this. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a utility class to perform loop versioning. The versioned +// loop speculates that otherwise may-aliasing memory accesses don't overlap and +// emits checks to prove this. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_LOOPVERSIONING_H #define LLVM_TRANSFORMS_UTILS_LOOPVERSIONING_H diff --git a/include/llvm/Transforms/Utils/ModuleUtils.h b/include/llvm/Transforms/Utils/ModuleUtils.h index 1638dca2be..622265bae1 100644 --- a/include/llvm/Transforms/Utils/ModuleUtils.h +++ b/include/llvm/Transforms/Utils/ModuleUtils.h @@ -1,14 +1,15 @@ //===-- ModuleUtils.h - Functions to manipulate Modules ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions perform manipulations on Modules. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions perform manipulations on Modules. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_MODULEUTILS_H #define LLVM_TRANSFORMS_UTILS_MODULEUTILS_H diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index fc4b454512..d0602bf47c 100644 --- a/include/llvm/Transforms/Utils/PromoteMemToReg.h +++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h @@ -1,15 +1,16 @@ //===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PromoteMemToReg.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes an interface to promote alloca instructions to SSA // -// registers, by using the SSA construction algorithm. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes an interface to promote alloca instructions to SSA +// registers, by using the SSA construction algorithm. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H #define LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H diff --git a/include/llvm/Transforms/Utils/SSAUpdater.h b/include/llvm/Transforms/Utils/SSAUpdater.h index baf299b951..1c7b2c587a 100644 --- a/include/llvm/Transforms/Utils/SSAUpdater.h +++ b/include/llvm/Transforms/Utils/SSAUpdater.h @@ -1,14 +1,15 @@ //===-- SSAUpdater.h - Unstructured SSA Update Tool -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SSAUpdater.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SSAUpdater class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SSAUpdater class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_SSAUPDATER_H #define LLVM_TRANSFORMS_UTILS_SSAUPDATER_H diff --git a/include/llvm/Transforms/Utils/SSAUpdaterImpl.h b/include/llvm/Transforms/Utils/SSAUpdaterImpl.h index 3b4e8b0836..ed0841c46c 100644 --- a/include/llvm/Transforms/Utils/SSAUpdaterImpl.h +++ b/include/llvm/Transforms/Utils/SSAUpdaterImpl.h @@ -1,15 +1,16 @@ //===-- SSAUpdaterImpl.h - SSA Updater Implementation -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SSAUpdaterImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides a template that implements the core algorithm for the // -// SSAUpdater and MachineSSAUpdater. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides a template that implements the core algorithm for the +// SSAUpdater and MachineSSAUpdater. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_SSAUPDATERIMPL_H #define LLVM_TRANSFORMS_UTILS_SSAUPDATERIMPL_H diff --git a/include/llvm/Transforms/Utils/SimplifyIndVar.h b/include/llvm/Transforms/Utils/SimplifyIndVar.h index 9c56ce4b65..dcb1d67cbf 100644 --- a/include/llvm/Transforms/Utils/SimplifyIndVar.h +++ b/include/llvm/Transforms/Utils/SimplifyIndVar.h @@ -1,16 +1,17 @@ //===-- llvm/Transforms/Utils/SimplifyIndVar.h - Indvar Utils ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyIndVar.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines in interface for induction variable simplification. It does// -// not define any actual pass or policy, but provides a single function to // -// simplify a loop's induction variables based on ScalarEvolution. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines in interface for induction variable simplification. It does +// not define any actual pass or policy, but provides a single function to +// simplify a loop's induction variables based on ScalarEvolution. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_SIMPLIFYINDVAR_H #define LLVM_TRANSFORMS_UTILS_SIMPLIFYINDVAR_H diff --git a/include/llvm/Transforms/Utils/SimplifyLibCalls.h b/include/llvm/Transforms/Utils/SimplifyLibCalls.h index 7cb717361e..41159603aa 100644 --- a/include/llvm/Transforms/Utils/SimplifyLibCalls.h +++ b/include/llvm/Transforms/Utils/SimplifyLibCalls.h @@ -1,15 +1,16 @@ //===- SimplifyLibCalls.h - Library call simplifier -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyLibCalls.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file exposes an interface to build some C language libcalls for // -// optimization passes that need to call the various functions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file exposes an interface to build some C language libcalls for +// optimization passes that need to call the various functions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_SIMPLIFYLIBCALLS_H #define LLVM_TRANSFORMS_UTILS_SIMPLIFYLIBCALLS_H diff --git a/include/llvm/Transforms/Utils/SymbolRewriter.h b/include/llvm/Transforms/Utils/SymbolRewriter.h index 021afafefd..5ccee98f97 100644 --- a/include/llvm/Transforms/Utils/SymbolRewriter.h +++ b/include/llvm/Transforms/Utils/SymbolRewriter.h @@ -1,33 +1,34 @@ //===-- SymbolRewriter.h - Symbol Rewriting Pass ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolRewriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the prototypes and definitions related to the Symbol // -// Rewriter pass. // // -// The Symbol Rewriter pass takes a set of rewrite descriptors which define // -// transformations for symbol names. These can be either single name to name// -// trnsformation or more broad regular expression based transformations. // +// The LLVM Compiler Infrastructure // -// All the functions are re-written at the IR level. The Symbol Rewriter itself// -// is exposed as a module level pass. All symbols at the module level are // -// iterated. For any matching symbol, the requested transformation is applied,// -// updating references to it as well (a la RAUW). The resulting binary will // -// only contain the rewritten symbols. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// By performing this operation in the compiler, we are able to catch symbols// -// that would otherwise not be possible to catch (e.g. inlined symbols). // +//===----------------------------------------------------------------------===// // -// This makes it possible to cleanly transform symbols without resorting to // -// overly-complex macro tricks and the pre-processor. An example of where this// -// is useful is the sanitizers where we would like to intercept a well-defined// -// set of functions across the module. // +// This file provides the prototypes and definitions related to the Symbol +// Rewriter pass. // -/////////////////////////////////////////////////////////////////////////////// +// The Symbol Rewriter pass takes a set of rewrite descriptors which define +// transformations for symbol names. These can be either single name to name +// trnsformation or more broad regular expression based transformations. +// +// All the functions are re-written at the IR level. The Symbol Rewriter itself +// is exposed as a module level pass. All symbols at the module level are +// iterated. For any matching symbol, the requested transformation is applied, +// updating references to it as well (a la RAUW). The resulting binary will +// only contain the rewritten symbols. +// +// By performing this operation in the compiler, we are able to catch symbols +// that would otherwise not be possible to catch (e.g. inlined symbols). +// +// This makes it possible to cleanly transform symbols without resorting to +// overly-complex macro tricks and the pre-processor. An example of where this +// is useful is the sanitizers where we would like to intercept a well-defined +// set of functions across the module. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_SYMBOL_REWRITER_H #define LLVM_TRANSFORMS_UTILS_SYMBOL_REWRITER_H diff --git a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h index 6ea70b51c7..550292f6b7 100644 --- a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h +++ b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h @@ -1,18 +1,19 @@ //===-- UnifyFunctionExitNodes.h - Ensure fn's have one return --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnifyFunctionExitNodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is used to ensure that functions have at most one return and one// -// unwind instruction in them. Additionally, it keeps track of which node is// -// the new exit node of the CFG. If there are no return or unwind instructions// -// in the function, the getReturnBlock/getUnwindBlock methods will return a null// -// pointer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is used to ensure that functions have at most one return and one +// unwind instruction in them. Additionally, it keeps track of which node is +// the new exit node of the CFG. If there are no return or unwind instructions +// in the function, the getReturnBlock/getUnwindBlock methods will return a null +// pointer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_UNIFYFUNCTIONEXITNODES_H #define LLVM_TRANSFORMS_UTILS_UNIFYFUNCTIONEXITNODES_H diff --git a/include/llvm/Transforms/Utils/UnrollLoop.h b/include/llvm/Transforms/Utils/UnrollLoop.h index c4a5836aae..7f2cf8d7f5 100644 --- a/include/llvm/Transforms/Utils/UnrollLoop.h +++ b/include/llvm/Transforms/Utils/UnrollLoop.h @@ -1,16 +1,17 @@ //===- llvm/Transforms/Utils/UnrollLoop.h - Unrolling utilities -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnrollLoop.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some loop unrolling utilities. It does not define any // -// actual pass or policy, but provides a single function to perform loop // -// unrolling. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some loop unrolling utilities. It does not define any +// actual pass or policy, but provides a single function to perform loop +// unrolling. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_UNROLLLOOP_H #define LLVM_TRANSFORMS_UTILS_UNROLLLOOP_H diff --git a/include/llvm/Transforms/Utils/ValueMapper.h b/include/llvm/Transforms/Utils/ValueMapper.h index a85443be1c..047ab81871 100644 --- a/include/llvm/Transforms/Utils/ValueMapper.h +++ b/include/llvm/Transforms/Utils/ValueMapper.h @@ -1,15 +1,16 @@ //===- ValueMapper.h - Remapping for constants and metadata -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueMapper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MapValue interface which is used by various parts of// -// the Transforms/Utils library to implement cloning and linking facilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MapValue interface which is used by various parts of +// the Transforms/Utils library to implement cloning and linking facilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_VALUEMAPPER_H #define LLVM_TRANSFORMS_UTILS_VALUEMAPPER_H diff --git a/include/llvm/Transforms/Vectorize.h b/include/llvm/Transforms/Vectorize.h index d2b6abc107..9a09c2516f 100644 --- a/include/llvm/Transforms/Vectorize.h +++ b/include/llvm/Transforms/Vectorize.h @@ -1,13 +1,14 @@ //===-- Vectorize.h - Vectorization Transformations -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Vectorize.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file defines prototypes for accessor functions that expose passes// -// in the Vectorize transformations library. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file defines prototypes for accessor functions that expose passes +// in the Vectorize transformations library. // //===----------------------------------------------------------------------===// diff --git a/lib/Analysis/AliasAnalysis.cpp b/lib/Analysis/AliasAnalysis.cpp index b5080af832..44d137dffd 100644 --- a/lib/Analysis/AliasAnalysis.cpp +++ b/lib/Analysis/AliasAnalysis.cpp @@ -1,27 +1,28 @@ //===- AliasAnalysis.cpp - Generic Alias Analysis Interface Implementation -==// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the generic AliasAnalysis interface which is used as the// -// common interface used by all clients and implementations of alias analysis.// -// // -// This file also implements the default version of the AliasAnalysis interface// -// that is to be used when no other implementation is specified. This does some// -// simple tests that detect obvious cases: two different global pointers cannot// -// alias, a global cannot alias a malloc, two different mallocs cannot alias,// -// etc. // -// // -// This alias analysis implementation really isn't very good for anything, but// -// it is very fast, and makes a nice clean default implementation. Because it// -// handles lots of little corner cases, other, more complex, alias analysis // -// implementations may choose to rely on this pass to resolve these simple and// -// easy cases. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the generic AliasAnalysis interface which is used as the +// common interface used by all clients and implementations of alias analysis. +// +// This file also implements the default version of the AliasAnalysis interface +// that is to be used when no other implementation is specified. This does some +// simple tests that detect obvious cases: two different global pointers cannot +// alias, a global cannot alias a malloc, two different mallocs cannot alias, +// etc. +// +// This alias analysis implementation really isn't very good for anything, but +// it is very fast, and makes a nice clean default implementation. Because it +// handles lots of little corner cases, other, more complex, alias analysis +// implementations may choose to rely on this pass to resolve these simple and +// easy cases. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/CFG.h" diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp index 776d7c4bb5..9b6a5a44d8 100644 --- a/lib/Analysis/AliasAnalysisCounter.cpp +++ b/lib/Analysis/AliasAnalysisCounter.cpp @@ -1,15 +1,16 @@ //===- AliasAnalysisCounter.cpp - Alias Analysis Query Counter ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasAnalysisCounter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a pass which can be used to count how many alias queries// -// are being made and how the alias analysis implementation being used responds.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a pass which can be used to count how many alias queries +// are being made and how the alias analysis implementation being used responds. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/AliasAnalysisEvaluator.cpp b/lib/Analysis/AliasAnalysisEvaluator.cpp index 1317f7ab9d..5d1b001fe1 100644 --- a/lib/Analysis/AliasAnalysisEvaluator.cpp +++ b/lib/Analysis/AliasAnalysisEvaluator.cpp @@ -1,20 +1,21 @@ //===- AliasAnalysisEvaluator.cpp - Alias Analysis Accuracy Evaluator -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasAnalysisEvaluator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a simple N^2 alias analysis accuracy evaluator. // -// Basically, for each function in the program, it simply queries to see how the// -// alias analysis implementation answers alias queries between each pair of // -// pointers in the function. // -// // -// This is inspired and adapted from code by: Naveen Neelakantam, Francesco // -// Spadini, and Wojciech Stryjewski. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a simple N^2 alias analysis accuracy evaluator. +// Basically, for each function in the program, it simply queries to see how the +// alias analysis implementation answers alias queries between each pair of +// pointers in the function. +// +// This is inspired and adapted from code by: Naveen Neelakantam, Francesco +// Spadini, and Wojciech Stryjewski. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Analysis/AliasDebugger.cpp b/lib/Analysis/AliasDebugger.cpp index 9d11efb5be..e5107b3bc8 100644 --- a/lib/Analysis/AliasDebugger.cpp +++ b/lib/Analysis/AliasDebugger.cpp @@ -1,19 +1,20 @@ //===- AliasDebugger.cpp - Simple Alias Analysis Use Checker --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasDebugger.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This simple pass checks alias analysis users to ensure that if they // -// create a new value, they do not query AA without informing it of the value.// -// It acts as a shim over any other AA pass you want. // -// // -// Yes keeping track of every value in the program is expensive, but this is // -// a debugging pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This simple pass checks alias analysis users to ensure that if they +// create a new value, they do not query AA without informing it of the value. +// It acts as a shim over any other AA pass you want. +// +// Yes keeping track of every value in the program is expensive, but this is +// a debugging pass. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index f8b0cd7cd7..54d0f4304e 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -1,14 +1,15 @@ //===- AliasSetTracker.cpp - Alias Sets Tracker implementation-------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasSetTracker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AliasSetTracker and AliasSet classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AliasSetTracker and AliasSet classes. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/AliasSetTracker.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/Analysis.cpp b/lib/Analysis/Analysis.cpp index bc40544449..4673764a96 100644 --- a/lib/Analysis/Analysis.cpp +++ b/lib/Analysis/Analysis.cpp @@ -1,12 +1,11 @@ //===-- Analysis.cpp ------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Analysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm-c/Analysis.h" #include "llvm-c/Initialization.h" diff --git a/lib/Analysis/AssumptionCache.cpp b/lib/Analysis/AssumptionCache.cpp index a18256117a..f468a43ef0 100644 --- a/lib/Analysis/AssumptionCache.cpp +++ b/lib/Analysis/AssumptionCache.cpp @@ -1,15 +1,16 @@ //===- AssumptionCache.cpp - Cache finding @llvm.assume calls -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AssumptionCache.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a pass that keeps track of @llvm.assume intrinsics in // -// the functions of a module. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a pass that keeps track of @llvm.assume intrinsics in +// the functions of a module. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/AssumptionCache.h" #include "llvm/IR/CallSite.h" diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 9c63342d4d..35863542f4 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -1,16 +1,17 @@ //===- BasicAliasAnalysis.cpp - Stateless Alias Analysis Impl -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the primary stateless implementation of the // -// Alias Analysis interface that implements identities (two different // -// globals cannot alias, etc), but does no stateful analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the primary stateless implementation of the +// Alias Analysis interface that implements identities (two different +// globals cannot alias, etc), but does no stateful analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Analysis/BlockFrequencyInfo.cpp b/lib/Analysis/BlockFrequencyInfo.cpp index 343e2fd766..3d819eb596 100644 --- a/lib/Analysis/BlockFrequencyInfo.cpp +++ b/lib/Analysis/BlockFrequencyInfo.cpp @@ -1,14 +1,15 @@ //===- BlockFrequencyInfo.cpp - Block Frequency Analysis ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequencyInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loops should be simplified before this analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loops should be simplified before this analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/BlockFrequencyInfo.h" #include "llvm/Analysis/BlockFrequencyInfoImpl.h" diff --git a/lib/Analysis/BlockFrequencyInfoImpl.cpp b/lib/Analysis/BlockFrequencyInfoImpl.cpp index 24854b7b20..6ceda06aac 100644 --- a/lib/Analysis/BlockFrequencyInfoImpl.cpp +++ b/lib/Analysis/BlockFrequencyInfoImpl.cpp @@ -1,14 +1,15 @@ //===- BlockFrequencyImplInfo.cpp - Block Frequency Info Implementation ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequencyInfoImpl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loops should be simplified before this analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loops should be simplified before this analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/BlockFrequencyInfoImpl.h" #include "llvm/ADT/SCCIterator.h" diff --git a/lib/Analysis/BranchProbabilityInfo.cpp b/lib/Analysis/BranchProbabilityInfo.cpp index 6dd56f29ee..430b41241e 100644 --- a/lib/Analysis/BranchProbabilityInfo.cpp +++ b/lib/Analysis/BranchProbabilityInfo.cpp @@ -1,14 +1,15 @@ //===-- BranchProbabilityInfo.cpp - Branch Probability Analysis -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchProbabilityInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loops should be simplified before this analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loops should be simplified before this analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/BranchProbabilityInfo.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index ae47036d1f..e15109bd27 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -1,15 +1,16 @@ //===-- CFG.cpp - BasicBlock analysis --------------------------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions performs analyses on basic blocks, and instructions// -// contained within basic blocks. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions performs analyses on basic blocks, and instructions +// contained within basic blocks. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CFG.h" #include "llvm/ADT/SmallSet.h" diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp index 2d06e108c0..88acec279e 100644 --- a/lib/Analysis/CFGPrinter.cpp +++ b/lib/Analysis/CFGPrinter.cpp @@ -1,20 +1,21 @@ //===- CFGPrinter.cpp - DOT printer for the control flow graph ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a '-dot-cfg' analysis pass, which emits the // -// cfg..dot file for each function in the program, with a graph of the// -// CFG for that function. // -// // -// The other main feature of this file is that it implements the // -// Function::viewCFG method, which is useful for debugging passes which operate// -// on the CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a '-dot-cfg' analysis pass, which emits the +// cfg..dot file for each function in the program, with a graph of the +// CFG for that function. +// +// The other main feature of this file is that it implements the +// Function::viewCFG method, which is useful for debugging passes which operate +// on the CFG. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CFGPrinter.h" #include "llvm/Pass.h" diff --git a/lib/Analysis/CFLAliasAnalysis.cpp b/lib/Analysis/CFLAliasAnalysis.cpp index b3e52c9b36..fe1c088886 100644 --- a/lib/Analysis/CFLAliasAnalysis.cpp +++ b/lib/Analysis/CFLAliasAnalysis.cpp @@ -1,31 +1,31 @@ //===- CFLAliasAnalysis.cpp - CFL-Based Alias Analysis Implementation ------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFLAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a CFL-based context-insensitive alias analysis // -// algorithm. It does not depend on types. The algorithm is a mixture of the one// -// described in "Demand-driven alias analysis for C" by Xin Zheng and Radu // -// Rugina, and "Fast algorithms for Dyck-CFL-reachability with applications to// -// Alias Analysis" by Zhang Q, Lyu M R, Yuan H, and Su Z. -- to summarize the// -// papers, we build a graph of the uses of a variable, where each node is a // -// memory location, and each edge is an action that happened on that memory // -// location. The "actions" can be one of Dereference, Reference, or Assign. // -// // -// Two variables are considered as aliasing iff you can reach one value's node// -// from the other value's node and the language formed by concatenating all of// -// the edge labels (actions) conforms to a context-free grammar. // -// // -// Because this algorithm requires a graph search on each query, we execute the// -// algorithm outlined in "Fast algorithms..." (mentioned above) // -// in order to transform the graph into sets of variables that may alias in // -// ~nlogn time (n = number of variables.), which makes queries take constant // -// time. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a CFL-based context-insensitive alias analysis +// algorithm. It does not depend on types. The algorithm is a mixture of the one +// described in "Demand-driven alias analysis for C" by Xin Zheng and Radu +// Rugina, and "Fast algorithms for Dyck-CFL-reachability with applications to +// Alias Analysis" by Zhang Q, Lyu M R, Yuan H, and Su Z. -- to summarize the +// papers, we build a graph of the uses of a variable, where each node is a +// memory location, and each edge is an action that happened on that memory +// location. The "actions" can be one of Dereference, Reference, or Assign. +// +// Two variables are considered as aliasing iff you can reach one value's node +// from the other value's node and the language formed by concatenating all of +// the edge labels (actions) conforms to a context-free grammar. +// +// Because this algorithm requires a graph search on each query, we execute the +// algorithm outlined in "Fast algorithms..." (mentioned above) +// in order to transform the graph into sets of variables that may alias in +// ~nlogn time (n = number of variables.), which makes queries take constant +// time. +//===----------------------------------------------------------------------===// #include "StratifiedSets.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/Analysis/CGSCCPassManager.cpp b/lib/Analysis/CGSCCPassManager.cpp index c990055984..4a03002e51 100644 --- a/lib/Analysis/CGSCCPassManager.cpp +++ b/lib/Analysis/CGSCCPassManager.cpp @@ -1,12 +1,11 @@ //===- CGSCCPassManager.cpp - Managing & running CGSCC passes -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGSCCPassManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CGSCCPassManager.h" #include "llvm/Support/CommandLine.h" diff --git a/lib/Analysis/CMakeLists.txt b/lib/Analysis/CMakeLists.txt index 50c9c96aa8..b05b76a3fc 100644 --- a/lib/Analysis/CMakeLists.txt +++ b/lib/Analysis/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_OPTIONAL_SOURCES regioninfo.cpp regionprinter.cpp) # HLSL Change - ignore file add_llvm_library(LLVMAnalysis diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index 9853234d0a..52ef807aeb 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/lib/Analysis/CaptureTracking.cpp @@ -1,19 +1,20 @@ //===--- CaptureTracking.cpp - Determine whether a pointer is captured ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CaptureTracking.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains routines that help determine which pointers are captured.// -// A pointer value is captured if the function makes a copy of any part of the// -// pointer that outlives the call. Not being captured means, more or less, that// -// the pointer is only dereferenced and not stored in a global. Returning part// -// of the pointer as the function return value may or may not count as capturing// -// the pointer, depending on the context. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains routines that help determine which pointers are captured. +// A pointer value is captured if the function makes a copy of any part of the +// pointer that outlives the call. Not being captured means, more or less, that +// the pointer is only dereferenced and not stored in a global. Returning part +// of the pointer as the function return value may or may not count as capturing +// the pointer, depending on the context. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Analysis/CodeMetrics.cpp b/lib/Analysis/CodeMetrics.cpp index bc1da46d3b..46a2c43b16 100644 --- a/lib/Analysis/CodeMetrics.cpp +++ b/lib/Analysis/CodeMetrics.cpp @@ -1,14 +1,15 @@ //===- CodeMetrics.cpp - Code cost measurements ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeMetrics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements code cost measurement utilities. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements code cost measurement utilities. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/AssumptionCache.h" #include "llvm/Analysis/CodeMetrics.h" diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index 4e8a4b7c57..95f8ffe7cf 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp @@ -1,19 +1,20 @@ //===-- ConstantFolding.cpp - Fold instructions into constants ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantFolding.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for folding instructions into constants. // -// // -// Also, to supplement the basic IR ConstantExpr simplifications, // -// this file defines some additional folding routines that can make use of // -// DataLayout information. These functions cannot go in IR due to library // -// dependency issues. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for folding instructions into constants. +// +// Also, to supplement the basic IR ConstantExpr simplifications, +// this file defines some additional folding routines that can make use of +// DataLayout information. These functions cannot go in IR due to library +// dependency issues. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/ConstantFolding.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Analysis/CostModel.cpp b/lib/Analysis/CostModel.cpp index bfbd72dc67..b529c1a70a 100644 --- a/lib/Analysis/CostModel.cpp +++ b/lib/Analysis/CostModel.cpp @@ -1,20 +1,21 @@ //===- CostModel.cpp ------ Cost Model Analysis ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CostModel.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the cost model analysis. It provides a very basic cost // -// estimation for LLVM-IR. This analysis uses the services of the codegen // -// to approximate the cost of any IR instruction when lowered to machine // -// instructions. The cost results are unit-less and the cost number represents// -// the throughput of the machine assuming that all loads hit the cache, all // -// branches are predicted, etc. The cost numbers can be added in order to // -// compare two or more transformation alternatives. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the cost model analysis. It provides a very basic cost +// estimation for LLVM-IR. This analysis uses the services of the codegen +// to approximate the cost of any IR instruction when lowered to machine +// instructions. The cost results are unit-less and the cost number represents +// the throughput of the machine assuming that all loads hit the cache, all +// branches are predicted, etc. The cost numbers can be added in order to +// compare two or more transformation alternatives. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Analysis/Passes.h" diff --git a/lib/Analysis/Delinearization.cpp b/lib/Analysis/Delinearization.cpp index 0fa11e03e0..9d15786032 100644 --- a/lib/Analysis/Delinearization.cpp +++ b/lib/Analysis/Delinearization.cpp @@ -1,17 +1,18 @@ //===---- Delinearization.cpp - MultiDimensional Index Delinearization ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Delinearization.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements an analysis pass that tries to delinearize all GEP // -// instructions in all loops using the SCEV analysis functionality. This pass is// -// only used for testing purposes: if your pass needs delinearization, please// -// use the on-demand SCEVAddRecExpr::delinearize() function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements an analysis pass that tries to delinearize all GEP +// instructions in all loops using the SCEV analysis functionality. This pass is +// only used for testing purposes: if your pass needs delinearization, please +// use the on-demand SCEVAddRecExpr::delinearize() function. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Constants.h" #include "llvm/Analysis/LoopInfo.h" diff --git a/lib/Analysis/DependenceAnalysis.cpp b/lib/Analysis/DependenceAnalysis.cpp index c82985127b..8bb7b8ee5d 100644 --- a/lib/Analysis/DependenceAnalysis.cpp +++ b/lib/Analysis/DependenceAnalysis.cpp @@ -1,54 +1,55 @@ //===-- DependenceAnalysis.cpp - DA Implementation --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependenceAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// DependenceAnalysis is an LLVM pass that analyses dependences between memory// -// accesses. Currently, it is an (incomplete) implementation of the approach // -// described in // -// // -// Practical Dependence Testing // -// Goff, Kennedy, Tseng // -// PLDI 1991 // -// // -// There's a single entry point that analyzes the dependence between a pair // -// of memory references in a function, returning either NULL, for no dependence,// -// or a more-or-less detailed description of the dependence between them. // -// // -// Currently, the implementation cannot propagate constraints between // -// coupled RDIV subscripts and lacks a multi-subscript MIV test. // -// Both of these are conservative weaknesses; // -// that is, not a source of correctness problems. // -// // -// The implementation depends on the GEP instruction to differentiate // -// subscripts. Since Clang linearizes some array subscripts, the dependence // -// analysis is using SCEV->delinearize to recover the representation of multiple// -// subscripts, and thus avoid the more expensive and less precise MIV tests. The// -// delinearization is controlled by the flag -da-delinearize. // -// // -// We should pay some careful attention to the possibility of integer overflow// -// in the implementation of the various tests. This could happen with Add, // -// Subtract, or Multiply, with both APInt's and SCEV's. // -// // -// Some non-linear subscript pairs can be handled by the GCD test // -// (and perhaps other tests). // -// Should explore how often these things occur. // -// // -// Finally, it seems like certain test cases expose weaknesses in the SCEV // -// simplification, especially in the handling of sign and zero extensions. // -// It could be useful to spend time exploring these. // -// // -// Please note that this is work in progress and the interface is subject to // -// change. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// DependenceAnalysis is an LLVM pass that analyses dependences between memory +// accesses. Currently, it is an (incomplete) implementation of the approach +// described in +// +// Practical Dependence Testing +// Goff, Kennedy, Tseng +// PLDI 1991 +// +// There's a single entry point that analyzes the dependence between a pair +// of memory references in a function, returning either NULL, for no dependence, +// or a more-or-less detailed description of the dependence between them. +// +// Currently, the implementation cannot propagate constraints between +// coupled RDIV subscripts and lacks a multi-subscript MIV test. +// Both of these are conservative weaknesses; +// that is, not a source of correctness problems. +// +// The implementation depends on the GEP instruction to differentiate +// subscripts. Since Clang linearizes some array subscripts, the dependence +// analysis is using SCEV->delinearize to recover the representation of multiple +// subscripts, and thus avoid the more expensive and less precise MIV tests. The +// delinearization is controlled by the flag -da-delinearize. +// +// We should pay some careful attention to the possibility of integer overflow +// in the implementation of the various tests. This could happen with Add, +// Subtract, or Multiply, with both APInt's and SCEV's. +// +// Some non-linear subscript pairs can be handled by the GCD test +// (and perhaps other tests). +// Should explore how often these things occur. +// +// Finally, it seems like certain test cases expose weaknesses in the SCEV +// simplification, especially in the handling of sign and zero extensions. +// It could be useful to spend time exploring these. +// +// Please note that this is work in progress and the interface is subject to +// change. +// +//===----------------------------------------------------------------------===// // // // In memory of Ken Kennedy, 1945 - 2007 // // // -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/DependenceAnalysis.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/DivergenceAnalysis.cpp b/lib/Analysis/DivergenceAnalysis.cpp index 8171bd3a59..e5ee2959c1 100644 --- a/lib/Analysis/DivergenceAnalysis.cpp +++ b/lib/Analysis/DivergenceAnalysis.cpp @@ -1,67 +1,67 @@ //===- DivergenceAnalysis.cpp ------ Divergence Analysis ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DivergenceAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines divergence analysis which determines whether a branch in a// -// GPU program is divergent. It can help branch optimizations such as jump // -// threading and loop unswitching to make better decisions. // -// // -// GPU programs typically use the SIMD execution model, where multiple threads// -// in the same execution group have to execute in lock-step. Therefore, if the// -// code contains divergent branches (i.e., threads in a group do not agree on// -// which path of the branch to take), the group of threads has to execute all// -// the paths from that branch with different subsets of threads enabled until// -// they converge at the immediately post-dominating BB of the paths. // -// // -// Due to this execution model, some optimizations such as jump // -// threading and loop unswitching can be unfortunately harmful when performed on// -// divergent branches. Therefore, an analysis that computes which branches in a// -// GPU program are divergent can help the compiler to selectively run these // -// optimizations. // -// // -// This file defines divergence analysis which computes a conservative but // -// non-trivial approximation of all divergent branches in a GPU program. It // -// partially implements the approach described in // -// // -// Divergence Analysis // -// Sampaio, Souza, Collange, Pereira // -// TOPLAS '13 // -// // -// The divergence analysis identifies the sources of divergence (e.g., special// -// variables that hold the thread ID), and recursively marks variables that are// -// data or sync dependent on a source of divergence as divergent. // -// // -// While data dependency is a well-known concept, the notion of sync dependency// -// is worth more explanation. Sync dependence characterizes the control flow // -// aspect of the propagation of branch divergence. For example, // -// // -// %cond = icmp slt i32 %tid, 10 // -// br i1 %cond, label %then, label %else // -// then: // -// br label %merge // -// else: // -// br label %merge // -// merge: // -// %a = phi i32 [ 0, %then ], [ 1, %else ] // -// // -// Suppose %tid holds the thread ID. Although %a is not data dependent on %tid// -// because %tid is not on its use-def chains, %a is sync dependent on %tid // -// because the branch "br i1 %cond" depends on %tid and affects which value %a// -// is assigned to. // -// // -// The current implementation has the following limitations: // -// 1. intra-procedural. It conservatively considers the arguments of a // -// non-kernel-entry function and the return value of a function call as // -// divergent. // -// 2. memory as black box. It conservatively considers values loaded from // -// generic or local address as divergent. This can be improved by leveraging// -// pointer analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines divergence analysis which determines whether a branch in a +// GPU program is divergent. It can help branch optimizations such as jump +// threading and loop unswitching to make better decisions. +// +// GPU programs typically use the SIMD execution model, where multiple threads +// in the same execution group have to execute in lock-step. Therefore, if the +// code contains divergent branches (i.e., threads in a group do not agree on +// which path of the branch to take), the group of threads has to execute all +// the paths from that branch with different subsets of threads enabled until +// they converge at the immediately post-dominating BB of the paths. +// +// Due to this execution model, some optimizations such as jump +// threading and loop unswitching can be unfortunately harmful when performed on +// divergent branches. Therefore, an analysis that computes which branches in a +// GPU program are divergent can help the compiler to selectively run these +// optimizations. +// +// This file defines divergence analysis which computes a conservative but +// non-trivial approximation of all divergent branches in a GPU program. It +// partially implements the approach described in +// +// Divergence Analysis +// Sampaio, Souza, Collange, Pereira +// TOPLAS '13 +// +// The divergence analysis identifies the sources of divergence (e.g., special +// variables that hold the thread ID), and recursively marks variables that are +// data or sync dependent on a source of divergence as divergent. +// +// While data dependency is a well-known concept, the notion of sync dependency +// is worth more explanation. Sync dependence characterizes the control flow +// aspect of the propagation of branch divergence. For example, +// +// %cond = icmp slt i32 %tid, 10 +// br i1 %cond, label %then, label %else +// then: +// br label %merge +// else: +// br label %merge +// merge: +// %a = phi i32 [ 0, %then ], [ 1, %else ] +// +// Suppose %tid holds the thread ID. Although %a is not data dependent on %tid +// because %tid is not on its use-def chains, %a is sync dependent on %tid +// because the branch "br i1 %cond" depends on %tid and affects which value %a +// is assigned to. +// +// The current implementation has the following limitations: +// 1. intra-procedural. It conservatively considers the arguments of a +// non-kernel-entry function and the return value of a function call as +// divergent. +// 2. memory as black box. It conservatively considers values loaded from +// generic or local address as divergent. This can be improved by leveraging +// pointer analysis. +//===----------------------------------------------------------------------===// #include #include "llvm/IR/Dominators.h" diff --git a/lib/Analysis/DomPrinter.cpp b/lib/Analysis/DomPrinter.cpp index 22d2921c1d..0c880df54f 100644 --- a/lib/Analysis/DomPrinter.cpp +++ b/lib/Analysis/DomPrinter.cpp @@ -1,21 +1,22 @@ //===- DomPrinter.cpp - DOT printer for the dominance trees ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DomPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines '-dot-dom' and '-dot-postdom' analysis passes, which emit// -// a dom..dot or postdom..dot file for each function in the // -// program, with a graph of the dominance/postdominance tree of that // -// function. // -// // -// There are also passes available to directly call dotty ('-view-dom' or // -// '-view-postdom'). By appending '-only' like '-dot-dom-only' only the // -// names of the bbs are printed, but the content is hidden. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines '-dot-dom' and '-dot-postdom' analysis passes, which emit +// a dom..dot or postdom..dot file for each function in the +// program, with a graph of the dominance/postdominance tree of that +// function. +// +// There are also passes available to directly call dotty ('-view-dom' or +// '-view-postdom'). By appending '-only' like '-dot-dom-only' only the +// names of the bbs are printed, but the content is hidden. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/DomPrinter.h" #include "llvm/Analysis/DOTGraphTraitsPass.h" diff --git a/lib/Analysis/DominanceFrontier.cpp b/lib/Analysis/DominanceFrontier.cpp index ab421dfedb..7ba91bc90d 100644 --- a/lib/Analysis/DominanceFrontier.cpp +++ b/lib/Analysis/DominanceFrontier.cpp @@ -1,12 +1,11 @@ //===- DominanceFrontier.cpp - Dominance Frontier Calculation -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DominanceFrontier.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/DominanceFrontier.h" #include "llvm/Analysis/DominanceFrontierImpl.h" diff --git a/lib/Analysis/IPA/CMakeLists.txt b/lib/Analysis/IPA/CMakeLists.txt index bc30b678d1..6095136d60 100644 --- a/lib/Analysis/IPA/CMakeLists.txt +++ b/lib/Analysis/IPA/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMipa CallGraph.cpp CallGraphSCCPass.cpp diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 5f86a505e6..2d6437d881 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -1,12 +1,11 @@ //===- CallGraph.cpp - Build a Module's call graph ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraph.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CallGraph.h" #include "llvm/IR/CallSite.h" diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index 76cc2046cf..07b389a2a1 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -1,18 +1,19 @@ //===- CallGraphSCCPass.cpp - Pass that operates BU on call graph ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraphSCCPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CallGraphSCCPass class, which is used for passes // -// which are implemented as bottom-up traversals on the call graph. Because // -// there may be cycles in the call graph, passes of this type operate on the // -// call-graph in SCC order: that is, they process function bottom-up, except for// -// recursive functions, which they process all at once. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CallGraphSCCPass class, which is used for passes +// which are implemented as bottom-up traversals on the call graph. Because +// there may be cycles in the call graph, passes of this type operate on the +// call-graph in SCC order: that is, they process function bottom-up, except for +// recursive functions, which they process all at once. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CallGraphSCCPass.h" #include "llvm/ADT/SCCIterator.h" diff --git a/lib/Analysis/IPA/CallPrinter.cpp b/lib/Analysis/IPA/CallPrinter.cpp index 4a83f6b196..68dcd3c064 100644 --- a/lib/Analysis/IPA/CallPrinter.cpp +++ b/lib/Analysis/IPA/CallPrinter.cpp @@ -1,17 +1,18 @@ //===- CallPrinter.cpp - DOT printer for call graph -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines '-dot-callgraph', which emit a callgraph..dot // -// containing the call graph of a module. // -// // -// There is also a pass available to directly call dotty ('-view-callgraph').// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines '-dot-callgraph', which emit a callgraph..dot +// containing the call graph of a module. +// +// There is also a pass available to directly call dotty ('-view-callgraph'). +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CallGraph.h" #include "llvm/Analysis/CallPrinter.h" diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index 40ca1ed6fb..28fb49c890 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -1,17 +1,18 @@ //===- GlobalsModRef.cpp - Simple Mod/Ref Analysis for Globals ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalsModRef.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This simple pass provides alias and mod/ref information for global values // -// that do not have their address taken, and keeps track of whether functions// -// read or write memory (are "pure"). For this simple (but very common) case,// -// we can provide pretty accurate and useful information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This simple pass provides alias and mod/ref information for global values +// that do not have their address taken, and keeps track of whether functions +// read or write memory (are "pure"). For this simple (but very common) case, +// we can provide pretty accurate and useful information. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/SCCIterator.h" diff --git a/lib/Analysis/IPA/IPA.cpp b/lib/Analysis/IPA/IPA.cpp index 6932fd78d0..806bfb81b6 100644 --- a/lib/Analysis/IPA/IPA.cpp +++ b/lib/Analysis/IPA/IPA.cpp @@ -1,14 +1,15 @@ //===-- IPA.cpp -----------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPA.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the common initialization routines for the IPA library.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the common initialization routines for the IPA library. +// +//===----------------------------------------------------------------------===// #include "llvm/InitializePasses.h" #include "llvm-c/Initialization.h" diff --git a/lib/Analysis/IPA/InlineCost.cpp b/lib/Analysis/IPA/InlineCost.cpp index ca35fd0728..c0d2e375cb 100644 --- a/lib/Analysis/IPA/InlineCost.cpp +++ b/lib/Analysis/IPA/InlineCost.cpp @@ -1,14 +1,15 @@ //===- InlineCost.cpp - Cost analysis for inliner -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineCost.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements inline cost analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements inline cost analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/InlineCost.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/IPA/LLVMBuild.txt b/lib/Analysis/IPA/LLVMBuild.txt index bd745623b3..980e91809b 100644 --- a/lib/Analysis/IPA/LLVMBuild.txt +++ b/lib/Analysis/IPA/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Analysis/IPA/LLVMBuild.txt -------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 31e39ecc12..926787d3be 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -1,15 +1,16 @@ //===- IVUsers.cpp - Induction Variable Users -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IVUsers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements bookkeeping for "interesting" users of expressions // -// computed from induction variables. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements bookkeeping for "interesting" users of expressions +// computed from induction variables. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Analysis/AssumptionCache.h" diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index 88e9ce61bc..de2b9c0c56 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -1,14 +1,15 @@ //===-- InstCount.cpp - Collects the count of all instructions ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCount.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass collects the count of all instructions and reports them // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass collects the count of all instructions and reports them +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp index 7966474771..f3c9f5f965 100644 --- a/lib/Analysis/InstructionSimplify.cpp +++ b/lib/Analysis/InstructionSimplify.cpp @@ -1,20 +1,21 @@ //===- InstructionSimplify.cpp - Fold instruction operands ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstructionSimplify.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements routines for folding instructions into simpler forms // -// that do not require creating new instructions. This does constant folding// -// ("add i32 1, 1" -> "2") but can also handle non-constant operands, either // -// returning a constant ("and i32 %x, 0" -> "0") or an already existing value// -// ("and i32 %x, %x" -> "%x"). All operands are assumed to have already been// -// simplified: This is usually true and assuming it simplifies the logic (if // -// they have not been simplified then results are correct but maybe suboptimal).// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements routines for folding instructions into simpler forms +// that do not require creating new instructions. This does constant folding +// ("add i32 1, 1" -> "2") but can also handle non-constant operands, either +// returning a constant ("and i32 %x, 0" -> "0") or an already existing value +// ("and i32 %x, %x" -> "%x"). All operands are assumed to have already been +// simplified: This is usually true and assuming it simplifies the logic (if +// they have not been simplified then results are correct but maybe suboptimal). +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/InstructionSimplify.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Analysis/Interval.cpp b/lib/Analysis/Interval.cpp index f5062bf547..e3e785ffc4 100644 --- a/lib/Analysis/Interval.cpp +++ b/lib/Analysis/Interval.cpp @@ -1,15 +1,16 @@ //===- Interval.cpp - Interval class code ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Interval.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the definition of the Interval class, which represents a// -// partition of a control flow graph of some kind. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the definition of the Interval class, which represents a +// partition of a control flow graph of some kind. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Interval.h" #include "llvm/IR/BasicBlock.h" diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp index c9540afe61..a0583e86d1 100644 --- a/lib/Analysis/IntervalPartition.cpp +++ b/lib/Analysis/IntervalPartition.cpp @@ -1,15 +1,16 @@ //===- IntervalPartition.cpp - Interval Partition module code -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntervalPartition.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the definition of the IntervalPartition class, which // -// calculates and represent the interval partition of a function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the definition of the IntervalPartition class, which +// calculates and represent the interval partition of a function. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/IntervalIterator.h" using namespace llvm; diff --git a/lib/Analysis/IteratedDominanceFrontier.cpp b/lib/Analysis/IteratedDominanceFrontier.cpp index 8112150938..9f1edd2182 100644 --- a/lib/Analysis/IteratedDominanceFrontier.cpp +++ b/lib/Analysis/IteratedDominanceFrontier.cpp @@ -1,14 +1,15 @@ //===- IteratedDominanceFrontier.cpp - Compute IDF ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IteratedDominanceFrontier.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \brief Compute iterated dominance frontiers using a linear time algorithm.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// \brief Compute iterated dominance frontiers using a linear time algorithm. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/IteratedDominanceFrontier.h" #include "llvm/IR/CFG.h" diff --git a/lib/Analysis/LLVMBuild.txt b/lib/Analysis/LLVMBuild.txt index 4a8f5c641a..3039ddea4f 100644 --- a/lib/Analysis/LLVMBuild.txt +++ b/lib/Analysis/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Analysis/LLVMBuild.txt -----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Analysis/LazyCallGraph.cpp b/lib/Analysis/LazyCallGraph.cpp index 246b7abb6d..c8d0410c1e 100644 --- a/lib/Analysis/LazyCallGraph.cpp +++ b/lib/Analysis/LazyCallGraph.cpp @@ -1,12 +1,11 @@ //===- LazyCallGraph.cpp - Analysis of a Module's call graph --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LazyCallGraph.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LazyCallGraph.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp index 3b879ff60e..a6ae7f2229 100644 --- a/lib/Analysis/LazyValueInfo.cpp +++ b/lib/Analysis/LazyValueInfo.cpp @@ -1,15 +1,16 @@ //===- LazyValueInfo.cpp - Value constraint analysis ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LazyValueInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface for lazy computation of value constraint // -// information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface for lazy computation of value constraint +// information. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LazyValueInfo.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/Analysis/LibCallAliasAnalysis.cpp b/lib/Analysis/LibCallAliasAnalysis.cpp index 2475030749..991a0e3e27 100644 --- a/lib/Analysis/LibCallAliasAnalysis.cpp +++ b/lib/Analysis/LibCallAliasAnalysis.cpp @@ -1,14 +1,15 @@ //===- LibCallAliasAnalysis.cpp - Implement AliasAnalysis for libcalls ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LibCallAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LibCallAliasAnalysis class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LibCallAliasAnalysis class. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LibCallAliasAnalysis.h" #include "llvm/Analysis/LibCallSemantics.h" diff --git a/lib/Analysis/LibCallSemantics.cpp b/lib/Analysis/LibCallSemantics.cpp index 11ce152de3..003c81e87b 100644 --- a/lib/Analysis/LibCallSemantics.cpp +++ b/lib/Analysis/LibCallSemantics.cpp @@ -1,16 +1,17 @@ //===- LibCallSemantics.cpp - Describe library semantics ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LibCallSemantics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements interfaces that can be used to describe language // -// specific runtime library interfaces (e.g. libc, libm, etc) to LLVM // -// optimizers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements interfaces that can be used to describe language +// specific runtime library interfaces (e.g. libc, libm, etc) to LLVM +// optimizers. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LibCallSemantics.h" #include "llvm/ADT/StringMap.h" diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp index 49cd145109..0b9308a573 100644 --- a/lib/Analysis/Lint.cpp +++ b/lib/Analysis/Lint.cpp @@ -1,37 +1,38 @@ //===-- Lint.cpp - Check for common errors in LLVM IR ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Lint.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass statically checks for common and easily-identified constructs // -// which produce undefined or likely unintended behavior in LLVM IR. // -// // -// It is not a guarantee of correctness, in two ways. First, it isn't // -// comprehensive. There are checks which could be done statically which are // -// not yet implemented. Some of these are indicated by TODO comments, but // -// those aren't comprehensive either. Second, many conditions cannot be // -// checked statically. This pass does no dynamic instrumentation, so it // -// can't check for all possible problems. // -// // -// Another limitation is that it assumes all code will be executed. A store // -// through a null pointer in a basic block which is never reached is harmless,// -// but this pass will warn about it anyway. This is the main reason why most // -// of these checks live here instead of in the Verifier pass. // -// // -// Optimization passes may make conditions that this pass checks for more or // -// less obvious. If an optimization pass appears to be introducing a warning,// -// it may be that the optimization pass is merely exposing an existing // -// condition in the code. // -// // -// This code may be run before instcombine. In many cases, instcombine checks// -// for the same kinds of things and turns instructions with undefined behavior// -// into unreachable (or equivalent). Because of this, this pass makes some // -// effort to look through bitcasts and so on. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass statically checks for common and easily-identified constructs +// which produce undefined or likely unintended behavior in LLVM IR. +// +// It is not a guarantee of correctness, in two ways. First, it isn't +// comprehensive. There are checks which could be done statically which are +// not yet implemented. Some of these are indicated by TODO comments, but +// those aren't comprehensive either. Second, many conditions cannot be +// checked statically. This pass does no dynamic instrumentation, so it +// can't check for all possible problems. +// +// Another limitation is that it assumes all code will be executed. A store +// through a null pointer in a basic block which is never reached is harmless, +// but this pass will warn about it anyway. This is the main reason why most +// of these checks live here instead of in the Verifier pass. +// +// Optimization passes may make conditions that this pass checks for more or +// less obvious. If an optimization pass appears to be introducing a warning, +// it may be that the optimization pass is merely exposing an existing +// condition in the code. +// +// This code may be run before instcombine. In many cases, instcombine checks +// for the same kinds of things and turns instructions with undefined behavior +// into unreachable (or equivalent). Because of this, this pass makes some +// effort to look through bitcasts and so on. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Lint.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/Loads.cpp b/lib/Analysis/Loads.cpp index 50e27a459b..624c5a18d6 100644 --- a/lib/Analysis/Loads.cpp +++ b/lib/Analysis/Loads.cpp @@ -1,14 +1,15 @@ //===- Loads.cpp - Local load analysis ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Loads.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines simple local analyses for load instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines simple local analyses for load instructions. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Loads.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/LoopAccessAnalysis.cpp b/lib/Analysis/LoopAccessAnalysis.cpp index 1a17de6ff2..becbae4c5b 100644 --- a/lib/Analysis/LoopAccessAnalysis.cpp +++ b/lib/Analysis/LoopAccessAnalysis.cpp @@ -1,15 +1,16 @@ //===- LoopAccessAnalysis.cpp - Loop Access Analysis Implementation --------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopAccessAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The implementation for the loop memory dependence that was originally // -// developed for the loop vectorizer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The implementation for the loop memory dependence that was originally +// developed for the loop vectorizer. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopAccessAnalysis.h" #include "llvm/Analysis/LoopInfo.h" diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 05d3b8b405..6b6faf8a66 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -1,17 +1,18 @@ //===- LoopInfo.cpp - Natural Loop Calculator -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LoopInfo class that is used to identify natural loops// -// and determine the loop depth of various nodes of the CFG. Note that the // -// loops identified may actually be several natural loops that share the same// -// header node... not just a single natural loop. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LoopInfo class that is used to identify natural loops +// and determine the loop depth of various nodes of the CFG. Note that the +// loops identified may actually be several natural loops that share the same +// header node... not just a single natural loop. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopInfo.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index fc729c8bd8..e9fcf02118 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -1,16 +1,17 @@ //===- LoopPass.cpp - Loop Pass and Loop Pass Manager ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements LoopPass and LPPassManager. All loop optimization // -// and transformation passes are derived from LoopPass. LPPassManager is // -// responsible for managing LoopPasses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements LoopPass and LPPassManager. All loop optimization +// and transformation passes are derived from LoopPass. LPPassManager is +// responsible for managing LoopPasses. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopPass.h" #include "llvm/IR/IRPrintingPasses.h" diff --git a/lib/Analysis/MemDepPrinter.cpp b/lib/Analysis/MemDepPrinter.cpp index c9361df0fa..da3b829b6d 100644 --- a/lib/Analysis/MemDepPrinter.cpp +++ b/lib/Analysis/MemDepPrinter.cpp @@ -1,12 +1,14 @@ //===- MemDepPrinter.cpp - Printer for MemoryDependenceAnalysis -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemDepPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Analysis/MemDerefPrinter.cpp b/lib/Analysis/MemDerefPrinter.cpp index 617a4fe898..fa292a28ec 100644 --- a/lib/Analysis/MemDerefPrinter.cpp +++ b/lib/Analysis/MemDerefPrinter.cpp @@ -1,12 +1,11 @@ //===- MemDerefPrinter.cpp - Printer for isDereferenceablePointer ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemDerefPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index 1bad22ed22..8ddac8ffb9 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -1,15 +1,16 @@ //===------ MemoryBuiltins.cpp - Identify calls to memory builtins --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryBuiltins.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions identifies calls to builtin functions that allocate// -// or free memory. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions identifies calls to builtin functions that allocate +// or free memory. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/MemoryBuiltins.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index cccaa2cb64..782a67bf72 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -1,17 +1,18 @@ //===- MemoryDependenceAnalysis.cpp - Mem Deps Implementation -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryDependenceAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an analysis that determines, for a given memory // -// operation, what preceding memory operations it depends on. It builds on // -// alias analysis information, and tries to provide a lazy, caching interface to// -// a common kind of alias information query. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an analysis that determines, for a given memory +// operation, what preceding memory operations it depends on. It builds on +// alias analysis information, and tries to provide a lazy, caching interface to +// a common kind of alias information query. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/MemoryDependenceAnalysis.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/MemoryLocation.cpp b/lib/Analysis/MemoryLocation.cpp index 6eac9e0053..37b006d9ef 100644 --- a/lib/Analysis/MemoryLocation.cpp +++ b/lib/Analysis/MemoryLocation.cpp @@ -1,12 +1,11 @@ //===- MemoryLocation.cpp - Memory location descriptions -------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryLocation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/MemoryLocation.h" #include "llvm/Analysis/TargetLibraryInfo.h" diff --git a/lib/Analysis/ModuleDebugInfoPrinter.cpp b/lib/Analysis/ModuleDebugInfoPrinter.cpp index 798665b316..36c47141a4 100644 --- a/lib/Analysis/ModuleDebugInfoPrinter.cpp +++ b/lib/Analysis/ModuleDebugInfoPrinter.cpp @@ -1,18 +1,19 @@ //===-- ModuleDebugInfoPrinter.cpp - Prints module debug info metadata ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleDebugInfoPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass decodes the debug info metadata in a module and prints in a // -// (sufficiently-prepared-) human-readable form. // -// // -// For example, run this pass from opt along with the -analyze option, and // -// it'll print to standard output. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass decodes the debug info metadata in a module and prints in a +// (sufficiently-prepared-) human-readable form. +// +// For example, run this pass from opt along with the -analyze option, and +// it'll print to standard output. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Analysis/NoAliasAnalysis.cpp b/lib/Analysis/NoAliasAnalysis.cpp index b7885cb278..322a9a80de 100644 --- a/lib/Analysis/NoAliasAnalysis.cpp +++ b/lib/Analysis/NoAliasAnalysis.cpp @@ -1,15 +1,16 @@ //===- NoAliasAnalysis.cpp - Minimal Alias Analysis Impl ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NoAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the default implementation of the Alias Analysis interface// -// that simply returns "I don't know" for all queries. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the default implementation of the Alias Analysis interface +// that simply returns "I don't know" for all queries. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/PHITransAddr.cpp b/lib/Analysis/PHITransAddr.cpp index f71bc641ca..f7545ea05a 100644 --- a/lib/Analysis/PHITransAddr.cpp +++ b/lib/Analysis/PHITransAddr.cpp @@ -1,14 +1,15 @@ //===- PHITransAddr.cpp - PHI Translation for Addresses -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PHITransAddr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PHITransAddr class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PHITransAddr class. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/PHITransAddr.h" #include "llvm/Analysis/InstructionSimplify.h" diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index b6bb88f65d..6d929091e3 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -1,14 +1,15 @@ //===- PostDominators.cpp - Post-Dominator Calculation --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostDominators.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the post-dominator construction algorithms. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the post-dominator construction algorithms. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/PostDominators.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Analysis/PtrUseVisitor.cpp b/lib/Analysis/PtrUseVisitor.cpp index 324d522f97..68c7535ea5 100644 --- a/lib/Analysis/PtrUseVisitor.cpp +++ b/lib/Analysis/PtrUseVisitor.cpp @@ -1,16 +1,15 @@ //===- PtrUseVisitor.cpp - InstVisitors over a pointers uses --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PtrUseVisitor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// Implementation of the pointer use visitors. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// Implementation of the pointer use visitors. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/PtrUseVisitor.h" diff --git a/lib/Analysis/README.txt b/lib/Analysis/README.txt index 5dc24e0884..0e96e4c950 100644 --- a/lib/Analysis/README.txt +++ b/lib/Analysis/README.txt @@ -1,5 +1,3 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. Analysis Opportunities: //===---------------------------------------------------------------------===// diff --git a/lib/Analysis/RegionPass.cpp b/lib/Analysis/RegionPass.cpp index 961fa62770..0d7a8c2da2 100644 --- a/lib/Analysis/RegionPass.cpp +++ b/lib/Analysis/RegionPass.cpp @@ -1,17 +1,18 @@ //===- RegionPass.cpp - Region Pass and Region Pass Manager ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements RegionPass and RGPassManager. All region optimization// -// and transformation passes are derived from RegionPass. RGPassManager is // -// responsible for managing RegionPasses. // -// most of these codes are COPY from LoopPass.cpp // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements RegionPass and RGPassManager. All region optimization +// and transformation passes are derived from RegionPass. RGPassManager is +// responsible for managing RegionPasses. +// most of these codes are COPY from LoopPass.cpp +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/RegionPass.h" #include "llvm/Analysis/RegionIterator.h" diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 9a0c2334f7..9c7c1754e3 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1,59 +1,62 @@ //===- ScalarEvolution.cpp - Scalar Evolution Analysis --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolution.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation of the scalar evolution analysis // -// engine, which is used primarily to analyze expressions involving induction// -// variables in loops. // -// // -// There are several aspects to this library. First is the representation of// -// scalar expressions, which are represented as subclasses of the SCEV class.// -// These classes are used to represent certain types of subexpressions that we// -// can handle. We only create one SCEV of a particular shape, so // -// pointer-comparisons for equality are legal. // -// // -// One important aspect of the SCEV objects is that they are never cyclic, even// -// if there is a cycle in the dataflow for an expression (ie, a PHI node). If// -// the PHI node is one of the idioms that we can represent (e.g., a polynomial// -// recurrence) then we represent it directly as a recurrence node, otherwise we// -// represent it as a SCEVUnknown node. // -// // -// In addition to being able to represent expressions of various types, we also// -// have folders that are used to build the *canonical* representation for a // -// particular expression. These folders are capable of using a variety of // -// rewrite rules to simplify the expressions. // -// // -// Once the folders are defined, we can implement the more interesting // -// higher-level code, such as the code that recognizes PHI nodes of various // -// types, computes the execution count of a loop, etc. // -// // -// TODO: We should use these routines and value representations to implement // -// dependence analysis! // -// // -// There are several good references for the techniques used in this analysis.// -// // -// Chains of recurrences -- a method to expedite the evaluation // -// of closed-form functions // -// Olaf Bachmann, Paul S. Wang, Eugene V. Zima // -// // -// On computational properties of chains of recurrences // -// Eugene V. Zima // -// // -// Symbolic Evaluation of Chains of Recurrences for Loop Optimization // -// Robert A. van Engelen // -// // -// Efficient Symbolic Analysis for Optimizing Compilers // -// Robert A. van Engelen // -// // -// Using the chains of recurrences algebra for data dependence testing and // -// induction variable substitution // -// MS Thesis, Johnie Birch // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation of the scalar evolution analysis +// engine, which is used primarily to analyze expressions involving induction +// variables in loops. +// +// There are several aspects to this library. First is the representation of +// scalar expressions, which are represented as subclasses of the SCEV class. +// These classes are used to represent certain types of subexpressions that we +// can handle. We only create one SCEV of a particular shape, so +// pointer-comparisons for equality are legal. +// +// One important aspect of the SCEV objects is that they are never cyclic, even +// if there is a cycle in the dataflow for an expression (ie, a PHI node). If +// the PHI node is one of the idioms that we can represent (e.g., a polynomial +// recurrence) then we represent it directly as a recurrence node, otherwise we +// represent it as a SCEVUnknown node. +// +// In addition to being able to represent expressions of various types, we also +// have folders that are used to build the *canonical* representation for a +// particular expression. These folders are capable of using a variety of +// rewrite rules to simplify the expressions. +// +// Once the folders are defined, we can implement the more interesting +// higher-level code, such as the code that recognizes PHI nodes of various +// types, computes the execution count of a loop, etc. +// +// TODO: We should use these routines and value representations to implement +// dependence analysis! +// +//===----------------------------------------------------------------------===// +// +// There are several good references for the techniques used in this analysis. +// +// Chains of recurrences -- a method to expedite the evaluation +// of closed-form functions +// Olaf Bachmann, Paul S. Wang, Eugene V. Zima +// +// On computational properties of chains of recurrences +// Eugene V. Zima +// +// Symbolic Evaluation of Chains of Recurrences for Loop Optimization +// Robert A. van Engelen +// +// Efficient Symbolic Analysis for Optimizing Compilers +// Robert A. van Engelen +// +// Using the chains of recurrences algebra for data dependence testing and +// induction variable substitution +// MS Thesis, Johnie Birch +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/ADT/Optional.h" diff --git a/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp b/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp index ce558ef299..6bc0d85a61 100644 --- a/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp +++ b/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp @@ -1,22 +1,23 @@ //===- ScalarEvolutionAliasAnalysis.cpp - SCEV-based Alias Analysis -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ScalarEvolutionAliasAnalysis pass, which implements a// -// simple alias analysis implemented in terms of ScalarEvolution queries. // -// // -// This differs from traditional loop dependence analysis in that it tests // -// for dependencies within a single iteration of a loop, rather than // -// dependencies between different iterations. // -// // -// ScalarEvolution has a more complete understanding of pointer arithmetic // -// than BasicAliasAnalysis' collection of ad-hoc analyses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ScalarEvolutionAliasAnalysis pass, which implements a +// simple alias analysis implemented in terms of ScalarEvolution queries. +// +// This differs from traditional loop dependence analysis in that it tests +// for dependencies within a single iteration of a loop, rather than +// dependencies between different iterations. +// +// ScalarEvolution has a more complete understanding of pointer arithmetic +// than BasicAliasAnalysis' collection of ad-hoc analyses. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index a817a08ea0..fee2a2d0d1 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp @@ -1,16 +1,17 @@ //===- ScalarEvolutionExpander.cpp - Scalar Evolution Analysis --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionExpander.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation of the scalar evolution expander, // -// which is used to generate the code corresponding to a given scalar evolution// -// expression. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation of the scalar evolution expander, +// which is used to generate the code corresponding to a given scalar evolution +// expression. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/ScalarEvolutionExpander.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Analysis/ScalarEvolutionNormalization.cpp b/lib/Analysis/ScalarEvolutionNormalization.cpp index d55d29062c..b238fe43cc 100644 --- a/lib/Analysis/ScalarEvolutionNormalization.cpp +++ b/lib/Analysis/ScalarEvolutionNormalization.cpp @@ -1,15 +1,16 @@ //===- ScalarEvolutionNormalization.cpp - See below -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionNormalization.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements utilities for working with "normalized" expressions. // -// See the comments at the top of ScalarEvolutionNormalization.h for details.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements utilities for working with "normalized" expressions. +// See the comments at the top of ScalarEvolutionNormalization.h for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Dominators.h" #include "llvm/Analysis/LoopInfo.h" diff --git a/lib/Analysis/ScopedNoAliasAA.cpp b/lib/Analysis/ScopedNoAliasAA.cpp index 7edd526820..a5fca3e79b 100644 --- a/lib/Analysis/ScopedNoAliasAA.cpp +++ b/lib/Analysis/ScopedNoAliasAA.cpp @@ -1,35 +1,36 @@ //===- ScopedNoAliasAA.cpp - Scoped No-Alias Alias Analysis ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScopedNoAliasAA.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ScopedNoAlias alias-analysis pass, which implements // -// metadata-based scoped no-alias support. // -// // -// Alias-analysis scopes are defined by an id (which can be a string or some // -// other metadata node), a domain node, and an optional descriptive string. // -// A domain is defined by an id (which can be a string or some other metadata// -// node), and an optional descriptive string. // -// // -// !dom0 = metadata !{ metadata !"domain of foo()" } // -// !scope1 = metadata !{ metadata !scope1, metadata !dom0, metadata !"scope 1" }// -// !scope2 = metadata !{ metadata !scope2, metadata !dom0, metadata !"scope 2" }// -// // -// Loads and stores can be tagged with an alias-analysis scope, and also, with// -// a noalias tag for a specific scope: // -// // -// ... = load %ptr1, !alias.scope !{ !scope1 } // -// ... = load %ptr2, !alias.scope !{ !scope1, !scope2 }, !noalias !{ !scope1 }// -// // -// When evaluating an aliasing query, if one of the instructions is associated// -// has a set of noalias scopes in some domain that is superset of the alias // -// scopes in that domain of some other instruction, then the two memory // -// accesses are assumed not to alias. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ScopedNoAlias alias-analysis pass, which implements +// metadata-based scoped no-alias support. +// +// Alias-analysis scopes are defined by an id (which can be a string or some +// other metadata node), a domain node, and an optional descriptive string. +// A domain is defined by an id (which can be a string or some other metadata +// node), and an optional descriptive string. +// +// !dom0 = metadata !{ metadata !"domain of foo()" } +// !scope1 = metadata !{ metadata !scope1, metadata !dom0, metadata !"scope 1" } +// !scope2 = metadata !{ metadata !scope2, metadata !dom0, metadata !"scope 2" } +// +// Loads and stores can be tagged with an alias-analysis scope, and also, with +// a noalias tag for a specific scope: +// +// ... = load %ptr1, !alias.scope !{ !scope1 } +// ... = load %ptr2, !alias.scope !{ !scope1, !scope2 }, !noalias !{ !scope1 } +// +// When evaluating an aliasing query, if one of the instructions is associated +// has a set of noalias scopes in some domain that is superset of the alias +// scopes in that domain of some other instruction, then the two memory +// accesses are assumed not to alias. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/SparsePropagation.cpp b/lib/Analysis/SparsePropagation.cpp index 94b904da66..edd82f5fe2 100644 --- a/lib/Analysis/SparsePropagation.cpp +++ b/lib/Analysis/SparsePropagation.cpp @@ -1,15 +1,16 @@ //===- SparsePropagation.cpp - Sparse Conditional Property Propagation ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparsePropagation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an abstract sparse conditional propagation algorithm,// -// modeled after SCCP, but with a customizable lattice function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an abstract sparse conditional propagation algorithm, +// modeled after SCCP, but with a customizable lattice function. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/SparsePropagation.h" #include "llvm/IR/Constants.h" diff --git a/lib/Analysis/StratifiedSets.h b/lib/Analysis/StratifiedSets.h index b4d5c738c5..fd3fbc0d86 100644 --- a/lib/Analysis/StratifiedSets.h +++ b/lib/Analysis/StratifiedSets.h @@ -1,12 +1,11 @@ //===- StratifiedSets.h - Abstract stratified sets implementation. --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StratifiedSets.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ADT_STRATIFIEDSETS_H #define LLVM_ADT_STRATIFIEDSETS_H diff --git a/lib/Analysis/TargetLibraryInfo.cpp b/lib/Analysis/TargetLibraryInfo.cpp index 67cfcc1d3f..27e380b325 100644 --- a/lib/Analysis/TargetLibraryInfo.cpp +++ b/lib/Analysis/TargetLibraryInfo.cpp @@ -1,14 +1,15 @@ //===-- TargetLibraryInfo.cpp - Runtime library information ----------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLibraryInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TargetLibraryInfo class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TargetLibraryInfo class. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/ADT/Triple.h" diff --git a/lib/Analysis/TargetTransformInfo.cpp b/lib/Analysis/TargetTransformInfo.cpp index f55e561daf..7d1c3fbef6 100644 --- a/lib/Analysis/TargetTransformInfo.cpp +++ b/lib/Analysis/TargetTransformInfo.cpp @@ -1,12 +1,11 @@ //===- llvm/Analysis/TargetTransformInfo.cpp ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetTransformInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/TargetTransformInfo.h" #include "llvm/Analysis/TargetTransformInfoImpl.h" diff --git a/lib/Analysis/Trace.cpp b/lib/Analysis/Trace.cpp index ba55fcdeda..5a1acc00fb 100644 --- a/lib/Analysis/Trace.cpp +++ b/lib/Analysis/Trace.cpp @@ -1,18 +1,19 @@ //===- Trace.cpp - Implementation of Trace class --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Trace.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class represents a single trace of LLVM basic blocks. A trace is a // -// single entry, multiple exit, region of code that is often hot. Trace-based// -// optimizations treat traces almost like they are a large, strange, basic // -// block: because the trace path is assumed to be hot, optimizations for the // -// fall-through path are made at the expense of the non-fall-through paths. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class represents a single trace of LLVM basic blocks. A trace is a +// single entry, multiple exit, region of code that is often hot. Trace-based +// optimizations treat traces almost like they are a large, strange, basic +// block: because the trace path is assumed to be hot, optimizations for the +// fall-through path are made at the expense of the non-fall-through paths. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Trace.h" #include "llvm/IR/Function.h" diff --git a/lib/Analysis/TypeBasedAliasAnalysis.cpp b/lib/Analysis/TypeBasedAliasAnalysis.cpp index 16b435e37d..4e9c6f678e 100644 --- a/lib/Analysis/TypeBasedAliasAnalysis.cpp +++ b/lib/Analysis/TypeBasedAliasAnalysis.cpp @@ -1,124 +1,125 @@ //===- TypeBasedAliasAnalysis.cpp - Type-Based Alias Analysis -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeBasedAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypeBasedAliasAnalysis pass, which implements // -// metadata-based TBAA. // -// // -// In LLVM IR, memory does not have types, so LLVM's own type system is not // -// suitable for doing TBAA. Instead, metadata is added to the IR to describe // -// a type system of a higher level language. This can be used to implement // -// typical C/C++ TBAA, but it can also be used to implement custom alias // -// analysis behavior for other languages. // -// // -// We now support two types of metadata format: scalar TBAA and struct-path // -// aware TBAA. After all testing cases are upgraded to use struct-path aware // -// TBAA and we can auto-upgrade existing bc files, the support for scalar TBAA// -// can be dropped. // -// // -// The scalar TBAA metadata format is very simple. TBAA MDNodes have up to // -// three fields, e.g.: // -// !0 = metadata !{ metadata !"an example type tree" } // -// !1 = metadata !{ metadata !"int", metadata !0 } // -// !2 = metadata !{ metadata !"float", metadata !0 } // -// !3 = metadata !{ metadata !"const float", metadata !2, i64 1 } // -// // -// The first field is an identity field. It can be any value, usually // -// an MDString, which uniquely identifies the type. The most important // -// name in the tree is the name of the root node. Two trees with // -// different root node names are entirely disjoint, even if they // -// have leaves with common names. // -// // -// The second field identifies the type's parent node in the tree, or // -// is null or omitted for a root node. A type is considered to alias // -// all of its descendants and all of its ancestors in the tree. Also, // -// a type is considered to alias all types in other trees, so that // -// bitcode produced from multiple front-ends is handled conservatively. // -// // -// If the third field is present, it's an integer which if equal to 1 // -// indicates that the type is "constant" (meaning pointsToConstantMemory // -// should return true; see // -// http://llvm.org/docs/AliasAnalysis.html#OtherItfs). // -// // -// With struct-path aware TBAA, the MDNodes attached to an instruction using // -// "!tbaa" are called path tag nodes. // -// // -// The path tag node has 4 fields with the last field being optional. // -// // -// The first field is the base type node, it can be a struct type node // -// or a scalar type node. The second field is the access type node, it // -// must be a scalar type node. The third field is the offset into the base type.// -// The last field has the same meaning as the last field of our scalar TBAA: // -// it's an integer which if equal to 1 indicates that the access is "constant".// -// // -// The struct type node has a name and a list of pairs, one pair for each member// -// of the struct. The first element of each pair is a type node (a struct type// -// node or a sclar type node), specifying the type of the member, the second // -// element of each pair is the offset of the member. // -// // -// Given an example // -// typedef struct { // -// short s; // -// } A; // -// typedef struct { // -// uint16_t s; // -// A a; // -// } B; // -// // -// For an acess to B.a.s, we attach !5 (a path tag node) to the load/store // -// instruction. The base type is !4 (struct B), the access type is !2 (scalar// -// type short) and the offset is 4. // -// // -// !0 = metadata !{metadata !"Simple C/C++ TBAA"} // -// !1 = metadata !{metadata !"omnipotent char", metadata !0} // Scalar type node// -// !2 = metadata !{metadata !"short", metadata !1} // Scalar type node// -// !3 = metadata !{metadata !"A", metadata !2, i64 0} // Struct type node// -// !4 = metadata !{metadata !"B", metadata !2, i64 0, metadata !3, i64 4} // -// // Struct type node// -// !5 = metadata !{metadata !4, metadata !2, i64 4} // Path tag node// -// // -// The struct type nodes and the scalar type nodes form a type DAG. // -// Root (!0) // -// char (!1) -- edge to Root // -// short (!2) -- edge to char // -// A (!3) -- edge with offset 0 to short // -// B (!4) -- edge with offset 0 to short and edge with offset 4 to A // -// // -// To check if two tags (tagX and tagY) can alias, we start from the base type// -// of tagX, follow the edge with the correct offset in the type DAG and adjust// -// the offset until we reach the base type of tagY or until we reach the Root// -// node. // -// If we reach the base type of tagY, compare the adjusted offset with // -// offset of tagY, return Alias if the offsets are the same, return NoAlias // -// otherwise. // -// If we reach the Root node, perform the above starting from base type of tagY// -// to see if we reach base type of tagX. // -// // -// If they have different roots, they're part of different potentially // -// unrelated type systems, so we return Alias to be conservative. // -// If neither node is an ancestor of the other and they have the same root, // -// then we say NoAlias. // -// // -// TODO: The current metadata format doesn't support struct // -// fields. For example: // -// struct X { // -// double d; // -// int i; // -// }; // -// void foo(struct X *x, struct X *y, double *p) { // -// *x = *y; // -// *p = 0.0; // -// } // -// Struct X has a double member, so the store to *x can alias the store to *p.// -// Currently it's not possible to precisely describe all the things struct X // -// aliases, so struct assignments must use conservative TBAA nodes. There's // -// no scheme for attaching metadata to @llvm.memcpy yet either. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypeBasedAliasAnalysis pass, which implements +// metadata-based TBAA. +// +// In LLVM IR, memory does not have types, so LLVM's own type system is not +// suitable for doing TBAA. Instead, metadata is added to the IR to describe +// a type system of a higher level language. This can be used to implement +// typical C/C++ TBAA, but it can also be used to implement custom alias +// analysis behavior for other languages. +// +// We now support two types of metadata format: scalar TBAA and struct-path +// aware TBAA. After all testing cases are upgraded to use struct-path aware +// TBAA and we can auto-upgrade existing bc files, the support for scalar TBAA +// can be dropped. +// +// The scalar TBAA metadata format is very simple. TBAA MDNodes have up to +// three fields, e.g.: +// !0 = metadata !{ metadata !"an example type tree" } +// !1 = metadata !{ metadata !"int", metadata !0 } +// !2 = metadata !{ metadata !"float", metadata !0 } +// !3 = metadata !{ metadata !"const float", metadata !2, i64 1 } +// +// The first field is an identity field. It can be any value, usually +// an MDString, which uniquely identifies the type. The most important +// name in the tree is the name of the root node. Two trees with +// different root node names are entirely disjoint, even if they +// have leaves with common names. +// +// The second field identifies the type's parent node in the tree, or +// is null or omitted for a root node. A type is considered to alias +// all of its descendants and all of its ancestors in the tree. Also, +// a type is considered to alias all types in other trees, so that +// bitcode produced from multiple front-ends is handled conservatively. +// +// If the third field is present, it's an integer which if equal to 1 +// indicates that the type is "constant" (meaning pointsToConstantMemory +// should return true; see +// http://llvm.org/docs/AliasAnalysis.html#OtherItfs). +// +// With struct-path aware TBAA, the MDNodes attached to an instruction using +// "!tbaa" are called path tag nodes. +// +// The path tag node has 4 fields with the last field being optional. +// +// The first field is the base type node, it can be a struct type node +// or a scalar type node. The second field is the access type node, it +// must be a scalar type node. The third field is the offset into the base type. +// The last field has the same meaning as the last field of our scalar TBAA: +// it's an integer which if equal to 1 indicates that the access is "constant". +// +// The struct type node has a name and a list of pairs, one pair for each member +// of the struct. The first element of each pair is a type node (a struct type +// node or a sclar type node), specifying the type of the member, the second +// element of each pair is the offset of the member. +// +// Given an example +// typedef struct { +// short s; +// } A; +// typedef struct { +// uint16_t s; +// A a; +// } B; +// +// For an acess to B.a.s, we attach !5 (a path tag node) to the load/store +// instruction. The base type is !4 (struct B), the access type is !2 (scalar +// type short) and the offset is 4. +// +// !0 = metadata !{metadata !"Simple C/C++ TBAA"} +// !1 = metadata !{metadata !"omnipotent char", metadata !0} // Scalar type node +// !2 = metadata !{metadata !"short", metadata !1} // Scalar type node +// !3 = metadata !{metadata !"A", metadata !2, i64 0} // Struct type node +// !4 = metadata !{metadata !"B", metadata !2, i64 0, metadata !3, i64 4} +// // Struct type node +// !5 = metadata !{metadata !4, metadata !2, i64 4} // Path tag node +// +// The struct type nodes and the scalar type nodes form a type DAG. +// Root (!0) +// char (!1) -- edge to Root +// short (!2) -- edge to char +// A (!3) -- edge with offset 0 to short +// B (!4) -- edge with offset 0 to short and edge with offset 4 to A +// +// To check if two tags (tagX and tagY) can alias, we start from the base type +// of tagX, follow the edge with the correct offset in the type DAG and adjust +// the offset until we reach the base type of tagY or until we reach the Root +// node. +// If we reach the base type of tagY, compare the adjusted offset with +// offset of tagY, return Alias if the offsets are the same, return NoAlias +// otherwise. +// If we reach the Root node, perform the above starting from base type of tagY +// to see if we reach base type of tagX. +// +// If they have different roots, they're part of different potentially +// unrelated type systems, so we return Alias to be conservative. +// If neither node is an ancestor of the other and they have the same root, +// then we say NoAlias. +// +// TODO: The current metadata format doesn't support struct +// fields. For example: +// struct X { +// double d; +// int i; +// }; +// void foo(struct X *x, struct X *y, double *p) { +// *x = *y; +// *p = 0.0; +// } +// Struct X has a double member, so the store to *x can alias the store to *p. +// Currently it's not possible to precisely describe all the things struct X +// aliases, so struct assignments must use conservative TBAA nodes. There's +// no scheme for attaching metadata to @llvm.memcpy yet either. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index d876b2ee57..d1b973752e 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -1,15 +1,16 @@ //===- ValueTracking.cpp - Walk computations to compute properties --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueTracking.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains routines that help analyze properties that chains of // -// computations have. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains routines that help analyze properties that chains of +// computations have. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/ValueTracking.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Analysis/VectorUtils.cpp b/lib/Analysis/VectorUtils.cpp index b18c8a2acf..8c671ef0ef 100644 --- a/lib/Analysis/VectorUtils.cpp +++ b/lib/Analysis/VectorUtils.cpp @@ -1,14 +1,15 @@ //===----------- VectorUtils.cpp - Vectorizer utility functions -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VectorUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines vectorizer utilities. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines vectorizer utilities. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/ScalarEvolutionExpressions.h" diff --git a/lib/Analysis/regioninfo.cpp b/lib/Analysis/regioninfo.cpp index 62b51da436..8cd85348fd 100644 --- a/lib/Analysis/regioninfo.cpp +++ b/lib/Analysis/regioninfo.cpp @@ -1,14 +1,13 @@ //===- RegionInfo.cpp - SESE region detection analysis --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// regioninfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Detects single entry single exit regions in the control flow graph. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Detects single entry single exit regions in the control flow graph. +//===----------------------------------------------------------------------===// #include "llvm/Analysis/RegionInfo.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/lib/Analysis/regionprinter.cpp b/lib/Analysis/regionprinter.cpp index b1c0089552..31202aa4ef 100644 --- a/lib/Analysis/regionprinter.cpp +++ b/lib/Analysis/regionprinter.cpp @@ -1,14 +1,13 @@ //===- RegionPrinter.cpp - Print regions tree pass ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// regionprinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Print out the region tree of a function using dotty/graphviz. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Print out the region tree of a function using dotty/graphviz. +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/AsmParser/CMakeLists.txt b/lib/AsmParser/CMakeLists.txt index c8b519778e..0d72723210 100644 --- a/lib/AsmParser/CMakeLists.txt +++ b/lib/AsmParser/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # AsmParser add_llvm_library(LLVMAsmParser LLLexer.cpp diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp index d1beec65e5..5c4bab734b 100644 --- a/lib/AsmParser/LLLexer.cpp +++ b/lib/AsmParser/LLLexer.cpp @@ -1,14 +1,15 @@ //===- LLLexer.cpp - Lexer for .ll Files ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implement the Lexer for .ll files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implement the Lexer for .ll files. +// +//===----------------------------------------------------------------------===// #include "LLLexer.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/AsmParser/LLLexer.h b/lib/AsmParser/LLLexer.h index 69eb596596..90bf17d7a7 100644 --- a/lib/AsmParser/LLLexer.h +++ b/lib/AsmParser/LLLexer.h @@ -1,14 +1,15 @@ //===- LLLexer.h - Lexer for LLVM Assembly Files ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class represents the Lexer for .ll files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class represents the Lexer for .ll files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_ASMPARSER_LLLEXER_H #define LLVM_LIB_ASMPARSER_LLLEXER_H diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 0627cd3698..1c6e7bd18d 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -1,14 +1,15 @@ //===-- LLParser.cpp - Parser Class ---------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the parser class for .ll files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the parser class for .ll files. +// +//===----------------------------------------------------------------------===// #include "LLParser.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/AsmParser/LLParser.h b/lib/AsmParser/LLParser.h index 2ff636d06e..6e57b3e066 100644 --- a/lib/AsmParser/LLParser.h +++ b/lib/AsmParser/LLParser.h @@ -1,14 +1,15 @@ //===-- LLParser.h - Parser Class -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the parser class for .ll files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the parser class for .ll files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_ASMPARSER_LLPARSER_H #define LLVM_LIB_ASMPARSER_LLPARSER_H diff --git a/lib/AsmParser/LLToken.h b/lib/AsmParser/LLToken.h index bc6fe436a1..691f085f0c 100644 --- a/lib/AsmParser/LLToken.h +++ b/lib/AsmParser/LLToken.h @@ -1,14 +1,15 @@ //===- LLToken.h - Token Codes for LLVM Assembly Files ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLToken.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the enums for the .ll lexer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the enums for the .ll lexer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_ASMPARSER_LLTOKEN_H #define LLVM_LIB_ASMPARSER_LLTOKEN_H diff --git a/lib/AsmParser/LLVMBuild.txt b/lib/AsmParser/LLVMBuild.txt index 3856018f81..3bc31ed910 100644 --- a/lib/AsmParser/LLVMBuild.txt +++ b/lib/AsmParser/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/AsmParser/LLVMBuild.txt ----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index 0dbfedbc0d..9145a54f2a 100644 --- a/lib/AsmParser/Parser.cpp +++ b/lib/AsmParser/Parser.cpp @@ -1,14 +1,15 @@ //===- Parser.cpp - Main dispatch module for the Parser library -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Parser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This library implements the functionality defined in llvm/AsmParser/Parser.h// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This library implements the functionality defined in llvm/AsmParser/Parser.h +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "LLParser.h" diff --git a/lib/Bitcode/CMakeLists.txt b/lib/Bitcode/CMakeLists.txt index df72c9a4a2..ff7e290cad 100644 --- a/lib/Bitcode/CMakeLists.txt +++ b/lib/Bitcode/CMakeLists.txt @@ -1,4 +1,2 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(Reader) add_subdirectory(Writer) diff --git a/lib/Bitcode/LLVMBuild.txt b/lib/Bitcode/LLVMBuild.txt index d4cf6ec6af..af9936bbe8 100644 --- a/lib/Bitcode/LLVMBuild.txt +++ b/lib/Bitcode/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Bitcode/LLVMBuild.txt ------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Bitcode/Reader/BitReader.cpp b/lib/Bitcode/Reader/BitReader.cpp index 8957d78c0a..289c76e85b 100644 --- a/lib/Bitcode/Reader/BitReader.cpp +++ b/lib/Bitcode/Reader/BitReader.cpp @@ -1,12 +1,11 @@ //===-- BitReader.cpp -----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm-c/BitReader.h" #include "llvm/Bitcode/ReaderWriter.h" diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 0ffbdf71c2..4441884787 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1,12 +1,11 @@ //===- BitcodeReader.cpp - Internal BitcodeReader implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitcodeReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/ReaderWriter.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Bitcode/Reader/BitstreamReader.cpp b/lib/Bitcode/Reader/BitstreamReader.cpp index 29a144b99d..b2c9fc3c12 100644 --- a/lib/Bitcode/Reader/BitstreamReader.cpp +++ b/lib/Bitcode/Reader/BitstreamReader.cpp @@ -1,12 +1,11 @@ //===- BitstreamReader.cpp - BitstreamReader implementation ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitstreamReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/BitstreamReader.h" diff --git a/lib/Bitcode/Reader/CMakeLists.txt b/lib/Bitcode/Reader/CMakeLists.txt index 7349319d8f..4192c1ffa8 100644 --- a/lib/Bitcode/Reader/CMakeLists.txt +++ b/lib/Bitcode/Reader/CMakeLists.txt @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. -# HLSL Change - add ignored sources set(HLSL_IGNORE_SOURCES BitReader.cpp) add_llvm_library(LLVMBitReader diff --git a/lib/Bitcode/Reader/LLVMBuild.txt b/lib/Bitcode/Reader/LLVMBuild.txt index 2174bf7eb1..c85a87bfeb 100644 --- a/lib/Bitcode/Reader/LLVMBuild.txt +++ b/lib/Bitcode/Reader/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Bitcode/Reader/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Bitcode/Writer/BitWriter.cpp b/lib/Bitcode/Writer/BitWriter.cpp index 0b42bf5739..7218ea05bb 100644 --- a/lib/Bitcode/Writer/BitWriter.cpp +++ b/lib/Bitcode/Writer/BitWriter.cpp @@ -1,12 +1,11 @@ //===-- BitWriter.cpp -----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm-c/BitWriter.h" #include "llvm/Bitcode/ReaderWriter.h" diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index fe881c2908..0b5e6d4219 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1,14 +1,15 @@ //===--- Bitcode/Writer/BitcodeWriter.cpp - Bitcode Writer ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitcodeWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Bitcode writer implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Bitcode writer implementation. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/ReaderWriter.h" #include "ValueEnumerator.h" diff --git a/lib/Bitcode/Writer/BitcodeWriterPass.cpp b/lib/Bitcode/Writer/BitcodeWriterPass.cpp index 640eae12b3..3165743576 100644 --- a/lib/Bitcode/Writer/BitcodeWriterPass.cpp +++ b/lib/Bitcode/Writer/BitcodeWriterPass.cpp @@ -1,14 +1,15 @@ //===- BitcodeWriterPass.cpp - Bitcode writing pass -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitcodeWriterPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// BitcodeWriterPass implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// BitcodeWriterPass implementation. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/BitcodeWriterPass.h" #include "llvm/Bitcode/ReaderWriter.h" diff --git a/lib/Bitcode/Writer/CMakeLists.txt b/lib/Bitcode/Writer/CMakeLists.txt index 40ff696b18..82dc6b2413 100644 --- a/lib/Bitcode/Writer/CMakeLists.txt +++ b/lib/Bitcode/Writer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMBitWriter BitWriter.cpp BitcodeWriter.cpp diff --git a/lib/Bitcode/Writer/LLVMBuild.txt b/lib/Bitcode/Writer/LLVMBuild.txt index 8192d1570c..7d9e1de771 100644 --- a/lib/Bitcode/Writer/LLVMBuild.txt +++ b/lib/Bitcode/Writer/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Bitcode/Writer/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Bitcode/Writer/ValueEnumerator.cpp b/lib/Bitcode/Writer/ValueEnumerator.cpp index 1f39951b32..44dd604f88 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -1,14 +1,15 @@ //===-- ValueEnumerator.cpp - Number values and types for bitcode writer --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueEnumerator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ValueEnumerator class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ValueEnumerator class. +// +//===----------------------------------------------------------------------===// #include "ValueEnumerator.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Bitcode/Writer/ValueEnumerator.h b/lib/Bitcode/Writer/ValueEnumerator.h index f5483c16b5..92d166e3ba 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.h +++ b/lib/Bitcode/Writer/ValueEnumerator.h @@ -1,14 +1,15 @@ //===-- Bitcode/Writer/ValueEnumerator.h - Number values --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueEnumerator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class gives values and types Unique ID's. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class gives values and types Unique ID's. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_BITCODE_WRITER_VALUEENUMERATOR_H #define LLVM_LIB_BITCODE_WRITER_VALUEENUMERATOR_H diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index d82b76cf6b..7769928527 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # `Support' and `TableGen' libraries are added on the top-level CMakeLists.txt add_subdirectory(IR) diff --git a/lib/CodeGen/AggressiveAntiDepBreaker.cpp b/lib/CodeGen/AggressiveAntiDepBreaker.cpp index e28911533b..5fe4c4bcae 100644 --- a/lib/CodeGen/AggressiveAntiDepBreaker.cpp +++ b/lib/CodeGen/AggressiveAntiDepBreaker.cpp @@ -1,17 +1,18 @@ //===----- AggressiveAntiDepBreaker.cpp - Anti-dep breaker ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AggressiveAntiDepBreaker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AggressiveAntiDepBreaker class, which // -// implements register anti-dependence breaking during post-RA // -// scheduling. It attempts to break all anti-dependencies within a // -// block. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AggressiveAntiDepBreaker class, which +// implements register anti-dependence breaking during post-RA +// scheduling. It attempts to break all anti-dependencies within a +// block. +// +//===----------------------------------------------------------------------===// #include "AggressiveAntiDepBreaker.h" #include "llvm/CodeGen/MachineBasicBlock.h" diff --git a/lib/CodeGen/AggressiveAntiDepBreaker.h b/lib/CodeGen/AggressiveAntiDepBreaker.h index 3e4865bf67..eba7383966 100644 --- a/lib/CodeGen/AggressiveAntiDepBreaker.h +++ b/lib/CodeGen/AggressiveAntiDepBreaker.h @@ -1,17 +1,18 @@ //=- llvm/CodeGen/AggressiveAntiDepBreaker.h - Anti-Dep Support -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// AggressiveAntiDepBreaker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AggressiveAntiDepBreaker class, which // -// implements register anti-dependence breaking during post-RA // -// scheduling. It attempts to break all anti-dependencies within a // -// block. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AggressiveAntiDepBreaker class, which +// implements register anti-dependence breaking during post-RA +// scheduling. It attempts to break all anti-dependencies within a +// block. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_AGGRESSIVEANTIDEPBREAKER_H #define LLVM_LIB_CODEGEN_AGGRESSIVEANTIDEPBREAKER_H diff --git a/lib/CodeGen/AllocationOrder.cpp b/lib/CodeGen/AllocationOrder.cpp index 5fbdb0a240..dc9bcff561 100644 --- a/lib/CodeGen/AllocationOrder.cpp +++ b/lib/CodeGen/AllocationOrder.cpp @@ -1,17 +1,18 @@ //===-- llvm/CodeGen/AllocationOrder.cpp - Allocation Order ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AllocationOrder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an allocation order for virtual registers. // -// // -// The preferred allocation order for a virtual register depends on allocation// -// hints and target hooks. The AllocationOrder class encapsulates all of that.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an allocation order for virtual registers. +// +// The preferred allocation order for a virtual register depends on allocation +// hints and target hooks. The AllocationOrder class encapsulates all of that. +// +//===----------------------------------------------------------------------===// #include "AllocationOrder.h" #include "llvm/CodeGen/MachineFunction.h" diff --git a/lib/CodeGen/AllocationOrder.h b/lib/CodeGen/AllocationOrder.h index 3867c9d3a2..02b2d9250b 100644 --- a/lib/CodeGen/AllocationOrder.h +++ b/lib/CodeGen/AllocationOrder.h @@ -1,17 +1,18 @@ //===-- llvm/CodeGen/AllocationOrder.h - Allocation Order -*- C++ -*-------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AllocationOrder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements an allocation order for virtual registers. // // -// The preferred allocation order for a virtual register depends on allocation// -// hints and target hooks. The AllocationOrder class encapsulates all of that.// +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements an allocation order for virtual registers. +// +// The preferred allocation order for a virtual register depends on allocation +// hints and target hooks. The AllocationOrder class encapsulates all of that. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ALLOCATIONORDER_H #define LLVM_LIB_CODEGEN_ALLOCATIONORDER_H diff --git a/lib/CodeGen/Analysis.cpp b/lib/CodeGen/Analysis.cpp index 6134e572f2..98d4c8afc7 100644 --- a/lib/CodeGen/Analysis.cpp +++ b/lib/CodeGen/Analysis.cpp @@ -1,14 +1,15 @@ //===-- Analysis.cpp - CodeGen LLVM IR Analysis Utilities -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Analysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines several CodeGen-specific LLVM IR analysis utilities. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines several CodeGen-specific LLVM IR analysis utilities. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Analysis.h" #include "llvm/Analysis/ValueTracking.h" diff --git a/lib/CodeGen/AntiDepBreaker.h b/lib/CodeGen/AntiDepBreaker.h index 33b6076882..9f05200dcd 100644 --- a/lib/CodeGen/AntiDepBreaker.h +++ b/lib/CodeGen/AntiDepBreaker.h @@ -1,15 +1,16 @@ //=- llvm/CodeGen/AntiDepBreaker.h - Anti-Dependence Breaking -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// AntiDepBreaker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AntiDepBreaker class, which implements // -// anti-dependence breaking heuristics for post-register-allocation scheduling.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AntiDepBreaker class, which implements +// anti-dependence breaking heuristics for post-register-allocation scheduling. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ANTIDEPBREAKER_H #define LLVM_LIB_CODEGEN_ANTIDEPBREAKER_H diff --git a/lib/CodeGen/AsmPrinter/ARMException.cpp b/lib/CodeGen/AsmPrinter/ARMException.cpp index 4b1653be42..0bad7954b9 100644 --- a/lib/CodeGen/AsmPrinter/ARMException.cpp +++ b/lib/CodeGen/AsmPrinter/ARMException.cpp @@ -1,14 +1,15 @@ //===-- CodeGen/AsmPrinter/ARMException.cpp - ARM EHABI Exception Impl ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMException.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing DWARF exception info into asm files.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing DWARF exception info into asm files. +// +//===----------------------------------------------------------------------===// #include "DwarfException.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/CodeGen/AsmPrinter/AddressPool.cpp b/lib/CodeGen/AsmPrinter/AddressPool.cpp index 28b2a6f075..8c6838394a 100644 --- a/lib/CodeGen/AsmPrinter/AddressPool.cpp +++ b/lib/CodeGen/AsmPrinter/AddressPool.cpp @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/AddressPool.cpp - Dwarf Debug Framework ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AddressPool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "AddressPool.h" #include "llvm/CodeGen/AsmPrinter.h" diff --git a/lib/CodeGen/AsmPrinter/AddressPool.h b/lib/CodeGen/AsmPrinter/AddressPool.h index c92f88f22c..211fc98c7f 100644 --- a/lib/CodeGen/AsmPrinter/AddressPool.h +++ b/lib/CodeGen/AsmPrinter/AddressPool.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/AddressPool.h - Dwarf Debug Framework -----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AddressPool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_ADDRESSPOOL_H #define LLVM_LIB_CODEGEN_ASMPRINTER_ADDRESSPOOL_H diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 0932e036a4..125047e7bb 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1,14 +1,15 @@ //===-- AsmPrinter.cpp - Common AsmPrinter code ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AsmPrinter class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AsmPrinter class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/AsmPrinter.h" #include "DwarfDebug.h" diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp index ef20dede5b..ad180b6667 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp @@ -1,14 +1,15 @@ //===-- AsmPrinterDwarf.cpp - AsmPrinter Dwarf Support --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmPrinterDwarf.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Dwarf emissions parts of AsmPrinter. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Dwarf emissions parts of AsmPrinter. +// +//===----------------------------------------------------------------------===// #include "ByteStreamer.h" #include "DwarfDebug.h" diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h b/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h index 7786534326..f1efe9d835 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h +++ b/lib/CodeGen/AsmPrinter/AsmPrinterHandler.h @@ -1,15 +1,16 @@ //===-- lib/CodeGen/AsmPrinter/AsmPrinterHandler.h -------------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmPrinterHandler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a generic interface for AsmPrinter handlers, // -// like debug and EH info emitters. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a generic interface for AsmPrinter handlers, +// like debug and EH info emitters. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_ASMPRINTERHANDLER_H #define LLVM_LIB_CODEGEN_ASMPRINTER_ASMPRINTERHANDLER_H diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp index d9d4609cba..793e62960d 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp @@ -1,14 +1,15 @@ //===-- AsmPrinterInlineAsm.cpp - AsmPrinter Inline Asm Handling ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmPrinterInlineAsm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the inline assembler pieces of the AsmPrinter class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the inline assembler pieces of the AsmPrinter class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/CodeGen/AsmPrinter/ByteStreamer.h b/lib/CodeGen/AsmPrinter/ByteStreamer.h index c6dfdea6c9..0cc829fffc 100644 --- a/lib/CodeGen/AsmPrinter/ByteStreamer.h +++ b/lib/CodeGen/AsmPrinter/ByteStreamer.h @@ -1,15 +1,16 @@ //===-- llvm/CodeGen/ByteStreamer.h - ByteStreamer class --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ByteStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a class that can take bytes that would normally be // -// streamed via the AsmPrinter. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a class that can take bytes that would normally be +// streamed via the AsmPrinter. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_BYTESTREAMER_H #define LLVM_LIB_CODEGEN_ASMPRINTER_BYTESTREAMER_H diff --git a/lib/CodeGen/AsmPrinter/CMakeLists.txt b/lib/CodeGen/AsmPrinter/CMakeLists.txt index 58c6baac87..ba2f61a448 100644 --- a/lib/CodeGen/AsmPrinter/CMakeLists.txt +++ b/lib/CodeGen/AsmPrinter/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMAsmPrinter AddressPool.cpp ARMException.cpp diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 5148120426..46dbc76936 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -1,14 +1,15 @@ //===--- lib/CodeGen/DIE.cpp - DWARF Info Entries -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Data structures for DWARF info entries. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Data structures for DWARF info entries. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/DIE.h" #include "DwarfCompileUnit.h" diff --git a/lib/CodeGen/AsmPrinter/DIEHash.cpp b/lib/CodeGen/AsmPrinter/DIEHash.cpp index cb14eee108..5e60156fdf 100644 --- a/lib/CodeGen/AsmPrinter/DIEHash.cpp +++ b/lib/CodeGen/AsmPrinter/DIEHash.cpp @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DIEHash.cpp - Dwarf Hashing Framework ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIEHash.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for DWARF4 hashing of DIEs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for DWARF4 hashing of DIEs. +// +//===----------------------------------------------------------------------===// #include "ByteStreamer.h" #include "DIEHash.h" diff --git a/lib/CodeGen/AsmPrinter/DIEHash.h b/lib/CodeGen/AsmPrinter/DIEHash.h index 0c56d36cbb..833ca0276f 100644 --- a/lib/CodeGen/AsmPrinter/DIEHash.h +++ b/lib/CodeGen/AsmPrinter/DIEHash.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DIEHash.h - Dwarf Hashing Framework -------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIEHash.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for DWARF4 hashing of DIEs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for DWARF4 hashing of DIEs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DIEHASH_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DIEHASH_H diff --git a/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp b/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp index d6ffe034f6..3c46a99d08 100644 --- a/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp +++ b/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DbgValueHistoryCalculator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DbgValueHistoryCalculator.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h b/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h index df13f12438..546d1b4437 100644 --- a/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h +++ b/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h ----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DbgValueHistoryCalculator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DBGVALUEHISTORYCALCULATOR_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DBGVALUEHISTORYCALCULATOR_H diff --git a/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/lib/CodeGen/AsmPrinter/DebugLocEntry.h index be0e90fd23..afffa839a6 100644 --- a/lib/CodeGen/AsmPrinter/DebugLocEntry.h +++ b/lib/CodeGen/AsmPrinter/DebugLocEntry.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/DebugLocEntry.h - Entry in debug_loc list -*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugLocEntry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGLOCENTRY_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGLOCENTRY_H diff --git a/lib/CodeGen/AsmPrinter/DebugLocStream.cpp b/lib/CodeGen/AsmPrinter/DebugLocStream.cpp index a19438de3e..7e8ed7104a 100644 --- a/lib/CodeGen/AsmPrinter/DebugLocStream.cpp +++ b/lib/CodeGen/AsmPrinter/DebugLocStream.cpp @@ -1,12 +1,11 @@ //===- DebugLocStream.cpp - DWARF debug_loc stream --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugLocStream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DebugLocStream.h" #include "DwarfDebug.h" diff --git a/lib/CodeGen/AsmPrinter/DebugLocStream.h b/lib/CodeGen/AsmPrinter/DebugLocStream.h index 82d07c0e34..3656e9d950 100644 --- a/lib/CodeGen/AsmPrinter/DebugLocStream.h +++ b/lib/CodeGen/AsmPrinter/DebugLocStream.h @@ -1,12 +1,11 @@ //===--- lib/CodeGen/DebugLocStream.h - DWARF debug_loc stream --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugLocStream.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGLOCSTREAM_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGLOCSTREAM_H diff --git a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp index 55bed5cd62..f8cdde2031 100644 --- a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp @@ -1,14 +1,15 @@ //=-- llvm/CodeGen/DwarfAccelTable.cpp - Dwarf Accelerator Tables -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfAccelTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf accelerator tables. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf accelerator tables. +// +//===----------------------------------------------------------------------===// #include "DwarfAccelTable.h" #include "DwarfCompileUnit.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfAccelTable.h b/lib/CodeGen/AsmPrinter/DwarfAccelTable.h index 779eb87a94..4d81441f6a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfAccelTable.h +++ b/lib/CodeGen/AsmPrinter/DwarfAccelTable.h @@ -1,14 +1,15 @@ //==-- llvm/CodeGen/DwarfAccelTable.h - Dwarf Accelerator Tables -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfAccelTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf accelerator tables. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf accelerator tables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFACCELTABLE_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFACCELTABLE_H diff --git a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp index 0b0c54bdc6..2c212c7ece 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp @@ -1,14 +1,15 @@ //===-- CodeGen/AsmPrinter/DwarfException.cpp - Dwarf Exception Impl ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfCFIException.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing DWARF exception info into asm files.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing DWARF exception info into asm files. +// +//===----------------------------------------------------------------------===// #include "DwarfException.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 45f119e3b2..0dafa25b44 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1,12 +1,3 @@ -//===- DwarfCompileUnit.cpp -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfCompileUnit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "DwarfCompileUnit.h" #include "DwarfExpression.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 9ff615b84d..509c9432bc 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DwarfCompileUnit.h - Dwarf Compile Unit ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfCompileUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf compile unit. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf compile unit. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index b8bfdb828e..7d03a3930d 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DwarfDebug.cpp - Dwarf Debug Framework ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfDebug.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf debug info into asm files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf debug info into asm files. +// +//===----------------------------------------------------------------------===// #include "DwarfDebug.h" #include "ByteStreamer.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index bfa9f57afb..33a08a6137 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -1,12 +1,13 @@ //===-- llvm/CodeGen/DwarfDebug.h - Dwarf Debug Framework ------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfDebug.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf debug info into asm files. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf debug info into asm files. // //===----------------------------------------------------------------------===// diff --git a/lib/CodeGen/AsmPrinter/DwarfException.h b/lib/CodeGen/AsmPrinter/DwarfException.h index 0d6d1d3f93..f4667b4a34 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.h +++ b/lib/CodeGen/AsmPrinter/DwarfException.h @@ -1,14 +1,15 @@ //===-- DwarfException.h - Dwarf Exception Framework -----------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfException.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf exception info into asm files.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf exception info into asm files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFEXCEPTION_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFEXCEPTION_H diff --git a/lib/CodeGen/AsmPrinter/DwarfExpression.cpp b/lib/CodeGen/AsmPrinter/DwarfExpression.cpp index a580429fee..a2799b8d63 100644 --- a/lib/CodeGen/AsmPrinter/DwarfExpression.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfExpression.cpp @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DwarfExpression.cpp - Dwarf Debug Framework ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfExpression.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf debug info into asm files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf debug info into asm files. +// +//===----------------------------------------------------------------------===// #include "DwarfExpression.h" #include "DwarfDebug.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfExpression.h b/lib/CodeGen/AsmPrinter/DwarfExpression.h index 1d8fc4cdf8..78ec937a6b 100644 --- a/lib/CodeGen/AsmPrinter/DwarfExpression.h +++ b/lib/CodeGen/AsmPrinter/DwarfExpression.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DwarfExpression.h - Dwarf Compile Unit ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfExpression.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf compile unit. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf compile unit. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFEXPRESSION_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFEXPRESSION_H diff --git a/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/lib/CodeGen/AsmPrinter/DwarfFile.cpp index a02ba1f60f..51b27b462a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfFile.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfFile.cpp @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/DwarfFile.cpp - Dwarf Debug Framework ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DwarfFile.h" #include "DwarfDebug.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfFile.h b/lib/CodeGen/AsmPrinter/DwarfFile.h index efa3b31736..8402027edd 100644 --- a/lib/CodeGen/AsmPrinter/DwarfFile.h +++ b/lib/CodeGen/AsmPrinter/DwarfFile.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/DwarfFile.h - Dwarf Debug Framework -------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfFile.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFFILE_H diff --git a/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp b/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp index 40158b6ece..2066f745e3 100644 --- a/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/DwarfStringPool.cpp - Dwarf Debug Framework ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfStringPool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DwarfStringPool.h" #include "llvm/CodeGen/AsmPrinter.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfStringPool.h b/lib/CodeGen/AsmPrinter/DwarfStringPool.h index 63a9fcd287..93a168485a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfStringPool.h +++ b/lib/CodeGen/AsmPrinter/DwarfStringPool.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/DwarfStringPool.h - Dwarf Debug Framework -*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfStringPool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFSTRINGPOOL_H #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFSTRINGPOOL_H diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index a1fb087a2c..355582298e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/DwarfUnit.cpp - Dwarf Type and Compile Units ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfUnit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for constructing a dwarf compile unit. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for constructing a dwarf compile unit. +// +//===----------------------------------------------------------------------===// #include "DwarfUnit.h" #include "DwarfAccelTable.h" diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.h b/lib/CodeGen/AsmPrinter/DwarfUnit.h index 240658ee31..7b65ee2c40 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -1,12 +1,13 @@ //===-- llvm/CodeGen/DwarfUnit.h - Dwarf Compile Unit ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing dwarf compile unit. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing dwarf compile unit. // //===----------------------------------------------------------------------===// diff --git a/lib/CodeGen/AsmPrinter/EHStreamer.cpp b/lib/CodeGen/AsmPrinter/EHStreamer.cpp index 838af8fc76..49ef8d3ddc 100644 --- a/lib/CodeGen/AsmPrinter/EHStreamer.cpp +++ b/lib/CodeGen/AsmPrinter/EHStreamer.cpp @@ -1,14 +1,15 @@ //===-- CodeGen/AsmPrinter/EHStreamer.cpp - Exception Directive Streamer --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EHStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing exception info into assembly files.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing exception info into assembly files. +// +//===----------------------------------------------------------------------===// #include "EHStreamer.h" #include "llvm/CodeGen/AsmPrinter.h" diff --git a/lib/CodeGen/AsmPrinter/EHStreamer.h b/lib/CodeGen/AsmPrinter/EHStreamer.h index 95fd8eb882..e42e082acb 100644 --- a/lib/CodeGen/AsmPrinter/EHStreamer.h +++ b/lib/CodeGen/AsmPrinter/EHStreamer.h @@ -1,14 +1,15 @@ //===-- EHStreamer.h - Exception Handling Directive Streamer ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EHStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing exception info into assembly files.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing exception info into assembly files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_EHSTREAMER_H #define LLVM_LIB_CODEGEN_ASMPRINTER_EHSTREAMER_H diff --git a/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp b/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp index 967bb93898..eb9e4c10da 100644 --- a/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp @@ -1,16 +1,17 @@ //===-- ErlangGCPrinter.cpp - Erlang/OTP frametable emitter -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ErlangGCPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the compiler plugin that is used in order to emit // -// garbage collection information in a convenient layout for parsing and // -// loading in the Erlang/OTP runtime. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the compiler plugin that is used in order to emit +// garbage collection information in a convenient layout for parsing and +// loading in the Erlang/OTP runtime. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/CodeGen/GCMetadataPrinter.h" diff --git a/lib/CodeGen/AsmPrinter/LLVMBuild.txt b/lib/CodeGen/AsmPrinter/LLVMBuild.txt index 0c7aa235b4..aaaedb8e74 100644 --- a/lib/CodeGen/AsmPrinter/LLVMBuild.txt +++ b/lib/CodeGen/AsmPrinter/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/CodeGen/AsmPrinter/LLVMBuild.txt -------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp b/lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp index 6f1428d344..2ceec61ab5 100644 --- a/lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp @@ -1,14 +1,15 @@ //===-- OcamlGCPrinter.cpp - Ocaml frametable emitter ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OcamlGCPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements printing the assembly code for an Ocaml frametable. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements printing the assembly code for an Ocaml frametable. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCs.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp b/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp index 34004d1107..6610ac78f8 100644 --- a/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp +++ b/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp @@ -1,14 +1,15 @@ //===-- llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp --*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinCodeViewLineTables.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing line tables info into COFF files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing line tables info into COFF files. +// +//===----------------------------------------------------------------------===// #include "WinCodeViewLineTables.h" #include "llvm/MC/MCExpr.h" diff --git a/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h b/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h index f8eeef9087..43d1a43271 100644 --- a/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h +++ b/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h @@ -1,14 +1,15 @@ //===-- llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h ----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinCodeViewLineTables.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing line tables info into COFF files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing line tables info into COFF files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_WINCODEVIEWLINETABLES_H #define LLVM_LIB_CODEGEN_ASMPRINTER_WINCODEVIEWLINETABLES_H diff --git a/lib/CodeGen/AsmPrinter/WinException.cpp b/lib/CodeGen/AsmPrinter/WinException.cpp index cb0dd23517..71c77815e2 100644 --- a/lib/CodeGen/AsmPrinter/WinException.cpp +++ b/lib/CodeGen/AsmPrinter/WinException.cpp @@ -1,14 +1,15 @@ //===-- CodeGen/AsmPrinter/WinException.cpp - Dwarf Exception Impl ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinException.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing Win64 exception info into asm files.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing Win64 exception info into asm files. +// +//===----------------------------------------------------------------------===// #include "WinException.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/CodeGen/AsmPrinter/WinException.h b/lib/CodeGen/AsmPrinter/WinException.h index af84d653c5..669c9cc366 100644 --- a/lib/CodeGen/AsmPrinter/WinException.h +++ b/lib/CodeGen/AsmPrinter/WinException.h @@ -1,14 +1,15 @@ //===-- WinException.h - Windows Exception Handling ----------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinException.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing windows exception info into asm files.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing windows exception info into asm files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_WIN64EXCEPTION_H #define LLVM_LIB_CODEGEN_ASMPRINTER_WIN64EXCEPTION_H diff --git a/lib/CodeGen/AtomicExpandPass.cpp b/lib/CodeGen/AtomicExpandPass.cpp index 7fba1eeb2f..530ab46db0 100644 --- a/lib/CodeGen/AtomicExpandPass.cpp +++ b/lib/CodeGen/AtomicExpandPass.cpp @@ -1,15 +1,16 @@ //===-- AtomicExpandPass.cpp - Expand atomic instructions -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AtomicExpandPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a pass (at IR level) to replace atomic instructions with// -// either (intrinsic-based) load-linked/store-conditional loops or AtomicCmpXchg.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a pass (at IR level) to replace atomic instructions with +// either (intrinsic-based) load-linked/store-conditional loops or AtomicCmpXchg. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/IR/Function.h" diff --git a/lib/CodeGen/BasicTargetTransformInfo.cpp b/lib/CodeGen/BasicTargetTransformInfo.cpp index 31d3a3ac23..db00910cd0 100644 --- a/lib/CodeGen/BasicTargetTransformInfo.cpp +++ b/lib/CodeGen/BasicTargetTransformInfo.cpp @@ -1,20 +1,19 @@ //===- BasicTargetTransformInfo.cpp - Basic target-independent TTI impl ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicTargetTransformInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file provides the implementation of a basic TargetTransformInfo pass// -/// predicated on the target abstractions present in the target independent // -/// code generator. It uses these (primarily TargetLowering) to model as much// -/// of the TTI query interface as possible. It is included by most targets so// -/// that they can specialize only a small subset of the query space. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file provides the implementation of a basic TargetTransformInfo pass +/// predicated on the target abstractions present in the target independent +/// code generator. It uses these (primarily TargetLowering) to model as much +/// of the TTI query interface as possible. It is included by most targets so +/// that they can specialize only a small subset of the query space. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/BasicTTIImpl.h" #include "llvm/Analysis/LoopInfo.h" diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 76fbc7e675..618266731c 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -1,19 +1,20 @@ //===-- BranchFolding.cpp - Fold machine code branch instructions ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchFolding.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass forwards branches to unconditional branches to make them branch // -// directly to the target block. This pass often results in dead MBB's, which// -// it then removes. // -// // -// Note that this pass must be run after register allocation, it cannot handle// -// SSA form. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass forwards branches to unconditional branches to make them branch +// directly to the target block. This pass often results in dead MBB's, which +// it then removes. +// +// Note that this pass must be run after register allocation, it cannot handle +// SSA form. +// +//===----------------------------------------------------------------------===// #include "BranchFolding.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/CodeGen/BranchFolding.h b/lib/CodeGen/BranchFolding.h index 97b046971f..46c05dc060 100644 --- a/lib/CodeGen/BranchFolding.h +++ b/lib/CodeGen/BranchFolding.h @@ -1,12 +1,11 @@ //===-- BranchFolding.h - Fold machine code branch instructions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchFolding.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_BRANCHFOLDING_H #define LLVM_LIB_CODEGEN_BRANCHFOLDING_H diff --git a/lib/CodeGen/CMakeLists.txt b/lib/CodeGen/CMakeLists.txt index 2446b37a90..2f78068364 100644 --- a/lib/CodeGen/CMakeLists.txt +++ b/lib/CodeGen/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMCodeGen AggressiveAntiDepBreaker.cpp AllocationOrder.cpp diff --git a/lib/CodeGen/CalcSpillWeights.cpp b/lib/CodeGen/CalcSpillWeights.cpp index 11ccba89f2..d08fae0932 100644 --- a/lib/CodeGen/CalcSpillWeights.cpp +++ b/lib/CodeGen/CalcSpillWeights.cpp @@ -1,12 +1,11 @@ //===------------------------ CalcSpillWeights.cpp ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CalcSpillWeights.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/CalcSpillWeights.h" #include "llvm/CodeGen/LiveIntervalAnalysis.h" diff --git a/lib/CodeGen/CallingConvLower.cpp b/lib/CodeGen/CallingConvLower.cpp index a79dd5682d..fb29b1db7a 100644 --- a/lib/CodeGen/CallingConvLower.cpp +++ b/lib/CodeGen/CallingConvLower.cpp @@ -1,15 +1,16 @@ //===-- CallingConvLower.cpp - Calling Conventions ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallingConvLower.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CCState class, used for lowering and implementing// -// calling conventions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CCState class, used for lowering and implementing +// calling conventions. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/CallingConvLower.h" #include "llvm/CodeGen/MachineFrameInfo.h" diff --git a/lib/CodeGen/CodeGen.cpp b/lib/CodeGen/CodeGen.cpp index c398e0394a..155c5ecec7 100644 --- a/lib/CodeGen/CodeGen.cpp +++ b/lib/CodeGen/CodeGen.cpp @@ -1,15 +1,16 @@ //===-- CodeGen.cpp -------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the common initialization routines for the // -// CodeGen library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the common initialization routines for the +// CodeGen library. +// +//===----------------------------------------------------------------------===// #include "llvm/InitializePasses.h" #include "llvm-c/Initialization.h" diff --git a/lib/CodeGen/CodeGenPrepare.cpp b/lib/CodeGen/CodeGenPrepare.cpp index c57f3eafa4..8487019f03 100644 --- a/lib/CodeGen/CodeGenPrepare.cpp +++ b/lib/CodeGen/CodeGenPrepare.cpp @@ -1,16 +1,17 @@ //===- CodeGenPrepare.cpp - Prepare a function for code generation --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenPrepare.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass munges the code in the input function to better prepare it for // -// SelectionDAG-based code generation. This works around limitations in it's // -// basic-block-at-a-time approach. It should eventually be removed. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass munges the code in the input function to better prepare it for +// SelectionDAG-based code generation. This works around limitations in it's +// basic-block-at-a-time approach. It should eventually be removed. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/CoreCLRGC.cpp b/lib/CodeGen/CoreCLRGC.cpp index 81edf33416..28c97ba71b 100644 --- a/lib/CodeGen/CoreCLRGC.cpp +++ b/lib/CodeGen/CoreCLRGC.cpp @@ -1,23 +1,24 @@ //===-- CoreCLRGC.cpp - CoreCLR Runtime GC Strategy -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoreCLRGC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a GCStrategy for the CoreCLR Runtime. // -// The strategy is similar to Statepoint-example GC, but differs from it in // -// certain aspects, such as: // -// 1) Base-pointers need not be explicitly tracked and reported for // -// interior pointers // -// 2) Uses a different format for encoding stack-maps // -// 3) Location of Safe-point polls: polls are only needed before loop-back edges// -// and before tail-calls (not needed at function-entry) // -// // -// The above differences in behavior are to be implemented in upcoming checkins.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a GCStrategy for the CoreCLR Runtime. +// The strategy is similar to Statepoint-example GC, but differs from it in +// certain aspects, such as: +// 1) Base-pointers need not be explicitly tracked and reported for +// interior pointers +// 2) Uses a different format for encoding stack-maps +// 3) Location of Safe-point polls: polls are only needed before loop-back edges +// and before tail-calls (not needed at function-entry) +// +// The above differences in behavior are to be implemented in upcoming checkins. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCStrategy.h" #include "llvm/IR/DerivedTypes.h" diff --git a/lib/CodeGen/CriticalAntiDepBreaker.cpp b/lib/CodeGen/CriticalAntiDepBreaker.cpp index c8b0be4ebb..dba280fd5a 100644 --- a/lib/CodeGen/CriticalAntiDepBreaker.cpp +++ b/lib/CodeGen/CriticalAntiDepBreaker.cpp @@ -1,16 +1,17 @@ //===----- CriticalAntiDepBreaker.cpp - Anti-dep breaker -------- ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CriticalAntiDepBreaker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CriticalAntiDepBreaker class, which // -// implements register anti-dependence breaking along a blocks // -// critical path during post-RA scheduler. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CriticalAntiDepBreaker class, which +// implements register anti-dependence breaking along a blocks +// critical path during post-RA scheduler. +// +//===----------------------------------------------------------------------===// #include "CriticalAntiDepBreaker.h" #include "llvm/CodeGen/MachineBasicBlock.h" diff --git a/lib/CodeGen/CriticalAntiDepBreaker.h b/lib/CodeGen/CriticalAntiDepBreaker.h index e2fd57f2c4..10b873959a 100644 --- a/lib/CodeGen/CriticalAntiDepBreaker.h +++ b/lib/CodeGen/CriticalAntiDepBreaker.h @@ -1,16 +1,17 @@ //=- llvm/CodeGen/CriticalAntiDepBreaker.h - Anti-Dep Support -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CriticalAntiDepBreaker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CriticalAntiDepBreaker class, which // -// implements register anti-dependence breaking along a blocks // -// critical path during post-RA scheduler. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CriticalAntiDepBreaker class, which +// implements register anti-dependence breaking along a blocks +// critical path during post-RA scheduler. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_CRITICALANTIDEPBREAKER_H #define LLVM_LIB_CODEGEN_CRITICALANTIDEPBREAKER_H diff --git a/lib/CodeGen/DFAPacketizer.cpp b/lib/CodeGen/DFAPacketizer.cpp index 6a7fd937e9..0a188c0935 100644 --- a/lib/CodeGen/DFAPacketizer.cpp +++ b/lib/CodeGen/DFAPacketizer.cpp @@ -1,27 +1,27 @@ //=- llvm/CodeGen/DFAPacketizer.cpp - DFA Packetizer for VLIW -*- C++ -*-=====// -/////////////////////////////////////////////////////////////////////////////// -// // -// DFAPacketizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements a deterministic finite automaton (DFA) based // -// packetizing mechanism for VLIW architectures. It provides APIs to // -// determine whether there exists a legal mapping of instructions to // -// functional unit assignments in a packet. The DFA is auto-generated from // -// the target's Schedule.td file. // -// // -// A DFA consists of 3 major elements: states, inputs, and transitions. For // -// the packetizing mechanism, the input is the set of instruction classes for// -// a target. The state models all possible combinations of functional unit // -// consumption for a given set of instructions in a packet. A transition // -// models the addition of an instruction to a packet. In the DFA constructed // -// by this class, if an instruction can be added to a packet, then a valid // -// transition exists from the corresponding state. Invalid transitions // -// indicate that the instruction cannot be added to the current packet. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This class implements a deterministic finite automaton (DFA) based +// packetizing mechanism for VLIW architectures. It provides APIs to +// determine whether there exists a legal mapping of instructions to +// functional unit assignments in a packet. The DFA is auto-generated from +// the target's Schedule.td file. +// +// A DFA consists of 3 major elements: states, inputs, and transitions. For +// the packetizing mechanism, the input is the set of instruction classes for +// a target. The state models all possible combinations of functional unit +// consumption for a given set of instructions in a packet. A transition +// models the addition of an instruction to a packet. In the DFA constructed +// by this class, if an instruction can be added to a packet, then a valid +// transition exists from the corresponding state. Invalid transitions +// indicate that the instruction cannot be added to the current packet. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/DFAPacketizer.h" #include "llvm/CodeGen/MachineInstr.h" diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp index 0e1f1ef2f5..941129b5cc 100644 --- a/lib/CodeGen/DeadMachineInstructionElim.cpp +++ b/lib/CodeGen/DeadMachineInstructionElim.cpp @@ -1,14 +1,15 @@ //===- DeadMachineInstructionElim.cpp - Remove dead machine instructions --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeadMachineInstructionElim.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is an extremely simple MachineInstr-level dead-code-elimination pass.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is an extremely simple MachineInstr-level dead-code-elimination pass. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index f95f6f74d4..e019dfbc8f 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -1,15 +1,16 @@ //===-- DwarfEHPrepare - Prepare exception handling for code generation ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfEHPrepare.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass mulches exception handling code into a form adapted to code // -// generation. Required if using dwarf exception handling. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass mulches exception handling code into a form adapted to code +// generation. Required if using dwarf exception handling. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/EarlyIfConversion.cpp b/lib/CodeGen/EarlyIfConversion.cpp index 9c934dae49..fbc4d97c49 100644 --- a/lib/CodeGen/EarlyIfConversion.cpp +++ b/lib/CodeGen/EarlyIfConversion.cpp @@ -1,19 +1,20 @@ //===-- EarlyIfConversion.cpp - If-conversion on SSA form machine code ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EarlyIfConversion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Early if-conversion is for out-of-order CPUs that don't have a lot of // -// predicable instructions. The goal is to eliminate conditional branches that// -// may mispredict. // -// // -// Instructions from both sides of the branch are executed specutatively, and a// -// cmov instruction selects the result. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Early if-conversion is for out-of-order CPUs that don't have a lot of +// predicable instructions. The goal is to eliminate conditional branches that +// may mispredict. +// +// Instructions from both sides of the branch are executed specutatively, and a +// cmov instruction selects the result. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/BitVector.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/lib/CodeGen/EdgeBundles.cpp b/lib/CodeGen/EdgeBundles.cpp index 3e0029fdfa..aea7c31ba3 100644 --- a/lib/CodeGen/EdgeBundles.cpp +++ b/lib/CodeGen/EdgeBundles.cpp @@ -1,14 +1,15 @@ //===-------- EdgeBundles.cpp - Bundles of CFG edges ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EdgeBundles.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the implementation of the EdgeBundles analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the implementation of the EdgeBundles analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/EdgeBundles.h" #include "llvm/CodeGen/MachineBasicBlock.h" diff --git a/lib/CodeGen/ErlangGC.cpp b/lib/CodeGen/ErlangGC.cpp index 1c2c6c5dd9..024946d143 100644 --- a/lib/CodeGen/ErlangGC.cpp +++ b/lib/CodeGen/ErlangGC.cpp @@ -1,17 +1,18 @@ //===-- ErlangGC.cpp - Erlang/OTP GC strategy -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ErlangGC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Erlang/OTP runtime-compatible garbage collector // -// (e.g. defines safe points, root initialization etc.) // -// // -// The frametable emitter is in ErlangGCPrinter.cpp. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Erlang/OTP runtime-compatible garbage collector +// (e.g. defines safe points, root initialization etc.) +// +// The frametable emitter is in ErlangGCPrinter.cpp. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCs.h" #include "llvm/CodeGen/GCStrategy.h" diff --git a/lib/CodeGen/ExecutionDepsFix.cpp b/lib/CodeGen/ExecutionDepsFix.cpp index d133d59b1e..5b09cf1a0f 100644 --- a/lib/CodeGen/ExecutionDepsFix.cpp +++ b/lib/CodeGen/ExecutionDepsFix.cpp @@ -1,23 +1,24 @@ //===- ExecutionDepsFix.cpp - Fix execution dependecy issues ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionDepsFix.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the execution dependency fix pass. // -// // -// Some X86 SSE instructions like mov, and, or, xor are available in different// -// variants for different operand types. These variant instructions are // -// equivalent, but on Nehalem and newer cpus there is extra latency // -// transferring data between integer and floating point domains. ARM cores // -// have similar issues when they are configured with both VFP and NEON // -// pipelines. // -// // -// This pass changes the variant instructions to minimize domain crossings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the execution dependency fix pass. +// +// Some X86 SSE instructions like mov, and, or, xor are available in different +// variants for different operand types. These variant instructions are +// equivalent, but on Nehalem and newer cpus there is extra latency +// transferring data between integer and floating point domains. ARM cores +// have similar issues when they are configured with both VFP and NEON +// pipelines. +// +// This pass changes the variant instructions to minimize domain crossings. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/lib/CodeGen/ExpandISelPseudos.cpp b/lib/CodeGen/ExpandISelPseudos.cpp index 7d6c6d976e..55e809e242 100644 --- a/lib/CodeGen/ExpandISelPseudos.cpp +++ b/lib/CodeGen/ExpandISelPseudos.cpp @@ -1,17 +1,18 @@ //===-- llvm/CodeGen/ExpandISelPseudos.cpp ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExpandISelPseudos.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Expand Pseudo-instructions produced by ISel. These are usually to allow // -// the expansion to contain control flow, such as a conditional move // -// implemented with a conditional branch and a phi, or an atomic operation // -// implemented with a loop. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Expand Pseudo-instructions produced by ISel. These are usually to allow +// the expansion to contain control flow, such as a conditional move +// implemented with a conditional branch and a phi, or an atomic operation +// implemented with a loop. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/MachineFunction.h" diff --git a/lib/CodeGen/ExpandPostRAPseudos.cpp b/lib/CodeGen/ExpandPostRAPseudos.cpp index d65c619856..e7bf143b82 100644 --- a/lib/CodeGen/ExpandPostRAPseudos.cpp +++ b/lib/CodeGen/ExpandPostRAPseudos.cpp @@ -1,15 +1,16 @@ //===-- ExpandPostRAPseudos.cpp - Pseudo instruction expansion pass -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExpandPostRAPseudos.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a pass that expands COPY and SUBREG_TO_REG pseudo // -// instructions after register allocation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a pass that expands COPY and SUBREG_TO_REG pseudo +// instructions after register allocation. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/MachineFunctionPass.h" diff --git a/lib/CodeGen/FaultMaps.cpp b/lib/CodeGen/FaultMaps.cpp index f45a55c03d..2acafafdb9 100644 --- a/lib/CodeGen/FaultMaps.cpp +++ b/lib/CodeGen/FaultMaps.cpp @@ -1,12 +1,11 @@ //===---------------------------- FaultMaps.cpp ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FaultMaps.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/FaultMaps.h" diff --git a/lib/CodeGen/GCMetadata.cpp b/lib/CodeGen/GCMetadata.cpp index a0cb1bb99b..c8116a453d 100644 --- a/lib/CodeGen/GCMetadata.cpp +++ b/lib/CodeGen/GCMetadata.cpp @@ -1,14 +1,15 @@ //===-- GCMetadata.cpp - Garbage collector metadata -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCMetadata.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the GCFunctionInfo class and GCModuleInfo pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the GCFunctionInfo class and GCModuleInfo pass. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCMetadata.h" #include "llvm/CodeGen/GCStrategy.h" diff --git a/lib/CodeGen/GCMetadataPrinter.cpp b/lib/CodeGen/GCMetadataPrinter.cpp index baaeac7271..bb8cfa1cc8 100644 --- a/lib/CodeGen/GCMetadataPrinter.cpp +++ b/lib/CodeGen/GCMetadataPrinter.cpp @@ -1,14 +1,15 @@ //===-- GCMetadataPrinter.cpp - Garbage collection infrastructure ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCMetadataPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the abstract base class GCMetadataPrinter. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the abstract base class GCMetadataPrinter. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCMetadataPrinter.h" using namespace llvm; diff --git a/lib/CodeGen/GCRootLowering.cpp b/lib/CodeGen/GCRootLowering.cpp index ddf389c425..d8edd7e406 100644 --- a/lib/CodeGen/GCRootLowering.cpp +++ b/lib/CodeGen/GCRootLowering.cpp @@ -1,14 +1,15 @@ //===-- GCRootLowering.cpp - Garbage collection infrastructure ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCRootLowering.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the lowering for the gc.root mechanism. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the lowering for the gc.root mechanism. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCMetadata.h" #include "llvm/CodeGen/GCStrategy.h" diff --git a/lib/CodeGen/GCStrategy.cpp b/lib/CodeGen/GCStrategy.cpp index 849e79f12c..554d326942 100644 --- a/lib/CodeGen/GCStrategy.cpp +++ b/lib/CodeGen/GCStrategy.cpp @@ -1,15 +1,16 @@ //===-- GCStrategy.cpp - Garbage Collector Description --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCStrategy.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the policy object GCStrategy which describes the // -// behavior of a given garbage collector. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the policy object GCStrategy which describes the +// behavior of a given garbage collector. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCStrategy.h" diff --git a/lib/CodeGen/GlobalMerge.cpp b/lib/CodeGen/GlobalMerge.cpp index 17c4b5935b..6f9e839408 100644 --- a/lib/CodeGen/GlobalMerge.cpp +++ b/lib/CodeGen/GlobalMerge.cpp @@ -1,65 +1,63 @@ //===-- GlobalMerge.cpp - Internal globals merging -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalMerge.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass merges globals with internal linkage into one. This way all the // -// globals which were merged into a biggest one can be addressed using offsets// -// from the same base pointer (no need for separate base pointer for each of the// -// global). Such a transformation can significantly reduce the register pressure// -// when many globals are involved. // -// // -// For example, consider the code which touches several global variables at // -// once: // -// // -// static int foo[N], bar[N], baz[N]; // -// // -// for (i = 0; i < N; ++i) { // -// foo[i] = bar[i] * baz[i]; // -// } // -// // -// On ARM the addresses of 3 arrays should be kept in the registers, thus // -// this code has quite large register pressure (loop body): // -// // -// ldr r1, [r5], #4 // -// ldr r2, [r6], #4 // -// mul r1, r2, r1 // -// str r1, [r0], #4 // -// // -// Pass converts the code to something like: // -// // -// static struct { // -// int foo[N]; // -// int bar[N]; // -// int baz[N]; // -// } merged; // -// // -// for (i = 0; i < N; ++i) { // -// merged.foo[i] = merged.bar[i] * merged.baz[i]; // -// } // -// // -// and in ARM code this becomes: // -// // -// ldr r0, [r5, #40] // -// ldr r1, [r5, #80] // -// mul r0, r1, r0 // -// str r0, [r5], #4 // -// // -// note that we saved 2 registers here almostly "for free". // -// // -// However, merging globals can have tradeoffs: // -// - it confuses debuggers, tools, and users // -// - it makes linker optimizations less useful (order files, LOHs, ...) // -// - it forces usage of indexed addressing (which isn't necessarily "free") // -// - it can increase register pressure when the uses are disparate enough. // -// // -// We use heuristics to discover the best global grouping we can (cf cl::opts).// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This pass merges globals with internal linkage into one. This way all the +// globals which were merged into a biggest one can be addressed using offsets +// from the same base pointer (no need for separate base pointer for each of the +// global). Such a transformation can significantly reduce the register pressure +// when many globals are involved. +// +// For example, consider the code which touches several global variables at +// once: +// +// static int foo[N], bar[N], baz[N]; +// +// for (i = 0; i < N; ++i) { +// foo[i] = bar[i] * baz[i]; +// } +// +// On ARM the addresses of 3 arrays should be kept in the registers, thus +// this code has quite large register pressure (loop body): +// +// ldr r1, [r5], #4 +// ldr r2, [r6], #4 +// mul r1, r2, r1 +// str r1, [r0], #4 +// +// Pass converts the code to something like: +// +// static struct { +// int foo[N]; +// int bar[N]; +// int baz[N]; +// } merged; +// +// for (i = 0; i < N; ++i) { +// merged.foo[i] = merged.bar[i] * merged.baz[i]; +// } +// +// and in ARM code this becomes: +// +// ldr r0, [r5, #40] +// ldr r1, [r5, #80] +// mul r0, r1, r0 +// str r0, [r5], #4 +// +// note that we saved 2 registers here almostly "for free". +// +// However, merging globals can have tradeoffs: +// - it confuses debuggers, tools, and users +// - it makes linker optimizations less useful (order files, LOHs, ...) +// - it forces usage of indexed addressing (which isn't necessarily "free") +// - it can increase register pressure when the uses are disparate enough. +// +// We use heuristics to discover the best global grouping we can (cf cl::opts). // ===---------------------------------------------------------------------===// -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index b2719cdff1..ee0532bfc6 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -1,14 +1,15 @@ //===-- IfConversion.cpp - Machine code if conversion pass. ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IfConversion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the machine instruction level if-conversion pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the machine instruction level if-conversion pass. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "BranchFolding.h" diff --git a/lib/CodeGen/ImplicitNullChecks.cpp b/lib/CodeGen/ImplicitNullChecks.cpp index c9c3b2e1b5..93e04876a8 100644 --- a/lib/CodeGen/ImplicitNullChecks.cpp +++ b/lib/CodeGen/ImplicitNullChecks.cpp @@ -1,28 +1,29 @@ //===-- ImplicitNullChecks.cpp - Fold null checks into memory accesses ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ImplicitNullChecks.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass turns explicit null checks of the form // -// // -// test %r10, %r10 // -// je throw_npe // -// movl (%r10), %esi // -// ... // -// // -// to // -// // -// faulting_load_op("movl (%r10), %esi", throw_npe) // -// ... // -// // -// With the help of a runtime that understands the .fault_maps section, // -// faulting_load_op branches to throw_npe if executing movl (%r10), %esi incurs// -// a page fault. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass turns explicit null checks of the form +// +// test %r10, %r10 +// je throw_npe +// movl (%r10), %esi +// ... +// +// to +// +// faulting_load_op("movl (%r10), %esi", throw_npe) +// ... +// +// With the help of a runtime that understands the .fault_maps section, +// faulting_load_op branches to throw_npe if executing movl (%r10), %esi incurs +// a page fault. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index 7f0a12b312..9989f233d0 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/lib/CodeGen/InlineSpiller.cpp @@ -1,15 +1,16 @@ //===-------- InlineSpiller.cpp - Insert spills and restores inline -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineSpiller.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The inline spiller modifies the machine function directly instead of // -// inserting spills and restores in VirtRegMap. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The inline spiller modifies the machine function directly instead of +// inserting spills and restores in VirtRegMap. +// +//===----------------------------------------------------------------------===// #include "Spiller.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/CodeGen/InterferenceCache.cpp b/lib/CodeGen/InterferenceCache.cpp index c33601399f..29ed33a7e1 100644 --- a/lib/CodeGen/InterferenceCache.cpp +++ b/lib/CodeGen/InterferenceCache.cpp @@ -1,14 +1,15 @@ //===-- InterferenceCache.cpp - Caching per-block interference ---------*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InterferenceCache.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// InterferenceCache remembers per-block interference in LiveIntervalUnions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// InterferenceCache remembers per-block interference in LiveIntervalUnions. +// +//===----------------------------------------------------------------------===// #include "InterferenceCache.h" #include "llvm/CodeGen/LiveIntervalAnalysis.h" diff --git a/lib/CodeGen/InterferenceCache.h b/lib/CodeGen/InterferenceCache.h index 2ea72eb00c..18aa5c7c5a 100644 --- a/lib/CodeGen/InterferenceCache.h +++ b/lib/CodeGen/InterferenceCache.h @@ -1,15 +1,16 @@ //===-- InterferenceCache.h - Caching per-block interference ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InterferenceCache.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// InterferenceCache remembers per-block interference from LiveIntervalUnions,// -// fixed RegUnit interference, and register masks. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// InterferenceCache remembers per-block interference from LiveIntervalUnions, +// fixed RegUnit interference, and register masks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_INTERFERENCECACHE_H #define LLVM_LIB_CODEGEN_INTERFERENCECACHE_H diff --git a/lib/CodeGen/InterleavedAccessPass.cpp b/lib/CodeGen/InterleavedAccessPass.cpp index 9139ab64f3..53c8adc05d 100644 --- a/lib/CodeGen/InterleavedAccessPass.cpp +++ b/lib/CodeGen/InterleavedAccessPass.cpp @@ -1,40 +1,41 @@ //=----------------------- InterleavedAccessPass.cpp -----------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// InterleavedAccessPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Interleaved Access pass, which identifies // -// interleaved memory accesses and transforms into target specific intrinsics.// -// // -// An interleaved load reads data from memory into several vectors, with // -// DE-interleaving the data on a factor. An interleaved store writes several // -// vectors to memory with RE-interleaving the data on a factor. // -// // -// As interleaved accesses are hard to be identified in CodeGen (mainly because// -// the VECTOR_SHUFFLE DAG node is quite different from the shufflevector IR),// -// we identify and transform them to intrinsics in this pass. So the intrinsics// -// can be easily matched into target specific instructions later in CodeGen. // -// // -// E.g. An interleaved load (Factor = 2): // -// %wide.vec = load <8 x i32>, <8 x i32>* %ptr // -// %v0 = shuffle <8 x i32> %wide.vec, <8 x i32> undef, <0, 2, 4, 6> // -// %v1 = shuffle <8 x i32> %wide.vec, <8 x i32> undef, <1, 3, 5, 7> // -// // -// It could be transformed into a ld2 intrinsic in AArch64 backend or a vld2 // -// intrinsic in ARM backend. // -// // -// E.g. An interleaved store (Factor = 3): // -// %i.vec = shuffle <8 x i32> %v0, <8 x i32> %v1, // -// <0, 4, 8, 1, 5, 9, 2, 6, 10, 3, 7, 11> // -// store <12 x i32> %i.vec, <12 x i32>* %ptr // -// // -// It could be transformed into a st3 intrinsic in AArch64 backend or a vst3 // -// intrinsic in ARM backend. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Interleaved Access pass, which identifies +// interleaved memory accesses and transforms into target specific intrinsics. +// +// An interleaved load reads data from memory into several vectors, with +// DE-interleaving the data on a factor. An interleaved store writes several +// vectors to memory with RE-interleaving the data on a factor. +// +// As interleaved accesses are hard to be identified in CodeGen (mainly because +// the VECTOR_SHUFFLE DAG node is quite different from the shufflevector IR), +// we identify and transform them to intrinsics in this pass. So the intrinsics +// can be easily matched into target specific instructions later in CodeGen. +// +// E.g. An interleaved load (Factor = 2): +// %wide.vec = load <8 x i32>, <8 x i32>* %ptr +// %v0 = shuffle <8 x i32> %wide.vec, <8 x i32> undef, <0, 2, 4, 6> +// %v1 = shuffle <8 x i32> %wide.vec, <8 x i32> undef, <1, 3, 5, 7> +// +// It could be transformed into a ld2 intrinsic in AArch64 backend or a vld2 +// intrinsic in ARM backend. +// +// E.g. An interleaved store (Factor = 3): +// %i.vec = shuffle <8 x i32> %v0, <8 x i32> %v1, +// <0, 4, 8, 1, 5, 9, 2, 6, 10, 3, 7, 11> +// store <12 x i32> %i.vec, <12 x i32>* %ptr +// +// It could be transformed into a st3 intrinsic in AArch64 backend or a vst3 +// intrinsic in ARM backend. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/IR/InstIterator.h" diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index e70590dab8..2c95e9e7d0 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -1,14 +1,15 @@ //===-- IntrinsicLowering.cpp - Intrinsic Lowering default implementation -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicLowering.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the IntrinsicLowering class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the IntrinsicLowering class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/IntrinsicLowering.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/CodeGen/LLVMBuild.txt b/lib/CodeGen/LLVMBuild.txt index 271c8ef8f7..c5754a34d7 100644 --- a/lib/CodeGen/LLVMBuild.txt +++ b/lib/CodeGen/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/CodeGen/LLVMBuild.txt ------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 67f2a91943..37299eb664 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -1,14 +1,15 @@ //===-- LLVMTargetMachine.cpp - Implement the LLVMTargetMachine class -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMTargetMachine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LLVMTargetMachine class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LLVMTargetMachine class. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetMachine.h" #include "llvm/Analysis/Passes.h" diff --git a/lib/CodeGen/LatencyPriorityQueue.cpp b/lib/CodeGen/LatencyPriorityQueue.cpp index d8d3e80de0..43218492ed 100644 --- a/lib/CodeGen/LatencyPriorityQueue.cpp +++ b/lib/CodeGen/LatencyPriorityQueue.cpp @@ -1,16 +1,17 @@ //===---- LatencyPriorityQueue.cpp - A latency-oriented priority queue ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LatencyPriorityQueue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LatencyPriorityQueue class, which is a // -// SchedulingPriorityQueue that schedules using latency information to // -// reduce the length of the critical path through the basic block. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LatencyPriorityQueue class, which is a +// SchedulingPriorityQueue that schedules using latency information to +// reduce the length of the critical path through the basic block. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LatencyPriorityQueue.h" #include "llvm/Support/Debug.h" diff --git a/lib/CodeGen/LexicalScopes.cpp b/lib/CodeGen/LexicalScopes.cpp index cc61131068..be61a20424 100644 --- a/lib/CodeGen/LexicalScopes.cpp +++ b/lib/CodeGen/LexicalScopes.cpp @@ -1,17 +1,18 @@ //===- LexicalScopes.cpp - Collecting lexical scope info ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LexicalScopes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements LexicalScopes analysis. // -// // -// This pass collects lexical scope information and maps machine instructions// -// to respective lexical scopes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements LexicalScopes analysis. +// +// This pass collects lexical scope information and maps machine instructions +// to respective lexical scopes. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LexicalScopes.h" #include "llvm/CodeGen/MachineFunction.h" diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp index 57b859fdb4..1571551345 100644 --- a/lib/CodeGen/LiveDebugVariables.cpp +++ b/lib/CodeGen/LiveDebugVariables.cpp @@ -1,22 +1,23 @@ //===- LiveDebugVariables.cpp - Tracking debug info variables -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveDebugVariables.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveDebugVariables analysis. // -// // -// Remove all DBG_VALUE instructions referencing virtual registers and replace// -// them with a data structure tracking where live user variables are kept - in a// -// virtual register or in a stack slot. // -// // -// Allow the data structure to be updated during register allocation when values// -// are moved between registers and stack slots. Finally emit new DBG_VALUE // -// instructions after register allocation is complete. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveDebugVariables analysis. +// +// Remove all DBG_VALUE instructions referencing virtual registers and replace +// them with a data structure tracking where live user variables are kept - in a +// virtual register or in a stack slot. +// +// Allow the data structure to be updated during register allocation when values +// are moved between registers and stack slots. Finally emit new DBG_VALUE +// instructions after register allocation is complete. +// +//===----------------------------------------------------------------------===// #include "LiveDebugVariables.h" #include "llvm/ADT/IntervalMap.h" diff --git a/lib/CodeGen/LiveDebugVariables.h b/lib/CodeGen/LiveDebugVariables.h index c59d304a8d..694aa1770c 100644 --- a/lib/CodeGen/LiveDebugVariables.h +++ b/lib/CodeGen/LiveDebugVariables.h @@ -1,21 +1,22 @@ //===- LiveDebugVariables.h - Tracking debug info variables ----*- c++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveDebugVariables.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the interface to the LiveDebugVariables analysis. // // -// The analysis removes DBG_VALUE instructions for virtual registers and tracks// -// live user variables in a data structure that can be updated during register// -// allocation. // +// The LLVM Compiler Infrastructure // -// After register allocation new DBG_VALUE instructions are emitted to reflect// -// the new locations of user variables. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// This file provides the interface to the LiveDebugVariables analysis. +// +// The analysis removes DBG_VALUE instructions for virtual registers and tracks +// live user variables in a data structure that can be updated during register +// allocation. +// +// After register allocation new DBG_VALUE instructions are emitted to reflect +// the new locations of user variables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_LIVEDEBUGVARIABLES_H #define LLVM_LIB_CODEGEN_LIVEDEBUGVARIABLES_H diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 8459937b00..d75e4417cb 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -1,21 +1,22 @@ //===-- LiveInterval.cpp - Live Interval Representation -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveInterval.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveRange and LiveInterval classes. Given some // -// numbering of each the machine instructions an interval [i, j) is said to be a// -// live range for register v if there is no instruction with number j' >= j // -// such that v is live at j' and there is no instruction with number i' < i such// -// that v is live at i'. In this implementation ranges can have holes, // -// i.e. a range might look like [1,20), [50,65), [1000,1001). Each // -// individual segment is represented as an instance of LiveRange::Segment, // -// and the whole range is represented as an instance of LiveRange. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveRange and LiveInterval classes. Given some +// numbering of each the machine instructions an interval [i, j) is said to be a +// live range for register v if there is no instruction with number j' >= j +// such that v is live at j' and there is no instruction with number i' < i such +// that v is live at i'. In this implementation ranges can have holes, +// i.e. a range might look like [1,20), [50,65), [1000,1001). Each +// individual segment is represented as an instance of LiveRange::Segment, +// and the whole range is represented as an instance of LiveRange. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveInterval.h" #include "RegisterCoalescer.h" diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 28c95c521a..c00b010e76 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1,18 +1,19 @@ //===-- LiveIntervalAnalysis.cpp - Live Interval Analysis -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveIntervalAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveInterval analysis pass which is used // -// by the Linear Scan Register allocator. This pass linearizes the // -// basic blocks of the function in DFS order and uses the // -// LiveVariables pass to conservatively compute live intervals for // -// each virtual and physical register. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveInterval analysis pass which is used +// by the Linear Scan Register allocator. This pass linearizes the +// basic blocks of the function in DFS order and uses the +// LiveVariables pass to conservatively compute live intervals for +// each virtual and physical register. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveIntervalAnalysis.h" #include "LiveRangeCalc.h" diff --git a/lib/CodeGen/LiveIntervalUnion.cpp b/lib/CodeGen/LiveIntervalUnion.cpp index ca15975fe1..025d99ce78 100644 --- a/lib/CodeGen/LiveIntervalUnion.cpp +++ b/lib/CodeGen/LiveIntervalUnion.cpp @@ -1,16 +1,17 @@ //===-- LiveIntervalUnion.cpp - Live interval union data structure --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveIntervalUnion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// LiveIntervalUnion represents a coalesced set of live intervals. This may be// -// used during coalescing to represent a congruence class, or during register// -// allocation to model liveness of a physical register. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// LiveIntervalUnion represents a coalesced set of live intervals. This may be +// used during coalescing to represent a congruence class, or during register +// allocation to model liveness of a physical register. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveIntervalUnion.h" #include "llvm/ADT/SparseBitVector.h" diff --git a/lib/CodeGen/LivePhysRegs.cpp b/lib/CodeGen/LivePhysRegs.cpp index fb833c81ec..cbd98e3f34 100644 --- a/lib/CodeGen/LivePhysRegs.cpp +++ b/lib/CodeGen/LivePhysRegs.cpp @@ -1,16 +1,17 @@ //===--- LivePhysRegs.cpp - Live Physical Register Set --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LivePhysRegs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LivePhysRegs utility for tracking liveness of // -// physical registers across machine instructions in forward or backward order.// -// A more detailed description can be found in the corresponding header file.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LivePhysRegs utility for tracking liveness of +// physical registers across machine instructions in forward or backward order. +// A more detailed description can be found in the corresponding header file. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LivePhysRegs.h" #include "llvm/CodeGen/MachineFrameInfo.h" diff --git a/lib/CodeGen/LiveRangeCalc.cpp b/lib/CodeGen/LiveRangeCalc.cpp index 8accef07f4..bb2877ae31 100644 --- a/lib/CodeGen/LiveRangeCalc.cpp +++ b/lib/CodeGen/LiveRangeCalc.cpp @@ -1,14 +1,15 @@ //===---- LiveRangeCalc.cpp - Calculate live ranges -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveRangeCalc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the LiveRangeCalc class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the LiveRangeCalc class. +// +//===----------------------------------------------------------------------===// #include "LiveRangeCalc.h" #include "llvm/CodeGen/MachineDominators.h" diff --git a/lib/CodeGen/LiveRangeCalc.h b/lib/CodeGen/LiveRangeCalc.h index 5ce11a9121..34d9953483 100644 --- a/lib/CodeGen/LiveRangeCalc.h +++ b/lib/CodeGen/LiveRangeCalc.h @@ -1,22 +1,23 @@ //===---- LiveRangeCalc.h - Calculate live ranges ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveRangeCalc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The LiveRangeCalc class can be used to compute live ranges from scratch. It// -// caches information about values in the CFG to speed up repeated operations// -// on the same live range. The cache can be shared by non-overlapping live // -// ranges. SplitKit uses that when computing the live range of split products.// // -// A low-level interface is available to clients that know where a variable is// -// live, but don't know which value it has as every point. LiveRangeCalc will// -// propagate values down the dominator tree, and even insert PHI-defs where // -// needed. SplitKit uses this faster interface when possible. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The LiveRangeCalc class can be used to compute live ranges from scratch. It +// caches information about values in the CFG to speed up repeated operations +// on the same live range. The cache can be shared by non-overlapping live +// ranges. SplitKit uses that when computing the live range of split products. +// +// A low-level interface is available to clients that know where a variable is +// live, but don't know which value it has as every point. LiveRangeCalc will +// propagate values down the dominator tree, and even insert PHI-defs where +// needed. SplitKit uses this faster interface when possible. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_LIVERANGECALC_H #define LLVM_LIB_CODEGEN_LIVERANGECALC_H diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp index fdbb20857a..08bbe0c3f3 100644 --- a/lib/CodeGen/LiveRangeEdit.cpp +++ b/lib/CodeGen/LiveRangeEdit.cpp @@ -1,15 +1,15 @@ //===-- LiveRangeEdit.cpp - Basic tools for editing a register live range -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveRangeEdit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The LiveRangeEdit class represents changes done to a virtual register when it// -// is spilled or split. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The LiveRangeEdit class represents changes done to a virtual register when it +// is spilled or split. +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveRangeEdit.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/CodeGen/LiveRegMatrix.cpp b/lib/CodeGen/LiveRegMatrix.cpp index 2e15b537f9..9ea031d38d 100644 --- a/lib/CodeGen/LiveRegMatrix.cpp +++ b/lib/CodeGen/LiveRegMatrix.cpp @@ -1,14 +1,15 @@ //===-- LiveRegMatrix.cpp - Track register interference -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveRegMatrix.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LiveRegMatrix analysis pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LiveRegMatrix analysis pass. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveRegMatrix.h" #include "RegisterCoalescer.h" diff --git a/lib/CodeGen/LiveStackAnalysis.cpp b/lib/CodeGen/LiveStackAnalysis.cpp index 73e704130d..5c9c679e97 100644 --- a/lib/CodeGen/LiveStackAnalysis.cpp +++ b/lib/CodeGen/LiveStackAnalysis.cpp @@ -1,16 +1,17 @@ //===-- LiveStackAnalysis.cpp - Live Stack Slot Analysis ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveStackAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the live stack slot analysis pass. It is analogous to// -// live interval analysis except it's analyzing liveness of stack slots rather// -// than registers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the live stack slot analysis pass. It is analogous to +// live interval analysis except it's analyzing liveness of stack slots rather +// than registers. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveStackAnalysis.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 89faed7bf2..b355393e76 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -1,29 +1,30 @@ //===-- LiveVariables.cpp - Live Variable Analysis for Machine Code -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveVariables.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LiveVariable analysis pass. For each machine // -// instruction in the function, this pass calculates the set of registers that// -// are immediately dead after the instruction (i.e., the instruction calculates// -// the value, but it is never used) and the set of registers that are used by// -// the instruction, but are never used after the instruction (i.e., they are // -// killed). // -// // -// This class computes live variables using a sparse implementation based on // -// the machine code SSA form. This class computes live variable information for// -// each virtual and _register allocatable_ physical register in a function. It// -// uses the dominance properties of SSA form to efficiently compute live // -// variables for virtual registers, and assumes that physical registers are only// -// live within a single basic block (allowing it to do a single local analysis// -// to resolve physical register lifetimes in each basic block). If a physical// -// register is not register allocatable, it is not tracked. This is useful for// -// things like the stack pointer and condition codes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LiveVariable analysis pass. For each machine +// instruction in the function, this pass calculates the set of registers that +// are immediately dead after the instruction (i.e., the instruction calculates +// the value, but it is never used) and the set of registers that are used by +// the instruction, but are never used after the instruction (i.e., they are +// killed). +// +// This class computes live variables using a sparse implementation based on +// the machine code SSA form. This class computes live variable information for +// each virtual and _register allocatable_ physical register in a function. It +// uses the dominance properties of SSA form to efficiently compute live +// variables for virtual registers, and assumes that physical registers are only +// live within a single basic block (allowing it to do a single local analysis +// to resolve physical register lifetimes in each basic block). If a physical +// register is not register allocatable, it is not tracked. This is useful for +// things like the stack pointer and condition codes. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/LiveVariables.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/CodeGen/LocalStackSlotAllocation.cpp b/lib/CodeGen/LocalStackSlotAllocation.cpp index 96b15c1183..837842914b 100644 --- a/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -1,17 +1,18 @@ //===- LocalStackSlotAllocation.cpp - Pre-allocate locals to stack slots --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LocalStackSlotAllocation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass assigns local frame indices to stack slots relative to one another// -// and allocates additional base registers to access them when the target // -// estimates they are likely to be out of range of stack pointer and frame // -// pointer relative addressing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass assigns local frame indices to stack slots relative to one another +// and allocates additional base registers to access them when the target +// estimates they are likely to be out of range of stack pointer and frame +// pointer relative addressing. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/CodeGen/MIRParser/CMakeLists.txt b/lib/CodeGen/MIRParser/CMakeLists.txt index 8a8a099183..7e757f6820 100644 --- a/lib/CodeGen/MIRParser/CMakeLists.txt +++ b/lib/CodeGen/MIRParser/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMMIRParser MILexer.cpp MIParser.cpp diff --git a/lib/CodeGen/MIRParser/LLVMBuild.txt b/lib/CodeGen/MIRParser/LLVMBuild.txt index 45f9beda48..04ae72290f 100644 --- a/lib/CodeGen/MIRParser/LLVMBuild.txt +++ b/lib/CodeGen/MIRParser/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/CodeGen/MIRParser/LLVMBuild.txt --------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/CodeGen/MIRParser/MILexer.cpp b/lib/CodeGen/MIRParser/MILexer.cpp index 255998be0f..482c33ae22 100644 --- a/lib/CodeGen/MIRParser/MILexer.cpp +++ b/lib/CodeGen/MIRParser/MILexer.cpp @@ -1,14 +1,15 @@ //===- MILexer.cpp - Machine instructions lexer implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MILexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the lexing of machine instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the lexing of machine instructions. +// +//===----------------------------------------------------------------------===// #include "MILexer.h" #include "llvm/ADT/StringSwitch.h" diff --git a/lib/CodeGen/MIRParser/MILexer.h b/lib/CodeGen/MIRParser/MILexer.h index 523ad2782f..55460b56e7 100644 --- a/lib/CodeGen/MIRParser/MILexer.h +++ b/lib/CodeGen/MIRParser/MILexer.h @@ -1,15 +1,16 @@ //===- MILexer.h - Lexer for machine instructions -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MILexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the function that lexes the machine instruction source // -// string. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the function that lexes the machine instruction source +// string. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H #define LLVM_LIB_CODEGEN_MIRPARSER_MILEXER_H diff --git a/lib/CodeGen/MIRParser/MIParser.cpp b/lib/CodeGen/MIRParser/MIParser.cpp index 596fd77768..c00011288a 100644 --- a/lib/CodeGen/MIRParser/MIParser.cpp +++ b/lib/CodeGen/MIRParser/MIParser.cpp @@ -1,14 +1,15 @@ //===- MIParser.cpp - Machine instructions parser implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the parsing of machine instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the parsing of machine instructions. +// +//===----------------------------------------------------------------------===// #include "MIParser.h" #include "MILexer.h" diff --git a/lib/CodeGen/MIRParser/MIParser.h b/lib/CodeGen/MIRParser/MIParser.h index 2e802725b4..fca4c4e6f8 100644 --- a/lib/CodeGen/MIRParser/MIParser.h +++ b/lib/CodeGen/MIRParser/MIParser.h @@ -1,14 +1,15 @@ //===- MIParser.h - Machine Instructions Parser ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the function that parses the machine instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the function that parses the machine instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H #define LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H diff --git a/lib/CodeGen/MIRParser/MIRParser.cpp b/lib/CodeGen/MIRParser/MIRParser.cpp index d68a90791d..16b0e16558 100644 --- a/lib/CodeGen/MIRParser/MIRParser.cpp +++ b/lib/CodeGen/MIRParser/MIRParser.cpp @@ -1,15 +1,16 @@ //===- MIRParser.cpp - MIR serialization format parser implementation -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIRParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the class that parses the optional LLVM IR and machine// -// functions that are stored in MIR files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the class that parses the optional LLVM IR and machine +// functions that are stored in MIR files. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MIRParser/MIRParser.h" #include "MIParser.h" diff --git a/lib/CodeGen/MIRPrinter.cpp b/lib/CodeGen/MIRPrinter.cpp index 31666804a2..d5cf924419 100644 --- a/lib/CodeGen/MIRPrinter.cpp +++ b/lib/CodeGen/MIRPrinter.cpp @@ -1,15 +1,16 @@ //===- MIRPrinter.cpp - MIR serialization format printer ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIRPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the class that prints out the LLVM IR and machine // -// functions using the MIR serialization format. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the class that prints out the LLVM IR and machine +// functions using the MIR serialization format. +// +//===----------------------------------------------------------------------===// #include "MIRPrinter.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/CodeGen/MIRPrinter.h b/lib/CodeGen/MIRPrinter.h index 257e082680..16aa9038b6 100644 --- a/lib/CodeGen/MIRPrinter.h +++ b/lib/CodeGen/MIRPrinter.h @@ -1,15 +1,16 @@ //===- MIRPrinter.h - MIR serialization format printer --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIRPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the functions that print out the LLVM IR and the machine// -// functions using the MIR serialization format. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the functions that print out the LLVM IR and the machine +// functions using the MIR serialization format. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_MIRPRINTER_H #define LLVM_LIB_CODEGEN_MIRPRINTER_H diff --git a/lib/CodeGen/MIRPrintingPass.cpp b/lib/CodeGen/MIRPrintingPass.cpp index a143d827ea..13d61e65d7 100644 --- a/lib/CodeGen/MIRPrintingPass.cpp +++ b/lib/CodeGen/MIRPrintingPass.cpp @@ -1,15 +1,16 @@ //===- MIRPrintingPass.cpp - Pass that prints out using the MIR format ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MIRPrintingPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a pass that prints out the LLVM module using the MIR // -// serialization format. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a pass that prints out the LLVM module using the MIR +// serialization format. +// +//===----------------------------------------------------------------------===// #include "MIRPrinter.h" #include "llvm/CodeGen/Passes.h" diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 6f212b21aa..5d3f7ebaed 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/MachineBasicBlock.cpp ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBasicBlock.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Collect the sequence of machine instructions for a basic block. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Collect the sequence of machine instructions for a basic block. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/CodeGen/MachineBlockFrequencyInfo.cpp b/lib/CodeGen/MachineBlockFrequencyInfo.cpp index 10e6365910..9151d99089 100644 --- a/lib/CodeGen/MachineBlockFrequencyInfo.cpp +++ b/lib/CodeGen/MachineBlockFrequencyInfo.cpp @@ -1,14 +1,15 @@ //===- MachineBlockFrequencyInfo.cpp - MBB Frequency Analysis -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBlockFrequencyInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loops should be simplified before this analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loops should be simplified before this analysis. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineBlockFrequencyInfo.h" #include "llvm/Analysis/BlockFrequencyInfoImpl.h" diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp index 3f2319ff6f..2969bad4ff 100644 --- a/lib/CodeGen/MachineBlockPlacement.cpp +++ b/lib/CodeGen/MachineBlockPlacement.cpp @@ -1,28 +1,29 @@ //===-- MachineBlockPlacement.cpp - Basic Block Code Layout optimization --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBlockPlacement.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements basic block placement transformations using the CFG // -// structure and branch probability estimates. // -// // -// The pass strives to preserve the structure of the CFG (that is, retain // -// a topological ordering of basic blocks) in the absence of a *strong* signal// -// to the contrary from probabilities. However, within the CFG structure, it // -// attempts to choose an ordering which favors placing more likely sequences of// -// blocks adjacent to each other. // -// // -// The algorithm works from the inner-most loop within a function outward, and// -// at each stage walks through the basic blocks, trying to coalesce them into// -// sequential chains where allowed by the CFG (or demanded by heavy // -// probabilities). Finally, it walks the blocks in topological order, and the// -// first time it reaches a chain of basic blocks, it schedules them in the // -// function in-order. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements basic block placement transformations using the CFG +// structure and branch probability estimates. +// +// The pass strives to preserve the structure of the CFG (that is, retain +// a topological ordering of basic blocks) in the absence of a *strong* signal +// to the contrary from probabilities. However, within the CFG structure, it +// attempts to choose an ordering which favors placing more likely sequences of +// blocks adjacent to each other. +// +// The algorithm works from the inner-most loop within a function outward, and +// at each stage walks through the basic blocks, trying to coalesce them into +// sequential chains where allowed by the CFG (or demanded by heavy +// probabilities). Finally, it walks the blocks in topological order, and the +// first time it reaches a chain of basic blocks, it schedules them in the +// function in-order. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/MachineBranchProbabilityInfo.cpp b/lib/CodeGen/MachineBranchProbabilityInfo.cpp index 8530186f3d..6fbc2be704 100644 --- a/lib/CodeGen/MachineBranchProbabilityInfo.cpp +++ b/lib/CodeGen/MachineBranchProbabilityInfo.cpp @@ -1,14 +1,15 @@ //===- MachineBranchProbabilityInfo.cpp - Machine Branch Probability Info -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineBranchProbabilityInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This analysis uses probability info stored in Machine Basic Blocks. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This analysis uses probability info stored in Machine Basic Blocks. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineBranchProbabilityInfo.h" #include "llvm/CodeGen/MachineBasicBlock.h" diff --git a/lib/CodeGen/MachineCSE.cpp b/lib/CodeGen/MachineCSE.cpp index 398a188858..87aaaa0834 100644 --- a/lib/CodeGen/MachineCSE.cpp +++ b/lib/CodeGen/MachineCSE.cpp @@ -1,16 +1,17 @@ //===-- MachineCSE.cpp - Machine Common Subexpression Elimination Pass ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineCSE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs global common subexpression elimination on machine // -// instructions using a scoped hash table based value numbering scheme. It // -// must be run while the machine function is still in SSA form. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs global common subexpression elimination on machine +// instructions using a scoped hash table based value numbering scheme. It +// must be run while the machine function is still in SSA form. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/MachineCombiner.cpp b/lib/CodeGen/MachineCombiner.cpp index 924302ae3c..c8037764e1 100644 --- a/lib/CodeGen/MachineCombiner.cpp +++ b/lib/CodeGen/MachineCombiner.cpp @@ -1,13 +1,15 @@ //===---- MachineCombiner.cpp - Instcombining on SSA form machine code ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineCombiner.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The machine combiner pass uses machine trace metrics to ensure the combined// -// instructions does not lengthen the critical path or the resource depth. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The machine combiner pass uses machine trace metrics to ensure the combined +// instructions does not lengthen the critical path or the resource depth. +//===----------------------------------------------------------------------===// #define DEBUG_TYPE "machine-combiner" // // diff --git a/lib/CodeGen/MachineCopyPropagation.cpp b/lib/CodeGen/MachineCopyPropagation.cpp index f358799f46..a686341213 100644 --- a/lib/CodeGen/MachineCopyPropagation.cpp +++ b/lib/CodeGen/MachineCopyPropagation.cpp @@ -1,14 +1,15 @@ //===- MachineCopyPropagation.cpp - Machine Copy Propagation Pass ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineCopyPropagation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is an extremely simple MachineInstr-level copy propagation pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is an extremely simple MachineInstr-level copy propagation pass. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/MachineDominanceFrontier.cpp b/lib/CodeGen/MachineDominanceFrontier.cpp index 694857d999..acb7c4810b 100644 --- a/lib/CodeGen/MachineDominanceFrontier.cpp +++ b/lib/CodeGen/MachineDominanceFrontier.cpp @@ -1,12 +1,11 @@ //===- MachineDominanceFrontier.cpp ---------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineDominanceFrontier.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineDominanceFrontier.h" #include "llvm/Analysis/DominanceFrontierImpl.h" diff --git a/lib/CodeGen/MachineDominators.cpp b/lib/CodeGen/MachineDominators.cpp index 51c767ae03..3f04bb0b53 100644 --- a/lib/CodeGen/MachineDominators.cpp +++ b/lib/CodeGen/MachineDominators.cpp @@ -1,15 +1,16 @@ //===- MachineDominators.cpp - Machine Dominator Calculation --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineDominators.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements simple dominator construction algorithms for finding // -// forward dominators on machine functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements simple dominator construction algorithms for finding +// forward dominators on machine functions. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineDominators.h" #include "llvm/CodeGen/Passes.h" diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 288dd6204d..9856e70eda 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -1,16 +1,17 @@ //===-- MachineFunction.cpp -----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Collect native machine code information for a function. This allows // -// target-specific information about the generated code to be stored with each// -// function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Collect native machine code information for a function. This allows +// target-specific information about the generated code to be stored with each +// function. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineFunction.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/CodeGen/MachineFunctionAnalysis.cpp b/lib/CodeGen/MachineFunctionAnalysis.cpp index cf55a4b09c..338cd1e220 100644 --- a/lib/CodeGen/MachineFunctionAnalysis.cpp +++ b/lib/CodeGen/MachineFunctionAnalysis.cpp @@ -1,14 +1,15 @@ //===-- MachineFunctionAnalysis.cpp ---------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunctionAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the definitions of the MachineFunctionAnalysis members.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the definitions of the MachineFunctionAnalysis members. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineFunctionAnalysis.h" #include "llvm/CodeGen/GCMetadata.h" diff --git a/lib/CodeGen/MachineFunctionPass.cpp b/lib/CodeGen/MachineFunctionPass.cpp index b9d880a711..aaf06a70da 100644 --- a/lib/CodeGen/MachineFunctionPass.cpp +++ b/lib/CodeGen/MachineFunctionPass.cpp @@ -1,14 +1,15 @@ //===-- MachineFunctionPass.cpp -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunctionPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the definitions of the MachineFunctionPass members. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the definitions of the MachineFunctionPass members. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/CodeGen/MachineFunctionPrinterPass.cpp b/lib/CodeGen/MachineFunctionPrinterPass.cpp index 9bae4f3a90..790f5accdb 100644 --- a/lib/CodeGen/MachineFunctionPrinterPass.cpp +++ b/lib/CodeGen/MachineFunctionPrinterPass.cpp @@ -1,14 +1,15 @@ //===-- MachineFunctionPrinterPass.cpp ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineFunctionPrinterPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// MachineFunctionPrinterPass implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// MachineFunctionPrinterPass implementation. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/MachineFunction.h" diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index bf4174ec46..fdc4226ad9 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -1,14 +1,15 @@ //===-- lib/CodeGen/MachineInstr.cpp --------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineInstr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Methods common to all machine instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Methods common to all machine instructions. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineInstr.h" #include "llvm/ADT/FoldingSet.h" diff --git a/lib/CodeGen/MachineInstrBundle.cpp b/lib/CodeGen/MachineInstrBundle.cpp index 4ab14d3a72..cd820ee1ac 100644 --- a/lib/CodeGen/MachineInstrBundle.cpp +++ b/lib/CodeGen/MachineInstrBundle.cpp @@ -1,12 +1,11 @@ //===-- lib/CodeGen/MachineInstrBundle.cpp --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineInstrBundle.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineInstrBundle.h" #include "llvm/ADT/SmallSet.h" diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index 376802d48d..e9ea5ed964 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/lib/CodeGen/MachineLICM.cpp @@ -1,19 +1,20 @@ //===-- MachineLICM.cpp - Machine Loop Invariant Code Motion Pass ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineLICM.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs loop invariant code motion on machine instructions. We // -// attempt to remove as much code from the body of a loop as possible. // -// // -// This pass is not intended to be a replacement or a complete alternative // -// for the LLVM-IR-level LICM pass. It is only designed to hoist simple // -// constructs that are not exposed before lowering and instruction selection.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs loop invariant code motion on machine instructions. We +// attempt to remove as much code from the body of a loop as possible. +// +// This pass is not intended to be a replacement or a complete alternative +// for the LLVM-IR-level LICM pass. It is only designed to hoist simple +// constructs that are not exposed before lowering and instruction selection. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/MachineLoopInfo.cpp b/lib/CodeGen/MachineLoopInfo.cpp index 6c36c2d59c..ce6abdd870 100644 --- a/lib/CodeGen/MachineLoopInfo.cpp +++ b/lib/CodeGen/MachineLoopInfo.cpp @@ -1,17 +1,18 @@ //===- MachineLoopInfo.cpp - Natural Loop Calculator ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineLoopInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachineLoopInfo class that is used to identify natural// -// loops and determine the loop depth of various nodes of the CFG. Note that// -// the loops identified may actually be several natural loops that share the // -// same header node... not just a single natural loop. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MachineLoopInfo class that is used to identify natural +// loops and determine the loop depth of various nodes of the CFG. Note that +// the loops identified may actually be several natural loops that share the +// same header node... not just a single natural loop. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineLoopInfo.h" #include "llvm/Analysis/LoopInfoImpl.h" diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 75b2ad7f5d..6a206249d8 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/MachineModuleInfo.cpp ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineModuleInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/ADT/PointerUnion.h" diff --git a/lib/CodeGen/MachineModuleInfoImpls.cpp b/lib/CodeGen/MachineModuleInfoImpls.cpp index 306bf40c50..ce0f0dc4e0 100644 --- a/lib/CodeGen/MachineModuleInfoImpls.cpp +++ b/lib/CodeGen/MachineModuleInfoImpls.cpp @@ -1,15 +1,16 @@ //===-- llvm/CodeGen/MachineModuleInfoImpls.cpp ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineModuleInfoImpls.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements object-file format specific implementations of // -// MachineModuleInfoImpl. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements object-file format specific implementations of +// MachineModuleInfoImpl. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineModuleInfoImpls.h" #include "llvm/MC/MCSymbol.h" diff --git a/lib/CodeGen/MachinePassRegistry.cpp b/lib/CodeGen/MachinePassRegistry.cpp index 11e0e1d0d5..3ee3e40b27 100644 --- a/lib/CodeGen/MachinePassRegistry.cpp +++ b/lib/CodeGen/MachinePassRegistry.cpp @@ -1,15 +1,16 @@ //===-- CodeGen/MachineInstr.cpp ------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachinePassRegistry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the machine function pass registry for register allocators// -// and instruction schedulers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the machine function pass registry for register allocators +// and instruction schedulers. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachinePassRegistry.h" diff --git a/lib/CodeGen/MachinePostDominators.cpp b/lib/CodeGen/MachinePostDominators.cpp index f6763a376e..c3f6e9249e 100644 --- a/lib/CodeGen/MachinePostDominators.cpp +++ b/lib/CodeGen/MachinePostDominators.cpp @@ -1,15 +1,16 @@ //===- MachinePostDominators.cpp -Machine Post Dominator Calculation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachinePostDominators.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements simple dominator construction algorithms for finding // -// post dominators on machine functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements simple dominator construction algorithms for finding +// post dominators on machine functions. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachinePostDominators.h" diff --git a/lib/CodeGen/MachineRegionInfo.cpp b/lib/CodeGen/MachineRegionInfo.cpp index dfb26bf573..01d2c2eb56 100644 --- a/lib/CodeGen/MachineRegionInfo.cpp +++ b/lib/CodeGen/MachineRegionInfo.cpp @@ -1,12 +1,3 @@ -//===- MachineRegionInfo.cpp ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineRegionInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/CodeGen/MachineRegionInfo.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/CodeGen/MachineRegisterInfo.cpp b/lib/CodeGen/MachineRegisterInfo.cpp index 12ec8eda53..e883ce5231 100644 --- a/lib/CodeGen/MachineRegisterInfo.cpp +++ b/lib/CodeGen/MachineRegisterInfo.cpp @@ -1,14 +1,15 @@ //===-- lib/Codegen/MachineRegisterInfo.cpp -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineRegisterInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the MachineRegisterInfo class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the MachineRegisterInfo class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/MachineInstrBuilder.h" diff --git a/lib/CodeGen/MachineSSAUpdater.cpp b/lib/CodeGen/MachineSSAUpdater.cpp index bdba79a905..71a6ebaba2 100644 --- a/lib/CodeGen/MachineSSAUpdater.cpp +++ b/lib/CodeGen/MachineSSAUpdater.cpp @@ -1,15 +1,16 @@ //===- MachineSSAUpdater.cpp - Unstructured SSA Update Tool ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineSSAUpdater.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MachineSSAUpdater class. It's based on SSAUpdater// -// class in lib/Transforms/Utils. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MachineSSAUpdater class. It's based on SSAUpdater +// class in lib/Transforms/Utils. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineSSAUpdater.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index ebe29e27b7..a48e54caf3 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -1,15 +1,16 @@ //===- MachineScheduler.cpp - Machine Instruction Scheduler ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineScheduler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// MachineScheduler schedules machine instructions after phi elimination. It // -// preserves LiveIntervals so it can be invoked before register allocation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// MachineScheduler schedules machine instructions after phi elimination. It +// preserves LiveIntervals so it can be invoked before register allocation. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineScheduler.h" #include "llvm/ADT/PriorityQueue.h" diff --git a/lib/CodeGen/MachineSink.cpp b/lib/CodeGen/MachineSink.cpp index 7653b3a0ed..1b9be50068 100644 --- a/lib/CodeGen/MachineSink.cpp +++ b/lib/CodeGen/MachineSink.cpp @@ -1,19 +1,20 @@ //===-- MachineSink.cpp - Sinking for machine instructions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineSink.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass moves instructions into successor blocks when possible, so that // -// they aren't executed on paths where their results aren't needed. // -// // -// This pass is not intended to be a replacement or a complete alternative // -// for an LLVM-IR-level sinking pass. It is only designed to sink simple // -// constructs that are not exposed before lowering and instruction selection.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass moves instructions into successor blocks when possible, so that +// they aren't executed on paths where their results aren't needed. +// +// This pass is not intended to be a replacement or a complete alternative +// for an LLVM-IR-level sinking pass. It is only designed to sink simple +// constructs that are not exposed before lowering and instruction selection. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/CodeGen/MachineTraceMetrics.cpp b/lib/CodeGen/MachineTraceMetrics.cpp index 4eb6302ea2..d9a6b68462 100644 --- a/lib/CodeGen/MachineTraceMetrics.cpp +++ b/lib/CodeGen/MachineTraceMetrics.cpp @@ -1,12 +1,11 @@ //===- lib/CodeGen/MachineTraceMetrics.cpp ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineTraceMetrics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineTraceMetrics.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index 2e9750d972..ca35ec5fdc 100644 --- a/lib/CodeGen/MachineVerifier.cpp +++ b/lib/CodeGen/MachineVerifier.cpp @@ -1,27 +1,27 @@ //===-- MachineVerifier.cpp - Machine Code Verifier -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachineVerifier.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Pass to verify generated machine code. The following is checked: // -// // -// Operand counts: All explicit operands must be present. // -// // -// Register classes: All physical and virtual register operands must be // -// compatible with the register class required by the instruction descriptor.// -// // -// Register live intervals: Registers must be defined only once, and must be // -// defined before use. // -// // -// The machine code verifier is enabled from LLVMTargetMachine.cpp with the // -// command-line option -verify-machineinstrs, or by defining the environment // -// variable LLVM_VERIFY_MACHINEINSTRS to the name of a file that will receive// -// the verifier errors. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Pass to verify generated machine code. The following is checked: +// +// Operand counts: All explicit operands must be present. +// +// Register classes: All physical and virtual register operands must be +// compatible with the register class required by the instruction descriptor. +// +// Register live intervals: Registers must be defined only once, and must be +// defined before use. +// +// The machine code verifier is enabled from LLVMTargetMachine.cpp with the +// command-line option -verify-machineinstrs, or by defining the environment +// variable LLVM_VERIFY_MACHINEINSTRS to the name of a file that will receive +// the verifier errors. +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/CodeGen/OcamlGC.cpp b/lib/CodeGen/OcamlGC.cpp index e77f5c6819..17654a6ac3 100644 --- a/lib/CodeGen/OcamlGC.cpp +++ b/lib/CodeGen/OcamlGC.cpp @@ -1,17 +1,18 @@ //===-- OcamlGC.cpp - Ocaml frametable GC strategy ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OcamlGC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements lowering for the llvm.gc* intrinsics compatible with // -// Objective Caml 3.10.0, which uses a liveness-accurate static stack map. // -// // -// The frametable emitter is in OcamlGCPrinter.cpp. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements lowering for the llvm.gc* intrinsics compatible with +// Objective Caml 3.10.0, which uses a liveness-accurate static stack map. +// +// The frametable emitter is in OcamlGCPrinter.cpp. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCs.h" #include "llvm/CodeGen/GCStrategy.h" diff --git a/lib/CodeGen/OptimizePHIs.cpp b/lib/CodeGen/OptimizePHIs.cpp index 14d75bb00f..a1042e720c 100644 --- a/lib/CodeGen/OptimizePHIs.cpp +++ b/lib/CodeGen/OptimizePHIs.cpp @@ -1,15 +1,16 @@ //===-- OptimizePHIs.cpp - Optimize machine instruction PHIs --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptimizePHIs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass optimizes machine instruction PHIs to take advantage of // -// opportunities created during DAG legalization. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass optimizes machine instruction PHIs to take advantage of +// opportunities created during DAG legalization. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp index 87ac2f22a0..d343301800 100644 --- a/lib/CodeGen/PHIElimination.cpp +++ b/lib/CodeGen/PHIElimination.cpp @@ -1,16 +1,17 @@ //===-- PhiElimination.cpp - Eliminate PHI nodes by inserting copies ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PHIElimination.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass eliminates machine instruction PHI nodes by inserting copy // -// instructions. This destroys SSA information, but is the desired input for// -// some register allocators. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass eliminates machine instruction PHI nodes by inserting copy +// instructions. This destroys SSA information, but is the desired input for +// some register allocators. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "PHIEliminationUtils.h" diff --git a/lib/CodeGen/PHIEliminationUtils.cpp b/lib/CodeGen/PHIEliminationUtils.cpp index 7aea0a4eaf..99bbad1cc2 100644 --- a/lib/CodeGen/PHIEliminationUtils.cpp +++ b/lib/CodeGen/PHIEliminationUtils.cpp @@ -1,12 +1,11 @@ //===-- PHIEliminationUtils.cpp - Helper functions for PHI elimination ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PHIEliminationUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "PHIEliminationUtils.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/CodeGen/PHIEliminationUtils.h b/lib/CodeGen/PHIEliminationUtils.h index 6ec4692899..b997d7ac5f 100644 --- a/lib/CodeGen/PHIEliminationUtils.h +++ b/lib/CodeGen/PHIEliminationUtils.h @@ -1,12 +1,11 @@ //=- PHIEliminationUtils.h - Helper functions for PHI elimination -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// PHIEliminationUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H #define LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 9990431909..024d166a49 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -1,17 +1,16 @@ //===-- Passes.cpp - Target independent code generation passes ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Passes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines interfaces to access the target independent code // -// generation passes provided by the LLVM backend. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines interfaces to access the target independent code +// generation passes provided by the LLVM backend. +// //===---------------------------------------------------------------------===// -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/CodeGen/Passes.h" #include "llvm/Analysis/Passes.h" diff --git a/lib/CodeGen/PeepholeOptimizer.cpp b/lib/CodeGen/PeepholeOptimizer.cpp index c00fab4e1d..ebe05e3f27 100644 --- a/lib/CodeGen/PeepholeOptimizer.cpp +++ b/lib/CodeGen/PeepholeOptimizer.cpp @@ -1,70 +1,70 @@ //===-- PeepholeOptimizer.cpp - Peephole Optimizations --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PeepholeOptimizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Perform peephole optimizations on the machine code: // -// // -// - Optimize Extensions // -// // -// Optimization of sign / zero extension instructions. It may be extended to// -// handle other instructions with similar properties. // -// // -// On some targets, some instructions, e.g. X86 sign / zero extension, may// -// leave the source value in the lower part of the result. This optimization// -// will replace some uses of the pre-extension value with uses of the // -// sub-register of the results. // -// // -// - Optimize Comparisons // -// // -// Optimization of comparison instructions. For instance, in this code: // -// // -// sub r1, 1 // -// cmp r1, 0 // -// bz L1 // -// // -// If the "sub" instruction all ready sets (or could be modified to set) the// -// same flag that the "cmp" instruction sets and that "bz" uses, then we can// -// eliminate the "cmp" instruction. // -// // -// Another instance, in this code: // -// // -// sub r1, r3 | sub r1, imm // -// cmp r3, r1 or cmp r1, r3 | cmp r1, imm // -// bge L1 // -// // -// If the branch instruction can use flag from "sub", then we can replace// -// "sub" with "subs" and eliminate the "cmp" instruction. // -// // -// - Optimize Loads: // -// // -// Loads that can be folded into a later instruction. A load is foldable // -// if it loads to virtual registers and the virtual register defined has // -// a single use. // -// // -// - Optimize Copies and Bitcast (more generally, target specific copies): // -// // -// Rewrite copies and bitcasts to avoid cross register bank copies // -// when possible. // -// E.g., Consider the following example, where capital and lower // -// letters denote different register file: // -// b = copy A <-- cross-bank copy // -// C = copy b <-- cross-bank copy // -// => // -// b = copy A <-- cross-bank copy // -// C = copy A <-- same-bank copy // -// // -// E.g., for bitcast: // -// b = bitcast A <-- cross-bank copy // -// C = bitcast b <-- cross-bank copy // -// => // -// b = bitcast A <-- cross-bank copy // -// C = copy A <-- same-bank copy // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Perform peephole optimizations on the machine code: +// +// - Optimize Extensions +// +// Optimization of sign / zero extension instructions. It may be extended to +// handle other instructions with similar properties. +// +// On some targets, some instructions, e.g. X86 sign / zero extension, may +// leave the source value in the lower part of the result. This optimization +// will replace some uses of the pre-extension value with uses of the +// sub-register of the results. +// +// - Optimize Comparisons +// +// Optimization of comparison instructions. For instance, in this code: +// +// sub r1, 1 +// cmp r1, 0 +// bz L1 +// +// If the "sub" instruction all ready sets (or could be modified to set) the +// same flag that the "cmp" instruction sets and that "bz" uses, then we can +// eliminate the "cmp" instruction. +// +// Another instance, in this code: +// +// sub r1, r3 | sub r1, imm +// cmp r3, r1 or cmp r1, r3 | cmp r1, imm +// bge L1 +// +// If the branch instruction can use flag from "sub", then we can replace +// "sub" with "subs" and eliminate the "cmp" instruction. +// +// - Optimize Loads: +// +// Loads that can be folded into a later instruction. A load is foldable +// if it loads to virtual registers and the virtual register defined has +// a single use. +// +// - Optimize Copies and Bitcast (more generally, target specific copies): +// +// Rewrite copies and bitcasts to avoid cross register bank copies +// when possible. +// E.g., Consider the following example, where capital and lower +// letters denote different register file: +// b = copy A <-- cross-bank copy +// C = copy b <-- cross-bank copy +// => +// b = copy A <-- cross-bank copy +// C = copy A <-- same-bank copy +// +// E.g., for bitcast: +// b = bitcast A <-- cross-bank copy +// C = bitcast b <-- cross-bank copy +// => +// b = bitcast A <-- cross-bank copy +// C = copy A <-- same-bank copy +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp index bb649d85cd..6f76116da1 100644 --- a/lib/CodeGen/PostRASchedulerList.cpp +++ b/lib/CodeGen/PostRASchedulerList.cpp @@ -1,21 +1,22 @@ //===----- SchedulePostRAList.cpp - list scheduler ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostRASchedulerList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements a top-down list scheduler, using standard algorithms. // -// The basic approach uses a priority queue of available nodes to schedule. // -// One at a time, nodes are taken from the priority queue (thus in priority // -// order), checked for legality to schedule, and emitted if legal. // -// // -// Nodes may not be legal to schedule either due to structural hazards (e.g. // -// pipeline or resource constraints) or because an input to the instruction has// -// not completed execution. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements a top-down list scheduler, using standard algorithms. +// The basic approach uses a priority queue of available nodes to schedule. +// One at a time, nodes are taken from the priority queue (thus in priority +// order), checked for legality to schedule, and emitted if legal. +// +// Nodes may not be legal to schedule either due to structural hazards (e.g. +// pipeline or resource constraints) or because an input to the instruction has +// not completed execution. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "AggressiveAntiDepBreaker.h" diff --git a/lib/CodeGen/ProcessImplicitDefs.cpp b/lib/CodeGen/ProcessImplicitDefs.cpp index f7f6e98422..5f81949834 100644 --- a/lib/CodeGen/ProcessImplicitDefs.cpp +++ b/lib/CodeGen/ProcessImplicitDefs.cpp @@ -1,12 +1,11 @@ //===---------------------- ProcessImplicitDefs.cpp -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProcessImplicitDefs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SetVector.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 7c0504cc50..6ca69a1242 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -1,19 +1,20 @@ //===-- PrologEpilogInserter.cpp - Insert Prolog/Epilog code in function --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrologEpilogInserter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is responsible for finalizing the functions frame layout, saving// -// callee saved registers, and for emitting prolog & epilog code for the // -// function. // -// // -// This pass must be run after register allocation. After this pass is // -// executed, it is illegal to construct MO_FrameIndex operands. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is responsible for finalizing the functions frame layout, saving +// callee saved registers, and for emitting prolog & epilog code for the +// function. +// +// This pass must be run after register allocation. After this pass is +// executed, it is illegal to construct MO_FrameIndex operands. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IndexedMap.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/CodeGen/PseudoSourceValue.cpp b/lib/CodeGen/PseudoSourceValue.cpp index 8bf3338b13..b1c341d3a6 100644 --- a/lib/CodeGen/PseudoSourceValue.cpp +++ b/lib/CodeGen/PseudoSourceValue.cpp @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/PseudoSourceValue.cpp ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PseudoSourceValue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PseudoSourceValue class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PseudoSourceValue class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/PseudoSourceValue.h" #include "llvm/CodeGen/MachineFrameInfo.h" diff --git a/lib/CodeGen/README.txt b/lib/CodeGen/README.txt index 18000e36ee..e1455ad8ef 100644 --- a/lib/CodeGen/README.txt +++ b/lib/CodeGen/README.txt @@ -1,5 +1,4 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. +//===---------------------------------------------------------------------===// //===---------------------------------------------------------------------===// Common register allocation / spilling problem: diff --git a/lib/CodeGen/RegAllocBase.cpp b/lib/CodeGen/RegAllocBase.cpp index 625a9832b0..16ff48e78a 100644 --- a/lib/CodeGen/RegAllocBase.cpp +++ b/lib/CodeGen/RegAllocBase.cpp @@ -1,15 +1,16 @@ //===-- RegAllocBase.cpp - Register Allocator Base Class ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocBase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RegAllocBase class which provides common functionality// -// for LiveIntervalUnion-based register allocators. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RegAllocBase class which provides common functionality +// for LiveIntervalUnion-based register allocators. +// +//===----------------------------------------------------------------------===// #include "RegAllocBase.h" #include "Spiller.h" diff --git a/lib/CodeGen/RegAllocBase.h b/lib/CodeGen/RegAllocBase.h index dbb6a02e24..659b8f505a 100644 --- a/lib/CodeGen/RegAllocBase.h +++ b/lib/CodeGen/RegAllocBase.h @@ -1,37 +1,38 @@ //===-- RegAllocBase.h - basic regalloc interface and driver --*- C++ -*---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocBase.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RegAllocBase class, which is the skeleton of a basic// -// register allocation algorithm and interface for extending it. It provides the// -// building blocks on which to construct other experimental allocators and test// -// the validity of two principles: // // -// - If virtual and physical register liveness is modeled using intervals, then// -// on-the-fly interference checking is cheap. Furthermore, interferences can be// -// lazily cached and reused. // +// The LLVM Compiler Infrastructure // -// - Register allocation complexity, and generated code performance is // -// determined by the effectiveness of live range splitting rather than optimal// -// coloring. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// Following the first principle, interfering checking revolves around the // -// LiveIntervalUnion data structure. // +//===----------------------------------------------------------------------===// // -// To fulfill the second principle, the basic allocator provides a driver for// -// incremental splitting. It essentially punts on the problem of register // -// coloring, instead driving the assignment of virtual to physical registers by// -// the cost of splitting. The basic allocator allows for heuristic reassignment// -// of registers, if a more sophisticated allocator chooses to do that. // +// This file defines the RegAllocBase class, which is the skeleton of a basic +// register allocation algorithm and interface for extending it. It provides the +// building blocks on which to construct other experimental allocators and test +// the validity of two principles: // -// This framework provides a way to engineer the compile time vs. code // -// quality trade-off without relying on a particular theoretical solver. // +// - If virtual and physical register liveness is modeled using intervals, then +// on-the-fly interference checking is cheap. Furthermore, interferences can be +// lazily cached and reused. // -/////////////////////////////////////////////////////////////////////////////// +// - Register allocation complexity, and generated code performance is +// determined by the effectiveness of live range splitting rather than optimal +// coloring. +// +// Following the first principle, interfering checking revolves around the +// LiveIntervalUnion data structure. +// +// To fulfill the second principle, the basic allocator provides a driver for +// incremental splitting. It essentially punts on the problem of register +// coloring, instead driving the assignment of virtual to physical registers by +// the cost of splitting. The basic allocator allows for heuristic reassignment +// of registers, if a more sophisticated allocator chooses to do that. +// +// This framework provides a way to engineer the compile time vs. code +// quality trade-off without relying on a particular theoretical solver. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_REGALLOCBASE_H #define LLVM_LIB_CODEGEN_REGALLOCBASE_H diff --git a/lib/CodeGen/RegAllocBasic.cpp b/lib/CodeGen/RegAllocBasic.cpp index 6d58e9a3cf..0090332a81 100644 --- a/lib/CodeGen/RegAllocBasic.cpp +++ b/lib/CodeGen/RegAllocBasic.cpp @@ -1,15 +1,16 @@ //===-- RegAllocBasic.cpp - Basic Register Allocator ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocBasic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RABasic function pass, which provides a minimal // -// implementation of the basic register allocator. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RABasic function pass, which provides a minimal +// implementation of the basic register allocator. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "AllocationOrder.h" diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index 499d936639..a16ad0c958 100644 --- a/lib/CodeGen/RegAllocFast.cpp +++ b/lib/CodeGen/RegAllocFast.cpp @@ -1,15 +1,16 @@ //===-- RegAllocFast.cpp - A fast register allocator for debug code -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocFast.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This register allocator allocates registers to a basic block at a time, // -// attempting to keep values in registers and reusing registers as appropriate.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This register allocator allocates registers to a basic block at a time, +// attempting to keep values in registers and reusing registers as appropriate. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index b629624dcd..f862a8b1ef 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -1,15 +1,16 @@ //===-- RegAllocGreedy.cpp - greedy register allocator --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocGreedy.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RAGreedy function pass for register allocation in // -// optimized builds. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RAGreedy function pass for register allocation in +// optimized builds. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "AllocationOrder.h" diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 5970369104..eeff73d0f2 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -1,32 +1,33 @@ //===------ RegAllocPBQP.cpp ---- PBQP Register Allocator -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegAllocPBQP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a Partitioned Boolean Quadratic Programming (PBQP) based// -// register allocator for LLVM. This allocator works by constructing a PBQP // -// problem representing the register allocation problem under consideration, // -// solving this using a PBQP solver, and mapping the solution back to a // -// register assignment. If any variables are selected for spilling then spill// -// code is inserted and the process repeated. // -// // -// The PBQP solver (pbqp.c) provided for this allocator uses a heuristic tuned// -// for register allocation. For more information on PBQP for register // -// allocation, see the following papers: // -// // -// (1) Hames, L. and Scholz, B. 2006. Nearly optimal register allocation with// -// PBQP. In Proceedings of the 7th Joint Modular Languages Conference // -// (JMLC'06). LNCS, vol. 4228. Springer, New York, NY, USA. 346-361. // -// // -// (2) Scholz, B., Eckstein, E. 2002. Register allocation for irregular // -// architectures. In Proceedings of the Joint Conference on Languages, // -// Compilers and Tools for Embedded Systems (LCTES'02), ACM Press, New York,// -// NY, USA, 139-148. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a Partitioned Boolean Quadratic Programming (PBQP) based +// register allocator for LLVM. This allocator works by constructing a PBQP +// problem representing the register allocation problem under consideration, +// solving this using a PBQP solver, and mapping the solution back to a +// register assignment. If any variables are selected for spilling then spill +// code is inserted and the process repeated. +// +// The PBQP solver (pbqp.c) provided for this allocator uses a heuristic tuned +// for register allocation. For more information on PBQP for register +// allocation, see the following papers: +// +// (1) Hames, L. and Scholz, B. 2006. Nearly optimal register allocation with +// PBQP. In Proceedings of the 7th Joint Modular Languages Conference +// (JMLC'06). LNCS, vol. 4228. Springer, New York, NY, USA. 346-361. +// +// (2) Scholz, B., Eckstein, E. 2002. Register allocation for irregular +// architectures. In Proceedings of the Joint Conference on Languages, +// Compilers and Tools for Embedded Systems (LCTES'02), ACM Press, New York, +// NY, USA, 139-148. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/RegAllocPBQP.h" #include "RegisterCoalescer.h" diff --git a/lib/CodeGen/RegisterClassInfo.cpp b/lib/CodeGen/RegisterClassInfo.cpp index d890876839..178fa18ac5 100644 --- a/lib/CodeGen/RegisterClassInfo.cpp +++ b/lib/CodeGen/RegisterClassInfo.cpp @@ -1,17 +1,18 @@ //===-- RegisterClassInfo.cpp - Dynamic Register Class Info ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterClassInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the RegisterClassInfo class which provides dynamic // -// information about target register classes. Callee-saved vs. caller-saved and// -// reserved registers depend on calling conventions and other dynamic // -// information, so some things cannot be determined statically. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the RegisterClassInfo class which provides dynamic +// information about target register classes. Callee-saved vs. caller-saved and +// reserved registers depend on calling conventions and other dynamic +// information, so some things cannot be determined statically. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/RegisterClassInfo.h" #include "llvm/CodeGen/MachineFunction.h" diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index 100832a289..11ec87f06d 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -1,16 +1,17 @@ //===- RegisterCoalescer.cpp - Generic Register Coalescing Interface -------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterCoalescer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the generic RegisterCoalescer interface which // -// is used as the common interface used by all clients and // -// implementations of register coalescing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the generic RegisterCoalescer interface which +// is used as the common interface used by all clients and +// implementations of register coalescing. +// +//===----------------------------------------------------------------------===// #include "RegisterCoalescer.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/CodeGen/RegisterCoalescer.h b/lib/CodeGen/RegisterCoalescer.h index 7fd4ea69a9..04067a1427 100644 --- a/lib/CodeGen/RegisterCoalescer.h +++ b/lib/CodeGen/RegisterCoalescer.h @@ -1,15 +1,16 @@ //===-- RegisterCoalescer.h - Register Coalescing Interface -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterCoalescer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the abstract interface for register coalescers, // -// allowing them to interact with and query register allocators. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the abstract interface for register coalescers, +// allowing them to interact with and query register allocators. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_REGISTERCOALESCER_H #define LLVM_LIB_CODEGEN_REGISTERCOALESCER_H diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp index 471a253e0e..21896c01ff 100644 --- a/lib/CodeGen/RegisterPressure.cpp +++ b/lib/CodeGen/RegisterPressure.cpp @@ -1,15 +1,16 @@ //===-- RegisterPressure.cpp - Dynamic Register Pressure ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterPressure.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the RegisterPressure class which can be used to track// -// MachineInstr level register pressure. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the RegisterPressure class which can be used to track +// MachineInstr level register pressure. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/RegisterPressure.h" #include "llvm/CodeGen/LiveInterval.h" diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp index f47db4a9a3..4176686d1f 100644 --- a/lib/CodeGen/RegisterScavenging.cpp +++ b/lib/CodeGen/RegisterScavenging.cpp @@ -1,17 +1,18 @@ //===-- RegisterScavenging.cpp - Machine register scavenging --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterScavenging.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the machine register scavenger. It can provide // -// information, such as unused registers, at any point in a machine basic block.// -// It also provides a mechanism to make registers available by evicting them to// -// spill slots. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the machine register scavenger. It can provide +// information, such as unused registers, at any point in a machine basic block. +// It also provides a mechanism to make registers available by evicting them to +// spill slots. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/RegisterScavenging.h" #include "llvm/CodeGen/MachineBasicBlock.h" diff --git a/lib/CodeGen/ScheduleDAG.cpp b/lib/CodeGen/ScheduleDAG.cpp index 643d8d5f63..76a7fef58f 100644 --- a/lib/CodeGen/ScheduleDAG.cpp +++ b/lib/CodeGen/ScheduleDAG.cpp @@ -1,15 +1,16 @@ //===---- ScheduleDAG.cpp - Implement the ScheduleDAG class ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the ScheduleDAG class, which is a base class used by // -// scheduling implementation classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the ScheduleDAG class, which is a base class used by +// scheduling implementation classes. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/CodeGen/ScheduleHazardRecognizer.h" diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index 228c305dbb..390b6d2595 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -1,15 +1,16 @@ //===---- ScheduleDAGInstrs.cpp - MachineInstr Rescheduling ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGInstrs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the ScheduleDAGInstrs class, which implements re-scheduling// -// of MachineInstrs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the ScheduleDAGInstrs class, which implements re-scheduling +// of MachineInstrs. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/ScheduleDAGInstrs.h" #include "llvm/ADT/MapVector.h" diff --git a/lib/CodeGen/ScheduleDAGPrinter.cpp b/lib/CodeGen/ScheduleDAGPrinter.cpp index 6094d63245..b2e4617720 100644 --- a/lib/CodeGen/ScheduleDAGPrinter.cpp +++ b/lib/CodeGen/ScheduleDAGPrinter.cpp @@ -1,14 +1,15 @@ //===-- ScheduleDAGPrinter.cpp - Implement ScheduleDAG::viewGraph() -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the ScheduleDAG::viewGraph method. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the ScheduleDAG::viewGraph method. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/CodeGen/ScoreboardHazardRecognizer.cpp b/lib/CodeGen/ScoreboardHazardRecognizer.cpp index 67ab66a873..38833a4165 100644 --- a/lib/CodeGen/ScoreboardHazardRecognizer.cpp +++ b/lib/CodeGen/ScoreboardHazardRecognizer.cpp @@ -1,16 +1,17 @@ //===----- ScoreboardHazardRecognizer.cpp - Scheduler Support -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScoreboardHazardRecognizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ScoreboardHazardRecognizer class, which // -// encapsultes hazard-avoidance heuristics for scheduling, based on the // -// scheduling itineraries specified for the target. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ScoreboardHazardRecognizer class, which +// encapsultes hazard-avoidance heuristics for scheduling, based on the +// scheduling itineraries specified for the target. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/ScoreboardHazardRecognizer.h" #include "llvm/CodeGen/ScheduleDAG.h" diff --git a/lib/CodeGen/SelectionDAG/CMakeLists.txt b/lib/CodeGen/SelectionDAG/CMakeLists.txt index 96f60131a4..c4059fa232 100644 --- a/lib/CodeGen/SelectionDAG/CMakeLists.txt +++ b/lib/CodeGen/SelectionDAG/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_OPTIONAL_SOURCES legalizevectorops.cpp) # HLSL Change - ignore file add_llvm_library(LLVMSelectionDAG diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 2a508a5d40..3b29306bb5 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1,19 +1,20 @@ //===-- DAGCombiner.cpp - Implement a DAG node combiner -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGCombiner.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass combines dag nodes to form fewer, simpler DAG nodes. It can be run// -// both before and after the DAG is legalized. // -// // -// This pass is not a substitute for the LLVM IR instcombine pass. This pass is// -// primarily intended to handle simplification opportunities that are implicit// -// in the LLVM IR and exposed by the various codegen lowering phases. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass combines dag nodes to form fewer, simpler DAG nodes. It can be run +// both before and after the DAG is legalized. +// +// This pass is not a substitute for the LLVM IR instcombine pass. This pass is +// primarily intended to handle simplification opportunities that are implicit +// in the LLVM IR and exposed by the various codegen lowering phases. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 5759d26197..2b9ba2c1b5 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -1,42 +1,43 @@ //===-- FastISel.cpp - Implementation of the FastISel class ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FastISel.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation of the FastISel class. // -// // -// "Fast" instruction selection is designed to emit very poor code quickly. // -// Also, it is not designed to be able to do much lowering, so most illegal // -// types (e.g. i64 on 32-bit targets) and operations are not supported. It is// -// also not intended to be able to do much optimization, except in a few cases// -// where doing optimizations reduces overall compile time. For example, folding// -// constants into immediate fields is often done, because it's cheap and it // -// reduces the number of instructions later phases have to examine. // -// // -// "Fast" instruction selection is able to fail gracefully and transfer // -// control to the SelectionDAG selector for operations that it doesn't // -// support. In many cases, this allows us to avoid duplicating a lot of // -// the complicated lowering logic that SelectionDAG currently has. // -// // -// The intended use for "fast" instruction selection is "-O0" mode // -// compilation, where the quality of the generated code is irrelevant when // -// weighed against the speed at which the code can be generated. Also, // -// at -O0, the LLVM optimizers are not running, and this makes the // -// compile time of codegen a much higher portion of the overall compile // -// time. Despite its limitations, "fast" instruction selection is able to // -// handle enough code on its own to provide noticeable overall speedups // -// in -O0 compiles. // -// // -// Basic operations are supported in a target-independent way, by reading // -// the same instruction descriptions that the SelectionDAG selector reads, // -// and identifying simple arithmetic operations that can be directly selected// -// from simple operators. More complicated operations currently require // -// target-specific code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation of the FastISel class. +// +// "Fast" instruction selection is designed to emit very poor code quickly. +// Also, it is not designed to be able to do much lowering, so most illegal +// types (e.g. i64 on 32-bit targets) and operations are not supported. It is +// also not intended to be able to do much optimization, except in a few cases +// where doing optimizations reduces overall compile time. For example, folding +// constants into immediate fields is often done, because it's cheap and it +// reduces the number of instructions later phases have to examine. +// +// "Fast" instruction selection is able to fail gracefully and transfer +// control to the SelectionDAG selector for operations that it doesn't +// support. In many cases, this allows us to avoid duplicating a lot of +// the complicated lowering logic that SelectionDAG currently has. +// +// The intended use for "fast" instruction selection is "-O0" mode +// compilation, where the quality of the generated code is irrelevant when +// weighed against the speed at which the code can be generated. Also, +// at -O0, the LLVM optimizers are not running, and this makes the +// compile time of codegen a much higher portion of the overall compile +// time. Despite its limitations, "fast" instruction selection is able to +// handle enough code on its own to provide noticeable overall speedups +// in -O0 compiles. +// +// Basic operations are supported in a target-independent way, by reading +// the same instruction descriptions that the SelectionDAG selector reads, +// and identifying simple arithmetic operations that can be directly selected +// from simple operators. More complicated operations currently require +// target-specific code. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Analysis.h" #include "llvm/ADT/Optional.h" diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 122cd9ac81..cc306cbf5a 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -1,15 +1,16 @@ //===-- FunctionLoweringInfo.cpp ------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionLoweringInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements routines for translating functions from LLVM IR into // -// Machine IR. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements routines for translating functions from LLVM IR into +// Machine IR. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/FunctionLoweringInfo.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index 0e0a991904..5ec10308dc 100644 --- a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp @@ -1,16 +1,17 @@ //==--- InstrEmitter.cpp - Emit MachineInstrs for the SelectionDAG class ---==// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the Emit routines for the SelectionDAG class, which creates// -// MachineInstrs based on the decisions of the SelectionDAG instruction // -// selection. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the Emit routines for the SelectionDAG class, which creates +// MachineInstrs based on the decisions of the SelectionDAG instruction +// selection. +// +//===----------------------------------------------------------------------===// #include "InstrEmitter.h" #include "SDNodeDbgValue.h" diff --git a/lib/CodeGen/SelectionDAG/InstrEmitter.h b/lib/CodeGen/SelectionDAG/InstrEmitter.h index 12ea118848..3b24d93c74 100644 --- a/lib/CodeGen/SelectionDAG/InstrEmitter.h +++ b/lib/CodeGen/SelectionDAG/InstrEmitter.h @@ -1,16 +1,17 @@ //===- InstrEmitter.h - Emit MachineInstrs for the SelectionDAG -*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrEmitter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This declares the Emit routines for the SelectionDAG class, which creates // -// MachineInstrs based on the decisions of the SelectionDAG instruction // -// selection. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This declares the Emit routines for the SelectionDAG class, which creates +// MachineInstrs based on the decisions of the SelectionDAG instruction +// selection. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SELECTIONDAG_INSTREMITTER_H #define LLVM_LIB_CODEGEN_SELECTIONDAG_INSTREMITTER_H diff --git a/lib/CodeGen/SelectionDAG/LLVMBuild.txt b/lib/CodeGen/SelectionDAG/LLVMBuild.txt index 3328241162..2284aaacf4 100644 --- a/lib/CodeGen/SelectionDAG/LLVMBuild.txt +++ b/lib/CodeGen/SelectionDAG/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/CodeGen/SelectionDAG/LLVMBuild.txt -----------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 80a8b7527b..21ab07234c 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1,14 +1,15 @@ //===-- LegalizeDAG.cpp - Implement SelectionDAG::Legalize ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeDAG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SelectionDAG::Legalize method. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SelectionDAG::Legalize method. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index 21a3861a4e..3c50a41557 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -1,22 +1,23 @@ //===-------- LegalizeFloatTypes.cpp - Legalization of float types --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeFloatTypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements float type expansion and softening for LegalizeTypes.// -// Softening is the act of turning a computation in an illegal floating point// -// type into a computation in an integer type of the same size; also known as// -// "soft float". For example, turning f32 arithmetic into operations using i32.// -// The resulting integer value is the same as what you would get by performing// -// the floating point operation and bitcasting the result to the integer type.// -// Expansion is the act of changing a computation in an illegal type to be a // -// computation in two identical registers of a smaller type. For example, // -// implementing ppcf128 arithmetic in two f64 registers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements float type expansion and softening for LegalizeTypes. +// Softening is the act of turning a computation in an illegal floating point +// type into a computation in an integer type of the same size; also known as +// "soft float". For example, turning f32 arithmetic into operations using i32. +// The resulting integer value is the same as what you would get by performing +// the floating point operation and bitcasting the result to the integer type. +// Expansion is the act of changing a computation in an illegal type to be a +// computation in two identical registers of a smaller type. For example, +// implementing ppcf128 arithmetic in two f64 registers. +// +//===----------------------------------------------------------------------===// #include "LegalizeTypes.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index a563ef18a0..9f060a09a0 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -1,21 +1,22 @@ //===----- LegalizeIntegerTypes.cpp - Legalization of integer types -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeIntegerTypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements integer type expansion and promotion for LegalizeTypes.// -// Promotion is the act of changing a computation in an illegal type into a // -// computation in a larger type. For example, implementing i8 arithmetic in an// -// i32 register (often needed on powerpc). // -// Expansion is the act of changing a computation in an illegal type into a // -// computation in two identical registers of a smaller type. For example, // -// implementing i64 arithmetic in two i32 registers (often needed on 32-bit // -// targets). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements integer type expansion and promotion for LegalizeTypes. +// Promotion is the act of changing a computation in an illegal type into a +// computation in a larger type. For example, implementing i8 arithmetic in an +// i32 register (often needed on powerpc). +// Expansion is the act of changing a computation in an illegal type into a +// computation in two identical registers of a smaller type. For example, +// implementing i64 arithmetic in two i32 registers (often needed on 32-bit +// targets). +// +//===----------------------------------------------------------------------===// #include "LegalizeTypes.h" #include "llvm/IR/DerivedTypes.h" diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index b08d7558d1..a7392fabf1 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -1,16 +1,17 @@ //===-- LegalizeTypes.cpp - Common code for DAG type legalizer ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeTypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SelectionDAG::LegalizeTypes method. It transforms// -// an arbitrary well-formed SelectionDAG to only consist of legal types. This// -// is common code shared among the LegalizeTypes*.cpp files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SelectionDAG::LegalizeTypes method. It transforms +// an arbitrary well-formed SelectionDAG to only consist of legal types. This +// is common code shared among the LegalizeTypes*.cpp files. +// +//===----------------------------------------------------------------------===// #include "LegalizeTypes.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/lib/CodeGen/SelectionDAG/LegalizeTypes.h index 10876c5467..449147f754 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.h +++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.h @@ -1,14 +1,15 @@ //===-- LegalizeTypes.h - DAG Type Legalizer class definition ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DAGTypeLegalizer class. This is a private interface// -// shared between the code that implements the SelectionDAG::LegalizeTypes // -// method. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DAGTypeLegalizer class. This is a private interface +// shared between the code that implements the SelectionDAG::LegalizeTypes +// method. // //===----------------------------------------------------------------------===// diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp index f81e5669a7..14d8f77620 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp @@ -1,22 +1,23 @@ //===-------- LegalizeTypesGeneric.cpp - Generic type legalization --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeTypesGeneric.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements generic type expansion and splitting for LegalizeTypes.// -// The routines here perform legalization when the details of the type (such as// -// whether it is an integer or a float) do not matter. // -// Expansion is the act of changing a computation in an illegal type to be a // -// computation in two identical registers of a smaller type. The Lo/Hi part // -// is required to be stored first in memory on little/big-endian machines. // -// Splitting is the act of changing a computation in an illegal type to be a // -// computation in two not necessarily identical registers of a smaller type. // -// There are no requirements on how the type is represented in memory. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements generic type expansion and splitting for LegalizeTypes. +// The routines here perform legalization when the details of the type (such as +// whether it is an integer or a float) do not matter. +// Expansion is the act of changing a computation in an illegal type to be a +// computation in two identical registers of a smaller type. The Lo/Hi part +// is required to be stored first in memory on little/big-endian machines. +// Splitting is the act of changing a computation in an illegal type to be a +// computation in two not necessarily identical registers of a smaller type. +// There are no requirements on how the type is represented in memory. +// +//===----------------------------------------------------------------------===// #include "LegalizeTypes.h" #include "llvm/IR/DataLayout.h" diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index f95d3d049b..4348ab79f7 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -1,23 +1,24 @@ //===------- LegalizeVectorTypes.cpp - Legalization of vector types -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegalizeVectorTypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file performs vector type splitting and scalarization for LegalizeTypes.// -// Scalarization is the act of changing a computation in an illegal one-element// -// vector type to be a computation in its scalar element type. For example, // -// implementing <1 x f32> arithmetic in a scalar f32 register. This is needed// -// as a base case when scalarizing vector arithmetic like <4 x f32>, which // -// eventually decomposes to scalars if the target doesn't support v4f32 or v2f32// -// types. // -// Splitting is the act of changing a computation in an invalid vector type to// -// be a computation in two vectors of half the size. For example, implementing// -// <128 x f32> operations in terms of two <64 x f32> operations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file performs vector type splitting and scalarization for LegalizeTypes. +// Scalarization is the act of changing a computation in an illegal one-element +// vector type to be a computation in its scalar element type. For example, +// implementing <1 x f32> arithmetic in a scalar f32 register. This is needed +// as a base case when scalarizing vector arithmetic like <4 x f32>, which +// eventually decomposes to scalars if the target doesn't support v4f32 or v2f32 +// types. +// Splitting is the act of changing a computation in an invalid vector type to +// be a computation in two vectors of half the size. For example, implementing +// <128 x f32> operations in terms of two <64 x f32> operations. +// +//===----------------------------------------------------------------------===// #include "LegalizeTypes.h" #include "llvm/IR/DataLayout.h" diff --git a/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp b/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp index 9110d5c492..6303422b9a 100644 --- a/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp +++ b/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp @@ -1,22 +1,23 @@ //===- ResourcePriorityQueue.cpp - A DFA-oriented priority queue -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ResourcePriorityQueue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ResourcePriorityQueue class, which is a // -// SchedulingPriorityQueue that prioritizes instructions using DFA state to // -// reduce the length of the critical path through the basic block // -// on VLIW platforms. // -// The scheduler is basically a top-down adaptable list scheduler with DFA // -// resource tracking added to the cost function. // -// DFA is queried as a state machine to model "packets/bundles" during // -// schedule. Currently packets/bundles are discarded at the end of // -// scheduling, affecting only order of instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ResourcePriorityQueue class, which is a +// SchedulingPriorityQueue that prioritizes instructions using DFA state to +// reduce the length of the critical path through the basic block +// on VLIW platforms. +// The scheduler is basically a top-down adaptable list scheduler with DFA +// resource tracking added to the cost function. +// DFA is queried as a state machine to model "packets/bundles" during +// schedule. Currently packets/bundles are discarded at the end of +// scheduling, affecting only order of instructions. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/ResourcePriorityQueue.h" #include "llvm/CodeGen/MachineInstr.h" diff --git a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h index 28baf4bf0a..c27f8de601 100644 --- a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h +++ b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h @@ -1,14 +1,15 @@ //===-- llvm/CodeGen/SDNodeDbgValue.h - SelectionDAG dbg_value --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SDNodeDbgValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the SDDbgValue class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SDDbgValue class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SELECTIONDAG_SDNODEDBGVALUE_H #define LLVM_LIB_CODEGEN_SELECTIONDAG_SDNODEDBGVALUE_H diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index 95e8779b3b..34e1a70010 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -1,14 +1,15 @@ //===----- ScheduleDAGFast.cpp - Fast poor list scheduler -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGFast.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements a fast scheduler. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements a fast scheduler. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SchedulerRegistry.h" #include "InstrEmitter.h" diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 7e343263fe..e9bd52034f 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1,18 +1,19 @@ //===----- ScheduleDAGRRList.cpp - Reg pressure reduction list scheduler --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGRRList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements bottom-up and top-down register pressure reduction list // -// schedulers, using standard algorithms. The basic approach uses a priority// -// queue of available nodes to schedule. One at a time, nodes are taken from// -// the priority queue (thus in priority order), checked for legality to // -// schedule, and emitted if legal. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements bottom-up and top-down register pressure reduction list +// schedulers, using standard algorithms. The basic approach uses a priority +// queue of available nodes to schedule. One at a time, nodes are taken from +// the priority queue (thus in priority order), checked for legality to +// schedule, and emitted if legal. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SchedulerRegistry.h" #include "ScheduleDAGSDNodes.h" diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp index 5a73b63a69..2a6c853a1d 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp @@ -1,15 +1,16 @@ //===--- ScheduleDAGSDNodes.cpp - Implement the ScheduleDAGSDNodes class --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGSDNodes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the ScheduleDAG class, which is a base class used by // -// scheduling implementation classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the ScheduleDAG class, which is a base class used by +// scheduling implementation classes. +// +//===----------------------------------------------------------------------===// #include "ScheduleDAGSDNodes.h" #include "InstrEmitter.h" diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h index 9350b15842..159c28cd2a 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h @@ -1,15 +1,16 @@ //===---- ScheduleDAGSDNodes.h - SDNode Scheduling --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGSDNodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ScheduleDAGSDNodes class, which implements // -// scheduling for an SDNode-based dependency graph. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ScheduleDAGSDNodes class, which implements +// scheduling for an SDNode-based dependency graph. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SELECTIONDAG_SCHEDULEDAGSDNODES_H #define LLVM_LIB_CODEGEN_SELECTIONDAG_SCHEDULEDAGSDNODES_H diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp index a7c086de85..eee4a4b067 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp @@ -1,21 +1,22 @@ //===- ScheduleDAGVLIW.cpp - SelectionDAG list scheduler for VLIW -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScheduleDAGVLIW.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements a top-down list scheduler, using standard algorithms. // -// The basic approach uses a priority queue of available nodes to schedule. // -// One at a time, nodes are taken from the priority queue (thus in priority // -// order), checked for legality to schedule, and emitted if legal. // -// // -// Nodes may not be legal to schedule either due to structural hazards (e.g. // -// pipeline or resource constraints) or because an input to the instruction has// -// not completed execution. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements a top-down list scheduler, using standard algorithms. +// The basic approach uses a priority queue of available nodes to schedule. +// One at a time, nodes are taken from the priority queue (thus in priority +// order), checked for legality to schedule, and emitted if legal. +// +// Nodes may not be legal to schedule either due to structural hazards (e.g. +// pipeline or resource constraints) or because an input to the instruction has +// not completed execution. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SchedulerRegistry.h" #include "ScheduleDAGSDNodes.h" diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 0c2e43ee03..14f44ccc60 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1,14 +1,15 @@ //===-- SelectionDAG.cpp - Implement the SelectionDAG data structures -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the SelectionDAG class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the SelectionDAG class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "SDNodeDbgValue.h" diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index dd957381a6..b0616f020b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -1,14 +1,15 @@ //===-- SelectionDAGBuilder.cpp - Selection-DAG building ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements routines for translating from LLVM IR into SelectionDAG IR.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements routines for translating from LLVM IR into SelectionDAG IR. +// +//===----------------------------------------------------------------------===// #include "SelectionDAGBuilder.h" #include "SDNodeDbgValue.h" diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index d33de4203a..1a8f1866a6 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -1,12 +1,13 @@ //===-- SelectionDAGBuilder.h - Selection-DAG building --------*- C++ -*---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements routines for translating from LLVM IR into SelectionDAG IR.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements routines for translating from LLVM IR into SelectionDAG IR. // //===----------------------------------------------------------------------===// diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index 4665ff64ed..5b9b18286f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -1,14 +1,15 @@ //===-- SelectionDAGDumper.cpp - Implement SelectionDAG::dump() -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the SelectionDAG::dump method and friends. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the SelectionDAG::dump method and friends. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "ScheduleDAGSDNodes.h" diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 370ee4b84b..97ece8b924 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1,14 +1,15 @@ //===-- SelectionDAGISel.cpp - Implement the SelectionDAGISel class -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGISel.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the SelectionDAGISel class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the SelectionDAGISel class. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCStrategy.h" #include "ScheduleDAGSDNodes.h" diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 50371c8588..4df5ede388 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -1,14 +1,15 @@ //===-- SelectionDAGPrinter.cpp - Implement SelectionDAG::viewGraph() -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectionDAGPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the SelectionDAG::viewGraph method. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the SelectionDAG::viewGraph method. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "ScheduleDAGSDNodes.h" diff --git a/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index 3b8cc8408f..34688df476 100644 --- a/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -1,15 +1,16 @@ //===-- StatepointLowering.cpp - SDAGBuilder's statepoint code -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StatepointLowering.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file includes support code use by SelectionDAGBuilder when lowering a// -// statepoint sequence in SelectionDAG IR. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file includes support code use by SelectionDAGBuilder when lowering a +// statepoint sequence in SelectionDAG IR. +// +//===----------------------------------------------------------------------===// #include "StatepointLowering.h" #include "SelectionDAGBuilder.h" diff --git a/lib/CodeGen/SelectionDAG/StatepointLowering.h b/lib/CodeGen/SelectionDAG/StatepointLowering.h index 44a4e463b6..82d0c62f1c 100644 --- a/lib/CodeGen/SelectionDAG/StatepointLowering.h +++ b/lib/CodeGen/SelectionDAG/StatepointLowering.h @@ -1,15 +1,16 @@ //===-- StatepointLowering.h - SDAGBuilder's statepoint code -*- C++ -*---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StatepointLowering.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file includes support code use by SelectionDAGBuilder when lowering a// -// statepoint sequence in SelectionDAG IR. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file includes support code use by SelectionDAGBuilder when lowering a +// statepoint sequence in SelectionDAG IR. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SELECTIONDAG_STATEPOINTLOWERING_H #define LLVM_LIB_CODEGEN_SELECTIONDAG_STATEPOINTLOWERING_H diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index b0596d7f6c..fbf651277c 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1,14 +1,15 @@ //===-- TargetLowering.cpp - Implement the TargetLowering class -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLowering.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the TargetLowering class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the TargetLowering class. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetLowering.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/SelectionDAG/TargetSelectionDAGInfo.cpp b/lib/CodeGen/SelectionDAG/TargetSelectionDAGInfo.cpp index af33fee8c6..00db942568 100644 --- a/lib/CodeGen/SelectionDAG/TargetSelectionDAGInfo.cpp +++ b/lib/CodeGen/SelectionDAG/TargetSelectionDAGInfo.cpp @@ -1,14 +1,15 @@ //===-- TargetSelectionDAGInfo.cpp - SelectionDAG Info --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSelectionDAGInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the TargetSelectionDAGInfo class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the TargetSelectionDAGInfo class. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetSelectionDAGInfo.h" #include "llvm/Target/TargetMachine.h" diff --git a/lib/CodeGen/SelectionDAG/legalizevectorops.cpp b/lib/CodeGen/SelectionDAG/legalizevectorops.cpp index c950e7cd2c..9067121460 100644 --- a/lib/CodeGen/SelectionDAG/legalizevectorops.cpp +++ b/lib/CodeGen/SelectionDAG/legalizevectorops.cpp @@ -1,30 +1,31 @@ //===-- LegalizeVectorOps.cpp - Implement SelectionDAG::LegalizeVectors ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// legalizevectorops.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SelectionDAG::LegalizeVectors method. // -// // -// The vector legalizer looks for vector operations which might need to be // -// scalarized and legalizes them. This is a separate step from Legalize because// -// scalarizing can introduce illegal types. For example, suppose we have an // -// ISD::SDIV of type v2i64 on x86-32. The type is legal (for example, addition// -// on a v2i64 is legal), but ISD::SDIV isn't legal, so we have to unroll the // -// operation, which introduces nodes with the illegal type i64 which must be // -// expanded. Similarly, suppose we have an ISD::SRA of type v16i8 on PowerPC;// -// the operation must be unrolled, which introduces nodes with the illegal // -// type i8 which must be promoted. // -// // -// This does not legalize vector manipulations like ISD::BUILD_VECTOR, // -// or operations that happen to take a vector which are custom-lowered; // -// the legalization for such operations never produces nodes // -// with illegal types, so it's okay to put off legalizing them until // -// SelectionDAG::Legalize runs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SelectionDAG::LegalizeVectors method. +// +// The vector legalizer looks for vector operations which might need to be +// scalarized and legalizes them. This is a separate step from Legalize because +// scalarizing can introduce illegal types. For example, suppose we have an +// ISD::SDIV of type v2i64 on x86-32. The type is legal (for example, addition +// on a v2i64 is legal), but ISD::SDIV isn't legal, so we have to unroll the +// operation, which introduces nodes with the illegal type i64 which must be +// expanded. Similarly, suppose we have an ISD::SRA of type v16i8 on PowerPC; +// the operation must be unrolled, which introduces nodes with the illegal +// type i8 which must be promoted. +// +// This does not legalize vector manipulations like ISD::BUILD_VECTOR, +// or operations that happen to take a vector which are custom-lowered; +// the legalization for such operations never produces nodes +// with illegal types, so it's okay to put off legalizing them until +// SelectionDAG::Legalize runs. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/Target/TargetLowering.h" diff --git a/lib/CodeGen/ShadowStackGC.cpp b/lib/CodeGen/ShadowStackGC.cpp index 88d207ada1..b12e943eb3 100644 --- a/lib/CodeGen/ShadowStackGC.cpp +++ b/lib/CodeGen/ShadowStackGC.cpp @@ -1,28 +1,29 @@ //===-- ShadowStackGC.cpp - GC support for uncooperative targets ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ShadowStackGC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements lowering for the llvm.gc* intrinsics for targets that do// -// not natively support them (which includes the C backend). Note that the code// -// generated is not quite as efficient as algorithms which generate stack maps// -// to identify roots. // -// // -// This pass implements the code transformation described in this paper: // -// "Accurate Garbage Collection in an Uncooperative Environment" // -// Fergus Henderson, ISMM, 2002 // -// // -// In runtime/GC/SemiSpace.cpp is a prototype runtime which is compatible with// -// ShadowStackGC. // -// // -// In order to support this particular transformation, all stack roots are // -// coallocated in the stack. This allows a fully target-independent stack map// -// while introducing only minor runtime overhead. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements lowering for the llvm.gc* intrinsics for targets that do +// not natively support them (which includes the C backend). Note that the code +// generated is not quite as efficient as algorithms which generate stack maps +// to identify roots. +// +// This pass implements the code transformation described in this paper: +// "Accurate Garbage Collection in an Uncooperative Environment" +// Fergus Henderson, ISMM, 2002 +// +// In runtime/GC/SemiSpace.cpp is a prototype runtime which is compatible with +// ShadowStackGC. +// +// In order to support this particular transformation, all stack roots are +// coallocated in the stack. This allows a fully target-independent stack map +// while introducing only minor runtime overhead. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCs.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/CodeGen/ShadowStackGCLowering.cpp b/lib/CodeGen/ShadowStackGCLowering.cpp index 4087952db0..e7b2a8e72d 100644 --- a/lib/CodeGen/ShadowStackGCLowering.cpp +++ b/lib/CodeGen/ShadowStackGCLowering.cpp @@ -1,15 +1,16 @@ //===-- ShadowStackGCLowering.cpp - Custom lowering for shadow-stack gc ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ShadowStackGCLowering.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the custom lowering code required by the shadow-stack GC// -// strategy. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the custom lowering code required by the shadow-stack GC +// strategy. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/CodeGen/ShrinkWrap.cpp b/lib/CodeGen/ShrinkWrap.cpp index ca78288e49..524b63c435 100644 --- a/lib/CodeGen/ShrinkWrap.cpp +++ b/lib/CodeGen/ShrinkWrap.cpp @@ -1,49 +1,51 @@ //===-- ShrinkWrap.cpp - Compute safe point for prolog/epilog insertion ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ShrinkWrap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass looks for safe point where the prologue and epilogue can be // -// inserted. // -// The safe point for the prologue (resp. epilogue) is called Save // -// (resp. Restore). // -// A point is safe for prologue (resp. epilogue) if and only if // -// it 1) dominates (resp. post-dominates) all the frame related operations and// -// between 2) two executions of the Save (resp. Restore) point there is an // -// execution of the Restore (resp. Save) point. // -// // -// For instance, the following points are safe: // -// for (int i = 0; i < 10; ++i) { // -// Save // -// ... // -// Restore // -// } // -// Indeed, the execution looks like Save -> Restore -> Save -> Restore ... // -// And the following points are not: // -// for (int i = 0; i < 10; ++i) { // -// Save // -// ... // -// } // -// for (int i = 0; i < 10; ++i) { // -// ... // -// Restore // -// } // -// Indeed, the execution looks like Save -> Save -> ... -> Restore -> Restore.// -// // -// This pass also ensures that the safe points are 3) cheaper than the regular// -// entry and exits blocks. // -// // -// Property #1 is ensured via the use of MachineDominatorTree and // -// MachinePostDominatorTree. // -// Property #2 is ensured via property #1 and MachineLoopInfo, i.e., both // -// points must be in the same loop. // -// Property #3 is ensured via the MachineBlockFrequencyInfo. // -// // -// If this pass found points matching all this properties, then // -// MachineFrameInfo is updated this that information. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass looks for safe point where the prologue and epilogue can be +// inserted. +// The safe point for the prologue (resp. epilogue) is called Save +// (resp. Restore). +// A point is safe for prologue (resp. epilogue) if and only if +// it 1) dominates (resp. post-dominates) all the frame related operations and +// between 2) two executions of the Save (resp. Restore) point there is an +// execution of the Restore (resp. Save) point. +// +// For instance, the following points are safe: +// for (int i = 0; i < 10; ++i) { +// Save +// ... +// Restore +// } +// Indeed, the execution looks like Save -> Restore -> Save -> Restore ... +// And the following points are not: +// for (int i = 0; i < 10; ++i) { +// Save +// ... +// } +// for (int i = 0; i < 10; ++i) { +// ... +// Restore +// } +// Indeed, the execution looks like Save -> Save -> ... -> Restore -> Restore. +// +// This pass also ensures that the safe points are 3) cheaper than the regular +// entry and exits blocks. +// +// Property #1 is ensured via the use of MachineDominatorTree and +// MachinePostDominatorTree. +// Property #2 is ensured via property #1 and MachineLoopInfo, i.e., both +// points must be in the same loop. +// Property #3 is ensured via the MachineBlockFrequencyInfo. +// +// If this pass found points matching all this properties, then +// MachineFrameInfo is updated this that information. +//===----------------------------------------------------------------------===// #include "llvm/ADT/Statistic.h" // To check for profitability. diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp index be2467d0ed..d236e1f5ab 100644 --- a/lib/CodeGen/SjLjEHPrepare.cpp +++ b/lib/CodeGen/SjLjEHPrepare.cpp @@ -1,15 +1,16 @@ //===- SjLjEHPrepare.cpp - Eliminate Invoke & Unwind instructions ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SjLjEHPrepare.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transformation is designed for use by code generators which use SjLj // -// based exception handling. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transformation is designed for use by code generators which use SjLj +// based exception handling. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp index 49592a4b13..025ae70ed8 100644 --- a/lib/CodeGen/SlotIndexes.cpp +++ b/lib/CodeGen/SlotIndexes.cpp @@ -1,12 +1,11 @@ //===-- SlotIndexes.cpp - Slot Indexes Pass ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SlotIndexes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/SlotIndexes.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/CodeGen/SpillPlacement.cpp b/lib/CodeGen/SpillPlacement.cpp index 0b0134143c..97a5424aa5 100644 --- a/lib/CodeGen/SpillPlacement.cpp +++ b/lib/CodeGen/SpillPlacement.cpp @@ -1,30 +1,31 @@ //===-- SpillPlacement.cpp - Optimal Spill Code Placement -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SpillPlacement.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the spill code placement analysis. // -// // -// Each edge bundle corresponds to a node in a Hopfield network. Constraints on// -// basic blocks are weighted by the block frequency and added to become the node// -// bias. // -// // -// Transparent basic blocks have the variable live through, but don't care if it// -// is spilled or in a register. These blocks become connections in the Hopfield// -// network, again weighted by block frequency. // -// // -// The Hopfield network minimizes (possibly locally) its energy function: // -// // -// E = -sum_n V_n * ( B_n + sum_{n, m linked by b} V_m * F_b ) // -// // -// The energy function represents the expected spill code execution frequency,// -// or the cost of spilling. This is a Lyapunov function which never increases// -// when a node is updated. It is guaranteed to converge to a local minimum. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the spill code placement analysis. +// +// Each edge bundle corresponds to a node in a Hopfield network. Constraints on +// basic blocks are weighted by the block frequency and added to become the node +// bias. +// +// Transparent basic blocks have the variable live through, but don't care if it +// is spilled or in a register. These blocks become connections in the Hopfield +// network, again weighted by block frequency. +// +// The Hopfield network minimizes (possibly locally) its energy function: +// +// E = -sum_n V_n * ( B_n + sum_{n, m linked by b} V_m * F_b ) +// +// The energy function represents the expected spill code execution frequency, +// or the cost of spilling. This is a Lyapunov function which never increases +// when a node is updated. It is guaranteed to converge to a local minimum. +// +//===----------------------------------------------------------------------===// #include "SpillPlacement.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h index 42bb4b49a2..03dd58d6e9 100644 --- a/lib/CodeGen/SpillPlacement.h +++ b/lib/CodeGen/SpillPlacement.h @@ -1,27 +1,28 @@ //===-- SpillPlacement.h - Optimal Spill Code Placement --------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SpillPlacement.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This analysis computes the optimal spill code placement between basic blocks.// // -// The runOnMachineFunction() method only precomputes some profiling information// -// about the CFG. The real work is done by prepare(), addConstraints(), and // -// finish() which are called by the register allocator. // +// The LLVM Compiler Infrastructure // -// Given a variable that is live across multiple basic blocks, and given // -// constraints on the basic blocks where the variable is live, determine which// -// edge bundles should have the variable in a register and which edge bundles// -// should have the variable in a stack slot. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// The returned bit vector can be used to place optimal spill code at basic // -// block entries and exits. Spill code placement inside a basic block is not // -// considered. // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This analysis computes the optimal spill code placement between basic blocks. +// +// The runOnMachineFunction() method only precomputes some profiling information +// about the CFG. The real work is done by prepare(), addConstraints(), and +// finish() which are called by the register allocator. +// +// Given a variable that is live across multiple basic blocks, and given +// constraints on the basic blocks where the variable is live, determine which +// edge bundles should have the variable in a register and which edge bundles +// should have the variable in a stack slot. +// +// The returned bit vector can be used to place optimal spill code at basic +// block entries and exits. Spill code placement inside a basic block is not +// considered. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SPILLPLACEMENT_H #define LLVM_LIB_CODEGEN_SPILLPLACEMENT_H diff --git a/lib/CodeGen/Spiller.h b/lib/CodeGen/Spiller.h index 3cd0679939..08f99ec78a 100644 --- a/lib/CodeGen/Spiller.h +++ b/lib/CodeGen/Spiller.h @@ -1,12 +1,11 @@ //===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Spiller.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SPILLER_H #define LLVM_LIB_CODEGEN_SPILLER_H diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 5e7288dd8d..dab1dfe4f1 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -1,15 +1,16 @@ //===---------- SplitKit.cpp - Toolkit for splitting live ranges ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SplitKit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the SplitAnalysis class as well as mutator functions for// -// live range splitting. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the SplitAnalysis class as well as mutator functions for +// live range splitting. +// +//===----------------------------------------------------------------------===// #include "SplitKit.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 0220f0ec7b..69c65ff3f6 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -1,15 +1,16 @@ //===-------- SplitKit.h - Toolkit for splitting live ranges ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SplitKit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the SplitAnalysis class as well as mutator functions for// -// live range splitting. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the SplitAnalysis class as well as mutator functions for +// live range splitting. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_SPLITKIT_H #define LLVM_LIB_CODEGEN_SPLITKIT_H diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp index ca5a683d64..3541b33a84 100644 --- a/lib/CodeGen/StackColoring.cpp +++ b/lib/CodeGen/StackColoring.cpp @@ -1,24 +1,25 @@ //===-- StackColoring.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackColoring.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements the stack-coloring optimization that looks for // -// lifetime markers machine instructions (LIFESTART_BEGIN and LIFESTART_END),// -// which represent the possible lifetime of stack slots. It attempts to // -// merge disjoint stack slots and reduce the used stack space. // -// NOTE: This pass is not StackSlotColoring, which optimizes spill slots. // -// // -// TODO: In the future we plan to improve stack coloring in the following ways:// -// 1. Allow merging multiple small slots into a single larger slot at different// -// offsets. // -// 2. Merge this pass with StackSlotColoring and allow merging of allocas with// -// spill slots. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass implements the stack-coloring optimization that looks for +// lifetime markers machine instructions (LIFESTART_BEGIN and LIFESTART_END), +// which represent the possible lifetime of stack slots. It attempts to +// merge disjoint stack slots and reduce the used stack space. +// NOTE: This pass is not StackSlotColoring, which optimizes spill slots. +// +// TODO: In the future we plan to improve stack coloring in the following ways: +// 1. Allow merging multiple small slots into a single larger slot at different +// offsets. +// 2. Merge this pass with StackSlotColoring and allow merging of allocas with +// spill slots. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/StackMapLivenessAnalysis.cpp b/lib/CodeGen/StackMapLivenessAnalysis.cpp index 218cec5dbe..855058358f 100644 --- a/lib/CodeGen/StackMapLivenessAnalysis.cpp +++ b/lib/CodeGen/StackMapLivenessAnalysis.cpp @@ -1,16 +1,17 @@ //===-- StackMapLivenessAnalysis.cpp - StackMap live Out Analysis ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackMapLivenessAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StackMap Liveness analysis pass. The pass calculates// -// the liveness for each basic block in a function and attaches the register // -// live-out information to a stackmap or patchpoint intrinsic if present. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the StackMap Liveness analysis pass. The pass calculates +// the liveness for each basic block in a function and attaches the register +// live-out information to a stackmap or patchpoint intrinsic if present. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Statistic.h" #include "llvm/CodeGen/LivePhysRegs.h" diff --git a/lib/CodeGen/StackMaps.cpp b/lib/CodeGen/StackMaps.cpp index 42aff9d517..116eef66c5 100644 --- a/lib/CodeGen/StackMaps.cpp +++ b/lib/CodeGen/StackMaps.cpp @@ -1,12 +1,11 @@ //===---------------------------- StackMaps.cpp ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackMaps.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/StackMaps.h" #include "llvm/CodeGen/AsmPrinter.h" diff --git a/lib/CodeGen/StackProtector.cpp b/lib/CodeGen/StackProtector.cpp index c46925120f..bcea37a3aa 100644 --- a/lib/CodeGen/StackProtector.cpp +++ b/lib/CodeGen/StackProtector.cpp @@ -1,17 +1,18 @@ //===-- StackProtector.cpp - Stack Protector Insertion --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackProtector.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass inserts stack protectors into functions which need them. A variable// -// with a random value in it is stored onto the stack before the local variables// -// are allocated. Upon exiting the block, the stored value is checked. If it's// -// changed, then there was some sort of violation and the program aborts. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass inserts stack protectors into functions which need them. A variable +// with a random value in it is stored onto the stack before the local variables +// are allocated. Upon exiting the block, the stored value is checked. If it's +// changed, then there was some sort of violation and the program aborts. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/StackProtector.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index 3329129a2e..a5a175f2c8 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/lib/CodeGen/StackSlotColoring.cpp @@ -1,14 +1,15 @@ //===-- StackSlotColoring.cpp - Stack slot coloring pass. -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackSlotColoring.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the stack slot coloring pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the stack slot coloring pass. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/StatepointExampleGC.cpp b/lib/CodeGen/StatepointExampleGC.cpp index 2ac8abaab0..95dfd75018 100644 --- a/lib/CodeGen/StatepointExampleGC.cpp +++ b/lib/CodeGen/StatepointExampleGC.cpp @@ -1,19 +1,20 @@ //===-- StatepointDefaultGC.cpp - The default statepoint GC strategy ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StatepointExampleGC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains a GCStrategy which serves as an example for the usage // -// of a statepoint based lowering strategy. This GCStrategy is intended to // -// suitable as a default implementation usable with any collector which can // -// consume the standard stackmap format generated by statepoints, uses the // -// default addrespace to distinguish between gc managed and non-gc managed // -// pointers, and has reasonable relocation semantics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains a GCStrategy which serves as an example for the usage +// of a statepoint based lowering strategy. This GCStrategy is intended to +// suitable as a default implementation usable with any collector which can +// consume the standard stackmap format generated by statepoints, uses the +// default addrespace to distinguish between gc managed and non-gc managed +// pointers, and has reasonable relocation semantics. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCStrategy.h" #include "llvm/IR/DerivedTypes.h" diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp index 8232c06d98..237460cd90 100644 --- a/lib/CodeGen/TailDuplication.cpp +++ b/lib/CodeGen/TailDuplication.cpp @@ -1,15 +1,16 @@ //===-- TailDuplication.cpp - Duplicate blocks into predecessors' tails ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TailDuplication.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass duplicates basic blocks ending in unconditional branches into // -// the tails of their predecessors. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass duplicates basic blocks ending in unconditional branches into +// the tails of their predecessors. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/CodeGen/TargetFrameLoweringImpl.cpp b/lib/CodeGen/TargetFrameLoweringImpl.cpp index 721f5cc016..f3cccd82a5 100644 --- a/lib/CodeGen/TargetFrameLoweringImpl.cpp +++ b/lib/CodeGen/TargetFrameLoweringImpl.cpp @@ -1,14 +1,15 @@ //===----- TargetFrameLoweringImpl.cpp - Implement target frame interface --==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetFrameLoweringImpl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements the layout of a stack frame on the target machine. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements the layout of a stack frame on the target machine. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/BitVector.h" #include "llvm/Target/TargetFrameLowering.h" diff --git a/lib/CodeGen/TargetInstrInfo.cpp b/lib/CodeGen/TargetInstrInfo.cpp index 1691d7156c..97ca0253d3 100644 --- a/lib/CodeGen/TargetInstrInfo.cpp +++ b/lib/CodeGen/TargetInstrInfo.cpp @@ -1,14 +1,15 @@ //===-- TargetInstrInfo.cpp - Target Instruction Information --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetInstrInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TargetInstrInfo class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TargetInstrInfo class. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetInstrInfo.h" #include "llvm/CodeGen/MachineFrameInfo.h" diff --git a/lib/CodeGen/TargetLoweringBase.cpp b/lib/CodeGen/TargetLoweringBase.cpp index e83ee403f1..ecfd659315 100644 --- a/lib/CodeGen/TargetLoweringBase.cpp +++ b/lib/CodeGen/TargetLoweringBase.cpp @@ -1,14 +1,15 @@ //===-- TargetLoweringBase.cpp - Implement the TargetLoweringBase class ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLoweringBase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the TargetLoweringBase class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the TargetLoweringBase class. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetLowering.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index e9acd5144b..2f78763d8e 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1,15 +1,16 @@ //===-- llvm/CodeGen/TargetLoweringObjectFileImpl.cpp - Object File Info --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLoweringObjectFileImpl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements classes used to handle lowerings specific to common // -// object file formats. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements classes used to handle lowerings specific to common +// object file formats. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/CodeGen/TargetOptionsImpl.cpp b/lib/CodeGen/TargetOptionsImpl.cpp index 86f892c69e..8d2048fa04 100644 --- a/lib/CodeGen/TargetOptionsImpl.cpp +++ b/lib/CodeGen/TargetOptionsImpl.cpp @@ -1,14 +1,15 @@ //===-- TargetOptionsImpl.cpp - Options that apply to all targets ----------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetOptionsImpl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the methods in the TargetOptions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the methods in the TargetOptions. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Function.h" #include "llvm/IR/Module.h" diff --git a/lib/CodeGen/TargetRegisterInfo.cpp b/lib/CodeGen/TargetRegisterInfo.cpp index 56860fb695..61a66b6239 100644 --- a/lib/CodeGen/TargetRegisterInfo.cpp +++ b/lib/CodeGen/TargetRegisterInfo.cpp @@ -1,14 +1,15 @@ //===- TargetRegisterInfo.cpp - Target Register Information Implementation ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRegisterInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TargetRegisterInfo interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TargetRegisterInfo interface. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/TargetSchedule.cpp b/lib/CodeGen/TargetSchedule.cpp index 41a81aaf37..299380d926 100644 --- a/lib/CodeGen/TargetSchedule.cpp +++ b/lib/CodeGen/TargetSchedule.cpp @@ -1,15 +1,16 @@ //===-- llvm/Target/TargetSchedule.cpp - Sched Machine Model ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSchedule.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a wrapper around MCSchedModel that allows the interface// -// to benefit from information currently only available in TargetInstrInfo. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a wrapper around MCSchedModel that allows the interface +// to benefit from information currently only available in TargetInstrInfo. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/TargetSchedule.h" #include "llvm/Support/CommandLine.h" diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index e390854a4a..1e30821dc7 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1,30 +1,31 @@ //===-- TwoAddressInstructionPass.cpp - Two-Address instruction pass ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TwoAddressInstructionPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TwoAddress instruction pass which is used // -// by most register allocators. Two-Address instructions are rewritten // -// from: // -// // -// A = B op C // -// // -// to: // -// // -// A = B // -// A op= C // -// // -// Note that if a register allocator chooses to use this pass, that it // -// has to be capable of handling the non-SSA nature of these rewritten // -// virtual registers. // -// // -// It is also worth noting that the duplicate operand of the two // -// address instruction is removed. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TwoAddress instruction pass which is used +// by most register allocators. Two-Address instructions are rewritten +// from: +// +// A = B op C +// +// to: +// +// A = B +// A op= C +// +// Note that if a register allocator chooses to use this pass, that it +// has to be capable of handling the non-SSA nature of these rewritten +// virtual registers. +// +// It is also worth noting that the duplicate operand of the two +// address instruction is removed. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/CodeGen/UnreachableBlockElim.cpp b/lib/CodeGen/UnreachableBlockElim.cpp index 2ff767353f..d393e10310 100644 --- a/lib/CodeGen/UnreachableBlockElim.cpp +++ b/lib/CodeGen/UnreachableBlockElim.cpp @@ -1,23 +1,24 @@ //===-- UnreachableBlockElim.cpp - Remove unreachable blocks for codegen --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnreachableBlockElim.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is an extremely simple version of the SimplifyCFG pass. Its sole// -// job is to delete LLVM basic blocks that are not reachable from the entry // -// node. To do this, it performs a simple depth first traversal of the CFG, // -// then deletes any unvisited nodes. // -// // -// Note that this pass is really a hack. In particular, the instruction // -// selectors for various targets should just not generate code for unreachable// -// blocks. Until LLVM has a more systematic way of defining instruction // -// selectors, however, we cannot really expect them to handle additional // -// complexity. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is an extremely simple version of the SimplifyCFG pass. Its sole +// job is to delete LLVM basic blocks that are not reachable from the entry +// node. To do this, it performs a simple depth first traversal of the CFG, +// then deletes any unvisited nodes. +// +// Note that this pass is really a hack. In particular, the instruction +// selectors for various targets should just not generate code for unreachable +// blocks. Until LLVM has a more systematic way of defining instruction +// selectors, however, we cannot really expect them to handle additional +// complexity. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index c2fb98141f..2912bdd634 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -1,19 +1,20 @@ //===-- llvm/CodeGen/VirtRegMap.cpp - Virtual Register Map ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VirtRegMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the VirtRegMap class. // -// // -// It also contains implementations of the Spiller interface, which, given a // -// virtual register map and a machine function, eliminates all virtual // -// references by replacing them with physical register references - adding spill// -// code as necessary. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the VirtRegMap class. +// +// It also contains implementations of the Spiller interface, which, given a +// virtual register map and a machine function, eliminates all virtual +// references by replacing them with physical register references - adding spill +// code as necessary. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/VirtRegMap.h" #include "LiveDebugVariables.h" diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index 80129d81a8..0d26ed333c 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -1,19 +1,20 @@ //===-- WinEHPrepare - Prepare exception handling for code generation ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinEHPrepare.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass lowers LLVM IR exception handling into something closer to what the// -// backend wants for functions using a personality function from a runtime // -// provided by MSVC. Functions with other personality functions are left alone// -// and may be prepared by other passes. In particular, all supported MSVC // -// personality functions require cleanup code to be outlined, and the C++ // -// personality requires catch handler code to be outlined. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass lowers LLVM IR exception handling into something closer to what the +// backend wants for functions using a personality function from a runtime +// provided by MSVC. Functions with other personality functions are left alone +// and may be prepared by other passes. In particular, all supported MSVC +// personality functions require cleanup code to be outlined, and the C++ +// personality requires catch handler code to be outlined. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/Passes.h" #include "llvm/ADT/MapVector.h" diff --git a/lib/DebugInfo/CMakeLists.txt b/lib/DebugInfo/CMakeLists.txt index 2ea2a02a7f..645d92fef2 100644 --- a/lib/DebugInfo/CMakeLists.txt +++ b/lib/DebugInfo/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(DWARF) add_subdirectory(PDB) diff --git a/lib/DebugInfo/DWARF/CMakeLists.txt b/lib/DebugInfo/DWARF/CMakeLists.txt index 8eeb2d5105..d5f8a6f24e 100644 --- a/lib/DebugInfo/DWARF/CMakeLists.txt +++ b/lib/DebugInfo/DWARF/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMDebugInfoDWARF DWARFAbbreviationDeclaration.cpp DWARFAcceleratorTable.cpp diff --git a/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp b/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp index 79fb502b05..9314c9eabc 100644 --- a/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp +++ b/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp @@ -1,12 +1,11 @@ //===-- DWARFAbbreviationDeclaration.cpp ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFAbbreviationDeclaration.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h" #include "llvm/Support/Dwarf.h" diff --git a/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp b/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp index 41a16101ce..8ae0543286 100644 --- a/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp +++ b/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp @@ -1,12 +1,11 @@ //===--- DWARFAcceleratorTable.cpp ----------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFAcceleratorTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h" #include "llvm/Support/Dwarf.h" diff --git a/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp b/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp index 546baa1832..39a7c772dc 100644 --- a/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp +++ b/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp @@ -1,12 +1,11 @@ //===-- DWARFCompileUnit.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFCompileUnit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h" #include "llvm/Support/Format.h" diff --git a/lib/DebugInfo/DWARF/DWARFContext.cpp b/lib/DebugInfo/DWARF/DWARFContext.cpp index e67a84b5c9..96bcf15e0a 100644 --- a/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -1,12 +1,11 @@ //===-- DWARFContext.cpp --------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFContext.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp b/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp index 69408d5c1f..e63e28997e 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugAbbrev.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugAbbrev.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h" #include "llvm/Support/Format.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp b/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp index 1ef266d6af..67589cd01e 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugArangeSet.cpp -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugArangeSet.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h" #include "llvm/Support/Format.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp b/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp index e502596b75..27a02c4c50 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugAranges.cpp -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugAranges.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugAranges.h" #include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index 3b7ac8e4f5..1aa31be71f 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugFrame.h - Parsing of .debug_frame -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugFrame.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp b/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp index ca14bca56f..5abbde4ac0 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugInfoEntry.cpp -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugInfoEntry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "SyntaxHighlighting.h" #include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 4b4e0b999e..a0bee0da17 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugLine.cpp ------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugLine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugLine.h" #include "llvm/Support/Dwarf.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index b55477d8f6..cd6fbefd05 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugLoc.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugLoc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h" #include "llvm/Support/Compiler.h" diff --git a/lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp b/lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp index faa37a3229..d5df6885f5 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp @@ -1,12 +1,11 @@ //===-- DWARFDebugRangesList.cpp ------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFDebugRangeList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h" #include "llvm/Support/Format.h" diff --git a/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/lib/DebugInfo/DWARF/DWARFFormValue.cpp index c970a51306..53a676efaf 100644 --- a/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -1,12 +1,11 @@ //===-- DWARFFormValue.cpp ------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFFormValue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "SyntaxHighlighting.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp b/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp index f6267a6e93..766e8ac16f 100644 --- a/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp +++ b/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp @@ -1,12 +1,11 @@ //===-- DWARFTypeUnit.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFTypeUnit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFTypeUnit.h" #include "llvm/Support/Format.h" diff --git a/lib/DebugInfo/DWARF/DWARFUnit.cpp b/lib/DebugInfo/DWARF/DWARFUnit.cpp index 9c07097828..348476d72b 100644 --- a/lib/DebugInfo/DWARF/DWARFUnit.cpp +++ b/lib/DebugInfo/DWARF/DWARFUnit.cpp @@ -1,12 +1,11 @@ //===-- DWARFUnit.cpp -----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFUnit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFUnit.h" #include "llvm/DebugInfo/DWARF/DWARFContext.h" diff --git a/lib/DebugInfo/DWARF/LLVMBuild.txt b/lib/DebugInfo/DWARF/LLVMBuild.txt index e98a84bdb5..9f8b1047ef 100644 --- a/lib/DebugInfo/DWARF/LLVMBuild.txt +++ b/lib/DebugInfo/DWARF/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/DebugInfo/DWARF/LLVMBuild.txt ----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/DebugInfo/DWARF/SyntaxHighlighting.cpp b/lib/DebugInfo/DWARF/SyntaxHighlighting.cpp index a61b18d8d4..a6b4c6549c 100644 --- a/lib/DebugInfo/DWARF/SyntaxHighlighting.cpp +++ b/lib/DebugInfo/DWARF/SyntaxHighlighting.cpp @@ -1,12 +1,11 @@ //===-- SyntaxHighlighting.cpp ----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SyntaxHighlighting.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "SyntaxHighlighting.h" #include "llvm/Support/CommandLine.h" diff --git a/lib/DebugInfo/DWARF/SyntaxHighlighting.h b/lib/DebugInfo/DWARF/SyntaxHighlighting.h index 01ed32f458..946a31308a 100644 --- a/lib/DebugInfo/DWARF/SyntaxHighlighting.h +++ b/lib/DebugInfo/DWARF/SyntaxHighlighting.h @@ -1,12 +1,11 @@ //===-- SyntaxHighlighting.h ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SyntaxHighlighting.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_DEBUGINFO_SYNTAXHIGHLIGHTING_H #define LLVM_LIB_DEBUGINFO_SYNTAXHIGHLIGHTING_H diff --git a/lib/DebugInfo/LLVMBuild.txt b/lib/DebugInfo/LLVMBuild.txt index 4a88774a05..7a8e8baec2 100644 --- a/lib/DebugInfo/LLVMBuild.txt +++ b/lib/DebugInfo/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/DebugInfo/LLVMBuild.txt ----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/DebugInfo/PDB/CMakeLists.txt b/lib/DebugInfo/PDB/CMakeLists.txt index 670c94671c..1645a95aac 100644 --- a/lib/DebugInfo/PDB/CMakeLists.txt +++ b/lib/DebugInfo/PDB/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. macro(add_pdb_impl_folder group) list(APPEND PDB_IMPL_SOURCES ${ARGN}) source_group(${group} FILES ${ARGN}) diff --git a/lib/DebugInfo/PDB/DIA/DIADataStream.cpp b/lib/DebugInfo/PDB/DIA/DIADataStream.cpp index 7988f75dfe..e0e1b27124 100644 --- a/lib/DebugInfo/PDB/DIA/DIADataStream.cpp +++ b/lib/DebugInfo/PDB/DIA/DIADataStream.cpp @@ -1,12 +1,11 @@ //===- DIADataStream.cpp - DIA implementation of IPDBDataStream -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIADataStream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/DIA/DIADataStream.h" #include "llvm/Support/ConvertUTF.h" diff --git a/lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp b/lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp index 56a862fd47..23c6489c7e 100644 --- a/lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp +++ b/lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp @@ -1,12 +1,11 @@ //==- DIAEnumDebugStreams.cpp - DIA Debug Stream Enumerator impl -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumDebugStreams.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbol.h" #include "llvm/DebugInfo/PDB/DIA/DIADataStream.h" diff --git a/lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp b/lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp index 70c1374830..32a9af214d 100644 --- a/lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp +++ b/lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp @@ -1,12 +1,11 @@ //==- DIAEnumLineNumbers.cpp - DIA Line Number Enumerator impl ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumLineNumbers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbol.h" #include "llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h" diff --git a/lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp b/lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp index bf2eb8731d..1a946100fe 100644 --- a/lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp +++ b/lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp @@ -1,12 +1,11 @@ //==- DIAEnumSourceFiles.cpp - DIA Source File Enumerator impl ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumSourceFiles.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbol.h" #include "llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h" diff --git a/lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp b/lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp index ab27c7c1bc..6754d9a97d 100644 --- a/lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp +++ b/lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp @@ -1,12 +1,11 @@ //==- DIAEnumSymbols.cpp - DIA Symbol Enumerator impl ------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIAEnumSymbols.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbol.h" #include "llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h" diff --git a/lib/DebugInfo/PDB/DIA/DIALineNumber.cpp b/lib/DebugInfo/PDB/DIA/DIALineNumber.cpp index f638d2e61a..c5577f15eb 100644 --- a/lib/DebugInfo/PDB/DIA/DIALineNumber.cpp +++ b/lib/DebugInfo/PDB/DIA/DIALineNumber.cpp @@ -1,12 +1,11 @@ //===- DIALineNumber.cpp - DIA implementation of IPDBLineNumber -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIALineNumber.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/DIA/DIALineNumber.h" diff --git a/lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp b/lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp index 69f1dc8c08..abe0ab55e5 100644 --- a/lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp +++ b/lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp @@ -1,12 +1,11 @@ //===- DIARawSymbol.cpp - DIA implementation of IPDBRawSymbol ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIARawSymbol.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h" diff --git a/lib/DebugInfo/PDB/DIA/DIASession.cpp b/lib/DebugInfo/PDB/DIA/DIASession.cpp index 127323efae..99fe750eba 100644 --- a/lib/DebugInfo/PDB/DIA/DIASession.cpp +++ b/lib/DebugInfo/PDB/DIA/DIASession.cpp @@ -1,12 +1,11 @@ //===- DIASession.cpp - DIA implementation of IPDBSession -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIASession.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h" diff --git a/lib/DebugInfo/PDB/DIA/DIASourceFile.cpp b/lib/DebugInfo/PDB/DIA/DIASourceFile.cpp index 44cddd441a..0a9c444f5e 100644 --- a/lib/DebugInfo/PDB/DIA/DIASourceFile.cpp +++ b/lib/DebugInfo/PDB/DIA/DIASourceFile.cpp @@ -1,12 +1,11 @@ //===- DIASourceFile.cpp - DIA implementation of IPDBSourceFile -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIASourceFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h" #include "llvm/DebugInfo/PDB/DIA/DIASession.h" diff --git a/lib/DebugInfo/PDB/IPDBSourceFile.cpp b/lib/DebugInfo/PDB/IPDBSourceFile.cpp index 47ba79e476..3abe59dba6 100644 --- a/lib/DebugInfo/PDB/IPDBSourceFile.cpp +++ b/lib/DebugInfo/PDB/IPDBSourceFile.cpp @@ -1,12 +1,11 @@ //===- IPDBSourceFile.cpp - base interface for a PDB source file *- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPDBSourceFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/IPDBSourceFile.h" diff --git a/lib/DebugInfo/PDB/LLVMBuild.txt b/lib/DebugInfo/PDB/LLVMBuild.txt index 8d2b5e1bdb..9ee9f4067e 100644 --- a/lib/DebugInfo/PDB/LLVMBuild.txt +++ b/lib/DebugInfo/PDB/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/DebugInfo/PDB/LLVMBuild.txt ------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/DebugInfo/PDB/PDB.cpp b/lib/DebugInfo/PDB/PDB.cpp index 1f7928fd7a..13201bbaa6 100644 --- a/lib/DebugInfo/PDB/PDB.cpp +++ b/lib/DebugInfo/PDB/PDB.cpp @@ -1,12 +1,11 @@ //===- PDB.cpp - base header file for creating a PDB reader -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDB.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDB.h" diff --git a/lib/DebugInfo/PDB/PDBContext.cpp b/lib/DebugInfo/PDB/PDBContext.cpp index 6ae7741088..83f27c7fa3 100644 --- a/lib/DebugInfo/PDB/PDBContext.cpp +++ b/lib/DebugInfo/PDB/PDBContext.cpp @@ -1,12 +1,11 @@ //===-- PDBContext.cpp ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===/ #include "llvm/DebugInfo/PDB/PDBContext.h" #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h" diff --git a/lib/DebugInfo/PDB/PDBExtras.cpp b/lib/DebugInfo/PDB/PDBExtras.cpp index bd45921647..4b9437c582 100644 --- a/lib/DebugInfo/PDB/PDBExtras.cpp +++ b/lib/DebugInfo/PDB/PDBExtras.cpp @@ -1,12 +1,11 @@ //===- PDBExtras.cpp - helper functions and classes for PDBs -----*- C++-*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBExtras.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBExtras.h" diff --git a/lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp b/lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp index 3fb114e8c9..7b6268d8f6 100644 --- a/lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp +++ b/lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp @@ -1,16 +1,15 @@ //===- PDBInterfaceAnchors.h - defines class anchor funcions ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBInterfaceAnchors.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Class anchors are necessary per the LLVM Coding style guide, to ensure that// -// the vtable is only generated in this object file, and not in every object // -// file that incldues the corresponding header. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Class anchors are necessary per the LLVM Coding style guide, to ensure that +// the vtable is only generated in this object file, and not in every object +// file that incldues the corresponding header. +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/IPDBDataStream.h" #include "llvm/DebugInfo/PDB/IPDBLineNumber.h" diff --git a/lib/DebugInfo/PDB/PDBSymDumper.cpp b/lib/DebugInfo/PDB/PDBSymDumper.cpp index 859d845fda..121e2d13d0 100644 --- a/lib/DebugInfo/PDB/PDBSymDumper.cpp +++ b/lib/DebugInfo/PDB/PDBSymDumper.cpp @@ -1,12 +1,11 @@ //===- PDBSymDumper.cpp - ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymDumper.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/DebugInfo/PDB/PDBSymbol.cpp b/lib/DebugInfo/PDB/PDBSymbol.cpp index 003dda3206..f9aaf3ae93 100644 --- a/lib/DebugInfo/PDB/PDBSymbol.cpp +++ b/lib/DebugInfo/PDB/PDBSymbol.cpp @@ -1,12 +1,11 @@ //===- PDBSymbol.cpp - base class for user-facing symbol types --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbol.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbol.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp b/lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp index 1c6e11e3bb..a782cad00a 100644 --- a/lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolAnnotation.cpp - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolAnnotation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolAnnotation.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolBlock.cpp b/lib/DebugInfo/PDB/PDBSymbolBlock.cpp index f760e6b743..46b0ea553e 100644 --- a/lib/DebugInfo/PDB/PDBSymbolBlock.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolBlock.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolBlock.cpp - -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolBlock.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolBlock.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolCompiland.cpp b/lib/DebugInfo/PDB/PDBSymbolCompiland.cpp index bb5ca774ff..74369148e2 100644 --- a/lib/DebugInfo/PDB/PDBSymbolCompiland.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolCompiland.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolCompiland.cpp - compiland details --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCompiland.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp b/lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp index fecd663176..7b351a042d 100644 --- a/lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolCompilandDetails.cpp - compiland details --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCompilandDetails.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp b/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp index d47ddba8cc..e863ccf1ff 100644 --- a/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolCompilandEnv.cpp - compiland env variables ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCompilandEnv.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolCustom.cpp b/lib/DebugInfo/PDB/PDBSymbolCustom.cpp index 2a1cf6b377..bd7d9cda21 100644 --- a/lib/DebugInfo/PDB/PDBSymbolCustom.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolCustom.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolCustom.cpp - compiler-specific types ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolCustom.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolCustom.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolData.cpp b/lib/DebugInfo/PDB/PDBSymbolData.cpp index 06087fe54b..a948c2d08a 100644 --- a/lib/DebugInfo/PDB/PDBSymbolData.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolData.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolData.cpp - PDB data (e.g. variable) accessors ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolData.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolData.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolExe.cpp b/lib/DebugInfo/PDB/PDBSymbolExe.cpp index f1cd19bba0..c9e34ea501 100644 --- a/lib/DebugInfo/PDB/PDBSymbolExe.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolExe.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolExe.cpp - ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolExe.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolExe.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolFunc.cpp b/lib/DebugInfo/PDB/PDBSymbolFunc.cpp index 6888e937c8..0aff327366 100644 --- a/lib/DebugInfo/PDB/PDBSymbolFunc.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolFunc.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolFunc.cpp - --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolFunc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolFunc.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp b/lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp index 7642af2a75..8e559b3240 100644 --- a/lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolFuncDebugEnd.cpp - ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolFuncDebugEnd.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp b/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp index 795438a676..ff4254f115 100644 --- a/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolFuncDebugStart.cpp - ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolFuncDebugStart.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolLabel.cpp b/lib/DebugInfo/PDB/PDBSymbolLabel.cpp index c342b914ca..f39dee8d94 100644 --- a/lib/DebugInfo/PDB/PDBSymbolLabel.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolLabel.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolLabel.cpp - -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolLabel.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolLabel.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp b/lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp index 379288dc08..bd6fe89ac3 100644 --- a/lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolPublicSymbol.cpp - ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolPublicSymbol.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolThunk.cpp b/lib/DebugInfo/PDB/PDBSymbolThunk.cpp index e925e8c9aa..733eb5f750 100644 --- a/lib/DebugInfo/PDB/PDBSymbolThunk.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolThunk.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolThunk.cpp - -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolThunk.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolThunk.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp index 697dabfbe7..1980965036 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeArray.cpp - ---------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeArray.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeArray.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp index a811f1ffc8..c1f0d2f6db 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeBaseClass.cpp - -----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeBaseClass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp index ea996a3254..b302b66298 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeBuiltin.cpp - ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeBuiltin.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp index 1c40240725..cc391f1856 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeCustom.cpp - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeCustom.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp index 47d2ea3ac4..1e19d0b001 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp @@ -1,12 +1,12 @@ //===- PDBSymbolTypeDimension.cpp - --------------------------------*- C++ -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeDimension.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +//-*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp index 997cca1e49..8dd26a342e 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeEnum.cpp - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeEnum.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp index abcb9b3fbf..d332660945 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeFriend.cpp - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeFriend.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp index 33d6e92aaa..f8f71ead88 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeFunctionArg.cpp - --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeFunctionArg.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp index a8e2c86e6c..af3563f891 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeFunctionSig.cpp - --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeFunctionSig.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp index e779ced612..a7fac3030e 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp @@ -1,12 +1,11 @@ //===- PDBSymboTypelManaged.cpp - ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeManaged.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp b/lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp index 40d8daa862..082ed83fcf 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypePointer.cpp -----------------------------------*- C++ -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypePointer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypePointer.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp index 338cfed470..5a42699386 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeTypedef.cpp ---------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeTypedef.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp index a6b85edc89..2b5da295fd 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeUDT.cpp - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeUDT.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp index 94d57768bf..b465d023c5 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeVTable.cpp - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeVTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp b/lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp index 54d873b800..16052f1e68 100644 --- a/lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolTypeVTableShape.cpp - ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolTypeVTableShape.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolUnknown.cpp b/lib/DebugInfo/PDB/PDBSymbolUnknown.cpp index 769c3c8e74..48dc11558c 100644 --- a/lib/DebugInfo/PDB/PDBSymbolUnknown.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolUnknown.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolUnknown.cpp - -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolUnknown.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolUnknown.h" diff --git a/lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp b/lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp index 8357821144..6cf13de085 100644 --- a/lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp +++ b/lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp @@ -1,12 +1,11 @@ //===- PDBSymbolUsingNamespace.cpp - ------------------- --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBSymbolUsingNamespace.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h" diff --git a/lib/ExecutionEngine/CMakeLists.txt b/lib/ExecutionEngine/CMakeLists.txt index 9e72ce38db..12631e33a8 100644 --- a/lib/ExecutionEngine/CMakeLists.txt +++ b/lib/ExecutionEngine/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMExecutionEngine diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 950f8ea42c..67a1ca67e2 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -1,15 +1,16 @@ //===-- ExecutionEngine.cpp - Common Implementation shared by EEs ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionEngine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the common interface used by the various execution engine// -// subclasses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the common interface used by the various execution engine +// subclasses. +// +//===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/lib/ExecutionEngine/ExecutionEngineBindings.cpp index 0bef2d3491..55ab5af2b9 100644 --- a/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -1,14 +1,15 @@ //===-- ExecutionEngineBindings.cpp - C bindings for EEs ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionEngineBindings.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C bindings for the ExecutionEngine library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the C bindings for the ExecutionEngine library. +// +//===----------------------------------------------------------------------===// #include "llvm-c/ExecutionEngine.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" diff --git a/lib/ExecutionEngine/GDBRegistrationListener.cpp b/lib/ExecutionEngine/GDBRegistrationListener.cpp index 9fa93a2b9d..1ab6203dd6 100644 --- a/lib/ExecutionEngine/GDBRegistrationListener.cpp +++ b/lib/ExecutionEngine/GDBRegistrationListener.cpp @@ -1,12 +1,11 @@ //===----- GDBRegistrationListener.cpp - Registers objects with GDB -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GDBRegistrationListener.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseMap.h" #include "llvm/ExecutionEngine/JITEventListener.h" diff --git a/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt b/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt index 77a1eb775b..331d2141b0 100644 --- a/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt +++ b/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ) add_llvm_library(LLVMIntelJITEvents diff --git a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp index 233b3b1b51..a131763193 100644 --- a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp +++ b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp @@ -1,15 +1,16 @@ //===-- IntelJITEventListener.cpp - Tell Intel profiler about JITed code --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntelJITEventListener.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a JITEventListener object to tell Intel(R) VTune(TM) // -// Amplifier XE 2011 about JITted functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a JITEventListener object to tell Intel(R) VTune(TM) +// Amplifier XE 2011 about JITted functions. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "IntelJITEventsWrapper.h" diff --git a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h index be3eb60693..777d0f179c 100644 --- a/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h +++ b/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h @@ -1,18 +1,19 @@ //===-- IntelJITEventsWrapper.h - Intel JIT Events API Wrapper --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntelJITEventsWrapper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a wrapper for the Intel JIT Events API. It allows for the// -// implementation of the jitprofiling library to be swapped with an alternative// -// implementation (for testing). To include this file, you must have the // -// jitprofiling.h header available; it is available in Intel(R) VTune(TM) // -// Amplifier XE 2011. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a wrapper for the Intel JIT Events API. It allows for the +// implementation of the jitprofiling library to be swapped with an alternative +// implementation (for testing). To include this file, you must have the +// jitprofiling.h header available; it is available in Intel(R) VTune(TM) +// Amplifier XE 2011. +// +//===----------------------------------------------------------------------===// #ifndef INTEL_JIT_EVENTS_WRAPPER_H #define INTEL_JIT_EVENTS_WRAPPER_H diff --git a/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt b/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt index 249e4884ff..afea3ecccd 100644 --- a/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt +++ b/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/JITProfileAmplifier/LLVMBuild.txt --*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h b/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h index 14bbbba330..22eb24abd0 100644 --- a/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h +++ b/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h @@ -1,12 +1,21 @@ /*===-- ittnotify_config.h - JIT Profiling API internal config-----*- C -*-===* -/////////////////////////////////////////////////////////////////////////////// -// // -// ittnotify_config.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef _ITTNOTIFY_CONFIG_H_ + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *===----------------------------------------------------------------------===* + * + * This file provides Intel(R) Performance Analyzer JIT (Just-In-Time) + * Profiling API internal config. + * + * NOTE: This file comes in a style different from the rest of LLVM + * source base since this is a piece of code shared from Intel(R) + * products. Please do not reformat / re-style this code to make + * subsequent merges and contributions from the original source base eaiser. + * + *===----------------------------------------------------------------------===*/ #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 fc2f8cba13..ef0129c6aa 100644 --- a/lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h +++ b/lib/ExecutionEngine/IntelJITEvents/ittnotify_types.h @@ -1,12 +1,18 @@ /*===-- ittnotify_types.h - JIT Profiling API internal types--------*- C -*-===* -/////////////////////////////////////////////////////////////////////////////// -// // -// ittnotify_types.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef _ITTNOTIFY_TYPES_H_ + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *===----------------------------------------------------------------------===* + * + * NOTE: This file comes in a style different from the rest of LLVM + * source base since this is a piece of code shared from Intel(R) + * products. Please do not reformat / re-style this code to make + * subsequent merges and contributions from the original source base eaiser. + * + *===----------------------------------------------------------------------===*/ #define _ITTNOTIFY_TYPES_H_ typedef enum ___itt_group_id diff --git a/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c b/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c index 98a01acdff..399e2742a1 100644 --- a/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c +++ b/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c @@ -1,19 +1,21 @@ /*===-- jitprofiling.c - JIT (Just-In-Time) Profiling API----------*- C -*-===* -/////////////////////////////////////////////////////////////////////////////// -// // -// jitprofiling.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// * This file provides Intel(R) Performance Analyzer JIT (Just-In-Time) // -// * Profiling API implementation. // -// * NOTE: This file comes in a style different from the rest of LLVM // -// * source base since this is a piece of code shared from Intel(R) // -// * products. Please do not reformat / re-style this code to make // -// * subsequent merges and contributions from the original source base eaiser.// -// // -/////////////////////////////////////////////////////////////////////////////// + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *===----------------------------------------------------------------------===* + * + * This file provides Intel(R) Performance Analyzer JIT (Just-In-Time) + * Profiling API implementation. + * + * NOTE: This file comes in a style different from the rest of LLVM + * source base since this is a piece of code shared from Intel(R) + * products. Please do not reformat / re-style this code to make + * subsequent merges and contributions from the original source base eaiser. + * + *===----------------------------------------------------------------------===*/ #include "ittnotify_config.h" diff --git a/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h b/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h index 79ca6afbb1..41ed3b0fb1 100644 --- a/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h +++ b/lib/ExecutionEngine/IntelJITEvents/jitprofiling.h @@ -1,12 +1,21 @@ /*===-- jitprofiling.h - JIT Profiling API-------------------------*- C -*-===* -/////////////////////////////////////////////////////////////////////////////// -// // -// jitprofiling.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef __JITPROFILING_H__ + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *===----------------------------------------------------------------------===* + * + * This file provides Intel(R) Performance Analyzer JIT (Just-In-Time) + * Profiling API declaration. + * + * NOTE: This file comes in a style different from the rest of LLVM + * source base since this is a piece of code shared from Intel(R) + * products. Please do not reformat / re-style this code to make + * subsequent merges and contributions from the original source base eaiser. + * + *===----------------------------------------------------------------------===*/ #define __JITPROFILING_H__ /* diff --git a/lib/ExecutionEngine/Interpreter/CMakeLists.txt b/lib/ExecutionEngine/Interpreter/CMakeLists.txt index f98a9afc16..4dbc2df4c7 100644 --- a/lib/ExecutionEngine/Interpreter/CMakeLists.txt +++ b/lib/ExecutionEngine/Interpreter/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # Make sure that the path to libffi headers is on the command # line. That path can be a compiler's non-default path even when # FFI_INCLUDE_DIR was not used, because cmake has its own paths for diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 01e9616cd9..dbfa37e2b0 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -1,14 +1,15 @@ //===-- Execution.cpp - Implement code to simulate the program ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Execution.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the actual instruction interpreter. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the actual instruction interpreter. +// +//===----------------------------------------------------------------------===// #include "Interpreter.h" #include "llvm/ADT/APInt.h" diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 9f2c2c1b63..06d4a05635 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -1,22 +1,23 @@ //===-- ExternalFunctions.cpp - Implement External Functions --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalFunctions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains both code to deal with invoking "external" functions, but// -// also contains code that implements "exported" external functions. // -// // -// There are currently two mechanisms for handling external functions in the// -// Interpreter. The first is to implement lle_* wrapper functions that are // -// specific to well-known library functions which manually translate the // -// arguments from GenericValues and make the call. If such a wrapper does // -// not exist, and libffi is available, then the Interpreter will attempt to // -// invoke the function using libffi, after finding its address. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains both code to deal with invoking "external" functions, but +// also contains code that implements "exported" external functions. +// +// There are currently two mechanisms for handling external functions in the +// Interpreter. The first is to implement lle_* wrapper functions that are +// specific to well-known library functions which manually translate the +// arguments from GenericValues and make the call. If such a wrapper does +// not exist, and libffi is available, then the Interpreter will attempt to +// invoke the function using libffi, after finding its address. +// +//===----------------------------------------------------------------------===// #include "Interpreter.h" #include "llvm/Config/config.h" // Detect libffi diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 17a85652c9..f103c09659 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -1,16 +1,17 @@ //===- Interpreter.cpp - Top-Level LLVM Interpreter Implementation --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Interpreter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the top-level functionality for the LLVM interpreter.// -// This interpreter is designed to be a very simple, portable, inefficient // -// interpreter. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the top-level functionality for the LLVM interpreter. +// This interpreter is designed to be a very simple, portable, inefficient +// interpreter. +// +//===----------------------------------------------------------------------===// #include "Interpreter.h" #include "llvm/CodeGen/IntrinsicLowering.h" diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index 87cc102513..f97664181a 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -1,14 +1,15 @@ //===-- Interpreter.h ------------------------------------------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Interpreter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header file defines the interpreter structure // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header file defines the interpreter structure +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_INTERPRETER_INTERPRETER_H #define LLVM_LIB_EXECUTIONENGINE_INTERPRETER_INTERPRETER_H diff --git a/lib/ExecutionEngine/Interpreter/LLVMBuild.txt b/lib/ExecutionEngine/Interpreter/LLVMBuild.txt index a66b93d5be..5af77e5472 100644 --- a/lib/ExecutionEngine/Interpreter/LLVMBuild.txt +++ b/lib/ExecutionEngine/Interpreter/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/Interpreter/LLVMBuild.txt ----------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/LLVMBuild.txt b/lib/ExecutionEngine/LLVMBuild.txt index 3b3533748e..9d29a41f50 100644 --- a/lib/ExecutionEngine/LLVMBuild.txt +++ b/lib/ExecutionEngine/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/LLVMBuild.txt ----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/MCJIT/CMakeLists.txt b/lib/ExecutionEngine/MCJIT/CMakeLists.txt index e96ba81b6d..b1e2bc3d63 100644 --- a/lib/ExecutionEngine/MCJIT/CMakeLists.txt +++ b/lib/ExecutionEngine/MCJIT/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMMCJIT MCJIT.cpp diff --git a/lib/ExecutionEngine/MCJIT/LLVMBuild.txt b/lib/ExecutionEngine/MCJIT/LLVMBuild.txt index ada1e0ea07..922cd0ddf1 100644 --- a/lib/ExecutionEngine/MCJIT/LLVMBuild.txt +++ b/lib/ExecutionEngine/MCJIT/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/MCJIT/LLVMBuild.txt ----------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index ca10cdd63e..f6944eea2e 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -1,12 +1,11 @@ //===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCJIT.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "MCJIT.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.h b/lib/ExecutionEngine/MCJIT/MCJIT.h index e52441635a..a45173c2da 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.h +++ b/lib/ExecutionEngine/MCJIT/MCJIT.h @@ -1,12 +1,11 @@ //===-- MCJIT.h - Class definition for the MCJIT ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCJIT.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_MCJIT_MCJIT_H #define LLVM_LIB_EXECUTIONENGINE_MCJIT_MCJIT_H diff --git a/lib/ExecutionEngine/MCJIT/ObjectBuffer.h b/lib/ExecutionEngine/MCJIT/ObjectBuffer.h index 4aec3dceb6..92310f3eb5 100644 --- a/lib/ExecutionEngine/MCJIT/ObjectBuffer.h +++ b/lib/ExecutionEngine/MCJIT/ObjectBuffer.h @@ -1,15 +1,16 @@ //===--- ObjectBuffer.h - Utility class to wrap object memory ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares a wrapper class to hold the memory into which an // -// object will be generated. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares a wrapper class to hold the memory into which an +// object will be generated. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_EXECUTIONENGINE_OBJECTBUFFER_H #define LLVM_EXECUTIONENGINE_OBJECTBUFFER_H diff --git a/lib/ExecutionEngine/OProfileJIT/CMakeLists.txt b/lib/ExecutionEngine/OProfileJIT/CMakeLists.txt index 3078d067bc..d585136eb0 100644 --- a/lib/ExecutionEngine/OProfileJIT/CMakeLists.txt +++ b/lib/ExecutionEngine/OProfileJIT/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. include_directories( ${LLVM_OPROFILE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ) diff --git a/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt b/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt index e041145279..7d5550046a 100644 --- a/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt +++ b/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt ----------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp b/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp index ff62a4f831..324d071187 100644 --- a/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp +++ b/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp @@ -1,15 +1,16 @@ //===-- OProfileJITEventListener.cpp - Tell OProfile about JITted code ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OProfileJITEventListener.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a JITEventListener object that uses OProfileWrapper to tell// -// oprofile about JITted functions, including source line information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a JITEventListener object that uses OProfileWrapper to tell +// oprofile about JITted functions, including source line information. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "llvm/CodeGen/MachineFunction.h" diff --git a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp index a53d9d1e1c..04edbd2a30 100644 --- a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp +++ b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp @@ -1,16 +1,17 @@ //===-- OProfileWrapper.cpp - OProfile JIT API Wrapper implementation -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OProfileWrapper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the interface in OProfileWrapper.h. It is responsible// -// for loading the opagent dynamic library when the first call to an op_ // -// function occurs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the interface in OProfileWrapper.h. It is responsible +// for loading the opagent dynamic library when the first call to an op_ +// function occurs. +// +//===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/OProfileWrapper.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/ExecutionEngine/Orc/CMakeLists.txt b/lib/ExecutionEngine/Orc/CMakeLists.txt index aa0e2eee12..99fe22c001 100644 --- a/lib/ExecutionEngine/Orc/CMakeLists.txt +++ b/lib/ExecutionEngine/Orc/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMOrcJIT ExecutionUtils.cpp IndirectionUtils.cpp diff --git a/lib/ExecutionEngine/Orc/ExecutionUtils.cpp b/lib/ExecutionEngine/Orc/ExecutionUtils.cpp index 7eca6b6919..b7220dba88 100644 --- a/lib/ExecutionEngine/Orc/ExecutionUtils.cpp +++ b/lib/ExecutionEngine/Orc/ExecutionUtils.cpp @@ -1,12 +1,11 @@ //===---- ExecutionUtils.cpp - Utilities for executing functions in Orc ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecutionUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/Orc/ExecutionUtils.h" diff --git a/lib/ExecutionEngine/Orc/IndirectionUtils.cpp b/lib/ExecutionEngine/Orc/IndirectionUtils.cpp index f9abc1ce1c..b439810ed3 100644 --- a/lib/ExecutionEngine/Orc/IndirectionUtils.cpp +++ b/lib/ExecutionEngine/Orc/IndirectionUtils.cpp @@ -1,12 +1,11 @@ //===---- IndirectionUtils.cpp - Utilities for call indirection in Orc ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndirectionUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/Triple.h" diff --git a/lib/ExecutionEngine/Orc/LLVMBuild.txt b/lib/ExecutionEngine/Orc/LLVMBuild.txt index 37ee2f2688..8f05172e77 100644 --- a/lib/ExecutionEngine/Orc/LLVMBuild.txt +++ b/lib/ExecutionEngine/Orc/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/MCJIT/LLVMBuild.txt ----------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/Orc/NullResolver.cpp b/lib/ExecutionEngine/Orc/NullResolver.cpp index 916e1b83aa..57666a9dad 100644 --- a/lib/ExecutionEngine/Orc/NullResolver.cpp +++ b/lib/ExecutionEngine/Orc/NullResolver.cpp @@ -1,12 +1,11 @@ //===---------- NullResolver.cpp - Reject symbol lookup requests ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NullResolver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/Orc/NullResolver.h" diff --git a/lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp b/lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp index 357ecb8a82..b7a68e041c 100644 --- a/lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp +++ b/lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp @@ -1,12 +1,11 @@ //===-------- OrcMCJITReplacement.cpp - Orc-based MCJIT replacement -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcMCJITReplacement.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "OrcMCJITReplacement.h" #include "llvm/ExecutionEngine/GenericValue.h" diff --git a/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h b/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h index 508c4f88a5..7dc5164c41 100644 --- a/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h +++ b/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h @@ -1,14 +1,15 @@ //===---- OrcMCJITReplacement.h - Orc based MCJIT replacement ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcMCJITReplacement.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Orc based MCJIT replacement. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Orc based MCJIT replacement. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_ORC_ORCMCJITREPLACEMENT_H #define LLVM_LIB_EXECUTIONENGINE_ORC_ORCMCJITREPLACEMENT_H diff --git a/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp b/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp index 1cc9302d16..a161c76d68 100644 --- a/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp +++ b/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp @@ -1,12 +1,3 @@ -//===- OrcTargetSupport.cpp -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcTargetSupport.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/ADT/Triple.h" #include "llvm/ExecutionEngine/Orc/OrcTargetSupport.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt b/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt index c74ef71cc7..182f98200f 100644 --- a/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt +++ b/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMRuntimeDyld RTDyldMemoryManager.cpp RuntimeDyld.cpp diff --git a/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt b/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt index 93e5ab165f..8bd5621918 100644 --- a/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt +++ b/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt ----------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp b/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp index f1e7209ac6..ecd99004ba 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp @@ -1,14 +1,15 @@ //===-- RTDyldMemoryManager.cpp - Memory manager for MC-JIT -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RTDyldMemoryManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the runtime dynamic memory manager base class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the runtime dynamic memory manager base class. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "llvm/ExecutionEngine/RTDyldMemoryManager.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 58cf53582e..93287a3a4e 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -1,14 +1,15 @@ //===-- RuntimeDyld.cpp - Run-time dynamic linker for MC-JIT ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyld.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the MC-JIT runtime dynamic linker. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/RuntimeDyld.h" #include "RuntimeDyldCheckerImpl.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp index 237c6a8211..1dacc1393f 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp @@ -1,14 +1,15 @@ //===-- RuntimeDyldCOFF.cpp - Run-time dynamic linker for MC-JIT -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldCOFF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of COFF support for the MC-JIT runtime dynamic linker. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of COFF support for the MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #include "RuntimeDyldCOFF.h" #include "Targets/RuntimeDyldCOFFX86_64.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h index d3be7c1f5c..32b8fa269b 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h @@ -1,14 +1,15 @@ //===-- RuntimeDyldCOFF.h - Run-time dynamic linker for MC-JIT ---*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldCOFF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// COFF support for MC-JIT runtime dynamic linker. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// COFF support for MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_RUNTIME_DYLD_COFF_H #define LLVM_RUNTIME_DYLD_COFF_H diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp index a7938d447a..ae199b7202 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp @@ -1,12 +1,11 @@ //===--- RuntimeDyldChecker.cpp - RuntimeDyld tester framework --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "RuntimeDyldCheckerImpl.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h index 79b5a61c80..69d2a7d6b6 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h @@ -1,12 +1,11 @@ //===-- RuntimeDyldCheckerImpl.h -- RuntimeDyld test framework --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldCheckerImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDCHECKERIMPL_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDCHECKERIMPL_H diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp index 2b95796ce0..3787950b3b 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp @@ -1,14 +1,15 @@ //===-- RuntimeDyldELF.cpp - Run-time dynamic linker for MC-JIT -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldELF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of ELF support for the MC-JIT runtime dynamic linker. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of ELF support for the MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #include "RuntimeDyldELF.h" #include "RuntimeDyldCheckerImpl.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h index ae20f6dd6c..1a2552deed 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h @@ -1,14 +1,15 @@ //===-- RuntimeDyldELF.h - Run-time dynamic linker for MC-JIT ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldELF.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// ELF support for MC-JIT runtime dynamic linker. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// ELF support for MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDELF_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDELF_H diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h index ed9507d0a6..e085a9296e 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h @@ -1,14 +1,15 @@ //===-- RuntimeDyldImpl.h - Run-time dynamic linker for MC-JIT --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Interface for the implementations of runtime dynamic linker facilities. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Interface for the implementations of runtime dynamic linker facilities. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDIMPL_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDIMPL_H diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 12295ed8ad..c074114175 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -1,14 +1,15 @@ //===-- RuntimeDyldMachO.cpp - Run-time dynamic linker for MC-JIT -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldMachO.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the MC-JIT runtime dynamic linker. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #include "RuntimeDyldMachO.h" #include "Targets/RuntimeDyldMachOAArch64.h" diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index e3260c6431..0d7364f785 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h @@ -1,14 +1,15 @@ //===-- RuntimeDyldMachO.h - Run-time dynamic linker for MC-JIT ---*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldMachO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// MachO support for MC-JIT runtime dynamic linker. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// MachO support for MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDMACHO_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDMACHO_H diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h index 4d2884b2ab..408227eb0f 100644 --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h @@ -1,14 +1,15 @@ //===-- RuntimeDyldCOFFX86_64.h --- COFF/X86_64 specific code ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldCOFFX86_64.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// COFF x86_x64 support for MC-JIT runtime dynamic linker. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// COFF x86_x64 support for MC-JIT runtime dynamic linker. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDCOFF86_64_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDCOFF86_64_H diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h index 6690d6f6c9..7bf764114b 100644 --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h @@ -1,12 +1,11 @@ //===-- RuntimeDyldMachOAArch64.h -- MachO/AArch64 specific code. -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldMachOAArch64.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOAARCH64_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOAARCH64_H diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h index 1103f037ed..0a24bb2f5e 100644 --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h @@ -1,12 +1,11 @@ //===----- RuntimeDyldMachOARM.h ---- MachO/ARM specific code. ----*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldMachOARM.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOARM_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOARM_H diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h index 788a9c1ec0..569a078d7f 100644 --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h @@ -1,12 +1,11 @@ //===---- RuntimeDyldMachOI386.h ---- MachO/I386 specific code. ---*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldMachOI386.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOI386_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOI386_H diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h index 3a9ba91185..dd56e72f91 100644 --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h @@ -1,12 +1,11 @@ //===-- RuntimeDyldMachOX86_64.h ---- MachO/X86_64 specific code. -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RuntimeDyldMachOX86_64.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOX86_64_H #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_TARGETS_RUNTIMEDYLDMACHOX86_64_H diff --git a/lib/ExecutionEngine/SectionMemoryManager.cpp b/lib/ExecutionEngine/SectionMemoryManager.cpp index d1954bdc6f..59860844e9 100644 --- a/lib/ExecutionEngine/SectionMemoryManager.cpp +++ b/lib/ExecutionEngine/SectionMemoryManager.cpp @@ -1,15 +1,16 @@ //===- SectionMemoryManager.cpp - Memory manager for MCJIT/RtDyld *- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SectionMemoryManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the section-based memory manager used by the MCJIT // -// execution engine and RuntimeDyld // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the section-based memory manager used by the MCJIT +// execution engine and RuntimeDyld +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "llvm/ExecutionEngine/SectionMemoryManager.h" diff --git a/lib/ExecutionEngine/TargetSelect.cpp b/lib/ExecutionEngine/TargetSelect.cpp index df170e3e57..57f6e08041 100644 --- a/lib/ExecutionEngine/TargetSelect.cpp +++ b/lib/ExecutionEngine/TargetSelect.cpp @@ -1,17 +1,18 @@ //===-- TargetSelect.cpp - Target Chooser Code ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSelect.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This just asks the TargetRegistry for the appropriate target to use, and // -// allows the user to specify a specific one on the commandline with -march=x,// -// -mcpu=y, and -mattr=a,-b,+c. Clients should initialize targets prior to // -// calling selectTarget(). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This just asks the TargetRegistry for the appropriate target to use, and +// allows the user to specify a specific one on the commandline with -march=x, +// -mcpu=y, and -mattr=a,-b,+c. Clients should initialize targets prior to +// calling selectTarget(). +// +//===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ADT/Triple.h" diff --git a/lib/Fuzzer/CMakeLists.txt b/lib/Fuzzer/CMakeLists.txt index 89f9485e3a..8b4d61905d 100644 --- a/lib/Fuzzer/CMakeLists.txt +++ b/lib/Fuzzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LIBFUZZER_FLAGS_BASE "${CMAKE_CXX_FLAGS_RELEASE}") # Disable the coverage and sanitizer instrumentation for the fuzzer itself. set(CMAKE_CXX_FLAGS_RELEASE "${LIBFUZZER_FLAGS_BASE} -O2 -fno-sanitize=all") diff --git a/lib/Fuzzer/FuzzerCrossOver.cpp b/lib/Fuzzer/FuzzerCrossOver.cpp index 38371313e4..d93ce5cf4f 100644 --- a/lib/Fuzzer/FuzzerCrossOver.cpp +++ b/lib/Fuzzer/FuzzerCrossOver.cpp @@ -1,14 +1,13 @@ //===- FuzzerCrossOver.cpp - Cross over two test inputs -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerCrossOver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Cross over test inputs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Cross over test inputs. +//===----------------------------------------------------------------------===// #include diff --git a/lib/Fuzzer/FuzzerDriver.cpp b/lib/Fuzzer/FuzzerDriver.cpp index ad3ffba0fb..0ee08e1d16 100644 --- a/lib/Fuzzer/FuzzerDriver.cpp +++ b/lib/Fuzzer/FuzzerDriver.cpp @@ -1,14 +1,13 @@ //===- FuzzerDriver.cpp - FuzzerDriver function and flags -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerDriver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// FuzzerDriver and flag parsing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// FuzzerDriver and flag parsing. +//===----------------------------------------------------------------------===// #include "FuzzerInterface.h" #include "FuzzerInternal.h" diff --git a/lib/Fuzzer/FuzzerFlags.def b/lib/Fuzzer/FuzzerFlags.def index 51ea6f946f..8795b9b448 100644 --- a/lib/Fuzzer/FuzzerFlags.def +++ b/lib/Fuzzer/FuzzerFlags.def @@ -1,16 +1,15 @@ //===- FuzzerFlags.def - Run-time flags -------------------------*- C++ -* ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerFlags.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Flags. FUZZER_FLAG_INT/FUZZER_FLAG_STRING macros should be defined at the // -// point of inclusion. We are not using any flag parsing library for better // -// portability and independence. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Flags. FUZZER_FLAG_INT/FUZZER_FLAG_STRING macros should be defined at the +// point of inclusion. We are not using any flag parsing library for better +// portability and independence. +//===----------------------------------------------------------------------===// FUZZER_FLAG_INT(verbosity, 1, "Verbosity level.") FUZZER_FLAG_INT(seed, 0, "Random seed. If 0, seed is generated.") diff --git a/lib/Fuzzer/FuzzerIO.cpp b/lib/Fuzzer/FuzzerIO.cpp index 686facc6a8..e8133ae4e9 100644 --- a/lib/Fuzzer/FuzzerIO.cpp +++ b/lib/Fuzzer/FuzzerIO.cpp @@ -1,12 +1,13 @@ //===- FuzzerIO.cpp - IO utils. -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerIO.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// IO functions. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// IO functions. +//===----------------------------------------------------------------------===// #include "FuzzerInternal.h" #include diff --git a/lib/Fuzzer/FuzzerInterface.cpp b/lib/Fuzzer/FuzzerInterface.cpp index c6a562ad15..5fb360531b 100644 --- a/lib/Fuzzer/FuzzerInterface.cpp +++ b/lib/Fuzzer/FuzzerInterface.cpp @@ -1,14 +1,13 @@ //===- FuzzerInterface.cpp - Mutate a test input --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerInterface.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Parts of public interface for libFuzzer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Parts of public interface for libFuzzer. +//===----------------------------------------------------------------------===// #include "FuzzerInterface.h" #include "FuzzerInternal.h" diff --git a/lib/Fuzzer/FuzzerInterface.h b/lib/Fuzzer/FuzzerInterface.h index 0a002e60a9..3fd807afcf 100644 --- a/lib/Fuzzer/FuzzerInterface.h +++ b/lib/Fuzzer/FuzzerInterface.h @@ -1,14 +1,13 @@ //===- FuzzerInterface.h - Interface header for the Fuzzer ------*- C++ -* ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerInterface.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Define the interface between the Fuzzer and the library being tested. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Define the interface between the Fuzzer and the library being tested. +//===----------------------------------------------------------------------===// // WARNING: keep the interface free of STL or any other header-based C++ lib, // to avoid bad interactions between the code used in the fuzzer and diff --git a/lib/Fuzzer/FuzzerInternal.h b/lib/Fuzzer/FuzzerInternal.h index 2c46c7ad2b..c387fe7a7c 100644 --- a/lib/Fuzzer/FuzzerInternal.h +++ b/lib/Fuzzer/FuzzerInternal.h @@ -1,14 +1,13 @@ //===- FuzzerInternal.h - Internal header for the Fuzzer --------*- C++ -* ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerInternal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Define the main class fuzzer::Fuzzer and most functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Define the main class fuzzer::Fuzzer and most functions. +//===----------------------------------------------------------------------===// #include #include #include diff --git a/lib/Fuzzer/FuzzerLoop.cpp b/lib/Fuzzer/FuzzerLoop.cpp index 38fa6a884a..9ef47583cb 100644 --- a/lib/Fuzzer/FuzzerLoop.cpp +++ b/lib/Fuzzer/FuzzerLoop.cpp @@ -1,14 +1,13 @@ //===- FuzzerLoop.cpp - Fuzzer's main loop --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerLoop.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Fuzzer's main loop. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Fuzzer's main loop. +//===----------------------------------------------------------------------===// #include "FuzzerInternal.h" #include diff --git a/lib/Fuzzer/FuzzerMain.cpp b/lib/Fuzzer/FuzzerMain.cpp index 5ff78c6876..c4dffb45d1 100644 --- a/lib/Fuzzer/FuzzerMain.cpp +++ b/lib/Fuzzer/FuzzerMain.cpp @@ -1,14 +1,13 @@ //===- FuzzerMain.cpp - main() function and flags -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerMain.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// main() and flags. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// main() and flags. +//===----------------------------------------------------------------------===// #include "FuzzerInterface.h" #include "FuzzerInternal.h" diff --git a/lib/Fuzzer/FuzzerMutate.cpp b/lib/Fuzzer/FuzzerMutate.cpp index 6ba0540086..f537fa90fd 100644 --- a/lib/Fuzzer/FuzzerMutate.cpp +++ b/lib/Fuzzer/FuzzerMutate.cpp @@ -1,14 +1,13 @@ //===- FuzzerMutate.cpp - Mutate a test input -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerMutate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Mutate a test input. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Mutate a test input. +//===----------------------------------------------------------------------===// #include diff --git a/lib/Fuzzer/FuzzerSHA1.cpp b/lib/Fuzzer/FuzzerSHA1.cpp index 2f222c2def..b42a04854c 100644 --- a/lib/Fuzzer/FuzzerSHA1.cpp +++ b/lib/Fuzzer/FuzzerSHA1.cpp @@ -1,21 +1,20 @@ //===- FuzzerSHA1.h - Private copy of the SHA1 implementation ---*- C++ -* ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerSHA1.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This code is taken from public domain // -// (http://oauth.googlecode.com/svn/code/c/liboauth/src/sha1.c) // -// and modified by adding anonymous namespace, adding an interface // -// function fuzzer::ComputeSHA1() and removing unnecessary code. // -// // -// lib/Fuzzer can not use SHA1 implementation from openssl because // -// openssl may not be available and because we may be fuzzing openssl itself.// -// For the same reason we do not want to depend on SHA1 from LLVM tree. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This code is taken from public domain +// (http://oauth.googlecode.com/svn/code/c/liboauth/src/sha1.c) +// and modified by adding anonymous namespace, adding an interface +// function fuzzer::ComputeSHA1() and removing unnecessary code. +// +// lib/Fuzzer can not use SHA1 implementation from openssl because +// openssl may not be available and because we may be fuzzing openssl itself. +// For the same reason we do not want to depend on SHA1 from LLVM tree. +//===----------------------------------------------------------------------===// #include "FuzzerInternal.h" diff --git a/lib/Fuzzer/FuzzerSanitizerOptions.cpp b/lib/Fuzzer/FuzzerSanitizerOptions.cpp index 7d02259ab5..2d4fdc5829 100644 --- a/lib/Fuzzer/FuzzerSanitizerOptions.cpp +++ b/lib/Fuzzer/FuzzerSanitizerOptions.cpp @@ -1,20 +1,19 @@ //===- FuzzerSanitizerOptions.cpp - default flags for sanitizers ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerSanitizerOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Set default options for sanitizers while running the fuzzer. // -// Options reside in a separate file, so if we don't want to set the default // -// options we simply do not link this file in. // -// ASAN options: // -// * don't dump the coverage to disk. // -// * enable coverage by default. // -// * enable handle_abort. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Set default options for sanitizers while running the fuzzer. +// Options reside in a separate file, so if we don't want to set the default +// options we simply do not link this file in. +// ASAN options: +// * don't dump the coverage to disk. +// * enable coverage by default. +// * enable handle_abort. +//===----------------------------------------------------------------------===// extern "C" const char *__asan_default_options() { return "coverage_pcs=0:coverage=1:handle_abort=1"; diff --git a/lib/Fuzzer/FuzzerTraceState.cpp b/lib/Fuzzer/FuzzerTraceState.cpp index c1417d72f2..b2e1e956df 100644 --- a/lib/Fuzzer/FuzzerTraceState.cpp +++ b/lib/Fuzzer/FuzzerTraceState.cpp @@ -1,66 +1,65 @@ //===- FuzzerTraceState.cpp - Trace-based fuzzer mutator ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerTraceState.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a mutation algorithm based on instruction traces and // -// on taint analysis feedback from DFSan. // -// // -// Instruction traces are special hooks inserted by the compiler around // -// interesting instructions. Currently supported traces: // -// * __sanitizer_cov_trace_cmp -- inserted before every ICMP instruction, // -// receives the type, size and arguments of ICMP. // -// // -// Every time a traced event is intercepted we analyse the data involved // -// in the event and suggest a mutation for future executions. // -// For example if 4 bytes of data that derive from input bytes {4,5,6,7} // -// are compared with a constant 12345, // -// we try to insert 12345, 12344, 12346 into bytes // -// {4,5,6,7} of the next fuzzed inputs. // -// // -// The fuzzer can work only with the traces, or with both traces and DFSan. // -// // -// DataFlowSanitizer (DFSan) is a tool for // -// generalised dynamic data flow (taint) analysis: // -// http://clang.llvm.org/docs/DataFlowSanitizer.html . // -// // -// The approach with DFSan-based fuzzing has some similarity to // -// "Taint-based Directed Whitebox Fuzzing" // -// by Vijay Ganesh & Tim Leek & Martin Rinard: // -// http://dspace.mit.edu/openaccess-disseminate/1721.1/59320, // -// but it uses a full blown LLVM IR taint analysis and separate instrumentation// -// to analyze all of the "attack points" at once. // -// // -// Workflow with DFSan: // -// * lib/Fuzzer/Fuzzer*.cpp is compiled w/o any instrumentation. // -// * The code under test is compiled with DFSan *and* with instruction traces.// -// * Every call to HOOK(a,b) is replaced by DFSan with // -// __dfsw_HOOK(a, b, label(a), label(b)) so that __dfsw_HOOK // -// gets all the taint labels for the arguments. // -// * At the Fuzzer startup we assign a unique DFSan label // -// to every byte of the input string (Fuzzer::CurrentUnit) so that for any// -// chunk of data we know which input bytes it has derived from. // -// * The __dfsw_* functions (implemented in this file) record the // -// parameters (i.e. the application data and the corresponding taint labels)// -// in a global state. // -// * Fuzzer::ApplyTraceBasedMutation() tries to use the data recorded // -// by __dfsw_* hooks to guide the fuzzing towards new application states.// -// // -// Parts of this code will not function when DFSan is not linked in. // -// Instead of using ifdefs and thus requiring a separate build of lib/Fuzzer // -// we redeclare the dfsan_* interface functions as weak and check if they // -// are nullptr before calling. // -// If this approach proves to be useful we may add attribute(weak) to the // -// dfsan declarations in dfsan_interface.h // -// // -// This module is in the "proof of concept" stage. // -// It is capable of solving only the simplest puzzles // -// like test/dfsan/DFSanSimpleCmpTest.cpp. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file implements a mutation algorithm based on instruction traces and +// on taint analysis feedback from DFSan. +// +// Instruction traces are special hooks inserted by the compiler around +// interesting instructions. Currently supported traces: +// * __sanitizer_cov_trace_cmp -- inserted before every ICMP instruction, +// receives the type, size and arguments of ICMP. +// +// Every time a traced event is intercepted we analyse the data involved +// in the event and suggest a mutation for future executions. +// For example if 4 bytes of data that derive from input bytes {4,5,6,7} +// are compared with a constant 12345, +// we try to insert 12345, 12344, 12346 into bytes +// {4,5,6,7} of the next fuzzed inputs. +// +// The fuzzer can work only with the traces, or with both traces and DFSan. +// +// DataFlowSanitizer (DFSan) is a tool for +// generalised dynamic data flow (taint) analysis: +// http://clang.llvm.org/docs/DataFlowSanitizer.html . +// +// The approach with DFSan-based fuzzing has some similarity to +// "Taint-based Directed Whitebox Fuzzing" +// by Vijay Ganesh & Tim Leek & Martin Rinard: +// http://dspace.mit.edu/openaccess-disseminate/1721.1/59320, +// but it uses a full blown LLVM IR taint analysis and separate instrumentation +// to analyze all of the "attack points" at once. +// +// Workflow with DFSan: +// * lib/Fuzzer/Fuzzer*.cpp is compiled w/o any instrumentation. +// * The code under test is compiled with DFSan *and* with instruction traces. +// * Every call to HOOK(a,b) is replaced by DFSan with +// __dfsw_HOOK(a, b, label(a), label(b)) so that __dfsw_HOOK +// gets all the taint labels for the arguments. +// * At the Fuzzer startup we assign a unique DFSan label +// to every byte of the input string (Fuzzer::CurrentUnit) so that for any +// chunk of data we know which input bytes it has derived from. +// * The __dfsw_* functions (implemented in this file) record the +// parameters (i.e. the application data and the corresponding taint labels) +// in a global state. +// * Fuzzer::ApplyTraceBasedMutation() tries to use the data recorded +// by __dfsw_* hooks to guide the fuzzing towards new application states. +// +// Parts of this code will not function when DFSan is not linked in. +// Instead of using ifdefs and thus requiring a separate build of lib/Fuzzer +// we redeclare the dfsan_* interface functions as weak and check if they +// are nullptr before calling. +// If this approach proves to be useful we may add attribute(weak) to the +// dfsan declarations in dfsan_interface.h +// +// This module is in the "proof of concept" stage. +// It is capable of solving only the simplest puzzles +// like test/dfsan/DFSanSimpleCmpTest.cpp. +//===----------------------------------------------------------------------===// /* Example of manual usage (-fsanitize=dataflow is optional): ( diff --git a/lib/Fuzzer/FuzzerUtil.cpp b/lib/Fuzzer/FuzzerUtil.cpp index 9a31613efb..e381c04063 100644 --- a/lib/Fuzzer/FuzzerUtil.cpp +++ b/lib/Fuzzer/FuzzerUtil.cpp @@ -1,14 +1,13 @@ //===- FuzzerUtil.cpp - Misc utils ----------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FuzzerUtil.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Misc utils. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Misc utils. +//===----------------------------------------------------------------------===// #include "FuzzerInternal.h" #include diff --git a/lib/Fuzzer/test/CounterTest.cpp b/lib/Fuzzer/test/CounterTest.cpp index 426c1ae28f..e538447538 100644 --- a/lib/Fuzzer/test/CounterTest.cpp +++ b/lib/Fuzzer/test/CounterTest.cpp @@ -1,12 +1,5 @@ -//===- CounterTest.cpp ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CounterTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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. diff --git a/lib/Fuzzer/test/CxxTokensTest.cpp b/lib/Fuzzer/test/CxxTokensTest.cpp index 6c487b0110..ff47275a89 100644 --- a/lib/Fuzzer/test/CxxTokensTest.cpp +++ b/lib/Fuzzer/test/CxxTokensTest.cpp @@ -1,12 +1,4 @@ -//===- CxxTokensTest.cpp ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CxxTokens.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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 diff --git a/lib/Fuzzer/test/DFSanMemcmpTest.cpp b/lib/Fuzzer/test/DFSanMemcmpTest.cpp index d0ccfacf00..e943411e3f 100644 --- a/lib/Fuzzer/test/DFSanMemcmpTest.cpp +++ b/lib/Fuzzer/test/DFSanMemcmpTest.cpp @@ -1,12 +1,4 @@ -//===- DFSanMemcmpTest.cpp --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DFSanMemcmpTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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 diff --git a/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp b/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp index 8673e5d318..0d94c5d164 100644 --- a/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp +++ b/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp @@ -1,12 +1,4 @@ -//===- DFSanSimpleCmpTest.cpp -----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DFSanSimpleCmpTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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 diff --git a/lib/Fuzzer/test/FourIndependentBranchesTest.cpp b/lib/Fuzzer/test/FourIndependentBranchesTest.cpp index df7c2dfdf6..0fd795ca07 100644 --- a/lib/Fuzzer/test/FourIndependentBranchesTest.cpp +++ b/lib/Fuzzer/test/FourIndependentBranchesTest.cpp @@ -1,12 +1,4 @@ -//===- FourIndependentBranchesTest.cpp --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FourIndependentBranchesTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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 diff --git a/lib/Fuzzer/test/FullCoverageSetTest.cpp b/lib/Fuzzer/test/FullCoverageSetTest.cpp index 745c25104a..a5d20755f7 100644 --- a/lib/Fuzzer/test/FullCoverageSetTest.cpp +++ b/lib/Fuzzer/test/FullCoverageSetTest.cpp @@ -1,12 +1,4 @@ -//===- FullCoverageSetTest.cpp ----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FullCoverageSetTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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 diff --git a/lib/Fuzzer/test/FuzzerUnittest.cpp b/lib/Fuzzer/test/FuzzerUnittest.cpp index 029cadb5b5..eabea3f5e6 100644 --- a/lib/Fuzzer/test/FuzzerUnittest.cpp +++ b/lib/Fuzzer/test/FuzzerUnittest.cpp @@ -1,11 +1,3 @@ -//===- FuzzerUnittest.cpp ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "FuzzerInternal.h" #include "gtest/gtest.h" diff --git a/lib/Fuzzer/test/InfiniteTest.cpp b/lib/Fuzzer/test/InfiniteTest.cpp index e6a9665151..48e4ba2d20 100644 --- a/lib/Fuzzer/test/InfiniteTest.cpp +++ b/lib/Fuzzer/test/InfiniteTest.cpp @@ -1,12 +1,4 @@ -//===- InfiniteTest.cpp -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InfiniteTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// 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 diff --git a/lib/Fuzzer/test/NullDerefTest.cpp b/lib/Fuzzer/test/NullDerefTest.cpp index 6608049acd..f5a93eca57 100644 --- a/lib/Fuzzer/test/NullDerefTest.cpp +++ b/lib/Fuzzer/test/NullDerefTest.cpp @@ -1,13 +1,4 @@ -//===- NullDerefTest.cpp ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NullDerefTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// 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/Fuzzer/test/SimpleTest.cpp b/lib/Fuzzer/test/SimpleTest.cpp index 88747b4f91..b1cd3445b9 100644 --- a/lib/Fuzzer/test/SimpleTest.cpp +++ b/lib/Fuzzer/test/SimpleTest.cpp @@ -1,13 +1,4 @@ -//===- SimpleTest.cpp -------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimpleTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// 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/Fuzzer/test/TimeoutTest.cpp b/lib/Fuzzer/test/TimeoutTest.cpp index 61b5d63134..70c4f66357 100644 --- a/lib/Fuzzer/test/TimeoutTest.cpp +++ b/lib/Fuzzer/test/TimeoutTest.cpp @@ -1,13 +1,4 @@ -//===- TimeoutTest.cpp ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TimeoutTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// 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/Fuzzer/test/UserSuppliedFuzzerTest.cpp b/lib/Fuzzer/test/UserSuppliedFuzzerTest.cpp index 279fec2263..eae67ef001 100644 --- a/lib/Fuzzer/test/UserSuppliedFuzzerTest.cpp +++ b/lib/Fuzzer/test/UserSuppliedFuzzerTest.cpp @@ -1,15 +1,6 @@ -//===- UserSuppliedFuzzerTest.cpp -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UserSuppliedFuzzerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Simple test for a fuzzer. // -// The fuzzer must find the string "Hi!" preceded by a magic value. // -// Uses UserSuppliedFuzzer which ensures that the magic is present. // +// Simple test for a fuzzer. +// The fuzzer must find the string "Hi!" preceded by a magic value. +// Uses UserSuppliedFuzzer which ensures that the magic is present. #include #include diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index b3b799b7c9..87d05a5152 100644 --- a/lib/IR/AsmWriter.cpp +++ b/lib/IR/AsmWriter.cpp @@ -1,17 +1,18 @@ //===-- AsmWriter.cpp - Printing LLVM as an assembly file -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This library implements the functionality defined in llvm/IR/Writer.h // -// // -// Note that these routines must be extremely tolerant of various errors in the// -// LLVM code, because it can be used for debugging transformations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This library implements the functionality defined in llvm/IR/Writer.h +// +// Note that these routines must be extremely tolerant of various errors in the +// LLVM code, because it can be used for debugging transformations. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h index 86c635bd75..558f030828 100644 --- a/lib/IR/AttributeImpl.h +++ b/lib/IR/AttributeImpl.h @@ -1,15 +1,15 @@ //===-- AttributeImpl.h - Attribute Internals -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttributeImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file defines various helper methods and classes used by // -/// LLVMContextImpl for creating and managing attributes. // +/// \file +/// \brief This file defines various helper methods and classes used by +/// LLVMContextImpl for creating and managing attributes. /// //===----------------------------------------------------------------------===// diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 66b118b6ef..671565aeed 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -1,16 +1,17 @@ //===-- Attributes.cpp - Implement AttributesList -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Attributes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// \file // -// \brief This file implements the Attribute, AttributeImpl, AttrBuilder, // -// AttributeSetImpl, and AttributeSet classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// \file +// \brief This file implements the Attribute, AttributeImpl, AttrBuilder, +// AttributeSetImpl, and AttributeSet classes. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Attributes.h" #include "AttributeImpl.h" diff --git a/lib/IR/AutoUpgrade.cpp b/lib/IR/AutoUpgrade.cpp index b8a89b5b2b..8ecff82d05 100644 --- a/lib/IR/AutoUpgrade.cpp +++ b/lib/IR/AutoUpgrade.cpp @@ -1,16 +1,17 @@ //===-- AutoUpgrade.cpp - Implement auto-upgrade helper functions ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AutoUpgrade.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the auto-upgrade helper functions. // -// This is where deprecated IR intrinsics and other IR features are updated to// -// current specifications. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the auto-upgrade helper functions. +// This is where deprecated IR intrinsics and other IR features are updated to +// current specifications. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/AutoUpgrade.h" #include "llvm/IR/CFG.h" diff --git a/lib/IR/BasicBlock.cpp b/lib/IR/BasicBlock.cpp index d51522d362..0a0449434a 100644 --- a/lib/IR/BasicBlock.cpp +++ b/lib/IR/BasicBlock.cpp @@ -1,14 +1,15 @@ //===-- BasicBlock.cpp - Implement BasicBlock related methods -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicBlock.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the BasicBlock class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the BasicBlock class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/BasicBlock.h" #include "SymbolTableListTraitsImpl.h" diff --git a/lib/IR/CMakeLists.txt b/lib/IR/CMakeLists.txt index 9c23119284..aabeaefc0c 100644 --- a/lib/IR/CMakeLists.txt +++ b/lib/IR/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMCore AsmWriter.cpp Attributes.cpp diff --git a/lib/IR/Comdat.cpp b/lib/IR/Comdat.cpp index 4a45cde281..80715ff40b 100644 --- a/lib/IR/Comdat.cpp +++ b/lib/IR/Comdat.cpp @@ -1,14 +1,15 @@ //===-- Comdat.cpp - Implement Metadata classes --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Comdat.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Comdat class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Comdat class. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Comdat.h" #include "llvm/ADT/StringMap.h" diff --git a/lib/IR/ConstantFold.cpp b/lib/IR/ConstantFold.cpp index 328f4968a2..46bb20e0d1 100644 --- a/lib/IR/ConstantFold.cpp +++ b/lib/IR/ConstantFold.cpp @@ -1,20 +1,21 @@ //===- ConstantFold.cpp - LLVM constant folder ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantFold.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements folding of constants for LLVM. This implements the // -// (internal) ConstantFold.h interface, which is used by the // -// ConstantExpr::get* methods to automatically fold constants when possible. // -// // -// The current constant folding implementation is implemented in two pieces: the// -// pieces that don't need DataLayout, and the pieces that do. This is to avoid// -// a dependence in IR on Target. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements folding of constants for LLVM. This implements the +// (internal) ConstantFold.h interface, which is used by the +// ConstantExpr::get* methods to automatically fold constants when possible. +// +// The current constant folding implementation is implemented in two pieces: the +// pieces that don't need DataLayout, and the pieces that do. This is to avoid +// a dependence in IR on Target. +// +//===----------------------------------------------------------------------===// #include "ConstantFold.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/IR/ConstantFold.h b/lib/IR/ConstantFold.h index 43859c6a18..42a9c6ba90 100644 --- a/lib/IR/ConstantFold.h +++ b/lib/IR/ConstantFold.h @@ -1,19 +1,20 @@ //===-- ConstantFolding.h - Internal Constant Folding Interface -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantFold.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the (internal) constant folding interfaces for LLVM. These// -// interfaces are used by the ConstantExpr::get* methods to automatically fold// -// constants when possible. // // -// These operators may return a null object if they don't know how to perform// -// the specified operation on the specified constant types. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the (internal) constant folding interfaces for LLVM. These +// interfaces are used by the ConstantExpr::get* methods to automatically fold +// constants when possible. +// +// These operators may return a null object if they don't know how to perform +// the specified operation on the specified constant types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_IR_CONSTANTFOLD_H #define LLVM_LIB_IR_CONSTANTFOLD_H diff --git a/lib/IR/ConstantRange.cpp b/lib/IR/ConstantRange.cpp index a5e6b96124..91095cfe9e 100644 --- a/lib/IR/ConstantRange.cpp +++ b/lib/IR/ConstantRange.cpp @@ -1,24 +1,25 @@ //===-- ConstantRange.cpp - ConstantRange implementation ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantRange.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Represent a range of possible values that may occur when the program is run// -// for an integral value. This keeps track of a lower and upper bound for the// -// constant, which MAY wrap around the end of the numeric range. To do this, it// -// keeps track of a [lower, upper) bound, which specifies an interval just like// -// STL iterators. When used with boolean values, the following are important// -// ranges (other integral ranges use min/max values for special range values):// -// // -// [F, F) = {} = Empty set // -// [T, F) = {T} // -// [F, T) = {F} // -// [T, T) = {F, T} = Full set // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Represent a range of possible values that may occur when the program is run +// for an integral value. This keeps track of a lower and upper bound for the +// constant, which MAY wrap around the end of the numeric range. To do this, it +// keeps track of a [lower, upper) bound, which specifies an interval just like +// STL iterators. When used with boolean values, the following are important +// ranges (other integral ranges use min/max values for special range values): +// +// [F, F) = {} = Empty set +// [T, F) = {T} +// [F, T) = {F} +// [T, T) = {F, T} = Full set +// +//===----------------------------------------------------------------------===// #include "llvm/IR/InstrTypes.h" #include "llvm/IR/ConstantRange.h" diff --git a/lib/IR/Constants.cpp b/lib/IR/Constants.cpp index 11aca217d4..308e6bde3d 100644 --- a/lib/IR/Constants.cpp +++ b/lib/IR/Constants.cpp @@ -1,14 +1,15 @@ //===-- Constants.cpp - Implement Constant nodes --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Constants.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Constant* classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Constant* classes. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Constants.h" #include "ConstantFold.h" diff --git a/lib/IR/ConstantsContext.h b/lib/IR/ConstantsContext.h index c17cdd0351..f3ddcd78d2 100644 --- a/lib/IR/ConstantsContext.h +++ b/lib/IR/ConstantsContext.h @@ -1,15 +1,16 @@ //===-- ConstantsContext.h - Constants-related Context Interals -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantsContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines various helper methods and classes used by // -// LLVMContextImpl for creating and managing constants. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines various helper methods and classes used by +// LLVMContextImpl for creating and managing constants. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_IR_CONSTANTSCONTEXT_H #define LLVM_LIB_IR_CONSTANTSCONTEXT_H diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 20cd03d106..a09a30ac2d 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -1,15 +1,16 @@ //===-- Core.cpp ----------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Core.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the common infrastructure (including the C bindings) // -// for libLLVMCore.a, which implements the LLVM intermediate representation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the common infrastructure (including the C bindings) +// for libLLVMCore.a, which implements the LLVM intermediate representation. +// +//===----------------------------------------------------------------------===// #include "llvm-c/Core.h" #include "llvm/Bitcode/ReaderWriter.h" diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 6f53186c35..2a90e70af1 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -1,14 +1,15 @@ //===--- DIBuilder.cpp - Debug Information Builder ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the DIBuilder. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DIBuilder. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DIBuilder.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/IR/DataLayout.cpp b/lib/IR/DataLayout.cpp index fe9bd3eabf..d3f03566e7 100644 --- a/lib/IR/DataLayout.cpp +++ b/lib/IR/DataLayout.cpp @@ -1,19 +1,20 @@ //===-- DataLayout.cpp - Data size & alignment routines --------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataLayout.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines layout properties related to datatype size/offset/alignment// -// information. // -// // -// This structure should be created once, filled in if the defaults are not // -// correct and then passed around by const&. None of the members functions // -// require modification to the object. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines layout properties related to datatype size/offset/alignment +// information. +// +// This structure should be created once, filled in if the defaults are not +// correct and then passed around by const&. None of the members functions +// require modification to the object. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DataLayout.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 942b76d743..02e1383806 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -1,15 +1,16 @@ //===--- DebugInfo.cpp - Debug Information Helper Classes -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the helper classes used to build and interpret debug // -// information in LLVM IR form. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the helper classes used to build and interpret debug +// information in LLVM IR form. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DebugInfo.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/DebugInfoMetadata.cpp b/lib/IR/DebugInfoMetadata.cpp index f3339aec70..5e017488c1 100644 --- a/lib/IR/DebugInfoMetadata.cpp +++ b/lib/IR/DebugInfoMetadata.cpp @@ -1,14 +1,15 @@ //===- DebugInfoMetadata.cpp - Implement debug info metadata --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugInfoMetadata.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the debug info Metadata classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the debug info Metadata classes. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DebugInfoMetadata.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/DebugLoc.cpp b/lib/IR/DebugLoc.cpp index 87271aad3b..72d5c0e618 100644 --- a/lib/IR/DebugLoc.cpp +++ b/lib/IR/DebugLoc.cpp @@ -1,12 +1,11 @@ //===-- DebugLoc.cpp - Implement DebugLoc class ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugLoc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DebugLoc.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/DiagnosticInfo.cpp b/lib/IR/DiagnosticInfo.cpp index e265f1c7aa..b8f77eda15 100644 --- a/lib/IR/DiagnosticInfo.cpp +++ b/lib/IR/DiagnosticInfo.cpp @@ -1,16 +1,16 @@ //===- llvm/Support/DiagnosticInfo.cpp - Diagnostic Definitions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the different classes involved in low level diagnostics.// -// // -// Diagnostics reporting is still done as part of the LLVMContext. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the different classes involved in low level diagnostics. +// +// Diagnostics reporting is still done as part of the LLVMContext. +//===----------------------------------------------------------------------===// #include "LLVMContextImpl.h" #include "llvm/ADT/Twine.h" diff --git a/lib/IR/DiagnosticPrinter.cpp b/lib/IR/DiagnosticPrinter.cpp index e2fbcedfa1..659ff49d62 100644 --- a/lib/IR/DiagnosticPrinter.cpp +++ b/lib/IR/DiagnosticPrinter.cpp @@ -1,14 +1,15 @@ //===- llvm/Support/DiagnosticInfo.cpp - Diagnostic Definitions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a diagnostic printer relying on raw_ostream. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a diagnostic printer relying on raw_ostream. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Twine.h" #include "llvm/IR/DiagnosticPrinter.h" diff --git a/lib/IR/Dominators.cpp b/lib/IR/Dominators.cpp index fa89aee715..b6a8bbcbe5 100644 --- a/lib/IR/Dominators.cpp +++ b/lib/IR/Dominators.cpp @@ -1,17 +1,18 @@ //===- Dominators.cpp - Dominator Calculation -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dominators.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements simple dominator construction algorithms for finding // -// forward dominators. Postdominators are available in libanalysis, but are not// -// included in libvmcore, because it's not needed. Forward dominators are // -// needed to support the Verifier pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements simple dominator construction algorithms for finding +// forward dominators. Postdominators are available in libanalysis, but are not +// included in libvmcore, because it's not needed. Forward dominators are +// needed to support the Verifier pass. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Dominators.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/IR/Function.cpp b/lib/IR/Function.cpp index d694c685c8..d408e2ff0e 100644 --- a/lib/IR/Function.cpp +++ b/lib/IR/Function.cpp @@ -1,14 +1,15 @@ //===-- Function.cpp - Implement the Global object classes ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Function.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Function class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Function class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Function.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp index e3ea844bac..6ed5891317 100644 --- a/lib/IR/GCOV.cpp +++ b/lib/IR/GCOV.cpp @@ -1,15 +1,16 @@ //===- GCOV.cpp - LLVM coverage tool --------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCOV.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// GCOV implements the interface to read and write coverage files that use // -// 'gcov' format. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// GCOV implements the interface to read and write coverage files that use +// 'gcov' format. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/GCOV.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/IR/GVMaterializer.cpp b/lib/IR/GVMaterializer.cpp index 2dd34af8ef..706926d1b9 100644 --- a/lib/IR/GVMaterializer.cpp +++ b/lib/IR/GVMaterializer.cpp @@ -1,15 +1,16 @@ //===-- GVMaterializer.cpp - Base implementation for GV materializers -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GVMaterializer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Minimal implementation of the abstract interface for materializing // -// GlobalValues. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Minimal implementation of the abstract interface for materializing +// GlobalValues. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/GVMaterializer.h" using namespace llvm; diff --git a/lib/IR/Globals.cpp b/lib/IR/Globals.cpp index c60a287677..9846dc53fa 100644 --- a/lib/IR/Globals.cpp +++ b/lib/IR/Globals.cpp @@ -1,15 +1,16 @@ //===-- Globals.cpp - Implement the GlobalValue & GlobalVariable class ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Globals.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the GlobalValue & GlobalVariable classes for the IR // -// library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the GlobalValue & GlobalVariable classes for the IR +// library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/GlobalValue.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/IR/IRBuilder.cpp b/lib/IR/IRBuilder.cpp index 3fe4382c28..bddb278dee 100644 --- a/lib/IR/IRBuilder.cpp +++ b/lib/IR/IRBuilder.cpp @@ -1,15 +1,16 @@ //===---- IRBuilder.cpp - Builder for LLVM Instrs -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the IRBuilder class, which is used as a convenient way// -// to create LLVM instructions with a consistent and simplified interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the IRBuilder class, which is used as a convenient way +// to create LLVM instructions with a consistent and simplified interface. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Function.h" #include "llvm/IR/GlobalVariable.h" diff --git a/lib/IR/IRPrintingPasses.cpp b/lib/IR/IRPrintingPasses.cpp index f363cfa140..c1ac336c1f 100644 --- a/lib/IR/IRPrintingPasses.cpp +++ b/lib/IR/IRPrintingPasses.cpp @@ -1,14 +1,15 @@ //===--- IRPrintingPasses.cpp - Module and Function printing passes -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRPrintingPasses.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// PrintModulePass and PrintFunctionPass implementations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// PrintModulePass and PrintFunctionPass implementations. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/IRPrintingPasses.h" #include "llvm/IR/Function.h" diff --git a/lib/IR/InlineAsm.cpp b/lib/IR/InlineAsm.cpp index dde2783cdd..aa9e0272ad 100644 --- a/lib/IR/InlineAsm.cpp +++ b/lib/IR/InlineAsm.cpp @@ -1,14 +1,15 @@ //===-- InlineAsm.cpp - Implement the InlineAsm class ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineAsm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the InlineAsm class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the InlineAsm class. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/InlineAsm.h" #include "ConstantsContext.h" diff --git a/lib/IR/Instruction.cpp b/lib/IR/Instruction.cpp index 4a0ec66e46..c57ba16cf6 100644 --- a/lib/IR/Instruction.cpp +++ b/lib/IR/Instruction.cpp @@ -1,14 +1,15 @@ //===-- Instruction.cpp - Implement the Instruction class -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instruction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Instruction class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Instruction class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Instruction.h" #include "llvm/IR/CallSite.h" diff --git a/lib/IR/Instructions.cpp b/lib/IR/Instructions.cpp index 32fc800889..86c921aeda 100644 --- a/lib/IR/Instructions.cpp +++ b/lib/IR/Instructions.cpp @@ -1,15 +1,16 @@ //===-- Instructions.cpp - Implement the LLVM instructions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instructions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements all of the non-inline methods for the LLVM instruction// -// classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements all of the non-inline methods for the LLVM instruction +// classes. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Instructions.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/IntrinsicInst.cpp b/lib/IR/IntrinsicInst.cpp index d7c442803c..b9b5a29091 100644 --- a/lib/IR/IntrinsicInst.cpp +++ b/lib/IR/IntrinsicInst.cpp @@ -1,24 +1,25 @@ //===-- InstrinsicInst.cpp - Intrinsic Instruction Wrappers ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicInst.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements methods that make it really easy to deal with intrinsic// -// functions. // -// // -// All intrinsic function calls are instances of the call instruction, so these// -// are all subclasses of the CallInst class. Note that none of these classes// -// has state or virtual methods, which is an important part of this gross/neat// -// hack working. // -// // -// In some cases, arguments to intrinsics need to be generic and are defined as// -// type pointer to empty struct { }*. To access the real item of interest the// -// cast instruction needs to be stripped away. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements methods that make it really easy to deal with intrinsic +// functions. +// +// All intrinsic function calls are instances of the call instruction, so these +// are all subclasses of the CallInst class. Note that none of these classes +// has state or virtual methods, which is an important part of this gross/neat +// hack working. +// +// In some cases, arguments to intrinsics need to be generic and are defined as +// type pointer to empty struct { }*. To access the real item of interest the +// cast instruction needs to be stripped away. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/Constants.h" diff --git a/lib/IR/LLVMBuild.txt b/lib/IR/LLVMBuild.txt index 98a34abc76..cd90ef5b16 100644 --- a/lib/IR/LLVMBuild.txt +++ b/lib/IR/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/IR/LLVMBuild.txt -----------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/IR/LLVMContext.cpp b/lib/IR/LLVMContext.cpp index cb3256ebfe..ff98dbd4b2 100644 --- a/lib/IR/LLVMContext.cpp +++ b/lib/IR/LLVMContext.cpp @@ -1,15 +1,16 @@ //===-- LLVMContext.cpp - Implement LLVMContext ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements LLVMContext, as a wrapper around the opaque // -// class LLVMContextImpl. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements LLVMContext, as a wrapper around the opaque +// class LLVMContextImpl. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LLVMContext.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/LLVMContextImpl.cpp b/lib/IR/LLVMContextImpl.cpp index 9b819001bc..1e2080770f 100644 --- a/lib/IR/LLVMContextImpl.cpp +++ b/lib/IR/LLVMContextImpl.cpp @@ -1,14 +1,15 @@ //===-- LLVMContextImpl.cpp - Implement LLVMContextImpl -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMContextImpl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the opaque LLVMContextImpl. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the opaque LLVMContextImpl. +// +//===----------------------------------------------------------------------===// #include "LLVMContextImpl.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/IR/LLVMContextImpl.h b/lib/IR/LLVMContextImpl.h index 8ee01342a6..cbbf11e334 100644 --- a/lib/IR/LLVMContextImpl.h +++ b/lib/IR/LLVMContextImpl.h @@ -1,15 +1,16 @@ //===-- LLVMContextImpl.h - The LLVMContextImpl opaque class ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMContextImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares LLVMContextImpl, the opaque implementation // -// of LLVMContext. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares LLVMContextImpl, the opaque implementation +// of LLVMContext. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_IR_LLVMCONTEXTIMPL_H #define LLVM_LIB_IR_LLVMCONTEXTIMPL_H diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp index 32f62dc919..638115dd84 100644 --- a/lib/IR/LegacyPassManager.cpp +++ b/lib/IR/LegacyPassManager.cpp @@ -1,14 +1,15 @@ //===- LegacyPassManager.cpp - LLVM Pass Infrastructure Implementation ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegacyPassManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the legacy LLVM Pass Manager infrastructure. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the legacy LLVM Pass Manager infrastructure. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LLVMContext.h" #include "llvm/IR/IRPrintingPasses.h" diff --git a/lib/IR/MDBuilder.cpp b/lib/IR/MDBuilder.cpp index 8cfdf8bda8..b4c5ca7c6a 100644 --- a/lib/IR/MDBuilder.cpp +++ b/lib/IR/MDBuilder.cpp @@ -1,15 +1,16 @@ //===---- llvm/MDBuilder.cpp - Builder for LLVM metadata ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MDBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MDBuilder class, which is used as a convenient way to// -// create LLVM metadata with a consistent and simplified interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MDBuilder class, which is used as a convenient way to +// create LLVM metadata with a consistent and simplified interface. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/MDBuilder.h" #include "llvm/IR/Constants.h" diff --git a/lib/IR/Mangler.cpp b/lib/IR/Mangler.cpp index 45f7af9b48..016cb9eb68 100644 --- a/lib/IR/Mangler.cpp +++ b/lib/IR/Mangler.cpp @@ -1,14 +1,15 @@ //===-- Mangler.cpp - Self-contained c/asm llvm name mangler --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mangler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Unified name mangler for assembly backends. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Unified name mangler for assembly backends. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Mangler.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/IR/Metadata.cpp b/lib/IR/Metadata.cpp index 0b1ae10580..1abcf0d18c 100644 --- a/lib/IR/Metadata.cpp +++ b/lib/IR/Metadata.cpp @@ -1,14 +1,15 @@ //===- Metadata.cpp - Implement Metadata classes --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Metadata.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Metadata classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Metadata classes. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Metadata.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/MetadataImpl.h b/lib/IR/MetadataImpl.h index 45260bf160..662a50eb1b 100644 --- a/lib/IR/MetadataImpl.h +++ b/lib/IR/MetadataImpl.h @@ -1,14 +1,15 @@ //===- MetadataImpl.h - Helpers for implementing metadata -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MetadataImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file has private helpers for implementing metadata types. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file has private helpers for implementing metadata types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_IR_METADATAIMPL_H #define LLVM_IR_METADATAIMPL_H diff --git a/lib/IR/MetadataTracking.cpp b/lib/IR/MetadataTracking.cpp index d1544801cd..47f0b9366d 100644 --- a/lib/IR/MetadataTracking.cpp +++ b/lib/IR/MetadataTracking.cpp @@ -1,14 +1,15 @@ //===- MetadataTracking.cpp - Implement metadata tracking -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MetadataTracking.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Metadata tracking. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Metadata tracking. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/MetadataTracking.h" #include "llvm/IR/Metadata.h" diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp index f1943a9fa8..20f7fdeb3d 100644 --- a/lib/IR/Module.cpp +++ b/lib/IR/Module.cpp @@ -1,14 +1,15 @@ //===-- Module.cpp - Implement the Module class ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Module.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Module class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Module class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Module.h" #include "SymbolTableListTraitsImpl.h" diff --git a/lib/IR/Operator.cpp b/lib/IR/Operator.cpp index 57626cf4ee..b5149cc001 100644 --- a/lib/IR/Operator.cpp +++ b/lib/IR/Operator.cpp @@ -1,12 +1,3 @@ -//===- Operator.cpp ---------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Operator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/IR/Operator.h" #include "llvm/IR/GetElementPtrTypeIterator.h" diff --git a/lib/IR/Pass.cpp b/lib/IR/Pass.cpp index 81c3ca68b5..9fd5509b79 100644 --- a/lib/IR/Pass.cpp +++ b/lib/IR/Pass.cpp @@ -1,16 +1,17 @@ //===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Pass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LLVM Pass infrastructure. It is primarily // -// responsible with ensuring that passes are executed and batched together // -// optimally. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LLVM Pass infrastructure. It is primarily +// responsible with ensuring that passes are executed and batched together +// optimally. +// +//===----------------------------------------------------------------------===// #include "llvm/Pass.h" #include "llvm/IR/Function.h" diff --git a/lib/IR/PassManager.cpp b/lib/IR/PassManager.cpp index 7f8a56aa89..a5f407c00e 100644 --- a/lib/IR/PassManager.cpp +++ b/lib/IR/PassManager.cpp @@ -1,12 +1,11 @@ //===- PassManager.cpp - Infrastructure for managing & running IR passes --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/IR/LLVMContext.h" diff --git a/lib/IR/PassRegistry.cpp b/lib/IR/PassRegistry.cpp index 7dfdf7423f..75a7a298c0 100644 --- a/lib/IR/PassRegistry.cpp +++ b/lib/IR/PassRegistry.cpp @@ -1,15 +1,16 @@ //===- PassRegistry.cpp - Pass Registration Implementation ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassRegistry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PassRegistry, with which passes are registered on// -// initialization, and supports the PassManager in dependency resolution. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PassRegistry, with which passes are registered on +// initialization, and supports the PassManager in dependency resolution. +// +//===----------------------------------------------------------------------===// #include "llvm/PassRegistry.h" #include "llvm/IR/Function.h" diff --git a/lib/IR/Statepoint.cpp b/lib/IR/Statepoint.cpp index 973157cc4d..83ee611cc3 100644 --- a/lib/IR/Statepoint.cpp +++ b/lib/IR/Statepoint.cpp @@ -1,12 +1,14 @@ //===-- IR/Statepoint.cpp -- gc.statepoint utilities --- -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Statepoint.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Function.h" #include "llvm/IR/Constant.h" diff --git a/lib/IR/SymbolTableListTraitsImpl.h b/lib/IR/SymbolTableListTraitsImpl.h index d843d2f87c..a18f98261a 100644 --- a/lib/IR/SymbolTableListTraitsImpl.h +++ b/lib/IR/SymbolTableListTraitsImpl.h @@ -1,16 +1,17 @@ //===-- llvm/SymbolTableListTraitsImpl.h - Implementation ------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolTableListTraitsImpl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the stickier parts of the SymbolTableListTraits class,// -// and is explicitly instantiated where needed to avoid defining all this code// -// in a widely used header. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the stickier parts of the SymbolTableListTraits class, +// and is explicitly instantiated where needed to avoid defining all this code +// in a widely used header. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_IR_SYMBOLTABLELISTTRAITSIMPL_H #define LLVM_LIB_IR_SYMBOLTABLELISTTRAITSIMPL_H diff --git a/lib/IR/Type.cpp b/lib/IR/Type.cpp index d8bba3f1e1..d89f5ffe48 100644 --- a/lib/IR/Type.cpp +++ b/lib/IR/Type.cpp @@ -1,14 +1,15 @@ //===-- Type.cpp - Implement the Type class -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Type.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Type class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Type class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Type.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/TypeFinder.cpp b/lib/IR/TypeFinder.cpp index b6db6d259c..7accc5bef5 100644 --- a/lib/IR/TypeFinder.cpp +++ b/lib/IR/TypeFinder.cpp @@ -1,14 +1,15 @@ //===-- TypeFinder.cpp - Implement the TypeFinder class -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeFinder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TypeFinder class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TypeFinder class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/TypeFinder.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/IR/Use.cpp b/lib/IR/Use.cpp index de722dda4a..cae845d99f 100644 --- a/lib/IR/Use.cpp +++ b/lib/IR/Use.cpp @@ -1,12 +1,11 @@ //===-- Use.cpp - Implement the Use class ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Use.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Use.h" #include "llvm/IR/User.h" diff --git a/lib/IR/User.cpp b/lib/IR/User.cpp index a40340e3c4..522722d701 100644 --- a/lib/IR/User.cpp +++ b/lib/IR/User.cpp @@ -1,12 +1,11 @@ //===-- User.cpp - Implement the User class -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// User.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/User.h" #include "llvm/IR/Constant.h" diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp index ed25e36920..a4e34ef39e 100644 --- a/lib/IR/Value.cpp +++ b/lib/IR/Value.cpp @@ -1,14 +1,15 @@ //===-- Value.cpp - Implement the Value class -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Value.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Value, ValueHandle, and User classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Value, ValueHandle, and User classes. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Value.h" #include "LLVMContextImpl.h" diff --git a/lib/IR/ValueSymbolTable.cpp b/lib/IR/ValueSymbolTable.cpp index 1fde24059a..e10142de82 100644 --- a/lib/IR/ValueSymbolTable.cpp +++ b/lib/IR/ValueSymbolTable.cpp @@ -1,14 +1,15 @@ //===-- ValueSymbolTable.cpp - Implement the ValueSymbolTable class -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueSymbolTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ValueSymbolTable class for the IR library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ValueSymbolTable class for the IR library. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/ValueSymbolTable.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/IR/ValueTypes.cpp b/lib/IR/ValueTypes.cpp index 1221d90192..d95de3989d 100644 --- a/lib/IR/ValueTypes.cpp +++ b/lib/IR/ValueTypes.cpp @@ -1,14 +1,15 @@ //===----------- ValueTypes.cpp - Implementation of EVT methods -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueTypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements methods in the CodeGen/ValueTypes.h header. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements methods in the CodeGen/ValueTypes.h header. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/ValueTypes.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 79c1d0050b..2a0a4ff393 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -1,48 +1,49 @@ //===-- Verifier.cpp - Implement the Module Verifier -----------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Verifier.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the function verifier interface, that can be used for some// -// sanity checking of input to the system. // -// // -// Note that this does not provide full `Java style' security and verifications,// -// instead it just tries to ensure that code is well-formed. // -// // -// * Both of a binary operator's parameters are of the same type // -// * Verify that the indices of mem access instructions match other operands// -// * Verify that arithmetic and other things are only performed on first-class// -// types. Verify that shifts & logicals only happen on integrals f.e. // -// * All of the constants in a switch statement are of the correct type // -// * The code is in valid SSA form // -// * It should be illegal to put a label into any other type (like a structure)// -// or to return one. [except constant arrays!] // -// * Only phi nodes can be self referential: 'add i32 %0, %0 ; :0' is bad// -// * PHI nodes must have an entry for each predecessor, with no extras. // -// * PHI nodes must be the first thing in a basic block, all grouped together// -// * PHI nodes must have at least one entry // -// * All basic blocks should only end with terminator insts, not contain them// -// * The entry node to a function must not have predecessors // -// * All Instructions must be embedded into a basic block // -// * Functions cannot take a void-typed parameter // -// * Verify that a function's argument list agrees with it's declared type. // -// * It is illegal to specify a name for a void value. // -// * It is illegal to have a internal global value with no initializer // -// * It is illegal to have a ret instruction that returns a value that does not// -// agree with the function return value type. // -// * Function call argument types match the function prototype // -// * A landing pad is defined by a landingpad instruction, and can be jumped to// -// only by the unwind edge of an invoke instruction. // -// * A landingpad instruction must be the first non-PHI instruction in the // -// block. // -// * All landingpad instructions must use the same personality function with// -// the same function. // -// * All other things that are tested by asserts spread about the code... // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the function verifier interface, that can be used for some +// sanity checking of input to the system. +// +// Note that this does not provide full `Java style' security and verifications, +// instead it just tries to ensure that code is well-formed. +// +// * Both of a binary operator's parameters are of the same type +// * Verify that the indices of mem access instructions match other operands +// * Verify that arithmetic and other things are only performed on first-class +// types. Verify that shifts & logicals only happen on integrals f.e. +// * All of the constants in a switch statement are of the correct type +// * The code is in valid SSA form +// * It should be illegal to put a label into any other type (like a structure) +// or to return one. [except constant arrays!] +// * Only phi nodes can be self referential: 'add i32 %0, %0 ; :0' is bad +// * PHI nodes must have an entry for each predecessor, with no extras. +// * PHI nodes must be the first thing in a basic block, all grouped together +// * PHI nodes must have at least one entry +// * All basic blocks should only end with terminator insts, not contain them +// * The entry node to a function must not have predecessors +// * All Instructions must be embedded into a basic block +// * Functions cannot take a void-typed parameter +// * Verify that a function's argument list agrees with it's declared type. +// * It is illegal to specify a name for a void value. +// * It is illegal to have a internal global value with no initializer +// * It is illegal to have a ret instruction that returns a value that does not +// agree with the function return value type. +// * Function call argument types match the function prototype +// * A landing pad is defined by a landingpad instruction, and can be jumped to +// only by the unwind edge of an invoke instruction. +// * A landingpad instruction must be the first non-PHI instruction in the +// block. +// * All landingpad instructions must use the same personality function with +// the same function. +// * All other things that are tested by asserts spread about the code... +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Verifier.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/IRReader/CMakeLists.txt b/lib/IRReader/CMakeLists.txt index a27c0e1554..87ea88039e 100644 --- a/lib/IRReader/CMakeLists.txt +++ b/lib/IRReader/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMIRReader IRReader.cpp diff --git a/lib/IRReader/IRReader.cpp b/lib/IRReader/IRReader.cpp index bac0004903..be2720032b 100644 --- a/lib/IRReader/IRReader.cpp +++ b/lib/IRReader/IRReader.cpp @@ -1,12 +1,11 @@ //===---- IRReader.cpp - Reader for LLVM IR files -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IRReader/IRReader.h" // #include "llvm-c/Core.h" diff --git a/lib/IRReader/LLVMBuild.txt b/lib/IRReader/LLVMBuild.txt index 6731e6b1d7..b7bc74d616 100644 --- a/lib/IRReader/LLVMBuild.txt +++ b/lib/IRReader/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/IRReader/LLVMBuild.txt -----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/LLVMBuild.txt b/lib/LLVMBuild.txt index 6e99c9875a..d9d9a1ec9c 100644 --- a/lib/LLVMBuild.txt +++ b/lib/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/LLVMBuild.txt --------------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/LTO/CMakeLists.txt b/lib/LTO/CMakeLists.txt index e044b07bf7..1c099bb029 100644 --- a/lib/LTO/CMakeLists.txt +++ b/lib/LTO/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMLTO LTOModule.cpp LTOCodeGenerator.cpp diff --git a/lib/LTO/LLVMBuild.txt b/lib/LTO/LLVMBuild.txt index 8dbd126cb4..fe47f8c5d0 100644 --- a/lib/LTO/LLVMBuild.txt +++ b/lib/LTO/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/LTO/LLVMBuild.txt ----------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp index e3781784b4..149ec6a4f3 100644 --- a/lib/LTO/LTOCodeGenerator.cpp +++ b/lib/LTO/LTOCodeGenerator.cpp @@ -1,15 +1,16 @@ //===-LTOCodeGenerator.cpp - LLVM Link Time Optimizer ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LTOCodeGenerator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Link Time Optimization library. This library is // -// intended to be used by linker to optimize code at link time. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Link Time Optimization library. This library is +// intended to be used by linker to optimize code at link time. +// +//===----------------------------------------------------------------------===// #include "llvm/LTO/LTOCodeGenerator.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/LTO/LTOModule.cpp b/lib/LTO/LTOModule.cpp index fb6244e31d..53ed4175f8 100644 --- a/lib/LTO/LTOModule.cpp +++ b/lib/LTO/LTOModule.cpp @@ -1,15 +1,16 @@ //===-- LTOModule.cpp - LLVM Link Time Optimizer --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LTOModule.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Link Time Optimization library. This library is // -// intended to be used by linker to optimize code at link time. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Link Time Optimization library. This library is +// intended to be used by linker to optimize code at link time. +// +//===----------------------------------------------------------------------===// #include "llvm/LTO/LTOModule.h" #include "llvm/ADT/Triple.h" diff --git a/lib/Linker/CMakeLists.txt b/lib/Linker/CMakeLists.txt index ef9c264109..f9d8e0925a 100644 --- a/lib/Linker/CMakeLists.txt +++ b/lib/Linker/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMLinker LinkModules.cpp diff --git a/lib/Linker/LLVMBuild.txt b/lib/Linker/LLVMBuild.txt index 4479114343..0bb26d0c2a 100644 --- a/lib/Linker/LLVMBuild.txt +++ b/lib/Linker/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Linker/LLVMBuild.txt -------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 632e610b64..7cd263c1a6 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -1,14 +1,15 @@ //===- lib/Linker/LinkModules.cpp - Module Linker Implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkModules.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LLVM module linker. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LLVM module linker. +// +//===----------------------------------------------------------------------===// #include "llvm/Linker/Linker.h" #include "llvm-c/Linker.h" diff --git a/lib/MC/CMakeLists.txt b/lib/MC/CMakeLists.txt index 2247057a6c..6554d6a9e6 100644 --- a/lib/MC/CMakeLists.txt +++ b/lib/MC/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMMC ConstantPools.cpp ELFObjectWriter.cpp diff --git a/lib/MC/ConstantPools.cpp b/lib/MC/ConstantPools.cpp index b609076112..8c82f73185 100644 --- a/lib/MC/ConstantPools.cpp +++ b/lib/MC/ConstantPools.cpp @@ -1,13 +1,15 @@ //===- ConstantPools.cpp - ConstantPool class --*- C++ -*---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantPools.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ConstantPool and AssemblerConstantPools classes.// -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ConstantPool and AssemblerConstantPools classes. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/MapVector.h" #include "llvm/MC/ConstantPools.h" diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 2f21ec57d1..e925bc272d 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1,14 +1,15 @@ //===- lib/MC/ELFObjectWriter.cpp - ELF File Writer -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFObjectWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements ELF object file writer information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements ELF object file writer information. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCELFObjectWriter.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/MC/LLVMBuild.txt b/lib/MC/LLVMBuild.txt index 19e3944bd0..f06be457a5 100644 --- a/lib/MC/LLVMBuild.txt +++ b/lib/MC/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/MC/LLVMBuild.txt -----------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/MC/MCAsmBackend.cpp b/lib/MC/MCAsmBackend.cpp index ca86161a90..36c65b7bcd 100644 --- a/lib/MC/MCAsmBackend.cpp +++ b/lib/MC/MCAsmBackend.cpp @@ -1,12 +1,11 @@ //===-- MCAsmBackend.cpp - Target MC Assembly Backend ----------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmBackend.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAsmBackend.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index 5b39986733..100dc7c3dc 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -1,15 +1,16 @@ //===-- MCAsmInfo.cpp - Asm Info -------------------------------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines target asm properties related what form asm statements // -// should take. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines target asm properties related what form asm statements +// should take. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MCAsmInfoCOFF.cpp b/lib/MC/MCAsmInfoCOFF.cpp index aaa17b0c1c..97fc76a9ad 100644 --- a/lib/MC/MCAsmInfoCOFF.cpp +++ b/lib/MC/MCAsmInfoCOFF.cpp @@ -1,15 +1,16 @@ //===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfoCOFF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines target asm properties related what form asm statements // -// should take in general on COFF-based targets // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines target asm properties related what form asm statements +// should take in general on COFF-based targets +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAsmInfoCOFF.h" using namespace llvm; diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp index 4b6acb0b39..bb90ff2c35 100644 --- a/lib/MC/MCAsmInfoDarwin.cpp +++ b/lib/MC/MCAsmInfoDarwin.cpp @@ -1,15 +1,16 @@ //===-- MCAsmInfoDarwin.cpp - Darwin asm properties -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfoDarwin.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines target asm properties related what form asm statements // -// should take in general on Darwin-based targets // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines target asm properties related what form asm statements +// should take in general on Darwin-based targets +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAsmInfoDarwin.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MCAsmInfoELF.cpp b/lib/MC/MCAsmInfoELF.cpp index c6d4ac2ec0..2bff6e0596 100644 --- a/lib/MC/MCAsmInfoELF.cpp +++ b/lib/MC/MCAsmInfoELF.cpp @@ -1,15 +1,16 @@ //===-- MCAsmInfoELF.cpp - ELF asm properties -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmInfoELF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines target asm properties related what form asm statements // -// should take in general on ELF-based targets // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines target asm properties related what form asm statements +// should take in general on ELF-based targets +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAsmInfoELF.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 7cdb7ac03b..227c937e8d 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCAsmStreamer.cpp - Text Assembly Output --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCStreamer.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 168563c524..f53b589e1a 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCAssembler.cpp - Assembler Backend Implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAssembler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAssembler.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/MC/MCCodeEmitter.cpp b/lib/MC/MCCodeEmitter.cpp index e81e6097bf..c122763b2f 100644 --- a/lib/MC/MCCodeEmitter.cpp +++ b/lib/MC/MCCodeEmitter.cpp @@ -1,12 +1,11 @@ //===-- MCCodeEmitter.cpp - Instruction Encoding --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCCodeEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCCodeEmitter.h" diff --git a/lib/MC/MCCodeGenInfo.cpp b/lib/MC/MCCodeGenInfo.cpp index feb610d9fb..347ec2cd01 100644 --- a/lib/MC/MCCodeGenInfo.cpp +++ b/lib/MC/MCCodeGenInfo.cpp @@ -1,15 +1,16 @@ //===-- MCCodeGenInfo.cpp - Target CodeGen Info -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCCodeGenInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file tracks information about the target which can affect codegen, // -// asm parsing, and asm printing. For example, relocation model. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file tracks information about the target which can affect codegen, +// asm parsing, and asm printing. For example, relocation model. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCCodeGenInfo.h" using namespace llvm; diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 0e2dd629c6..821e78efdd 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCContext.cpp - Machine Code Context ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCContext.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/MC/MCDisassembler/CMakeLists.txt b/lib/MC/MCDisassembler/CMakeLists.txt index f7197ead43..f266f8fcd3 100644 --- a/lib/MC/MCDisassembler/CMakeLists.txt +++ b/lib/MC/MCDisassembler/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMMCDisassembler Disassembler.cpp MCRelocationInfo.cpp diff --git a/lib/MC/MCDisassembler/Disassembler.cpp b/lib/MC/MCDisassembler/Disassembler.cpp index 7375520a20..97c41c1542 100644 --- a/lib/MC/MCDisassembler/Disassembler.cpp +++ b/lib/MC/MCDisassembler/Disassembler.cpp @@ -1,12 +1,11 @@ //===-- lib/MC/Disassembler.cpp - Disassembler Public C Interface ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassembler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Disassembler.h" #include "llvm-c/Disassembler.h" diff --git a/lib/MC/MCDisassembler/Disassembler.h b/lib/MC/MCDisassembler/Disassembler.h index e71ca94377..46d0c4c3d9 100644 --- a/lib/MC/MCDisassembler/Disassembler.h +++ b/lib/MC/MCDisassembler/Disassembler.h @@ -1,17 +1,18 @@ //===------------- Disassembler.h - LLVM Disassembler -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassembler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface for the Disassembly library's disassembler // -// context. The disassembler is responsible for producing strings for // -// individual instructions according to a given architecture and disassembly // -// syntax. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface for the Disassembly library's disassembler +// context. The disassembler is responsible for producing strings for +// individual instructions according to a given architecture and disassembly +// syntax. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_MC_MCDISASSEMBLER_DISASSEMBLER_H #define LLVM_LIB_MC_MCDISASSEMBLER_DISASSEMBLER_H diff --git a/lib/MC/MCDisassembler/LLVMBuild.txt b/lib/MC/MCDisassembler/LLVMBuild.txt index 8b145d78f5..e4876cd18f 100644 --- a/lib/MC/MCDisassembler/LLVMBuild.txt +++ b/lib/MC/MCDisassembler/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/MC/MCDisassembler/LLVMBuild.txt --------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/MC/MCDisassembler/MCDisassembler.cpp b/lib/MC/MCDisassembler/MCDisassembler.cpp index 785ee13d4c..1084e5ea76 100644 --- a/lib/MC/MCDisassembler/MCDisassembler.cpp +++ b/lib/MC/MCDisassembler/MCDisassembler.cpp @@ -1,12 +1,11 @@ //===-- MCDisassembler.cpp - Disassembler interface -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCDisassembler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCDisassembler.h" #include "llvm/MC/MCExternalSymbolizer.h" diff --git a/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp b/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp index 43eb5cc033..5fc2ca44f5 100644 --- a/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp +++ b/lib/MC/MCDisassembler/MCExternalSymbolizer.cpp @@ -1,12 +1,11 @@ //===-- MCExternalSymbolizer.cpp - External symbolizer --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCExternalSymbolizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCExternalSymbolizer.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MCDisassembler/MCRelocationInfo.cpp b/lib/MC/MCDisassembler/MCRelocationInfo.cpp index bfa876f573..43005e7c74 100644 --- a/lib/MC/MCDisassembler/MCRelocationInfo.cpp +++ b/lib/MC/MCDisassembler/MCRelocationInfo.cpp @@ -1,12 +1,11 @@ //==-- MCRelocationInfo.cpp ------------------------------------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCRelocationInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCRelocationInfo.h" #include "llvm-c/Disassembler.h" diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index a2d297d184..c84c4865f5 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCDwarf.cpp - MCDwarf implementation ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCDwarf.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCDwarf.h" #include "llvm/ADT/Hashing.h" diff --git a/lib/MC/MCELFObjectTargetWriter.cpp b/lib/MC/MCELFObjectTargetWriter.cpp index 67115398ef..08a9a3a72c 100644 --- a/lib/MC/MCELFObjectTargetWriter.cpp +++ b/lib/MC/MCELFObjectTargetWriter.cpp @@ -1,12 +1,11 @@ //===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCELFObjectTargetWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/MC/MCELFObjectWriter.h" diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 5ab26be29f..fe9ac21e17 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -1,14 +1,15 @@ //===- lib/MC/MCELFStreamer.cpp - ELF Object Output -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCELFStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file assembles .s files and emits ELF .o object files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file assembles .s files and emits ELF .o object files. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCELFStreamer.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp index b6271b17b8..a30ceecc95 100644 --- a/lib/MC/MCExpr.cpp +++ b/lib/MC/MCExpr.cpp @@ -1,12 +1,11 @@ //===- MCExpr.cpp - Assembly Level Expression Implementation --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCExpr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCExpr.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/MC/MCInst.cpp b/lib/MC/MCInst.cpp index 462628e331..7ef69be66d 100644 --- a/lib/MC/MCInst.cpp +++ b/lib/MC/MCInst.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCInst.cpp - MCInst implementation --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInst.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCInst.h" #include "llvm/MC/MCExpr.h" diff --git a/lib/MC/MCInstPrinter.cpp b/lib/MC/MCInstPrinter.cpp index 764bb91144..23afe80548 100644 --- a/lib/MC/MCInstPrinter.cpp +++ b/lib/MC/MCInstPrinter.cpp @@ -1,12 +1,11 @@ //===-- MCInstPrinter.cpp - Convert an MCInst to target assembly syntax ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCInstPrinter.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/MC/MCInstrAnalysis.cpp b/lib/MC/MCInstrAnalysis.cpp index 691461b4d8..2d8336d77a 100644 --- a/lib/MC/MCInstrAnalysis.cpp +++ b/lib/MC/MCInstrAnalysis.cpp @@ -1,12 +1,11 @@ //===-- MCInstrAnalysis.cpp - InstrDesc target hooks ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstrAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCInstrAnalysis.h" using namespace llvm; diff --git a/lib/MC/MCInstrDesc.cpp b/lib/MC/MCInstrDesc.cpp index 85d6acf0a9..5be2fa1b30 100644 --- a/lib/MC/MCInstrDesc.cpp +++ b/lib/MC/MCInstrDesc.cpp @@ -1,15 +1,16 @@ //===------ llvm/MC/MCInstrDesc.cpp- Instruction Descriptors --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCInstrDesc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines methods on the MCOperandInfo and MCInstrDesc classes, which// -// are used to describe target instructions and their operands. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines methods on the MCOperandInfo and MCInstrDesc classes, which +// are used to describe target instructions and their operands. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCInstrDesc.h" #include "llvm/MC/MCInst.h" diff --git a/lib/MC/MCLabel.cpp b/lib/MC/MCLabel.cpp index 63d785b370..1d3022a93e 100644 --- a/lib/MC/MCLabel.cpp +++ b/lib/MC/MCLabel.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCLabel.cpp - MCLabel implementation ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCLabel.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCLabel.h" #include "llvm/Support/Debug.h" diff --git a/lib/MC/MCLinkerOptimizationHint.cpp b/lib/MC/MCLinkerOptimizationHint.cpp index 423035d3b0..5f6a57980a 100644 --- a/lib/MC/MCLinkerOptimizationHint.cpp +++ b/lib/MC/MCLinkerOptimizationHint.cpp @@ -1,12 +1,11 @@ //===-- llvm/MC/MCLinkerOptimizationHint.cpp ----- LOH handling -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCLinkerOptimizationHint.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCLinkerOptimizationHint.h" #include "llvm/MC/MCAsmLayout.h" diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index f4c38d5a9b..53cd1317a3 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -1,12 +1,11 @@ //===-- MCMachOStreamer.cpp - MachO Streamer ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCMachOStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCStreamer.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/MC/MCMachObjectTargetWriter.cpp b/lib/MC/MCMachObjectTargetWriter.cpp index 453483b0f8..4ffd6a78a6 100644 --- a/lib/MC/MCMachObjectTargetWriter.cpp +++ b/lib/MC/MCMachObjectTargetWriter.cpp @@ -1,12 +1,11 @@ //===-- MCMachObjectTargetWriter.cpp - Mach-O Target Writer Subclass ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCMachObjectTargetWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCMachObjectWriter.h" diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp index 9e7fc630ca..eb2d91254b 100644 --- a/lib/MC/MCNullStreamer.cpp +++ b/lib/MC/MCNullStreamer.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCNullStreamer.cpp - Dummy Streamer Implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCNullStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp index 140d77b39c..576827a72d 100644 --- a/lib/MC/MCObjectFileInfo.cpp +++ b/lib/MC/MCObjectFileInfo.cpp @@ -1,12 +1,11 @@ //===-- MObjectFileInfo.cpp - Object File Information ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCObjectFileInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCObjectFileInfo.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index 0a49a2dca4..0a637775d4 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCObjectStreamer.cpp - Object File MCStreamer Interface -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCObjectStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCObjectStreamer.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/MC/MCObjectWriter.cpp b/lib/MC/MCObjectWriter.cpp index d3b0b6d374..3479034087 100644 --- a/lib/MC/MCObjectWriter.cpp +++ b/lib/MC/MCObjectWriter.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCObjectWriter.cpp - MCObjectWriter implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCObjectWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAssembler.h" #include "llvm/MC/MCExpr.h" diff --git a/lib/MC/MCParser/AsmLexer.cpp b/lib/MC/MCParser/AsmLexer.cpp index d0084b7449..b983d9995f 100644 --- a/lib/MC/MCParser/AsmLexer.cpp +++ b/lib/MC/MCParser/AsmLexer.cpp @@ -1,14 +1,15 @@ //===- AsmLexer.cpp - Lexer for Assembly Files ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements the lexer for assembly files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements the lexer for assembly files. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/AsmLexer.h" #include "llvm/MC/MCAsmInfo.h" diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 4d9e3fbcab..78a20f2760 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1,14 +1,15 @@ //===- AsmParser.cpp - Parser for Assembly Files --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements the parser for assembly files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements the parser for assembly files. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APFloat.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/MC/MCParser/CMakeLists.txt b/lib/MC/MCParser/CMakeLists.txt index 714d937185..99fdd01679 100644 --- a/lib/MC/MCParser/CMakeLists.txt +++ b/lib/MC/MCParser/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMMCParser AsmLexer.cpp AsmParser.cpp diff --git a/lib/MC/MCParser/COFFAsmParser.cpp b/lib/MC/MCParser/COFFAsmParser.cpp index 1a8e3f8777..f09bce005d 100644 --- a/lib/MC/MCParser/COFFAsmParser.cpp +++ b/lib/MC/MCParser/COFFAsmParser.cpp @@ -1,12 +1,11 @@ //===- COFFAsmParser.cpp - COFF Assembly Parser ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFFAsmParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParserExtension.h" #include "llvm/ADT/StringSwitch.h" diff --git a/lib/MC/MCParser/DarwinAsmParser.cpp b/lib/MC/MCParser/DarwinAsmParser.cpp index 9bdeb2e866..dc664e8a8f 100644 --- a/lib/MC/MCParser/DarwinAsmParser.cpp +++ b/lib/MC/MCParser/DarwinAsmParser.cpp @@ -1,12 +1,11 @@ //===- DarwinAsmParser.cpp - Darwin (Mach-O) Assembly Parser --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DarwinAsmParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParserExtension.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/MC/MCParser/ELFAsmParser.cpp b/lib/MC/MCParser/ELFAsmParser.cpp index 7dce95e9ee..5f8a6039af 100644 --- a/lib/MC/MCParser/ELFAsmParser.cpp +++ b/lib/MC/MCParser/ELFAsmParser.cpp @@ -1,12 +1,11 @@ //===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFAsmParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParserExtension.h" #include "llvm/ADT/StringSwitch.h" diff --git a/lib/MC/MCParser/LLVMBuild.txt b/lib/MC/MCParser/LLVMBuild.txt index 228189592d..bcb0febf33 100644 --- a/lib/MC/MCParser/LLVMBuild.txt +++ b/lib/MC/MCParser/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/MC/MCParser/LLVMBuild.txt --------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/MC/MCParser/MCAsmLexer.cpp b/lib/MC/MCParser/MCAsmLexer.cpp index 10e1a6c1a1..795cc85ef5 100644 --- a/lib/MC/MCParser/MCAsmLexer.cpp +++ b/lib/MC/MCParser/MCAsmLexer.cpp @@ -1,12 +1,11 @@ //===-- MCAsmLexer.cpp - Abstract Asm Lexer Interface ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmLexer.h" #include "llvm/Support/SourceMgr.h" diff --git a/lib/MC/MCParser/MCAsmParser.cpp b/lib/MC/MCParser/MCAsmParser.cpp index af79691472..290dcb2977 100644 --- a/lib/MC/MCParser/MCAsmParser.cpp +++ b/lib/MC/MCParser/MCAsmParser.cpp @@ -1,12 +1,11 @@ //===-- MCAsmParser.cpp - Abstract Asm Parser Interface -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParser.h" #include "llvm/ADT/Twine.h" diff --git a/lib/MC/MCParser/MCAsmParserExtension.cpp b/lib/MC/MCParser/MCAsmParserExtension.cpp index 4b39a46531..3f25a14926 100644 --- a/lib/MC/MCParser/MCAsmParserExtension.cpp +++ b/lib/MC/MCParser/MCAsmParserExtension.cpp @@ -1,12 +1,11 @@ //===-- MCAsmParserExtension.cpp - Asm Parser Hooks -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCAsmParserExtension.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCParser/MCAsmParserExtension.h" using namespace llvm; diff --git a/lib/MC/MCParser/MCTargetAsmParser.cpp b/lib/MC/MCParser/MCTargetAsmParser.cpp index 203dad4a44..60a3a3b59a 100644 --- a/lib/MC/MCParser/MCTargetAsmParser.cpp +++ b/lib/MC/MCParser/MCTargetAsmParser.cpp @@ -1,12 +1,11 @@ //===-- MCTargetAsmParser.cpp - Target Assembly Parser ---------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCTargetAsmParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCTargetAsmParser.h" using namespace llvm; diff --git a/lib/MC/MCRegisterInfo.cpp b/lib/MC/MCRegisterInfo.cpp index 6e32ac39f8..ce79cd5c2c 100644 --- a/lib/MC/MCRegisterInfo.cpp +++ b/lib/MC/MCRegisterInfo.cpp @@ -1,14 +1,15 @@ //=== MC/MCRegisterInfo.cpp - Target Register Description -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCRegisterInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements MCRegisterInfo functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements MCRegisterInfo functions. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCRegisterInfo.h" diff --git a/lib/MC/MCSchedule.cpp b/lib/MC/MCSchedule.cpp index 23bc4ee2d9..f3919427bf 100644 --- a/lib/MC/MCSchedule.cpp +++ b/lib/MC/MCSchedule.cpp @@ -1,14 +1,15 @@ //===- MCSchedule.cpp - Scheduling ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSchedule.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the default scheduling model. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the default scheduling model. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSchedule.h" #include diff --git a/lib/MC/MCSection.cpp b/lib/MC/MCSection.cpp index 05184bc291..9152f2b42a 100644 --- a/lib/MC/MCSection.cpp +++ b/lib/MC/MCSection.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCSection.cpp - Machine Code Section Representation ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSection.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSection.h" #include "llvm/MC/MCAssembler.h" diff --git a/lib/MC/MCSectionCOFF.cpp b/lib/MC/MCSectionCOFF.cpp index e2e08d4cd9..ce0b4f5fb4 100644 --- a/lib/MC/MCSectionCOFF.cpp +++ b/lib/MC/MCSectionCOFF.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCSectionCOFF.cpp - COFF Code Section Representation --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSectionCOFF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSectionCOFF.h" #include "llvm/MC/MCAsmInfo.h" diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp index 0050a27e39..b4448d79a2 100644 --- a/lib/MC/MCSectionELF.cpp +++ b/lib/MC/MCSectionELF.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCSectionELF.cpp - ELF Code Section Representation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSectionELF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSectionELF.h" #include "llvm/MC/MCAsmInfo.h" diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp index 23fc57f70a..c9f15914e4 100644 --- a/lib/MC/MCSectionMachO.cpp +++ b/lib/MC/MCSectionMachO.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSectionMachO.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSectionMachO.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 57f66df22b..88c696df63 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCStreamer.cpp - Streaming Machine Code Output --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCStreamer.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/MC/MCSubtargetInfo.cpp b/lib/MC/MCSubtargetInfo.cpp index 04bbc36986..9210cf544b 100644 --- a/lib/MC/MCSubtargetInfo.cpp +++ b/lib/MC/MCSubtargetInfo.cpp @@ -1,12 +1,11 @@ //===-- MCSubtargetInfo.cpp - Subtarget Information -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSubtargetInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSubtargetInfo.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp index 914b78a4db..125380a9d1 100644 --- a/lib/MC/MCSymbol.cpp +++ b/lib/MC/MCSymbol.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCSymbol.cpp - MCSymbol implementation ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbol.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSymbol.h" #include "llvm/MC/MCAsmInfo.h" diff --git a/lib/MC/MCSymbolELF.cpp b/lib/MC/MCSymbolELF.cpp index 633ac3efc3..ec7ef447ff 100644 --- a/lib/MC/MCSymbolELF.cpp +++ b/lib/MC/MCSymbolELF.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCSymbolELF.cpp ---------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbolELF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAssembler.h" #include "llvm/MC/MCSymbolELF.h" diff --git a/lib/MC/MCSymbolizer.cpp b/lib/MC/MCSymbolizer.cpp index 6eee1a8ae7..4080e40b3f 100644 --- a/lib/MC/MCSymbolizer.cpp +++ b/lib/MC/MCSymbolizer.cpp @@ -1,12 +1,11 @@ //===-- llvm/MC/MCSymbolizer.cpp - MCSymbolizer class -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCSymbolizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCSymbolizer.h" diff --git a/lib/MC/MCTargetOptions.cpp b/lib/MC/MCTargetOptions.cpp index b3b037ec35..ed36a883ef 100644 --- a/lib/MC/MCTargetOptions.cpp +++ b/lib/MC/MCTargetOptions.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCTargetOptions.cpp - MC Target Options --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCTargetOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/MC/MCTargetOptions.h" diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index 091887a7a3..495a2b6ea5 100644 --- a/lib/MC/MCValue.cpp +++ b/lib/MC/MCValue.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCValue.cpp - MCValue implementation ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCValue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCValue.h" #include "llvm/MC/MCExpr.h" diff --git a/lib/MC/MCWin64EH.cpp b/lib/MC/MCWin64EH.cpp index 0a268ef1cf..1b73b7afb6 100644 --- a/lib/MC/MCWin64EH.cpp +++ b/lib/MC/MCWin64EH.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCWin64EH.cpp - MCWin64EH implementation --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCWin64EH.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCWin64EH.h" #include "llvm/ADT/Twine.h" diff --git a/lib/MC/MCWinEH.cpp b/lib/MC/MCWinEH.cpp index c8541009e5..d5d9eadf39 100644 --- a/lib/MC/MCWinEH.cpp +++ b/lib/MC/MCWinEH.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MCWinEH.cpp - Windows EH implementation ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MCWinEH.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/MC/MCContext.h" diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 0738e9395e..8ce6127e38 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -1,12 +1,11 @@ //===- lib/MC/MachObjectWriter.cpp - Mach-O File Writer -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachObjectWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCMachObjectWriter.h" #include "llvm/ADT/StringMap.h" diff --git a/lib/MC/StringTableBuilder.cpp b/lib/MC/StringTableBuilder.cpp index 6b9404c9ce..9de9363611 100644 --- a/lib/MC/StringTableBuilder.cpp +++ b/lib/MC/StringTableBuilder.cpp @@ -1,12 +1,11 @@ //===-- StringTableBuilder.cpp - String table building utility ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringTableBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/StringTableBuilder.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp index 7c3239f74d..76574e987c 100644 --- a/lib/MC/SubtargetFeature.cpp +++ b/lib/MC/SubtargetFeature.cpp @@ -1,14 +1,15 @@ //===- SubtargetFeature.cpp - CPU characteristics Implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SubtargetFeature.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SubtargetFeature interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SubtargetFeature interface. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/SubtargetFeature.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 6c5ce9d836..859b044349 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -1,14 +1,15 @@ //===-- llvm/MC/WinCOFFObjectWriter.cpp -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinCOFFObjectWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an implementation of a Win32 COFF object file writer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains an implementation of a Win32 COFF object file writer. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCWinCOFFObjectWriter.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/MC/WinCOFFStreamer.cpp b/lib/MC/WinCOFFStreamer.cpp index 1294e691a4..36dd691f07 100644 --- a/lib/MC/WinCOFFStreamer.cpp +++ b/lib/MC/WinCOFFStreamer.cpp @@ -1,14 +1,15 @@ //===-- llvm/MC/WinCOFFStreamer.cpp -----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WinCOFFStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an implementation of a Windows COFF object file streamer.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains an implementation of a Windows COFF object file streamer. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/MCAsmBackend.h" #include "llvm/MC/MCAsmLayout.h" diff --git a/lib/MC/YAML.cpp b/lib/MC/YAML.cpp index 827d813a5a..067e91a26d 100644 --- a/lib/MC/YAML.cpp +++ b/lib/MC/YAML.cpp @@ -1,15 +1,16 @@ //===- YAML.cpp - YAMLIO utilities for object files -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAML.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines utility classes for handling the YAML representation of // -// object files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines utility classes for handling the YAML representation of +// object files. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/YAML.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index 78acd3ddb6..d4821196a6 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -1,14 +1,15 @@ //===- Archive.cpp - ar File Format implementation --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Archive.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ArchiveObjectFile class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ArchiveObjectFile class. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/Archive.h" #include "llvm/ADT/APInt.h" diff --git a/lib/Object/ArchiveWriter.cpp b/lib/Object/ArchiveWriter.cpp index bcfd5160f3..a40901c924 100644 --- a/lib/Object/ArchiveWriter.cpp +++ b/lib/Object/ArchiveWriter.cpp @@ -1,14 +1,15 @@ //===- ArchiveWriter.cpp - ar File Format implementation --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArchiveWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the writeArchive function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the writeArchive function. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/ArchiveWriter.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/Object/Binary.cpp b/lib/Object/Binary.cpp index 0c2ae446dd..a2c51cd0eb 100644 --- a/lib/Object/Binary.cpp +++ b/lib/Object/Binary.cpp @@ -1,14 +1,15 @@ //===- Binary.cpp - A generic binary file -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Binary.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Binary class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Binary class. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/Binary.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/Object/CMakeLists.txt b/lib/Object/CMakeLists.txt index 9701e56ebf..8f10143fcc 100644 --- a/lib/Object/CMakeLists.txt +++ b/lib/Object/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMObject Archive.cpp ArchiveWriter.cpp diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index cc6a0db3fc..bcca9839b4 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -1,14 +1,15 @@ //===- COFFObjectFile.cpp - COFF object file implementation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFFObjectFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the COFFObjectFile class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the COFFObjectFile class. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/COFF.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/Object/COFFYAML.cpp b/lib/Object/COFFYAML.cpp index 46e506dfb1..9a24b531da 100644 --- a/lib/Object/COFFYAML.cpp +++ b/lib/Object/COFFYAML.cpp @@ -1,14 +1,15 @@ //===- COFFYAML.cpp - COFF YAMLIO implementation --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFFYAML.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines classes for handling the YAML representation of COFF. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines classes for handling the YAML representation of COFF. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/COFFYAML.h" diff --git a/lib/Object/ELF.cpp b/lib/Object/ELF.cpp index 1372bf712e..398e9e4129 100644 --- a/lib/Object/ELF.cpp +++ b/lib/Object/ELF.cpp @@ -1,12 +1,11 @@ //===- ELF.cpp - ELF object file implementation -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELF.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/ELF.h" diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp index f3b4ab1650..c7df30a590 100644 --- a/lib/Object/ELFObjectFile.cpp +++ b/lib/Object/ELFObjectFile.cpp @@ -1,14 +1,15 @@ //===- ELFObjectFile.cpp - ELF object file implementation -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFObjectFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Part of the ELFObjectFile class implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Part of the ELFObjectFile class implementation. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/ELFObjectFile.h" #include "llvm/Support/MathExtras.h" diff --git a/lib/Object/ELFYAML.cpp b/lib/Object/ELFYAML.cpp index f2b6498eec..72c232c328 100644 --- a/lib/Object/ELFYAML.cpp +++ b/lib/Object/ELFYAML.cpp @@ -1,14 +1,15 @@ //===- ELFYAML.cpp - ELF YAMLIO implementation ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFYAML.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines classes for handling the YAML representation of ELF. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines classes for handling the YAML representation of ELF. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/ELFYAML.h" #include "llvm/Support/Casting.h" diff --git a/lib/Object/Error.cpp b/lib/Object/Error.cpp index 7e997f955b..7ca2f12f09 100644 --- a/lib/Object/Error.cpp +++ b/lib/Object/Error.cpp @@ -1,14 +1,15 @@ //===- Error.cpp - system_error extensions for Object -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines a new error_category for the Object library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines a new error_category for the Object library. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/Error.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/Object/IRObjectFile.cpp b/lib/Object/IRObjectFile.cpp index 3586c93ffc..579df5e9f0 100644 --- a/lib/Object/IRObjectFile.cpp +++ b/lib/Object/IRObjectFile.cpp @@ -1,14 +1,15 @@ //===- IRObjectFile.cpp - IR object file implementation ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRObjectFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Part of the IRObjectFile class implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Part of the IRObjectFile class implementation. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/IRObjectFile.h" #include "RecordStreamer.h" diff --git a/lib/Object/LLVMBuild.txt b/lib/Object/LLVMBuild.txt index b5dd1a5aaf..bec2c5a806 100644 --- a/lib/Object/LLVMBuild.txt +++ b/lib/Object/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Object/LLVMBuild.txt -------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index 8ff885a7aa..05900630c7 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -1,15 +1,16 @@ //===- MachOObjectFile.cpp - Mach-O object file binding ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachOObjectFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachOObjectFile class, which binds the MachOObject // -// class to the generic ObjectFile wrapper. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MachOObjectFile class, which binds the MachOObject +// class to the generic ObjectFile wrapper. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/MachO.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Object/MachOUniversal.cpp b/lib/Object/MachOUniversal.cpp index c165585ed6..1d0e69e462 100644 --- a/lib/Object/MachOUniversal.cpp +++ b/lib/Object/MachOUniversal.cpp @@ -1,14 +1,15 @@ //===- MachOUniversal.cpp - Mach-O universal binary -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachOUniversal.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MachOUniversalBinary class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MachOUniversalBinary class. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/MachOUniversal.h" #include "llvm/Object/Archive.h" diff --git a/lib/Object/Object.cpp b/lib/Object/Object.cpp index 1b035ab3dd..5c4b7a67b2 100644 --- a/lib/Object/Object.cpp +++ b/lib/Object/Object.cpp @@ -1,15 +1,16 @@ //===- Object.cpp - C bindings to the object file library--------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Object.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C bindings to the file-format-independent object // -// library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the C bindings to the file-format-independent object +// library. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallVector.h" #include "llvm-c/Object.h" diff --git a/lib/Object/ObjectFile.cpp b/lib/Object/ObjectFile.cpp index ef59b504f0..9f580cc4b3 100644 --- a/lib/Object/ObjectFile.cpp +++ b/lib/Object/ObjectFile.cpp @@ -1,14 +1,15 @@ //===- ObjectFile.cpp - File format independent object file -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a file format independent ObjectFile class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a file format independent ObjectFile class. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/COFF.h" #include "llvm/Object/MachO.h" diff --git a/lib/Object/RecordStreamer.cpp b/lib/Object/RecordStreamer.cpp index 593e05e7f3..42dbd3e0c2 100644 --- a/lib/Object/RecordStreamer.cpp +++ b/lib/Object/RecordStreamer.cpp @@ -1,12 +1,11 @@ //===-- RecordStreamer.cpp - Record asm definde and used symbols ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecordStreamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "RecordStreamer.h" #include "llvm/MC/MCSymbol.h" diff --git a/lib/Object/RecordStreamer.h b/lib/Object/RecordStreamer.h index 3915c96950..d8610610c3 100644 --- a/lib/Object/RecordStreamer.h +++ b/lib/Object/RecordStreamer.h @@ -1,12 +1,11 @@ //===-- RecordStreamer.h - Record asm defined and used symbols ---*- C++ -*===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecordStreamer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_OBJECT_RECORDSTREAMER_H #define LLVM_LIB_OBJECT_RECORDSTREAMER_H diff --git a/lib/Object/SymbolSize.cpp b/lib/Object/SymbolSize.cpp index f76d83fdc0..10dbc87cd5 100644 --- a/lib/Object/SymbolSize.cpp +++ b/lib/Object/SymbolSize.cpp @@ -1,12 +1,11 @@ //===- SymbolSize.cpp -----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolSize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/SymbolSize.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Object/SymbolicFile.cpp b/lib/Object/SymbolicFile.cpp index 45c0137353..854e68e40f 100644 --- a/lib/Object/SymbolicFile.cpp +++ b/lib/Object/SymbolicFile.cpp @@ -1,14 +1,15 @@ //===- SymbolicFile.cpp - Interface that only provides symbols --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolicFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a file format independent SymbolicFile class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a file format independent SymbolicFile class. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/IRObjectFile.h" #include "llvm/Object/ObjectFile.h" diff --git a/lib/Option/Arg.cpp b/lib/Option/Arg.cpp index 73a7333f92..ac000736c1 100644 --- a/lib/Option/Arg.cpp +++ b/lib/Option/Arg.cpp @@ -1,12 +1,11 @@ //===--- Arg.cpp - Argument Implementations -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Arg.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Option/Arg.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Option/ArgList.cpp b/lib/Option/ArgList.cpp index 23d2670b40..a74ead6b35 100644 --- a/lib/Option/ArgList.cpp +++ b/lib/Option/ArgList.cpp @@ -1,12 +1,11 @@ //===--- ArgList.cpp - Argument List Management ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArgList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Option/ArgList.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Option/CMakeLists.txt b/lib/Option/CMakeLists.txt index e32db31b53..8eb086028d 100644 --- a/lib/Option/CMakeLists.txt +++ b/lib/Option/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMOption Arg.cpp ArgList.cpp diff --git a/lib/Option/LLVMBuild.txt b/lib/Option/LLVMBuild.txt index 5e458e1d28..0b78cf20c0 100644 --- a/lib/Option/LLVMBuild.txt +++ b/lib/Option/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Option/LLVMBuild.txt -------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Option/OptTable.cpp b/lib/Option/OptTable.cpp index d150ef710c..e83536f2b5 100644 --- a/lib/Option/OptTable.cpp +++ b/lib/Option/OptTable.cpp @@ -1,12 +1,11 @@ //===--- OptTable.cpp - Option Table Implementation -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Option/OptTable.h" #include "llvm/Option/Arg.h" diff --git a/lib/Option/Option.cpp b/lib/Option/Option.cpp index 80e9ef02e1..221414d79e 100644 --- a/lib/Option/Option.cpp +++ b/lib/Option/Option.cpp @@ -1,12 +1,11 @@ //===--- Option.cpp - Abstract Driver Options -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Option.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Option/Option.h" #include "llvm/ADT/Twine.h" diff --git a/lib/Passes/CMakeLists.txt b/lib/Passes/CMakeLists.txt index e556a484f1..6ceac7bd39 100644 --- a/lib/Passes/CMakeLists.txt +++ b/lib/Passes/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMPasses PassBuilder.cpp diff --git a/lib/Passes/LLVMBuild.txt b/lib/Passes/LLVMBuild.txt index 8d2313b4eb..3063fe3e5d 100644 --- a/lib/Passes/LLVMBuild.txt +++ b/lib/Passes/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Passes/LLVMBuild.txt -------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Passes/PassBuilder.cpp b/lib/Passes/PassBuilder.cpp index 33d4455db0..ba7132050e 100644 --- a/lib/Passes/PassBuilder.cpp +++ b/lib/Passes/PassBuilder.cpp @@ -1,20 +1,19 @@ //===- Parsing, selection, and construction of pass pipelines -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file provides the implementation of the PassBuilder based on our // -/// static pass registry as well as related functionality. It also provides // -/// helpers to aid in analyzing, debugging, and testing passes and pass // -/// pipelines. // +/// This file provides the implementation of the PassBuilder based on our +/// static pass registry as well as related functionality. It also provides +/// helpers to aid in analyzing, debugging, and testing passes and pass +/// pipelines. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm/Passes/PassBuilder.h" #include "llvm/Analysis/AssumptionCache.h" diff --git a/lib/Passes/PassRegistry.def b/lib/Passes/PassRegistry.def index 4be27c817c..0b8fdd5ef3 100644 --- a/lib/Passes/PassRegistry.def +++ b/lib/Passes/PassRegistry.def @@ -1,18 +1,18 @@ //===- PassRegistry.def - Registry of passes --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassRegistry.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is used as the registry of passes that are part of the core LLVM// -// libraries. This file describes both transformation passes and analyses // -// Analyses are registered while transformation passes have names registered // -// that can be used when providing a textual pass pipeline. // -// // -/////////////////////////////////////////////////////////////////////////////// -// NOTE: NO INCLUDE GUARD DESIRED! // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is used as the registry of passes that are part of the core LLVM +// libraries. This file describes both transformation passes and analyses +// Analyses are registered while transformation passes have names registered +// that can be used when providing a textual pass pipeline. +// +//===----------------------------------------------------------------------===// #ifndef MODULE_ANALYSIS #define MODULE_ANALYSIS(NAME, CREATE_PASS) diff --git a/lib/ProfileData/CMakeLists.txt b/lib/ProfileData/CMakeLists.txt index 682260e130..22cca4b44d 100644 --- a/lib/ProfileData/CMakeLists.txt +++ b/lib/ProfileData/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMProfileData InstrProf.cpp InstrProfReader.cpp diff --git a/lib/ProfileData/CoverageMapping.cpp b/lib/ProfileData/CoverageMapping.cpp index d95f37cd6a..cf04fea849 100644 --- a/lib/ProfileData/CoverageMapping.cpp +++ b/lib/ProfileData/CoverageMapping.cpp @@ -1,15 +1,16 @@ //=-- CoverageMapping.cpp - Code coverage mapping support ---------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMapping.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for clang's and llvm's instrumentation based // -// code coverage. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for clang's and llvm's instrumentation based +// code coverage. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/CoverageMapping.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/ProfileData/CoverageMappingReader.cpp b/lib/ProfileData/CoverageMappingReader.cpp index 56f8bb98c5..f39ea5f72b 100644 --- a/lib/ProfileData/CoverageMappingReader.cpp +++ b/lib/ProfileData/CoverageMappingReader.cpp @@ -1,15 +1,16 @@ //=-- CoverageMappingReader.cpp - Code coverage mapping reader ----*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for reading coverage mapping data for // -// instrumentation based coverage. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for reading coverage mapping data for +// instrumentation based coverage. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/CoverageMappingReader.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/ProfileData/CoverageMappingWriter.cpp b/lib/ProfileData/CoverageMappingWriter.cpp index 9077acc80c..45ce740def 100644 --- a/lib/ProfileData/CoverageMappingWriter.cpp +++ b/lib/ProfileData/CoverageMappingWriter.cpp @@ -1,15 +1,16 @@ //=-- CoverageMappingWriter.cpp - Code coverage mapping writer -------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing coverage mapping data for // -// instrumentation based coverage. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing coverage mapping data for +// instrumentation based coverage. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/CoverageMappingWriter.h" #include "llvm/Support/LEB128.h" diff --git a/lib/ProfileData/InstrProf.cpp b/lib/ProfileData/InstrProf.cpp index 66dea179e8..92822a7140 100644 --- a/lib/ProfileData/InstrProf.cpp +++ b/lib/ProfileData/InstrProf.cpp @@ -1,15 +1,16 @@ //=-- InstrProf.cpp - Instrumented profiling format support -----------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProf.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for clang's instrumentation based PGO and // -// coverage. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for clang's instrumentation based PGO and +// coverage. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/InstrProf.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/ProfileData/InstrProfIndexed.h b/lib/ProfileData/InstrProfIndexed.h index 4ad92ce1e7..ebca7b22fb 100644 --- a/lib/ProfileData/InstrProfIndexed.h +++ b/lib/ProfileData/InstrProfIndexed.h @@ -1,14 +1,15 @@ //=-- InstrProfIndexed.h - Indexed profiling format support -------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfIndexed.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Shared header for the instrumented profile data reader and writer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Shared header for the instrumented profile data reader and writer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_PROFILEDATA_INSTRPROFINDEXED_H #define LLVM_LIB_PROFILEDATA_INSTRPROFINDEXED_H diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index ee16969ab6..8a529a000c 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -1,15 +1,16 @@ //=-- InstrProfReader.cpp - Instrumented profiling reader -------------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for reading profiling data for clang's // -// instrumentation based PGO and coverage. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for reading profiling data for clang's +// instrumentation based PGO and coverage. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/InstrProfReader.h" #include "InstrProfIndexed.h" diff --git a/lib/ProfileData/InstrProfWriter.cpp b/lib/ProfileData/InstrProfWriter.cpp index d2b3797b02..2188543ed6 100644 --- a/lib/ProfileData/InstrProfWriter.cpp +++ b/lib/ProfileData/InstrProfWriter.cpp @@ -1,15 +1,16 @@ //=-- InstrProfWriter.cpp - Instrumented profiling writer -------------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for writing profiling data for clang's // -// instrumentation based PGO and coverage. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for writing profiling data for clang's +// instrumentation based PGO and coverage. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/InstrProfWriter.h" #include "InstrProfIndexed.h" diff --git a/lib/ProfileData/LLVMBuild.txt b/lib/ProfileData/LLVMBuild.txt index 62a10d0f2c..b50933fa4c 100644 --- a/lib/ProfileData/LLVMBuild.txt +++ b/lib/ProfileData/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/ProfileData/LLVMBuild.txt --------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/ProfileData/SampleProf.cpp b/lib/ProfileData/SampleProf.cpp index 2e9b6475a9..920c48a246 100644 --- a/lib/ProfileData/SampleProf.cpp +++ b/lib/ProfileData/SampleProf.cpp @@ -1,15 +1,16 @@ //=-- SampleProf.cpp - Sample profiling format support --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProf.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains common definitions used in the reading and writing of // -// sample profile data. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains common definitions used in the reading and writing of +// sample profile data. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/SampleProf.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/ProfileData/SampleProfReader.cpp b/lib/ProfileData/SampleProfReader.cpp index f38d5f607b..b39bfd6e2e 100644 --- a/lib/ProfileData/SampleProfReader.cpp +++ b/lib/ProfileData/SampleProfReader.cpp @@ -1,97 +1,98 @@ //===- SampleProfReader.cpp - Read LLVM sample profile data ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProfReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the class that reads LLVM sample profiles. It // -// supports two file formats: text and binary. The textual representation // -// is useful for debugging and testing purposes. The binary representation // -// is more compact, resulting in smaller file sizes. However, they can // -// both be used interchangeably. // -// // -// NOTE: If you are making changes to the file format, please remember // -// to document them in the Clang documentation at // -// tools/clang/docs/UsersManual.rst. // -// // -// Text format // -// ----------- // -// // -// Sample profiles are written as ASCII text. The file is divided into // -// sections, which correspond to each of the functions executed at runtime. // -// Each section has the following format // -// // -// function1:total_samples:total_head_samples // -// offset1[.discriminator]: number_of_samples [fn1:num fn2:num ... ] // -// offset2[.discriminator]: number_of_samples [fn3:num fn4:num ... ] // -// ... // -// offsetN[.discriminator]: number_of_samples [fn5:num fn6:num ... ] // -// // -// The file may contain blank lines between sections and within a // -// section. However, the spacing within a single line is fixed. Additional // -// spaces will result in an error while reading the file. // -// // -// Function names must be mangled in order for the profile loader to // -// match them in the current translation unit. The two numbers in the // -// function header specify how many total samples were accumulated in the // -// function (first number), and the total number of samples accumulated // -// in the prologue of the function (second number). This head sample // -// count provides an indicator of how frequently the function is invoked. // -// // -// Each sampled line may contain several items. Some are optional (marked // -// below): // -// // -// a. Source line offset. This number represents the line number // -// in the function where the sample was collected. The line number is // -// always relative to the line where symbol of the function is // -// defined. So, if the function has its header at line 280, the offset // -// 13 is at line 293 in the file. // -// // -// Note that this offset should never be a negative number. This could // -// happen in cases like macros. The debug machinery will register the // -// line number at the point of macro expansion. So, if the macro was // -// expanded in a line before the start of the function, the profile // -// converter should emit a 0 as the offset (this means that the optimizers// -// will not be able to associate a meaningful weight to the instructions // -// in the macro). // -// // -// b. [OPTIONAL] Discriminator. This is used if the sampled program // -// was compiled with DWARF discriminator support // -// (http://wiki.dwarfstd.org/index.php?title=Path_Discriminators). // -// DWARF discriminators are unsigned integer values that allow the // -// compiler to distinguish between multiple execution paths on the // -// same source line location. // -// // -// For example, consider the line of code ``if (cond) foo(); else bar();``.// -// If the predicate ``cond`` is true 80% of the time, then the edge // -// into function ``foo`` should be considered to be taken most of the // -// time. But both calls to ``foo`` and ``bar`` are at the same source // -// line, so a sample count at that line is not sufficient. The // -// compiler needs to know which part of that line is taken more // -// frequently. // -// // -// This is what discriminators provide. In this case, the calls to // -// ``foo`` and ``bar`` will be at the same line, but will have // -// different discriminator values. This allows the compiler to correctly // -// set edge weights into ``foo`` and ``bar``. // -// // -// c. Number of samples. This is an integer quantity representing the // -// number of samples collected by the profiler at this source // -// location. // -// // -// d. [OPTIONAL] Potential call targets and samples. If present, this // -// line contains a call instruction. This models both direct and // -// number of samples. For example, // -// // -// 130: 7 foo:3 bar:2 baz:7 // -// // -// The above means that at relative line offset 130 there is a call // -// instruction that calls one of ``foo()``, ``bar()`` and ``baz()``, // -// with ``baz()`` being the relatively more frequently called target. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the class that reads LLVM sample profiles. It +// supports two file formats: text and binary. The textual representation +// is useful for debugging and testing purposes. The binary representation +// is more compact, resulting in smaller file sizes. However, they can +// both be used interchangeably. +// +// NOTE: If you are making changes to the file format, please remember +// to document them in the Clang documentation at +// tools/clang/docs/UsersManual.rst. +// +// Text format +// ----------- +// +// Sample profiles are written as ASCII text. The file is divided into +// sections, which correspond to each of the functions executed at runtime. +// Each section has the following format +// +// function1:total_samples:total_head_samples +// offset1[.discriminator]: number_of_samples [fn1:num fn2:num ... ] +// offset2[.discriminator]: number_of_samples [fn3:num fn4:num ... ] +// ... +// offsetN[.discriminator]: number_of_samples [fn5:num fn6:num ... ] +// +// The file may contain blank lines between sections and within a +// section. However, the spacing within a single line is fixed. Additional +// spaces will result in an error while reading the file. +// +// Function names must be mangled in order for the profile loader to +// match them in the current translation unit. The two numbers in the +// function header specify how many total samples were accumulated in the +// function (first number), and the total number of samples accumulated +// in the prologue of the function (second number). This head sample +// count provides an indicator of how frequently the function is invoked. +// +// Each sampled line may contain several items. Some are optional (marked +// below): +// +// a. Source line offset. This number represents the line number +// in the function where the sample was collected. The line number is +// always relative to the line where symbol of the function is +// defined. So, if the function has its header at line 280, the offset +// 13 is at line 293 in the file. +// +// Note that this offset should never be a negative number. This could +// happen in cases like macros. The debug machinery will register the +// line number at the point of macro expansion. So, if the macro was +// expanded in a line before the start of the function, the profile +// converter should emit a 0 as the offset (this means that the optimizers +// will not be able to associate a meaningful weight to the instructions +// in the macro). +// +// b. [OPTIONAL] Discriminator. This is used if the sampled program +// was compiled with DWARF discriminator support +// (http://wiki.dwarfstd.org/index.php?title=Path_Discriminators). +// DWARF discriminators are unsigned integer values that allow the +// compiler to distinguish between multiple execution paths on the +// same source line location. +// +// For example, consider the line of code ``if (cond) foo(); else bar();``. +// If the predicate ``cond`` is true 80% of the time, then the edge +// into function ``foo`` should be considered to be taken most of the +// time. But both calls to ``foo`` and ``bar`` are at the same source +// line, so a sample count at that line is not sufficient. The +// compiler needs to know which part of that line is taken more +// frequently. +// +// This is what discriminators provide. In this case, the calls to +// ``foo`` and ``bar`` will be at the same line, but will have +// different discriminator values. This allows the compiler to correctly +// set edge weights into ``foo`` and ``bar``. +// +// c. Number of samples. This is an integer quantity representing the +// number of samples collected by the profiler at this source +// location. +// +// d. [OPTIONAL] Potential call targets and samples. If present, this +// line contains a call instruction. This models both direct and +// number of samples. For example, +// +// 130: 7 foo:3 bar:2 baz:7 +// +// The above means that at relative line offset 130 there is a call +// instruction that calls one of ``foo()``, ``bar()`` and ``baz()``, +// with ``baz()`` being the relatively more frequently called target. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/SampleProfReader.h" #include "llvm/Support/Debug.h" diff --git a/lib/ProfileData/SampleProfWriter.cpp b/lib/ProfileData/SampleProfWriter.cpp index 3e4221a37a..c95267ad97 100644 --- a/lib/ProfileData/SampleProfWriter.cpp +++ b/lib/ProfileData/SampleProfWriter.cpp @@ -1,21 +1,22 @@ //===- SampleProfWriter.cpp - Write LLVM sample profile data --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProfWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the class that writes LLVM sample profiles. It // -// supports two file formats: text and binary. The textual representation // -// is useful for debugging and testing purposes. The binary representation // -// is more compact, resulting in smaller file sizes. However, they can // -// both be used interchangeably. // -// // -// See lib/ProfileData/SampleProfReader.cpp for documentation on each of the // -// supported formats. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the class that writes LLVM sample profiles. It +// supports two file formats: text and binary. The textual representation +// is useful for debugging and testing purposes. The binary representation +// is more compact, resulting in smaller file sizes. However, they can +// both be used interchangeably. +// +// See lib/ProfileData/SampleProfReader.cpp for documentation on each of the +// supported formats. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/SampleProfWriter.h" #include "llvm/Support/Debug.h" diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 068b26b579..493c693bad 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -1,15 +1,16 @@ //===-- APFloat.cpp - Implement APFloat class -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APFloat.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a class to represent arbitrary precision floating // -// point values and provide a variety of arithmetic operations on them. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a class to represent arbitrary precision floating +// point values and provide a variety of arithmetic operations on them. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APFloat.h" #include "llvm/ADT/APSInt.h" diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 51400e6fff..23f89bb66f 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -1,15 +1,16 @@ //===-- APInt.cpp - Implement APInt class ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APInt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a class to represent arbitrary precision integer // -// constant values and provide a variety of arithmetic operations on them. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a class to represent arbitrary precision integer +// constant values and provide a variety of arithmetic operations on them. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APInt.h" #include "llvm/ADT/FoldingSet.h" diff --git a/lib/Support/APSInt.cpp b/lib/Support/APSInt.cpp index 125815902f..975457c070 100644 --- a/lib/Support/APSInt.cpp +++ b/lib/Support/APSInt.cpp @@ -1,15 +1,16 @@ //===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APSInt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the APSInt class, which is a simple class that // -// represents an arbitrary sized integer that knows its signedness. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the APSInt class, which is a simple class that +// represents an arbitrary sized integer that knows its signedness. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APSInt.h" #include "llvm/ADT/FoldingSet.h" diff --git a/lib/Support/ARMBuildAttrs.cpp b/lib/Support/ARMBuildAttrs.cpp index 7894c4fbb9..960a0f13c6 100644 --- a/lib/Support/ARMBuildAttrs.cpp +++ b/lib/Support/ARMBuildAttrs.cpp @@ -1,12 +1,11 @@ //===-- ARMBuildAttrs.cpp - ARM Build Attributes --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMBuildAttrs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ARMBuildAttributes.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/Support/ARMWinEH.cpp b/lib/Support/ARMWinEH.cpp index f862d96fb5..03c150f115 100644 --- a/lib/Support/ARMWinEH.cpp +++ b/lib/Support/ARMWinEH.cpp @@ -1,12 +1,11 @@ //===-- ARMWinEH.cpp - Windows on ARM EH Support Functions ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMWinEH.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ARMWinEH.h" #include "llvm/Support/raw_ostream.h" diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp index 5344f9a9c1..f48edac059 100644 --- a/lib/Support/Allocator.cpp +++ b/lib/Support/Allocator.cpp @@ -1,14 +1,15 @@ //===--- Allocator.cpp - Simple memory allocation abstraction -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Allocator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the BumpPtrAllocator interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the BumpPtrAllocator interface. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Allocator.h" #include "llvm/Support/raw_ostream.h" diff --git a/lib/Support/Atomic.cpp b/lib/Support/Atomic.cpp index 15dc0a12fd..ac4ff3eb5c 100644 --- a/lib/Support/Atomic.cpp +++ b/lib/Support/Atomic.cpp @@ -1,14 +1,15 @@ //===-- Atomic.cpp - Atomic Operations --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Atomic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements atomic operations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements atomic operations. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Atomic.h" #include "llvm/Config/llvm-config.h" diff --git a/lib/Support/BlockFrequency.cpp b/lib/Support/BlockFrequency.cpp index 98d2a0ef56..6f7e341904 100644 --- a/lib/Support/BlockFrequency.cpp +++ b/lib/Support/BlockFrequency.cpp @@ -1,14 +1,15 @@ //====--------------- lib/Support/BlockFrequency.cpp -----------*- C++ -*-====// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequency.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Block Frequency class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Block Frequency class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/BranchProbability.h" #include "llvm/Support/BlockFrequency.h" diff --git a/lib/Support/BranchProbability.cpp b/lib/Support/BranchProbability.cpp index 665f3aabf9..65878d6e30 100644 --- a/lib/Support/BranchProbability.cpp +++ b/lib/Support/BranchProbability.cpp @@ -1,14 +1,15 @@ //===-------------- lib/Support/BranchProbability.cpp -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchProbability.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Branch Probability class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Branch Probability class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/BranchProbability.h" #include "llvm/Support/Debug.h" diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 7dc1e99c84..1cd4be316d 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(system_libs) if( NOT MSVC ) if( MINGW ) diff --git a/lib/Support/COM.cpp b/lib/Support/COM.cpp index 0e80476b43..cf3a133fd9 100644 --- a/lib/Support/COM.cpp +++ b/lib/Support/COM.cpp @@ -1,14 +1,15 @@ //===-- COM.cpp - Implement COM utility classes -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COM.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements utility classes related to COM. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements utility classes related to COM. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/COM.h" diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 7d3c6113b7..c7d1d6ed08 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -1,19 +1,20 @@ //===-- CommandLine.cpp - Command line parser implementation --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommandLine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements a command line argument processor that is useful when// -// creating a tool. It provides a simple, minimalistic interface that is easily// -// extensible and supports nonlocal (library) command line options. // -// // -// Note that rather than trying to figure out what this code does, you could try// -// reading the library documentation located in docs/CommandLine.html // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements a command line argument processor that is useful when +// creating a tool. It provides a simple, minimalistic interface that is easily +// extensible and supports nonlocal (library) command line options. +// +// Note that rather than trying to figure out what this code does, you could try +// reading the library documentation located in docs/CommandLine.html +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CommandLine.h" #include "llvm-c/Support.h" diff --git a/lib/Support/Compression.cpp b/lib/Support/Compression.cpp index cb14a28880..b54613e92b 100644 --- a/lib/Support/Compression.cpp +++ b/lib/Support/Compression.cpp @@ -1,14 +1,15 @@ //===--- Compression.cpp - Compression implementation ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Compression.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements compression functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements compression functions. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Compression.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Support/ConvertUTF.c b/lib/Support/ConvertUTF.c index cbd0ace216..a5df91d9e6 100644 --- a/lib/Support/ConvertUTF.c +++ b/lib/Support/ConvertUTF.c @@ -1,13 +1,11 @@ /*===--- ConvertUTF.c - Universal Character Names conversions ---------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// ConvertUTF.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * + *===------------------------------------------------------------------------=*/ /* * Copyright 2001-2004 Unicode, Inc. * diff --git a/lib/Support/ConvertUTFWrapper.cpp b/lib/Support/ConvertUTFWrapper.cpp index 59c2459d00..f72c243647 100644 --- a/lib/Support/ConvertUTFWrapper.cpp +++ b/lib/Support/ConvertUTFWrapper.cpp @@ -1,12 +1,11 @@ //===-- ConvertUTFWrapper.cpp - Wrap ConvertUTF.h with clang data types -----=== -/////////////////////////////////////////////////////////////////////////////// -// // -// ConvertUTFWrapper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/SwapByteOrder.h" diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp index cc2f274437..aba0f1ddee 100644 --- a/lib/Support/CrashRecoveryContext.cpp +++ b/lib/Support/CrashRecoveryContext.cpp @@ -1,12 +1,11 @@ //===--- CrashRecoveryContext.cpp - Crash Recovery ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CrashRecoveryContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CrashRecoveryContext.h" #include "llvm/Config/config.h" diff --git a/lib/Support/DAGDeltaAlgorithm.cpp b/lib/Support/DAGDeltaAlgorithm.cpp index 6d43a2fc6c..f1a334bfc7 100644 --- a/lib/Support/DAGDeltaAlgorithm.cpp +++ b/lib/Support/DAGDeltaAlgorithm.cpp @@ -1,35 +1,35 @@ //===--- DAGDeltaAlgorithm.cpp - A DAG Minimization Algorithm --*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGDeltaAlgorithm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The algorithm we use attempts to exploit the dependency information by // -// minimizing top-down. We start by constructing an initial root set R, and // -// then iteratively: // -// // -// 1. Minimize the set R using the test predicate: // -// P'(S) = P(S union pred*(S)) // -// // -// 2. Extend R to R' = R union pred(R). // -// // -// until a fixed point is reached. // -// // -// The idea is that we want to quickly prune entire portions of the graph, so we// -// try to find high-level nodes that can be eliminated with all of their // -// dependents. // -// // -// FIXME: The current algorithm doesn't actually provide a strong guarantee // -// about the minimality of the result. The problem is that after adding nodes to// -// the required set, we no longer consider them for elimination. For strictly// -// well formed predicates, this doesn't happen, but it commonly occurs in // -// practice when there are unmodelled dependencies. I believe we can resolve // -// this by allowing the required set to be minimized as well, but need more test// -// cases first. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===// +// +// The algorithm we use attempts to exploit the dependency information by +// minimizing top-down. We start by constructing an initial root set R, and +// then iteratively: +// +// 1. Minimize the set R using the test predicate: +// P'(S) = P(S union pred*(S)) +// +// 2. Extend R to R' = R union pred(R). +// +// until a fixed point is reached. +// +// The idea is that we want to quickly prune entire portions of the graph, so we +// try to find high-level nodes that can be eliminated with all of their +// dependents. +// +// FIXME: The current algorithm doesn't actually provide a strong guarantee +// about the minimality of the result. The problem is that after adding nodes to +// the required set, we no longer consider them for elimination. For strictly +// well formed predicates, this doesn't happen, but it commonly occurs in +// practice when there are unmodelled dependencies. I believe we can resolve +// this by allowing the required set to be minimized as well, but need more test +// cases first. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DAGDeltaAlgorithm.h" #include "llvm/ADT/DeltaAlgorithm.h" diff --git a/lib/Support/DataExtractor.cpp b/lib/Support/DataExtractor.cpp index e8af851725..5d6d60a87f 100644 --- a/lib/Support/DataExtractor.cpp +++ b/lib/Support/DataExtractor.cpp @@ -1,12 +1,11 @@ //===-- DataExtractor.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataExtractor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/DataExtractor.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/Support/DataStream.cpp b/lib/Support/DataStream.cpp index 6facfcebb7..f75c6a24ae 100644 --- a/lib/Support/DataStream.cpp +++ b/lib/Support/DataStream.cpp @@ -1,17 +1,18 @@ //===--- llvm/Support/DataStream.cpp - Lazy streamed data -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataStream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements DataStreamer, which fetches bytes of Data from // -// a stream source. It provides support for streaming (lazy reading) of // -// bitcode. An example implementation of streaming from a file or stdin // -// is included. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements DataStreamer, which fetches bytes of Data from +// a stream source. It provides support for streaming (lazy reading) of +// bitcode. An example implementation of streaming from a file or stdin +// is included. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/DataStream.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index e0d0e7f8f6..36e6b17d4a 100644 --- a/lib/Support/Debug.cpp +++ b/lib/Support/Debug.cpp @@ -1,26 +1,27 @@ //===-- Debug.cpp - An easy way to add debug output to your code ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Debug.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a handy way of adding debugging information to your // -// code, without it being enabled all of the time, and without having to add // -// command line options to enable it. // -// // -// In particular, just wrap your code with the DEBUG() macro, and it will be // -// enabled automatically if you specify '-debug' on the command-line. // -// Alternatively, you can also use the SET_DEBUG_TYPE("foo") macro to specify// -// that your debug code belongs to class "foo". Then, on the command line, you// -// can specify '-debug-only=foo' to enable JUST the debug information for the// -// foo class. // -// // -// When compiling without assertions, the -debug-* options and all code in // -// DEBUG() statements disappears, so it does not affect the runtime of the code.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a handy way of adding debugging information to your +// code, without it being enabled all of the time, and without having to add +// command line options to enable it. +// +// In particular, just wrap your code with the DEBUG() macro, and it will be +// enabled automatically if you specify '-debug' on the command-line. +// Alternatively, you can also use the SET_DEBUG_TYPE("foo") macro to specify +// that your debug code belongs to class "foo". Then, on the command line, you +// can specify '-debug-only=foo' to enable JUST the debug information for the +// foo class. +// +// When compiling without assertions, the -debug-* options and all code in +// DEBUG() statements disappears, so it does not affect the runtime of the code. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Debug.h" #include "llvm/Support/CommandLine.h" diff --git a/lib/Support/DeltaAlgorithm.cpp b/lib/Support/DeltaAlgorithm.cpp index b92666ddbe..9e52874de8 100644 --- a/lib/Support/DeltaAlgorithm.cpp +++ b/lib/Support/DeltaAlgorithm.cpp @@ -1,12 +1,10 @@ //===--- DeltaAlgorithm.cpp - A Set Minimization Algorithm -----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeltaAlgorithm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===// #include "llvm/ADT/DeltaAlgorithm.h" #include diff --git a/lib/Support/Dwarf.cpp b/lib/Support/Dwarf.cpp index 5041dc6cea..13a41557a8 100644 --- a/lib/Support/Dwarf.cpp +++ b/lib/Support/Dwarf.cpp @@ -1,14 +1,15 @@ //===-- llvm/Support/Dwarf.cpp - Dwarf Framework ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dwarf.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains support for generic dwarf information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains support for generic dwarf information. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Dwarf.h" #include "llvm/ADT/StringSwitch.h" diff --git a/lib/Support/DynamicLibrary.cpp b/lib/Support/DynamicLibrary.cpp index 29592af743..9a7aeb50a2 100644 --- a/lib/Support/DynamicLibrary.cpp +++ b/lib/Support/DynamicLibrary.cpp @@ -1,16 +1,17 @@ //===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DynamicLibrary.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the operating system DynamicLibrary concept. // -// // -// FIXME: This file leaks ExplicitSymbols and OpenedHandles! // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the operating system DynamicLibrary concept. +// +// FIXME: This file leaks ExplicitSymbols and OpenedHandles! +// +//===----------------------------------------------------------------------===// #include "llvm/Support/DynamicLibrary.h" #include "llvm-c/Support.h" diff --git a/lib/Support/Errno.cpp b/lib/Support/Errno.cpp index 32b9b95240..3ba2a1277d 100644 --- a/lib/Support/Errno.cpp +++ b/lib/Support/Errno.cpp @@ -1,14 +1,15 @@ //===- Errno.cpp - errno support --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Errno.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the errno wrappers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the errno wrappers. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Errno.h" #include "llvm/Config/config.h" // Get autoconf configuration settings diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp index 0a52414db4..5df1e35b7d 100644 --- a/lib/Support/ErrorHandling.cpp +++ b/lib/Support/ErrorHandling.cpp @@ -1,15 +1,16 @@ //===- lib/Support/ErrorHandling.cpp - Callbacks for errors ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ErrorHandling.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines an API used to indicate fatal error conditions. Non-fatal// -// errors (most of them) should be handled through LLVMContext. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines an API used to indicate fatal error conditions. Non-fatal +// errors (most of them) should be handled through LLVMContext. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ErrorHandling.h" #include "llvm-c/Core.h" diff --git a/lib/Support/FileOutputBuffer.cpp b/lib/Support/FileOutputBuffer.cpp index 831e95aaf7..307ff09afe 100644 --- a/lib/Support/FileOutputBuffer.cpp +++ b/lib/Support/FileOutputBuffer.cpp @@ -1,14 +1,15 @@ //===- FileOutputBuffer.cpp - File Output Buffer ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileOutputBuffer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Utility for creating a in-memory buffer that will be written to a file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Utility for creating a in-memory buffer that will be written to a file. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/FileOutputBuffer.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index 28faed925d..5316f049a3 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -1,15 +1,16 @@ //===- Support/FileUtilities.cpp - File System Utilities ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileUtilities.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a family of utility functions which are useful for doing// -// various things with files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a family of utility functions which are useful for doing +// various things with files. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/FileUtilities.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index c3af3a4b9b..71f2df699b 100644 --- a/lib/Support/FoldingSet.cpp +++ b/lib/Support/FoldingSet.cpp @@ -1,15 +1,16 @@ //===-- Support/FoldingSet.cpp - Uniquing Hash Set --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FoldingSet.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a hash set that can be used to remove duplication of // -// nodes in a graph. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a hash set that can be used to remove duplication of +// nodes in a graph. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/Hashing.h" diff --git a/lib/Support/FormattedStream.cpp b/lib/Support/FormattedStream.cpp index 36e20765db..2ed71c7e43 100644 --- a/lib/Support/FormattedStream.cpp +++ b/lib/Support/FormattedStream.cpp @@ -1,14 +1,15 @@ //===-- llvm/Support/FormattedStream.cpp - Formatted streams ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormattedStream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation of formatted_raw_ostream. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation of formatted_raw_ostream. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Debug.h" #include "llvm/Support/FormattedStream.h" diff --git a/lib/Support/GraphWriter.cpp b/lib/Support/GraphWriter.cpp index a515722df4..09c19d32cf 100644 --- a/lib/Support/GraphWriter.cpp +++ b/lib/Support/GraphWriter.cpp @@ -1,14 +1,15 @@ //===-- GraphWriter.cpp - Implements GraphWriter support routines ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GraphWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements misc. GraphWriter support routines. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements misc. GraphWriter support routines. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/GraphWriter.h" #include "llvm/Config/config.h" diff --git a/lib/Support/Hashing.cpp b/lib/Support/Hashing.cpp index 079a6d2947..c69efb7c3c 100644 --- a/lib/Support/Hashing.cpp +++ b/lib/Support/Hashing.cpp @@ -1,16 +1,17 @@ //===-------------- lib/Support/Hashing.cpp -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Hashing.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides implementation bits for the LLVM common hashing // -// infrastructure. Documentation and most of the other information is in the // -// header file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides implementation bits for the LLVM common hashing +// infrastructure. Documentation and most of the other information is in the +// header file. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Hashing.h" diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 273d04a04b..1bd1fe2bea 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -1,14 +1,15 @@ //===-- Host.cpp - Implement OS Host Concept --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Host.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the operating system Host concept. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the operating system Host concept. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Host.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Support/IntEqClasses.cpp b/lib/Support/IntEqClasses.cpp index f9b481a427..11344956e4 100644 --- a/lib/Support/IntEqClasses.cpp +++ b/lib/Support/IntEqClasses.cpp @@ -1,21 +1,22 @@ //===-- llvm/ADT/IntEqClasses.cpp - Equivalence Classes of Integers -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntEqClasses.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Equivalence classes for small integers. This is a mapping of the integers // -// 0 .. N-1 into M equivalence classes numbered 0 .. M-1. // -// // -// Initially each integer has its own equivalence class. Classes are joined by// -// passing a representative member of each class to join(). // -// // -// Once the classes are built, compress() will number them 0 .. M-1 and prevent// -// further changes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Equivalence classes for small integers. This is a mapping of the integers +// 0 .. N-1 into M equivalence classes numbered 0 .. M-1. +// +// Initially each integer has its own equivalence class. Classes are joined by +// passing a representative member of each class to join(). +// +// Once the classes are built, compress() will number them 0 .. M-1 and prevent +// further changes. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IntEqClasses.h" diff --git a/lib/Support/IntervalMap.cpp b/lib/Support/IntervalMap.cpp index 798a86e8e1..e11a7f2eb8 100644 --- a/lib/Support/IntervalMap.cpp +++ b/lib/Support/IntervalMap.cpp @@ -1,14 +1,15 @@ //===- lib/Support/IntervalMap.cpp - A sorted interval map ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntervalMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the few non-templated functions in IntervalMap. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the few non-templated functions in IntervalMap. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IntervalMap.h" diff --git a/lib/Support/IntrusiveRefCntPtr.cpp b/lib/Support/IntrusiveRefCntPtr.cpp index ea9c81edda..a8b45593ae 100644 --- a/lib/Support/IntrusiveRefCntPtr.cpp +++ b/lib/Support/IntrusiveRefCntPtr.cpp @@ -1,12 +1,11 @@ //== IntrusiveRefCntPtr.cpp - Smart Refcounting Pointer ----------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrusiveRefCntPtr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IntrusiveRefCntPtr.h" diff --git a/lib/Support/LEB128.cpp b/lib/Support/LEB128.cpp index 59c316f63e..449626f2d4 100644 --- a/lib/Support/LEB128.cpp +++ b/lib/Support/LEB128.cpp @@ -1,15 +1,16 @@ //===- LEB128.cpp - LEB128 utility functions implementation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LEB128.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements some utility functions for encoding SLEB128 and // -// ULEB128 values. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements some utility functions for encoding SLEB128 and +// ULEB128 values. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/LEB128.h" diff --git a/lib/Support/LLVMBuild.txt b/lib/Support/LLVMBuild.txt index d65936ca1b..5b88be0203 100644 --- a/lib/Support/LLVMBuild.txt +++ b/lib/Support/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Support/LLVMBuild.txt ------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Support/LineIterator.cpp b/lib/Support/LineIterator.cpp index decf0fabe4..5baa1a37f3 100644 --- a/lib/Support/LineIterator.cpp +++ b/lib/Support/LineIterator.cpp @@ -1,12 +1,11 @@ //===- LineIterator.cpp - Implementation of line iteration ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LineIterator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/LineIterator.h" #include "llvm/Support/MemoryBuffer.h" diff --git a/lib/Support/Locale.cpp b/lib/Support/Locale.cpp index e802c62edb..6470b763a0 100644 --- a/lib/Support/Locale.cpp +++ b/lib/Support/Locale.cpp @@ -1,12 +1,3 @@ -//===- Locale.cpp -----------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Locale.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/Support/Locale.h" #include "llvm/Support/Unicode.h" diff --git a/lib/Support/LockFileManager.cpp b/lib/Support/LockFileManager.cpp index 8c829ba751..c2cceebadf 100644 --- a/lib/Support/LockFileManager.cpp +++ b/lib/Support/LockFileManager.cpp @@ -1,11 +1,11 @@ //===--- LockFileManager.cpp - File-level Locking Utility------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LockFileManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/LockFileManager.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Support/MD5.cpp b/lib/Support/MD5.cpp index d36e259880..ceab580984 100644 --- a/lib/Support/MD5.cpp +++ b/lib/Support/MD5.cpp @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// MD5.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /* * This code is derived from (original license follows): * diff --git a/lib/Support/ManagedStatic.cpp b/lib/Support/ManagedStatic.cpp index 20b9b4803a..b8fb2841e5 100644 --- a/lib/Support/ManagedStatic.cpp +++ b/lib/Support/ManagedStatic.cpp @@ -1,14 +1,15 @@ //===-- ManagedStatic.cpp - Static Global wrapper -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ManagedStatic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ManagedStatic class and llvm_shutdown(). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ManagedStatic class and llvm_shutdown(). +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ManagedStatic.h" #include "llvm/Config/config.h" diff --git a/lib/Support/MathExtras.cpp b/lib/Support/MathExtras.cpp index 53ab275546..ba0924540c 100644 --- a/lib/Support/MathExtras.cpp +++ b/lib/Support/MathExtras.cpp @@ -1,14 +1,15 @@ //===-- MathExtras.cpp - Implement the MathExtras header --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MathExtras.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MathExtras.h header // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MathExtras.h header +// +//===----------------------------------------------------------------------===// #include "llvm/Support/MathExtras.h" diff --git a/lib/Support/Memory.cpp b/lib/Support/Memory.cpp index ac1b61e8fe..f9a4903ad0 100644 --- a/lib/Support/Memory.cpp +++ b/lib/Support/Memory.cpp @@ -1,15 +1,16 @@ //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Memory.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some helpful functions for allocating memory and dealing// -// with memory mapped files // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some helpful functions for allocating memory and dealing +// with memory mapped files +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Memory.h" #include "llvm/Config/config.h" diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 14cc657133..b4d01f2f7f 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp @@ -1,14 +1,15 @@ //===--- MemoryBuffer.cpp - Memory Buffer implementation ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryBuffer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MemoryBuffer interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MemoryBuffer interface. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/MemoryBuffer.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Support/MemoryObject.cpp b/lib/Support/MemoryObject.cpp index afbd43cd03..d796acfa90 100644 --- a/lib/Support/MemoryObject.cpp +++ b/lib/Support/MemoryObject.cpp @@ -1,12 +1,11 @@ //===- MemoryObject.cpp - Abstract memory interface -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryObject.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/MemoryObject.h" using namespace llvm; diff --git a/lib/Support/Mutex.cpp b/lib/Support/Mutex.cpp index da65f56a0d..c8d3844d0c 100644 --- a/lib/Support/Mutex.cpp +++ b/lib/Support/Mutex.cpp @@ -1,14 +1,15 @@ //===- Mutex.cpp - Mutual Exclusion Lock ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mutex.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the llvm::sys::Mutex class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the llvm::sys::Mutex class. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "llvm/Support/Mutex.h" diff --git a/lib/Support/Options.cpp b/lib/Support/Options.cpp index b507cbf31c..71258450ef 100644 --- a/lib/Support/Options.cpp +++ b/lib/Support/Options.cpp @@ -1,15 +1,16 @@ //===- llvm/Support/Options.cpp - Debug options support ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Options.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the helper objects for defining debug options using the// -// new API built on cl::opt, but not requiring the use of static globals. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the helper objects for defining debug options using the +// new API built on cl::opt, but not requiring the use of static globals. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Options.h" #include "llvm/Support/ManagedStatic.h" diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index 805a8a7288..53bb296957 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -1,14 +1,15 @@ //===-- Path.cpp - Implement OS Path Concept ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Path.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the operating system Path API. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the operating system Path API. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/COFF.h" #include "llvm/Support/Endian.h" diff --git a/lib/Support/PluginLoader.cpp b/lib/Support/PluginLoader.cpp index a107fb2fde..358137f08f 100644 --- a/lib/Support/PluginLoader.cpp +++ b/lib/Support/PluginLoader.cpp @@ -1,14 +1,15 @@ //===-- PluginLoader.cpp - Implement -load command line option ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PluginLoader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the -load command line option handler. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the -load command line option handler. +// +//===----------------------------------------------------------------------===// #define DONT_GET_PLUGIN_LOADER_OPTION #include "llvm/Support/PluginLoader.h" diff --git a/lib/Support/PrettyStackTrace.cpp b/lib/Support/PrettyStackTrace.cpp index 751ed84625..f9f8cab9d9 100644 --- a/lib/Support/PrettyStackTrace.cpp +++ b/lib/Support/PrettyStackTrace.cpp @@ -1,15 +1,16 @@ //===- PrettyStackTrace.cpp - Pretty Crash Handling -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrettyStackTrace.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some helpful functions for dealing with the possibility of// -// Unix signals occurring while your program is running. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some helpful functions for dealing with the possibility of +// Unix signals occurring while your program is running. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/PrettyStackTrace.h" #include "llvm-c/Core.h" diff --git a/lib/Support/Process.cpp b/lib/Support/Process.cpp index 8a094d71ac..6dcbb47e87 100644 --- a/lib/Support/Process.cpp +++ b/lib/Support/Process.cpp @@ -1,14 +1,15 @@ //===-- Process.cpp - Implement OS Process Concept --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Process.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the operating system Process concept. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the operating system Process concept. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringExtras.h" #include "llvm/Config/config.h" diff --git a/lib/Support/Program.cpp b/lib/Support/Program.cpp index 8993490675..18c6a488f6 100644 --- a/lib/Support/Program.cpp +++ b/lib/Support/Program.cpp @@ -1,14 +1,15 @@ //===-- Program.cpp - Implement OS Program Concept --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Program.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the operating system Program concept. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the operating system Program concept. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Program.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/Support/RWMutex.cpp b/lib/Support/RWMutex.cpp index 34ad743aaa..3b6309cef2 100644 --- a/lib/Support/RWMutex.cpp +++ b/lib/Support/RWMutex.cpp @@ -1,14 +1,15 @@ //===- RWMutex.cpp - Reader/Writer Mutual Exclusion Lock --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RWMutex.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the llvm::sys::RWMutex class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the llvm::sys::RWMutex class. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "llvm/Support/RWMutex.h" diff --git a/lib/Support/RandomNumberGenerator.cpp b/lib/Support/RandomNumberGenerator.cpp index fb84e36db8..81d0411d60 100644 --- a/lib/Support/RandomNumberGenerator.cpp +++ b/lib/Support/RandomNumberGenerator.cpp @@ -1,16 +1,17 @@ //===-- RandomNumberGenerator.cpp - Implement RNG class -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RandomNumberGenerator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements deterministic random number generation (RNG). // -// The current implementation is NOT cryptographically secure as it uses // -// the C++11 facilities. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements deterministic random number generation (RNG). +// The current implementation is NOT cryptographically secure as it uses +// the C++11 facilities. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/RandomNumberGenerator.h" #include "llvm/Support/CommandLine.h" diff --git a/lib/Support/Regex.cpp b/lib/Support/Regex.cpp index 052c988db5..e8344ef74d 100644 --- a/lib/Support/Regex.cpp +++ b/lib/Support/Regex.cpp @@ -1,14 +1,15 @@ //===-- Regex.cpp - Regular Expression matcher implementation -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Regex.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a POSIX regular expression matcher. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a POSIX regular expression matcher. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Regex.h" #include "regex_impl.h" diff --git a/lib/Support/ScaledNumber.cpp b/lib/Support/ScaledNumber.cpp index 995e19eb36..987c2d803b 100644 --- a/lib/Support/ScaledNumber.cpp +++ b/lib/Support/ScaledNumber.cpp @@ -1,14 +1,15 @@ //==- lib/Support/ScaledNumber.cpp - Support for scaled numbers -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScaledNumber.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of some scaled number algorithms. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of some scaled number algorithms. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ScaledNumber.h" #include "llvm/ADT/APFloat.h" diff --git a/lib/Support/SearchForAddressOfSpecialSymbol.cpp b/lib/Support/SearchForAddressOfSpecialSymbol.cpp index e316ece4f4..55f3320f64 100644 --- a/lib/Support/SearchForAddressOfSpecialSymbol.cpp +++ b/lib/Support/SearchForAddressOfSpecialSymbol.cpp @@ -1,17 +1,18 @@ //===- SearchForAddressOfSpecialSymbol.cpp - Function addresses -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SearchForAddressOfSpecialSymbol.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file pulls the addresses of certain symbols out of the linker. It must// -// include as few header files as possible because it declares the symbols as// -// void*, which would conflict with the actual symbol type if any header // -// declared it. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file pulls the addresses of certain symbols out of the linker. It must +// include as few header files as possible because it declares the symbols as +// void*, which would conflict with the actual symbol type if any header +// declared it. +// +//===----------------------------------------------------------------------===// #include diff --git a/lib/Support/Signals.cpp b/lib/Support/Signals.cpp index 8dbe85566d..a11789372d 100644 --- a/lib/Support/Signals.cpp +++ b/lib/Support/Signals.cpp @@ -1,15 +1,16 @@ //===- Signals.cpp - Signal Handling support --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Signals.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some helpful functions for dealing with the possibility of// -// Unix signals occurring while your program is running. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some helpful functions for dealing with the possibility of +// Unix signals occurring while your program is running. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Signals.h" #include "llvm/Config/config.h" diff --git a/lib/Support/SmallPtrSet.cpp b/lib/Support/SmallPtrSet.cpp index d66a3f202c..358c8e8abb 100644 --- a/lib/Support/SmallPtrSet.cpp +++ b/lib/Support/SmallPtrSet.cpp @@ -1,15 +1,16 @@ //===- llvm/ADT/SmallPtrSet.cpp - 'Normally small' pointer set ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallPtrSet.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SmallPtrSet class. See SmallPtrSet.h for an // -// overview of the algorithm. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SmallPtrSet class. See SmallPtrSet.h for an +// overview of the algorithm. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/DenseMapInfo.h" diff --git a/lib/Support/SmallVector.cpp b/lib/Support/SmallVector.cpp index 2b33bc45fa..b931505bd6 100644 --- a/lib/Support/SmallVector.cpp +++ b/lib/Support/SmallVector.cpp @@ -1,14 +1,15 @@ //===- llvm/ADT/SmallVector.cpp - 'Normally small' vectors ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallVector.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SmallVector class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SmallVector class. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallVector.h" using namespace llvm; diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp index d7913e7b26..35d3b04919 100644 --- a/lib/Support/SourceMgr.cpp +++ b/lib/Support/SourceMgr.cpp @@ -1,16 +1,17 @@ //===- SourceMgr.cpp - Manager for Simple Source Buffers & Diagnostics ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceMgr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SourceMgr class. This class is used as a simple // -// substrate for diagnostics, #include handling, and other low level things for// -// simple parsers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SourceMgr class. This class is used as a simple +// substrate for diagnostics, #include handling, and other low level things for +// simple parsers. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/SourceMgr.h" #include "llvm/ADT/Twine.h" diff --git a/lib/Support/SpecialCaseList.cpp b/lib/Support/SpecialCaseList.cpp index 05c823e5a9..ea417c41c0 100644 --- a/lib/Support/SpecialCaseList.cpp +++ b/lib/Support/SpecialCaseList.cpp @@ -1,17 +1,18 @@ //===-- SpecialCaseList.cpp - special case list for sanitizers ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SpecialCaseList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a utility class for instrumentation passes (like AddressSanitizer // -// or ThreadSanitizer) to avoid instrumenting some functions or global // -// variables, or to instrument some functions or global variables in a specific// -// way, based on a user-supplied list. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a utility class for instrumentation passes (like AddressSanitizer +// or ThreadSanitizer) to avoid instrumenting some functions or global +// variables, or to instrument some functions or global variables in a specific +// way, based on a user-supplied list. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/SpecialCaseList.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index 19ed986e6c..56c3b0f565 100644 --- a/lib/Support/Statistic.cpp +++ b/lib/Support/Statistic.cpp @@ -1,24 +1,25 @@ //===-- Statistic.cpp - Easy way to expose stats information --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Statistic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the 'Statistic' class, which is designed to be an easy// -// way to expose various success metrics from passes. These statistics are // -// printed at the end of a run, when the -stats command line option is enabled// -// on the command line. // -// // -// This is useful for reporting information like the number of instructions // -// simplified, optimized or removed by various transformations, like this: // -// // -// static Statistic NumInstEliminated("GCSE", "Number of instructions killed");// -// // -// Later, in the code: ++NumInstEliminated; // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the 'Statistic' class, which is designed to be an easy +// way to expose various success metrics from passes. These statistics are +// printed at the end of a run, when the -stats command line option is enabled +// on the command line. +// +// This is useful for reporting information like the number of instructions +// simplified, optimized or removed by various transformations, like this: +// +// static Statistic NumInstEliminated("GCSE", "Number of instructions killed"); +// +// Later, in the code: ++NumInstEliminated; +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Statistic.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Support/StreamingMemoryObject.cpp b/lib/Support/StreamingMemoryObject.cpp index 175a02cb6e..5a44e624eb 100644 --- a/lib/Support/StreamingMemoryObject.cpp +++ b/lib/Support/StreamingMemoryObject.cpp @@ -1,12 +1,11 @@ //===- StreamingMemoryObject.cpp - Streamable data interface -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StreamingMemoryObject.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/StreamingMemoryObject.h" #include diff --git a/lib/Support/StringExtras.cpp b/lib/Support/StringExtras.cpp index 7c4052b511..3e2420f677 100644 --- a/lib/Support/StringExtras.cpp +++ b/lib/Support/StringExtras.cpp @@ -1,14 +1,15 @@ //===-- StringExtras.cpp - Implement the StringExtras header --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringExtras.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StringExtras.h header // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the StringExtras.h header +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Support/StringMap.cpp b/lib/Support/StringMap.cpp index 2e480683b3..4329e25b77 100644 --- a/lib/Support/StringMap.cpp +++ b/lib/Support/StringMap.cpp @@ -1,14 +1,15 @@ //===--- StringMap.cpp - String Hash table map implementation -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StringMap class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the StringMap class. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Support/StringPool.cpp b/lib/Support/StringPool.cpp index e7a62c44f8..76faabc92b 100644 --- a/lib/Support/StringPool.cpp +++ b/lib/Support/StringPool.cpp @@ -1,14 +1,15 @@ //===-- StringPool.cpp - Interned string pool -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringPool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StringPool class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the StringPool class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/StringPool.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/Support/StringRef.cpp b/lib/Support/StringRef.cpp index be38fe43d8..ddece087a9 100644 --- a/lib/Support/StringRef.cpp +++ b/lib/Support/StringRef.cpp @@ -1,12 +1,11 @@ //===-- StringRef.cpp - Lightweight String References ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringRef.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/ADT/APInt.h" diff --git a/lib/Support/StringSaver.cpp b/lib/Support/StringSaver.cpp index b2dd3b0064..d6b84e53dc 100644 --- a/lib/Support/StringSaver.cpp +++ b/lib/Support/StringSaver.cpp @@ -1,12 +1,11 @@ //===-- StringSaver.cpp ---------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringSaver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/StringSaver.h" diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index 6668f077ed..7fa6ae3f61 100644 --- a/lib/Support/SystemUtils.cpp +++ b/lib/Support/SystemUtils.cpp @@ -1,15 +1,16 @@ //===- SystemUtils.cpp - Utilities for low-level system tasks -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SystemUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains functions used to do a variety of low-level, often // -// system-specific, tasks. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains functions used to do a variety of low-level, often +// system-specific, tasks. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/SystemUtils.h" #include "llvm/Support/raw_ostream.h" diff --git a/lib/Support/TargetParser.cpp b/lib/Support/TargetParser.cpp index 95cc7453eb..4d4c041b84 100644 --- a/lib/Support/TargetParser.cpp +++ b/lib/Support/TargetParser.cpp @@ -1,15 +1,16 @@ //===-- TargetParser - Parser for target features ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a target parser to recognise hardware features such as// -// FPU/CPU/ARCH names as well as specific support such as HDIV, etc. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a target parser to recognise hardware features such as +// FPU/CPU/ARCH names as well as specific support such as HDIV, etc. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ARMBuildAttributes.h" #include "llvm/Support/TargetParser.h" diff --git a/lib/Support/TargetRegistry.cpp b/lib/Support/TargetRegistry.cpp index ea291785d5..5853ff8528 100644 --- a/lib/Support/TargetRegistry.cpp +++ b/lib/Support/TargetRegistry.cpp @@ -1,12 +1,11 @@ //===--- TargetRegistry.cpp - Target registration -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRegistry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/TargetRegistry.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Support/ThreadLocal.cpp b/lib/Support/ThreadLocal.cpp index 9baa146de4..9da1603080 100644 --- a/lib/Support/ThreadLocal.cpp +++ b/lib/Support/ThreadLocal.cpp @@ -1,14 +1,15 @@ //===- ThreadLocal.cpp - Thread Local Data ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadLocal.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the llvm::sys::ThreadLocal class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the llvm::sys::ThreadLocal class. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "llvm/Support/Compiler.h" diff --git a/lib/Support/Threading.cpp b/lib/Support/Threading.cpp index 9afc22ff6c..ca7f3f64aa 100644 --- a/lib/Support/Threading.cpp +++ b/lib/Support/Threading.cpp @@ -1,15 +1,16 @@ //===-- llvm/Support/Threading.cpp- Control multithreading mode --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Threading.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines helper functions for running LLVM in a multi-threaded // -// environment. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines helper functions for running LLVM in a multi-threaded +// environment. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Threading.h" #include "llvm/Config/config.h" diff --git a/lib/Support/TimeValue.cpp b/lib/Support/TimeValue.cpp index 212cf7101d..136b93ecee 100644 --- a/lib/Support/TimeValue.cpp +++ b/lib/Support/TimeValue.cpp @@ -1,14 +1,15 @@ //===-- TimeValue.cpp - Implement OS TimeValue Concept ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TimeValue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the operating system TimeValue concept. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the operating system TimeValue concept. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/TimeValue.h" #include "llvm/Config/config.h" diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index 4719cee170..882e557f4a 100644 --- a/lib/Support/Timer.cpp +++ b/lib/Support/Timer.cpp @@ -1,14 +1,15 @@ //===-- Timer.cpp - Interval Timing Support -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Timer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Interval Timing implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Interval Timing implementation. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Timer.h" #include "llvm/ADT/StringMap.h" diff --git a/lib/Support/ToolOutputFile.cpp b/lib/Support/ToolOutputFile.cpp index 2928929791..8ae977db6a 100644 --- a/lib/Support/ToolOutputFile.cpp +++ b/lib/Support/ToolOutputFile.cpp @@ -1,14 +1,15 @@ //===--- ToolOutputFile.cpp - Implement the tool_output_file class --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolOutputFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements the tool_output_file class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements the tool_output_file class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/FileSystem.h" diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index cf56dc4b43..b43625d5f9 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -1,12 +1,11 @@ //===--- Triple.cpp - Target triple helper class --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Triple.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Triple.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Support/Twine.cpp b/lib/Support/Twine.cpp index f28e7f4325..020dd9596d 100644 --- a/lib/Support/Twine.cpp +++ b/lib/Support/Twine.cpp @@ -1,12 +1,11 @@ //===-- Twine.cpp - Fast Temporary String Concatenation -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Twine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Twine.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Support/Unicode.cpp b/lib/Support/Unicode.cpp index 519880cba9..b719bd826d 100644 --- a/lib/Support/Unicode.cpp +++ b/lib/Support/Unicode.cpp @@ -1,15 +1,16 @@ //===- llvm/Support/Unicode.cpp - Unicode character properties -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Unicode.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements functions that allow querying certain properties of // -// Unicode characters. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements functions that allow querying certain properties of +// Unicode characters. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Unicode.h" #include "llvm/Support/ConvertUTF.h" diff --git a/lib/Support/Unix/COM.inc b/lib/Support/Unix/COM.inc index 47dc0db102..8018d1e644 100644 --- a/lib/Support/Unix/COM.inc +++ b/lib/Support/Unix/COM.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Unix/COM.inc - Unix COM Implementation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COM.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix portion of COM support. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix portion of COM support. +// +//===----------------------------------------------------------------------===// namespace llvm { namespace sys { diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc index 283330b016..f2d35ab817 100644 --- a/lib/Support/Unix/Host.inc +++ b/lib/Support/Unix/Host.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Unix/Host.inc -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Host.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the UNIX Host support. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the UNIX Host support. +// +//===----------------------------------------------------------------------===// #include "Unix.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/Support/Unix/Memory.inc b/lib/Support/Unix/Memory.inc index f9b4b98584..c421ee84c2 100644 --- a/lib/Support/Unix/Memory.inc +++ b/lib/Support/Unix/Memory.inc @@ -1,14 +1,15 @@ //===- Unix/Memory.cpp - Generic UNIX System Configuration ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Memory.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some functions for various memory management utilities. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some functions for various memory management utilities. +// +//===----------------------------------------------------------------------===// #include "Unix.h" #include "llvm/Support/DataTypes.h" diff --git a/lib/Support/Unix/Mutex.inc b/lib/Support/Unix/Mutex.inc index aee48f3e88..e60f4c9784 100644 --- a/lib/Support/Unix/Mutex.inc +++ b/lib/Support/Unix/Mutex.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mutex.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix specific (non-pthread) Mutex class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix specific (non-pthread) Mutex class. +// +//===----------------------------------------------------------------------===// namespace llvm { diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 9ff8c11c81..91788d3d07 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Unix/Path.inc - Unix Path Implementation ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Path.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix specific implementation of the Path API. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix specific implementation of the Path API. +// +//===----------------------------------------------------------------------===// #include "Unix.h" #include diff --git a/lib/Support/Unix/Process.inc b/lib/Support/Unix/Process.inc index 9e0bb65458..df13bd2217 100644 --- a/lib/Support/Unix/Process.inc +++ b/lib/Support/Unix/Process.inc @@ -1,14 +1,15 @@ //===- Unix/Process.cpp - Unix Process Implementation --------- -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Process.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the generic Unix implementation of the Process class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the generic Unix implementation of the Process class. +// +//===----------------------------------------------------------------------===// #include "Unix.h" #include "llvm/ADT/Hashing.h" diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index 166efd9e5c..f3135fc2d6 100644 --- a/lib/Support/Unix/Program.inc +++ b/lib/Support/Unix/Program.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Unix/Program.cpp -----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Program.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix specific portion of the Program class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix specific portion of the Program class. +// +//===----------------------------------------------------------------------===// #include "Unix.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Support/Unix/README.txt b/lib/Support/Unix/README.txt index 5db763ef15..3d547c2990 100644 --- a/lib/Support/Unix/README.txt +++ b/lib/Support/Unix/README.txt @@ -1,5 +1,3 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. llvm/lib/Support/Unix README =========================== diff --git a/lib/Support/Unix/RWMutex.inc b/lib/Support/Unix/RWMutex.inc index 014428d3e9..ffe1d8f1c3 100644 --- a/lib/Support/Unix/RWMutex.inc +++ b/lib/Support/Unix/RWMutex.inc @@ -1,16 +1,15 @@ //= llvm/Support/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock =// -/////////////////////////////////////////////////////////////////////////////// -// // -// RWMutex.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix specific (non-pthread) RWMutex class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix specific (non-pthread) RWMutex class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Mutex.h" diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index 9542ddfb37..bfe2a3a380 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -1,15 +1,16 @@ //===- Signals.cpp - Generic Unix Signals Implementation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Signals.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some helpful functions for dealing with the possibility of// -// Unix signals occurring while your program is running. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some helpful functions for dealing with the possibility of +// Unix signals occurring while your program is running. +// +//===----------------------------------------------------------------------===// #include "Unix.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Support/Unix/ThreadLocal.inc b/lib/Support/Unix/ThreadLocal.inc index 93def3ffee..9a42bbb92b 100644 --- a/lib/Support/Unix/ThreadLocal.inc +++ b/lib/Support/Unix/ThreadLocal.inc @@ -1,16 +1,15 @@ //=== llvm/Support/Unix/ThreadLocal.inc - Unix Thread Local Data -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadLocal.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix specific (non-pthread) ThreadLocal class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix specific (non-pthread) ThreadLocal class. +// +//===----------------------------------------------------------------------===// #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_GETSPECIFIC) diff --git a/lib/Support/Unix/TimeValue.inc b/lib/Support/Unix/TimeValue.inc index 67e99b2b0b..5a1f203853 100644 --- a/lib/Support/Unix/TimeValue.inc +++ b/lib/Support/Unix/TimeValue.inc @@ -1,16 +1,15 @@ //===- Unix/TimeValue.cpp - Unix TimeValue Implementation -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TimeValue.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Unix specific portion of the TimeValue class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic UNIX code that // -//=== is guaranteed to work on *all* UNIX variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Unix specific portion of the TimeValue class. +// +//===----------------------------------------------------------------------===// #include "Unix.h" diff --git a/lib/Support/Unix/Unix.h b/lib/Support/Unix/Unix.h index c869321b7d..ed0fde57fb 100644 --- a/lib/Support/Unix/Unix.h +++ b/lib/Support/Unix/Unix.h @@ -1,12 +1,13 @@ //===- llvm/Support/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Unix.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines things specific to Unix implementations. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines things specific to Unix implementations. // //===----------------------------------------------------------------------===// diff --git a/lib/Support/Unix/Watchdog.inc b/lib/Support/Unix/Watchdog.inc index 2d694dbf1c..5d89c0e51b 100644 --- a/lib/Support/Unix/Watchdog.inc +++ b/lib/Support/Unix/Watchdog.inc @@ -1,14 +1,15 @@ //===--- Unix/Watchdog.inc - Unix Watchdog Implementation -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Watchdog.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the generic Unix implementation of the Watchdog class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the generic Unix implementation of the Watchdog class. +// +//===----------------------------------------------------------------------===// #ifdef HAVE_UNISTD_H #include diff --git a/lib/Support/Valgrind.cpp b/lib/Support/Valgrind.cpp index 7e12a1031a..3a86f2927c 100644 --- a/lib/Support/Valgrind.cpp +++ b/lib/Support/Valgrind.cpp @@ -1,16 +1,17 @@ //===-- Valgrind.cpp - Implement Valgrind communication ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Valgrind.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines Valgrind communication methods, if HAVE_VALGRIND_VALGRIND_H is // -// defined. If we have valgrind.h but valgrind isn't running, its macros are// -// no-ops. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines Valgrind communication methods, if HAVE_VALGRIND_VALGRIND_H is +// defined. If we have valgrind.h but valgrind isn't running, its macros are +// no-ops. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Valgrind.h" #include "llvm/Config/config.h" diff --git a/lib/Support/Watchdog.cpp b/lib/Support/Watchdog.cpp index 6a686670e7..724aa001f1 100644 --- a/lib/Support/Watchdog.cpp +++ b/lib/Support/Watchdog.cpp @@ -1,14 +1,15 @@ //===---- Watchdog.cpp - Implement Watchdog ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Watchdog.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Watchdog class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Watchdog class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Watchdog.h" #include "llvm/Config/config.h" diff --git a/lib/Support/Windows/COM.inc b/lib/Support/Windows/COM.inc index b656f43083..4f33993045 100644 --- a/lib/Support/Windows/COM.inc +++ b/lib/Support/Windows/COM.inc @@ -1,15 +1,15 @@ //===- llvm/Support/Windows/COM.inc - Windows COM Implementation *- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COM.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Windows portion of COM support. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only Windows code. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Windows portion of COM support. +// +//===----------------------------------------------------------------------===// #include diff --git a/lib/Support/Windows/DynamicLibrary.inc b/lib/Support/Windows/DynamicLibrary.inc index fa5d23c95b..d38f197491 100644 --- a/lib/Support/Windows/DynamicLibrary.inc +++ b/lib/Support/Windows/DynamicLibrary.inc @@ -1,14 +1,15 @@ //===- Win32/DynamicLibrary.cpp - Win32 DL Implementation -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DynamicLibrary.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the Win32 specific implementation of DynamicLibrary. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the Win32 specific implementation of DynamicLibrary. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" diff --git a/lib/Support/Windows/Host.inc b/lib/Support/Windows/Host.inc index 1a83190021..08f57a083f 100644 --- a/lib/Support/Windows/Host.inc +++ b/lib/Support/Windows/Host.inc @@ -1,14 +1,15 @@ //===- llvm/Support/Win32/Host.inc ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Host.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Win32 Host support. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Win32 Host support. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" #include diff --git a/lib/Support/Windows/Memory.inc b/lib/Support/Windows/Memory.inc index b05e0f0e62..4b2ff2e2d3 100644 --- a/lib/Support/Windows/Memory.inc +++ b/lib/Support/Windows/Memory.inc @@ -1,15 +1,16 @@ //===- Win32/Memory.cpp - Win32 Memory Implementation -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Memory.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the Win32 specific implementation of various Memory // -// management utilities // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the Win32 specific implementation of various Memory +// management utilities +// +//===----------------------------------------------------------------------===// #include "llvm/Support/DataTypes.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/Support/Windows/Mutex.inc b/lib/Support/Windows/Mutex.inc index f8133d8d48..14a370269d 100644 --- a/lib/Support/Windows/Mutex.inc +++ b/lib/Support/Windows/Mutex.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Win32/Mutex.inc - Win32 Mutex Implementation -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mutex.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Win32 specific (non-pthread) Mutex class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic Win32 code that // -//=== is guaranteed to work on *all* Win32 variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Win32 specific (non-pthread) Mutex class. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" #include "llvm/Support/Mutex.h" diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index ccc8951712..0794fc008f 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -1,16 +1,15 @@ //===- llvm/Support/Windows/Path.inc - Windows Path Impl --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Path.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Windows specific implementation of the Path API. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic Windows code that// -//=== is guaranteed to work on *all* Windows variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Windows specific implementation of the Path API. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Support/WindowsError.h" diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc index 0c6d4f4088..001d9bb7b3 100644 --- a/lib/Support/Windows/Process.inc +++ b/lib/Support/Windows/Process.inc @@ -1,14 +1,15 @@ //===- Win32/Process.cpp - Win32 Process Implementation ------- -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Process.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the Win32 specific implementation of the Process class.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the Win32 specific implementation of the Process class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Allocator.h" #include "llvm/Support/ErrorHandling.h" diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc index 2f3b84aa84..4a3676b124 100644 --- a/lib/Support/Windows/Program.inc +++ b/lib/Support/Windows/Program.inc @@ -1,14 +1,15 @@ //===- Win32/Program.cpp - Win32 Program Implementation ------- -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Program.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the Win32 specific implementation of the Program class.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the Win32 specific implementation of the Program class. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Support/Windows/RWMutex.inc b/lib/Support/Windows/RWMutex.inc index cb0da0ae2f..79b79cde91 100644 --- a/lib/Support/Windows/RWMutex.inc +++ b/lib/Support/Windows/RWMutex.inc @@ -1,16 +1,15 @@ //= llvm/Support/Win32/Mutex.inc - Win32 Reader/Writer Mutual Exclusion Lock =// -/////////////////////////////////////////////////////////////////////////////// -// // -// RWMutex.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Win32 specific (non-pthread) RWMutex class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic Win32 code that // -//=== is guaranteed to work on *all* Win32 variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Win32 specific (non-pthread) RWMutex class. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index 97d90a9121..553c07244a 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -1,14 +1,15 @@ //===- Win32/Signals.cpp - Win32 Signals Implementation ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Signals.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the Win32 specific implementation of the Signals class.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the Win32 specific implementation of the Signals class. +// +//===----------------------------------------------------------------------===// #if 0 // HLSL Change - disable signal processing diff --git a/lib/Support/Windows/ThreadLocal.inc b/lib/Support/Windows/ThreadLocal.inc index 6e3610007d..9ad6b54ffb 100644 --- a/lib/Support/Windows/ThreadLocal.inc +++ b/lib/Support/Windows/ThreadLocal.inc @@ -1,16 +1,15 @@ //= llvm/Support/Win32/ThreadLocal.inc - Win32 Thread Local Data -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadLocal.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Win32 specific (non-pthread) ThreadLocal class. // -// // -/////////////////////////////////////////////////////////////////////////////// -//=== WARNING: Implementation here must contain only generic Win32 code that // -//=== is guaranteed to work on *all* Win32 variants. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Win32 specific (non-pthread) ThreadLocal class. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" #include "llvm/Support/ThreadLocal.h" diff --git a/lib/Support/Windows/TimeValue.inc b/lib/Support/Windows/TimeValue.inc index b9f679724c..b90b4f1da0 100644 --- a/lib/Support/Windows/TimeValue.inc +++ b/lib/Support/Windows/TimeValue.inc @@ -1,14 +1,15 @@ //===- Win32/TimeValue.cpp - Win32 TimeValue Implementation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TimeValue.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the Win32 implementation of the TimeValue class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the Win32 implementation of the TimeValue class. +// +//===----------------------------------------------------------------------===// #include "WindowsSupport.h" #include "llvm/Support/Format.h" diff --git a/lib/Support/Windows/Watchdog.inc b/lib/Support/Windows/Watchdog.inc index 869cba1cbb..7fa61482ca 100644 --- a/lib/Support/Windows/Watchdog.inc +++ b/lib/Support/Windows/Watchdog.inc @@ -1,18 +1,15 @@ //===--- Windows/Watchdog.inc - Windows Watchdog Implementation -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Watchdog.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the generic Windows implementation of the Watchdog class.// -// // -/////////////////////////////////////////////////////////////////////////////// -// 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. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the generic Windows implementation of the Watchdog class. +// +//===----------------------------------------------------------------------===// namespace llvm { namespace sys { diff --git a/lib/Support/Windows/WindowsSupport.h b/lib/Support/Windows/WindowsSupport.h index 2ec0a5645e..744dc10df3 100644 --- a/lib/Support/Windows/WindowsSupport.h +++ b/lib/Support/Windows/WindowsSupport.h @@ -1,15 +1,16 @@ //===- WindowsSupport.h - Common Windows Include File -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WindowsSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines things specific to Windows implementations. In addition to// -// providing some helpers for working with win32 APIs, this header wraps // -// with some portability macros. Always include WindowsSupport.h// -// instead of including directly. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines things specific to Windows implementations. In addition to +// providing some helpers for working with win32 APIs, this header wraps +// with some portability macros. Always include WindowsSupport.h +// instead of including directly. // //===----------------------------------------------------------------------===// diff --git a/lib/Support/Windows/explicit_symbols.inc b/lib/Support/Windows/explicit_symbols.inc index 43c48de85f..5c7203b8d1 100644 --- a/lib/Support/Windows/explicit_symbols.inc +++ b/lib/Support/Windows/explicit_symbols.inc @@ -1,12 +1,4 @@ -//===- explicit_symbols.inc -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// explicit_symbols.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* in libgcc.a */ /* in libgcc.a */ diff --git a/lib/Support/YAMLParser.cpp b/lib/Support/YAMLParser.cpp index 42b2cda7b4..d55da5ef1e 100644 --- a/lib/Support/YAMLParser.cpp +++ b/lib/Support/YAMLParser.cpp @@ -1,14 +1,15 @@ //===--- YAMLParser.cpp - Simple YAML parser ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a YAML parser. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a YAML parser. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/YAMLParser.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp index ca12803e7d..6b59a16514 100644 --- a/lib/Support/YAMLTraits.cpp +++ b/lib/Support/YAMLTraits.cpp @@ -1,12 +1,11 @@ //===- lib/Support/YAMLTraits.cpp -----------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLTraits.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/YAMLTraits.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Support/circular_raw_ostream.cpp b/lib/Support/circular_raw_ostream.cpp index ea2ba5b011..ca0d30db38 100644 --- a/lib/Support/circular_raw_ostream.cpp +++ b/lib/Support/circular_raw_ostream.cpp @@ -1,14 +1,15 @@ //===- circular_raw_ostream.cpp - Implement circular_raw_ostream ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// circular_raw_ostream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements support for circular buffered streams. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements support for circular buffered streams. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/circular_raw_ostream.h" #include diff --git a/lib/Support/raw_os_ostream.cpp b/lib/Support/raw_os_ostream.cpp index 660d726ae9..44f2325d7f 100644 --- a/lib/Support/raw_os_ostream.cpp +++ b/lib/Support/raw_os_ostream.cpp @@ -1,14 +1,15 @@ //===--- raw_os_ostream.cpp - Implement the raw_os_ostream class ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// raw_os_ostream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements support adapting raw_ostream to std::ostream. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements support adapting raw_ostream to std::ostream. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/raw_os_ostream.h" #include diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index aa8d266e0b..8d9ac20de3 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -1,14 +1,15 @@ //===--- raw_ostream.cpp - Implement the raw_ostream classes --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// raw_ostream.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This implements support for bulk buffered stream output. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This implements support for bulk buffered stream output. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Support/regcclass.h b/lib/Support/regcclass.h index 0821808b46..7fd66046cd 100644 --- a/lib/Support/regcclass.h +++ b/lib/Support/regcclass.h @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regclass.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regcname.h b/lib/Support/regcname.h index d231e3b39d..891d25573e 100644 --- a/lib/Support/regcname.h +++ b/lib/Support/regcname.h @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regcname.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regcomp.c b/lib/Support/regcomp.c index bec0ff795b..5a235e32c1 100644 --- a/lib/Support/regcomp.c +++ b/lib/Support/regcomp.c @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regcomp.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regengine.inc b/lib/Support/regengine.inc index 2fc8fd8ca9..a3ee97be87 100644 --- a/lib/Support/regengine.inc +++ b/lib/Support/regengine.inc @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regengine.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regerror.c b/lib/Support/regerror.c index 77f3048165..101bec4640 100644 --- a/lib/Support/regerror.c +++ b/lib/Support/regerror.c @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regerror.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regex2.h b/lib/Support/regex2.h index d5e4b5e478..d81bfbc97d 100644 --- a/lib/Support/regex2.h +++ b/lib/Support/regex2.h @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regex2.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regex_impl.h b/lib/Support/regex_impl.h index 349c1c0ff1..5fdf915d99 100644 --- a/lib/Support/regex_impl.h +++ b/lib/Support/regex_impl.h @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regex_impl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regexec.c b/lib/Support/regexec.c index ec7fdb7e7e..1ac1baf85f 100644 --- a/lib/Support/regexec.c +++ b/lib/Support/regexec.c @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regexec.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regfree.c b/lib/Support/regfree.c index 4cffe49b17..dc2b4af90f 100644 --- a/lib/Support/regfree.c +++ b/lib/Support/regfree.c @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regfree.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/Support/regstrlcpy.c b/lib/Support/regstrlcpy.c index 5935991974..570624d9ba 100644 --- a/lib/Support/regstrlcpy.c +++ b/lib/Support/regstrlcpy.c @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regstrlcpy.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /* * This code is derived from OpenBSD's libc, original license follows: * diff --git a/lib/Support/regutils.h b/lib/Support/regutils.h index 990d4c2781..49a975cd27 100644 --- a/lib/Support/regutils.h +++ b/lib/Support/regutils.h @@ -1,12 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// regutils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - /*- * This code is derived from OpenBSD's libc/regex, original license follows: * diff --git a/lib/TableGen/CMakeLists.txt b/lib/TableGen/CMakeLists.txt index 71e31e05be..9333b65377 100644 --- a/lib/TableGen/CMakeLists.txt +++ b/lib/TableGen/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMTableGen Error.cpp Main.cpp diff --git a/lib/TableGen/Error.cpp b/lib/TableGen/Error.cpp index 34503ef11c..fd08935662 100644 --- a/lib/TableGen/Error.cpp +++ b/lib/TableGen/Error.cpp @@ -1,15 +1,16 @@ //===- Error.cpp - tblgen error handling helper routines --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains error handling helper routines to pretty-print diagnostic// -// messages from tblgen. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains error handling helper routines to pretty-print diagnostic +// messages from tblgen. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/Error.h" #include "llvm/ADT/Twine.h" diff --git a/lib/TableGen/LLVMBuild.txt b/lib/TableGen/LLVMBuild.txt index 6ff5146038..54cedfd591 100644 --- a/lib/TableGen/LLVMBuild.txt +++ b/lib/TableGen/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/TableGen/LLVMBuild.txt -----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/TableGen/Main.cpp b/lib/TableGen/Main.cpp index 622080f1d4..902c71d1db 100644 --- a/lib/TableGen/Main.cpp +++ b/lib/TableGen/Main.cpp @@ -1,18 +1,19 @@ //===- Main.cpp - Top-Level TableGen implementation -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Main.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// TableGen is a tool which can be used to build up a description of something,// -// then invoke one or more "tablegen backends" to emit information about the // -// description in some predefined format. In practice, this is used by the LLVM// -// code generators to automate generation of a code generator through a // -// high-level description of the target. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// TableGen is a tool which can be used to build up a description of something, +// then invoke one or more "tablegen backends" to emit information about the +// description in some predefined format. In practice, this is used by the LLVM +// code generators to automate generation of a code generator through a +// high-level description of the target. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/Main.h" #include "TGParser.h" diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 783d9abf94..c9a31b64cf 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -1,14 +1,15 @@ //===- Record.cpp - Record implementation ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Record.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implement the tablegen record classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implement the tablegen record classes. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/Record.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/TableGen/SetTheory.cpp b/lib/TableGen/SetTheory.cpp index f918f8e5d2..07c538159d 100644 --- a/lib/TableGen/SetTheory.cpp +++ b/lib/TableGen/SetTheory.cpp @@ -1,15 +1,16 @@ //===- SetTheory.cpp - Generate ordered sets from DAG expressions ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SetTheory.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SetTheory class that computes ordered sets of // -// Records from DAG expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SetTheory class that computes ordered sets of +// Records from DAG expressions. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/SetTheory.h" #include "llvm/Support/Format.h" diff --git a/lib/TableGen/StringMatcher.cpp b/lib/TableGen/StringMatcher.cpp index b4a68b6ee8..16681702d1 100644 --- a/lib/TableGen/StringMatcher.cpp +++ b/lib/TableGen/StringMatcher.cpp @@ -1,14 +1,15 @@ //===- StringMatcher.cpp - Generate a matcher for input strings -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringMatcher.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the StringMatcher class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the StringMatcher class. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/StringMatcher.h" #include "llvm/Support/raw_ostream.h" diff --git a/lib/TableGen/TGLexer.cpp b/lib/TableGen/TGLexer.cpp index 58fec291ee..63b85842d6 100644 --- a/lib/TableGen/TGLexer.cpp +++ b/lib/TableGen/TGLexer.cpp @@ -1,14 +1,15 @@ //===- TGLexer.cpp - Lexer for TableGen -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TGLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implement the Lexer for TableGen. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implement the Lexer for TableGen. +// +//===----------------------------------------------------------------------===// #include "TGLexer.h" #include "llvm/ADT/StringSwitch.h" diff --git a/lib/TableGen/TGLexer.h b/lib/TableGen/TGLexer.h index b278382eb4..cbc30be8a5 100644 --- a/lib/TableGen/TGLexer.h +++ b/lib/TableGen/TGLexer.h @@ -1,14 +1,15 @@ //===- TGLexer.h - Lexer for TableGen Files ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TGLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class represents the Lexer for tablegen files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class represents the Lexer for tablegen files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TABLEGEN_TGLEXER_H #define LLVM_LIB_TABLEGEN_TGLEXER_H diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp index 3367cc9f42..5c36fda2e1 100644 --- a/lib/TableGen/TGParser.cpp +++ b/lib/TableGen/TGParser.cpp @@ -1,14 +1,15 @@ //===- TGParser.cpp - Parser for TableGen Files ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TGParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implement the Parser for TableGen. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implement the Parser for TableGen. +// +//===----------------------------------------------------------------------===// #include "TGParser.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/TableGen/TGParser.h b/lib/TableGen/TGParser.h index babbeec86e..d69d1f4572 100644 --- a/lib/TableGen/TGParser.h +++ b/lib/TableGen/TGParser.h @@ -1,14 +1,15 @@ //===- TGParser.h - Parser for TableGen Files -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TGParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class represents the Parser for tablegen files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class represents the Parser for tablegen files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TABLEGEN_TGPARSER_H #define LLVM_LIB_TABLEGEN_TGPARSER_H diff --git a/lib/TableGen/TableGenBackend.cpp b/lib/TableGen/TableGenBackend.cpp index 01e08bfb3a..77ed8414b1 100644 --- a/lib/TableGen/TableGenBackend.cpp +++ b/lib/TableGen/TableGenBackend.cpp @@ -1,14 +1,15 @@ //===- TableGenBackend.cpp - Utilities for TableGen Backends ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TableGenBackend.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides useful services for TableGen backends... // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides useful services for TableGen backends... +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/TableGenBackend.h" #include "llvm/ADT/Twine.h" diff --git a/lib/Target/CMakeLists.txt b/lib/Target/CMakeLists.txt index d0a715c665..873f44950b 100644 --- a/lib/Target/CMakeLists.txt +++ b/lib/Target/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen) add_llvm_library(LLVMTarget diff --git a/lib/Target/LLVMBuild.txt b/lib/Target/LLVMBuild.txt index 1c8d0d529f..2877121cc4 100644 --- a/lib/Target/LLVMBuild.txt +++ b/lib/Target/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Target/LLVMBuild.txt -------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Target/README.txt b/lib/Target/README.txt index c4c5824f5e..7e9888cc13 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -1,5 +1,3 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. Target Independent Opportunities: //===---------------------------------------------------------------------===// diff --git a/lib/Target/Target.cpp b/lib/Target/Target.cpp index 4234c64679..436d263181 100644 --- a/lib/Target/Target.cpp +++ b/lib/Target/Target.cpp @@ -1,15 +1,16 @@ //===-- Target.cpp --------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Target.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the common infrastructure (including C bindings) for // -// libLLVMTarget.a, which implements target information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the common infrastructure (including C bindings) for +// libLLVMTarget.a, which implements target information. +// +//===----------------------------------------------------------------------===// #include "llvm-c/Target.h" #include "llvm-c/Initialization.h" diff --git a/lib/Target/TargetIntrinsicInfo.cpp b/lib/Target/TargetIntrinsicInfo.cpp index 30c9a9b5be..64bd56f6e7 100644 --- a/lib/Target/TargetIntrinsicInfo.cpp +++ b/lib/Target/TargetIntrinsicInfo.cpp @@ -1,14 +1,15 @@ //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetIntrinsicInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TargetIntrinsicInfo class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TargetIntrinsicInfo class. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetIntrinsicInfo.h" #include "llvm/ADT/StringMap.h" diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index b9b85443e7..19b5e2a0f9 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -1,15 +1,16 @@ //===-- llvm/Target/TargetLoweringObjectFile.cpp - Object File Info -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetLoweringObjectFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements classes used to handle lowerings specific to common // -// object file formats. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements classes used to handle lowerings specific to common +// object file formats. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetLoweringObjectFile.h" #include "llvm/IR/Constants.h" diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 87e6e7216f..83174c20c8 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -1,14 +1,15 @@ //===-- TargetMachine.cpp - General Target Information ---------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetMachine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the general parts of a Target machine. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the general parts of a Target machine. +// +//===----------------------------------------------------------------------===// #include "llvm/Target/TargetMachine.h" #include "llvm/Analysis/TargetTransformInfo.h" diff --git a/lib/Target/TargetMachineC.cpp b/lib/Target/TargetMachineC.cpp index 0f5eca8ed8..996a10953c 100644 --- a/lib/Target/TargetMachineC.cpp +++ b/lib/Target/TargetMachineC.cpp @@ -1,14 +1,15 @@ //===-- TargetMachine.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetMachineC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the LLVM-C part of TargetMachine.h // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the LLVM-C part of TargetMachine.h +// +//===----------------------------------------------------------------------===// #include "llvm-c/TargetMachine.h" #include "llvm-c/Core.h" diff --git a/lib/Target/TargetRecip.cpp b/lib/Target/TargetRecip.cpp index 095e45e69b..42bc487fe6 100644 --- a/lib/Target/TargetRecip.cpp +++ b/lib/Target/TargetRecip.cpp @@ -1,17 +1,18 @@ //===-------------------------- TargetRecip.cpp ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRecip.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class is used to customize machine-specific reciprocal estimate code // -// generation in a target-independent way. // -// If a target does not support operations in this specification, then code // -// generation will default to using supported operations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class is used to customize machine-specific reciprocal estimate code +// generation in a target-independent way. +// If a target does not support operations in this specification, then code +// generation will default to using supported operations. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Target/TargetSubtargetInfo.cpp b/lib/Target/TargetSubtargetInfo.cpp index e8612f079c..6a61fcdf0f 100644 --- a/lib/Target/TargetSubtargetInfo.cpp +++ b/lib/Target/TargetSubtargetInfo.cpp @@ -1,14 +1,15 @@ //===-- TargetSubtargetInfo.cpp - General Target Information ---------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetSubtargetInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file describes the general parts of a Subtarget. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file describes the general parts of a Subtarget. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CommandLine.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/CMakeLists.txt b/lib/Transforms/CMakeLists.txt index babef6006f..3b737ddae3 100644 --- a/lib/Transforms/CMakeLists.txt +++ b/lib/Transforms/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(Utils) # add_subdirectory(Instrumentation) # HLSL Change add_subdirectory(InstCombine) diff --git a/lib/Transforms/Hello/CMakeLists.txt b/lib/Transforms/Hello/CMakeLists.txt index d8c933c869..e0b81907c7 100644 --- a/lib/Transforms/Hello/CMakeLists.txt +++ b/lib/Transforms/Hello/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # If we don't need RTTI or EH, there's no reason to export anything # from the hello plugin. if( NOT LLVM_REQUIRES_RTTI ) diff --git a/lib/Transforms/Hello/Hello.cpp b/lib/Transforms/Hello/Hello.cpp index a7687bd2a6..29b9bb8a94 100644 --- a/lib/Transforms/Hello/Hello.cpp +++ b/lib/Transforms/Hello/Hello.cpp @@ -1,15 +1,16 @@ //===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Hello.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements two versions of the LLVM "Hello World" pass described// -// in docs/WritingAnLLVMPass.html // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements two versions of the LLVM "Hello World" pass described +// in docs/WritingAnLLVMPass.html +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Statistic.h" #include "llvm/IR/Function.h" diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index af0b8a5b30..4762011d63 100644 --- a/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -1,32 +1,33 @@ //===-- ArgumentPromotion.cpp - Promote by-reference arguments ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArgumentPromotion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass promotes "by reference" arguments to be "by value" arguments. In// -// practice, this means looking for internal functions that have pointer // -// arguments. If it can prove, through the use of alias analysis, that an // -// argument is *only* loaded, then it can pass the value into the function // -// instead of the address of the value. This can cause recursive simplification// -// of code and lead to the elimination of allocas (especially in C++ template// -// code like the STL). // -// // -// This pass also handles aggregate arguments that are passed into a function,// -// scalarizing them if the elements of the aggregate are only loaded. Note that// -// by default it refuses to scalarize aggregates which would require passing in// -// more than three operands to the function, because passing thousands of // -// operands for a large array or structure is unprofitable! This limit can be// -// configured or disabled, however. // -// // -// Note that this transformation could also be done for arguments that are only// -// stored to (returning the value instead), but does not currently. This case// -// would be best handled when and if LLVM begins supporting multiple return // -// values from functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass promotes "by reference" arguments to be "by value" arguments. In +// practice, this means looking for internal functions that have pointer +// arguments. If it can prove, through the use of alias analysis, that an +// argument is *only* loaded, then it can pass the value into the function +// instead of the address of the value. This can cause recursive simplification +// of code and lead to the elimination of allocas (especially in C++ template +// code like the STL). +// +// This pass also handles aggregate arguments that are passed into a function, +// scalarizing them if the elements of the aggregate are only loaded. Note that +// by default it refuses to scalarize aggregates which would require passing in +// more than three operands to the function, because passing thousands of +// operands for a large array or structure is unprofitable! This limit can be +// configured or disabled, however. +// +// Note that this transformation could also be done for arguments that are only +// stored to (returning the value instead), but does not currently. This case +// would be best handled when and if LLVM begins supporting multiple return +// values from functions. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Transforms/IPO/BarrierNoopPass.cpp b/lib/Transforms/IPO/BarrierNoopPass.cpp index 26a138c928..6af1043625 100644 --- a/lib/Transforms/IPO/BarrierNoopPass.cpp +++ b/lib/Transforms/IPO/BarrierNoopPass.cpp @@ -1,21 +1,22 @@ //===- BarrierNoopPass.cpp - A barrier pass for the pass manager ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BarrierNoopPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// NOTE: DO NOT USE THIS IF AVOIDABLE // -// // -// This pass is a nonce pass intended to allow manipulation of the implicitly// -// nesting pass manager. For example, it can be used to cause a CGSCC pass // -// manager to be closed prior to running a new collection of function passes.// -// // -// FIXME: This is a huge HACK. This should be removed when the pass manager's// -// nesting is made explicit instead of implicit. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// NOTE: DO NOT USE THIS IF AVOIDABLE +// +// This pass is a nonce pass intended to allow manipulation of the implicitly +// nesting pass manager. For example, it can be used to cause a CGSCC pass +// manager to be closed prior to running a new collection of function passes. +// +// FIXME: This is a huge HACK. This should be removed when the pass manager's +// nesting is made explicit instead of implicit. +// +//===----------------------------------------------------------------------===// #include "llvm/Pass.h" #include "llvm/Transforms/IPO.h" diff --git a/lib/Transforms/IPO/CMakeLists.txt b/lib/Transforms/IPO/CMakeLists.txt index a880346281..336dac45e1 100644 --- a/lib/Transforms/IPO/CMakeLists.txt +++ b/lib/Transforms/IPO/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMipo ArgumentPromotion.cpp BarrierNoopPass.cpp diff --git a/lib/Transforms/IPO/ConstantMerge.cpp b/lib/Transforms/IPO/ConstantMerge.cpp index 7c3caa48d9..8ce7646621 100644 --- a/lib/Transforms/IPO/ConstantMerge.cpp +++ b/lib/Transforms/IPO/ConstantMerge.cpp @@ -1,20 +1,21 @@ //===- ConstantMerge.cpp - Merge duplicate global constants ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantMerge.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface to a pass that merges duplicate global // -// constants together into a single constant that is shared. This is useful // -// because some passes (ie TraceValues) insert a lot of string constants into// -// the program, regardless of whether or not an existing string is available.// -// // -// Algorithm: ConstantMerge is designed to build up a map of available constants// -// and eliminate duplicates when it is initialized. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface to a pass that merges duplicate global +// constants together into a single constant that is shared. This is useful +// because some passes (ie TraceValues) insert a lot of string constants into +// the program, regardless of whether or not an existing string is available. +// +// Algorithm: ConstantMerge is designed to build up a map of available constants +// and eliminate duplicates when it is initialized. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index b7601143f4..d044764025 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -1,20 +1,21 @@ //===-- DeadArgumentElimination.cpp - Eliminate dead arguments ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeadArgumentElimination.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass deletes dead arguments from internal functions. Dead argument // -// elimination removes arguments which are directly dead, as well as arguments// -// only passed into function calls as dead arguments of other functions. This// -// pass also deletes dead return values in a similar way. // -// // -// This pass is often useful as a cleanup pass to run after aggressive // -// interprocedural passes, which add possibly-dead arguments or return values.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass deletes dead arguments from internal functions. Dead argument +// elimination removes arguments which are directly dead, as well as arguments +// only passed into function calls as dead arguments of other functions. This +// pass also deletes dead return values in a similar way. +// +// This pass is often useful as a cleanup pass to run after aggressive +// interprocedural passes, which add possibly-dead arguments or return values. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/IPO/ElimAvailExtern.cpp b/lib/Transforms/IPO/ElimAvailExtern.cpp index aee492fb6b..67ba72d6a3 100644 --- a/lib/Transforms/IPO/ElimAvailExtern.cpp +++ b/lib/Transforms/IPO/ElimAvailExtern.cpp @@ -1,15 +1,16 @@ //===-- ElimAvailExtern.cpp - DCE unreachable internal functions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ElimAvailExtern.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transform is designed to eliminate available external global // -// definitions from the program, turning them into declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transform is designed to eliminate available external global +// definitions from the program, turning them into declarations. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/IPO/ExtractGV.cpp b/lib/Transforms/IPO/ExtractGV.cpp index 78dbccc256..b9462f2ffc 100644 --- a/lib/Transforms/IPO/ExtractGV.cpp +++ b/lib/Transforms/IPO/ExtractGV.cpp @@ -1,14 +1,15 @@ //===-- ExtractGV.cpp - Global Value extraction pass ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExtractGV.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass extracts global values // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass extracts global values +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index fbdee5e421..bb5e64aef3 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp @@ -1,21 +1,22 @@ //===- FunctionAttrs.cpp - Pass which marks functions attributes ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionAttrs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a simple interprocedural pass which walks the // -// call-graph, looking for functions which do not access or only read // -// non-local memory, and marking them readnone/readonly. It does the // -// same with function arguments independently, marking them readonly/ // -// readnone/nocapture. Finally, well-known library call declarations // -// are marked with all attributes that are consistent with the // -// function's standard definition. This pass is implemented as a // -// bottom-up traversal of the call-graph. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a simple interprocedural pass which walks the +// call-graph, looking for functions which do not access or only read +// non-local memory, and marking them readnone/readonly. It does the +// same with function arguments independently, marking them readonly/ +// readnone/nocapture. Finally, well-known library call declarations +// are marked with all attributes that are consistent with the +// function's standard definition. This pass is implemented as a +// bottom-up traversal of the call-graph. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SCCIterator.h" diff --git a/lib/Transforms/IPO/GlobalDCE.cpp b/lib/Transforms/IPO/GlobalDCE.cpp index bbc93aaec5..6a01883c8a 100644 --- a/lib/Transforms/IPO/GlobalDCE.cpp +++ b/lib/Transforms/IPO/GlobalDCE.cpp @@ -1,18 +1,19 @@ //===-- GlobalDCE.cpp - DCE unreachable internal functions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalDCE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transform is designed to eliminate unreachable internal globals from the// -// program. It uses an aggressive algorithm, searching out globals that are // -// known to be alive. After it finds all of the globals which are needed, it// -// deletes whatever is left over. This allows it to delete recursive chunks of// -// the program which are unreachable. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transform is designed to eliminate unreachable internal globals from the +// program. It uses an aggressive algorithm, searching out globals that are +// known to be alive. After it finds all of the globals which are needed, it +// deletes whatever is left over. This allows it to delete recursive chunks of +// the program which are unreachable. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 7d60f2b277..5d7a258011 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -1,16 +1,17 @@ //===- GlobalOpt.cpp - Optimize Global Variables --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalOpt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass transforms simple global variables that never have their address// -// taken. If obviously true, it marks read/write globals as constant, deletes// -// variables only stored to, etc. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass transforms simple global variables that never have their address +// taken. If obviously true, it marks read/write globals as constant, deletes +// variables only stored to, etc. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/IPO/IPConstantPropagation.cpp b/lib/Transforms/IPO/IPConstantPropagation.cpp index 49c21c8ca6..af541d1552 100644 --- a/lib/Transforms/IPO/IPConstantPropagation.cpp +++ b/lib/Transforms/IPO/IPConstantPropagation.cpp @@ -1,18 +1,19 @@ //===-- IPConstantPropagation.cpp - Propagate constants through calls -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPConstantPropagation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements an _extremely_ simple interprocedural constant // -// propagation pass. It could certainly be improved in many different ways, // -// like using a worklist. This pass makes arguments dead, but does not remove// -// them. The existing dead argument elimination pass should be run after this// -// to clean up the mess. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass implements an _extremely_ simple interprocedural constant +// propagation pass. It could certainly be improved in many different ways, +// like using a worklist. This pass makes arguments dead, but does not remove +// them. The existing dead argument elimination pass should be run after this +// to clean up the mess. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/IPO/IPO.cpp b/lib/Transforms/IPO/IPO.cpp index 1b7eadb0a8..50f56b0f2a 100644 --- a/lib/Transforms/IPO/IPO.cpp +++ b/lib/Transforms/IPO/IPO.cpp @@ -1,16 +1,17 @@ //===-- IPO.cpp -----------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IPO.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the common infrastructure (including C bindings) for // -// libLLVMIPO.a, which implements several transformations over the LLVM // -// intermediate representation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the common infrastructure (including C bindings) for +// libLLVMIPO.a, which implements several transformations over the LLVM +// intermediate representation. +// +//===----------------------------------------------------------------------===// #include "llvm-c/Initialization.h" #include "llvm-c/Transforms/IPO.h" diff --git a/lib/Transforms/IPO/InlineAlways.cpp b/lib/Transforms/IPO/InlineAlways.cpp index b036d30f18..dc56a02e7b 100644 --- a/lib/Transforms/IPO/InlineAlways.cpp +++ b/lib/Transforms/IPO/InlineAlways.cpp @@ -1,15 +1,16 @@ //===- InlineAlways.cpp - Code to inline always_inline functions ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineAlways.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a custom inliner that handles only functions that // -// are marked as "always inline". // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a custom inliner that handles only functions that +// are marked as "always inline". +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 306ec12fbf..4d962faa8c 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -1,14 +1,15 @@ //===- InlineSimple.cpp - Code to perform simple function inlining --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineSimple.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements bottom-up inlining of functions into callees. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements bottom-up inlining of functions into callees. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp index 7c4e3f92a6..5273c3dc3c 100644 --- a/lib/Transforms/IPO/Inliner.cpp +++ b/lib/Transforms/IPO/Inliner.cpp @@ -1,16 +1,17 @@ //===- Inliner.cpp - Code common to all inliners --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Inliner.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the mechanics required to implement inlining without // -// missing any calls and updating the call graph. The decisions of which calls// -// are profitable to inline are implemented elsewhere. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the mechanics required to implement inlining without +// missing any calls and updating the call graph. The decisions of which calls +// are profitable to inline are implemented elsewhere. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO/InlinerPass.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index b3d7690812..7950163f75 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -1,22 +1,23 @@ //===-- Internalize.cpp - Mark functions internal -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Internalize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass loops over all of the functions and variables in the input module.// -// If the function or variable is not in the list of external names given to // -// the pass it is marked as internal. // -// // -// This transformation would not be legal in a regular compilation, but it gets// -// extra information from the linker about what is safe. // -// // -// For example: Internalizing a function with external linkage. Only if we are// -// told it is only used from within this module, it is safe to do it. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass loops over all of the functions and variables in the input module. +// If the function or variable is not in the list of external names given to +// the pass it is marked as internal. +// +// This transformation would not be legal in a regular compilation, but it gets +// extra information from the linker about what is safe. +// +// For example: Internalizing a function with external linkage. Only if we are +// told it is only used from within this module, it is safe to do it. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/IPO/LLVMBuild.txt b/lib/Transforms/IPO/LLVMBuild.txt index 91e9d550b2..575dce4b33 100644 --- a/lib/Transforms/IPO/LLVMBuild.txt +++ b/lib/Transforms/IPO/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/IPO/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp index 488107d958..41334ca5b4 100644 --- a/lib/Transforms/IPO/LoopExtractor.cpp +++ b/lib/Transforms/IPO/LoopExtractor.cpp @@ -1,17 +1,18 @@ //===- LoopExtractor.cpp - Extract each loop into a new function ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopExtractor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A pass wrapper around the ExtractLoop() scalar transformation to extract each// -// top-level loop into its own new function. If the loop is the ONLY loop in a// -// given function, it is not touched. This is a pass most useful for debugging// -// via bugpoint. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A pass wrapper around the ExtractLoop() scalar transformation to extract each +// top-level loop into its own new function. If the loop is the ONLY loop in a +// given function, it is not touched. This is a pass most useful for debugging +// via bugpoint. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/IPO/LowerBitSets.cpp b/lib/Transforms/IPO/LowerBitSets.cpp index af4946eef8..c6795c623e 100644 --- a/lib/Transforms/IPO/LowerBitSets.cpp +++ b/lib/Transforms/IPO/LowerBitSets.cpp @@ -1,15 +1,16 @@ //===-- LowerBitSets.cpp - Bitset lowering pass ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerBitSets.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass lowers bitset metadata and calls to the llvm.bitset.test intrinsic.// -// See http://llvm.org/docs/LangRef.html#bitsets for more information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass lowers bitset metadata and calls to the llvm.bitset.test intrinsic. +// See http://llvm.org/docs/LangRef.html#bitsets for more information. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO/LowerBitSets.h" #include "llvm/Transforms/IPO.h" diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index 14b82281b8..2e3519eac6 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/lib/Transforms/IPO/MergeFunctions.cpp @@ -1,82 +1,85 @@ //===- MergeFunctions.cpp - Merge identical functions ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MergeFunctions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass looks for equivalent functions that are mergable and folds them.// -// // -// Order relation is defined on set of functions. It was made through // -// special function comparison procedure that returns // -// 0 when functions are equal, // -// -1 when Left function is less than right function, and // -// 1 for opposite case. We need total-ordering, so we need to maintain // -// four properties on the functions set: // -// a <= a (reflexivity) // -// if a <= b and b <= a then a = b (antisymmetry) // -// if a <= b and b <= c then a <= c (transitivity). // -// for all a and b: a <= b or b <= a (totality). // -// // -// Comparison iterates through each instruction in each basic block. // -// Functions are kept on binary tree. For each new function F we perform // -// lookup in binary tree. // -// In practice it works the following way: // -// -- We define Function* container class with custom "operator<" (FunctionPtr).// -// -- "FunctionPtr" instances are stored in std::set collection, so every // -// std::set::insert operation will give you result in log(N) time. // -// // -// When a match is found the functions are folded. If both functions are // -// overridable, we move the functionality into a new internal function and // -// leave two overridable thunks to it. // -// // -// Future work: // -// // -// * virtual functions. // -// // -// Many functions have their address taken by the virtual function table for // -// the object they belong to. However, as long as it's only used for a lookup// -// and call, this is irrelevant, and we'd like to fold such functions. // -// // -// * be smarter about bitcasts. // -// // -// In order to fold functions, we will sometimes add either bitcast instructions// -// or bitcast constant expressions. Unfortunately, this can confound further // -// analysis since the two functions differ where one has a bitcast and the // -// other doesn't. We should learn to look through bitcasts. // -// // -// * Compare complex types with pointer types inside. // -// * Compare cross-reference cases. // -// * Compare complex expressions. // -// // -// All the three issues above could be described as ability to prove that // -// fA == fB == fC == fE == fF == fG in example below: // -// // -// void fA() { // -// fB(); // -// } // -// void fB() { // -// fA(); // -// } // -// // -// void fE() { // -// fF(); // -// } // -// void fF() { // -// fG(); // -// } // -// void fG() { // -// fE(); // -// } // -// // -// Simplest cross-reference case (fA <--> fB) was implemented in previous // -// versions of MergeFunctions, though it presented only in two function pairs// -// in test-suite (that counts >50k functions) // -// Though possibility to detect complex cross-referencing (e.g.: A->B->C->D->A)// -// could cover much more cases. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass looks for equivalent functions that are mergable and folds them. +// +// Order relation is defined on set of functions. It was made through +// special function comparison procedure that returns +// 0 when functions are equal, +// -1 when Left function is less than right function, and +// 1 for opposite case. We need total-ordering, so we need to maintain +// four properties on the functions set: +// a <= a (reflexivity) +// if a <= b and b <= a then a = b (antisymmetry) +// if a <= b and b <= c then a <= c (transitivity). +// for all a and b: a <= b or b <= a (totality). +// +// Comparison iterates through each instruction in each basic block. +// Functions are kept on binary tree. For each new function F we perform +// lookup in binary tree. +// In practice it works the following way: +// -- We define Function* container class with custom "operator<" (FunctionPtr). +// -- "FunctionPtr" instances are stored in std::set collection, so every +// std::set::insert operation will give you result in log(N) time. +// +// When a match is found the functions are folded. If both functions are +// overridable, we move the functionality into a new internal function and +// leave two overridable thunks to it. +// +//===----------------------------------------------------------------------===// +// +// Future work: +// +// * virtual functions. +// +// Many functions have their address taken by the virtual function table for +// the object they belong to. However, as long as it's only used for a lookup +// and call, this is irrelevant, and we'd like to fold such functions. +// +// * be smarter about bitcasts. +// +// In order to fold functions, we will sometimes add either bitcast instructions +// or bitcast constant expressions. Unfortunately, this can confound further +// analysis since the two functions differ where one has a bitcast and the +// other doesn't. We should learn to look through bitcasts. +// +// * Compare complex types with pointer types inside. +// * Compare cross-reference cases. +// * Compare complex expressions. +// +// All the three issues above could be described as ability to prove that +// fA == fB == fC == fE == fF == fG in example below: +// +// void fA() { +// fB(); +// } +// void fB() { +// fA(); +// } +// +// void fE() { +// fF(); +// } +// void fF() { +// fG(); +// } +// void fG() { +// fE(); +// } +// +// Simplest cross-reference case (fA <--> fB) was implemented in previous +// versions of MergeFunctions, though it presented only in two function pairs +// in test-suite (that counts >50k functions) +// Though possibility to detect complex cross-referencing (e.g.: A->B->C->D->A) +// could cover much more cases. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/Transforms/IPO/PartialInlining.cpp b/lib/Transforms/IPO/PartialInlining.cpp index 743c74ed64..4a7cb7ba7d 100644 --- a/lib/Transforms/IPO/PartialInlining.cpp +++ b/lib/Transforms/IPO/PartialInlining.cpp @@ -1,15 +1,16 @@ //===- PartialInlining.cpp - Inline parts of functions --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PartialInlining.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs partial inlining, typically by inlining an if statement// -// that surrounds the body of the function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs partial inlining, typically by inlining an if statement +// that surrounds the body of the function. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 856eec592b..859cecb99c 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -1,15 +1,16 @@ //===- PassManagerBuilder.cpp - Build Standard Pass -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassManagerBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PassManagerBuilder class, which is used to set up a // -// "standard" optimization sequence suitable for languages like C and C++. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PassManagerBuilder class, which is used to set up a +// "standard" optimization sequence suitable for languages like C and C++. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm-c/Transforms/PassManagerBuilder.h" diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index e566a086e0..b2f1010c9a 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -1,17 +1,18 @@ //===- PruneEH.cpp - Pass which deletes unused exception handlers ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PruneEH.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a simple interprocedural pass which walks the // -// call-graph, turning invoke instructions into calls, iff the callee cannot // -// throw an exception, and marking functions 'nounwind' if they cannot throw.// -// It implements this as a bottom-up traversal of the call-graph. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a simple interprocedural pass which walks the +// call-graph, turning invoke instructions into calls, iff the callee cannot +// throw an exception, and marking functions 'nounwind' if they cannot throw. +// It implements this as a bottom-up traversal of the call-graph. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/IPO/StripDeadPrototypes.cpp b/lib/Transforms/IPO/StripDeadPrototypes.cpp index 1ef6c5f87b..956991ad1f 100644 --- a/lib/Transforms/IPO/StripDeadPrototypes.cpp +++ b/lib/Transforms/IPO/StripDeadPrototypes.cpp @@ -1,17 +1,18 @@ //===-- StripDeadPrototypes.cpp - Remove unused function declarations ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StripDeadPrototypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass loops over all of the functions in the input module, looking for // -// dead declarations and removes them. Dead declarations are declarations of // -// functions for which no implementation is available (i.e., declarations for// -// unused library functions). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass loops over all of the functions in the input module, looking for +// dead declarations and removes them. Dead declarations are declarations of +// functions for which no implementation is available (i.e., declarations for +// unused library functions). +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index bdb7ae0f5c..a4f30c58f9 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp @@ -1,23 +1,24 @@ //===- StripSymbols.cpp - Strip symbols and debug info from a module ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StripSymbols.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The StripSymbols transformation implements code stripping. Specifically, it// -// can delete: // -// // -// * names for virtual registers // -// * symbols for internal globals and functions // -// * debug information // -// // -// Note that this transformation makes code much less readable, so it should // -// only be used in situations where the 'strip' utility would be used, such as// -// reducing code size or making it harder to reverse engineer code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The StripSymbols transformation implements code stripping. Specifically, it +// can delete: +// +// * names for virtual registers +// * symbols for internal globals and functions +// * debug information +// +// Note that this transformation makes code much less readable, so it should +// only be used in situations where the 'strip' utility would be used, such as +// reducing code size or making it harder to reverse engineer code. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/InstCombine/CMakeLists.txt b/lib/Transforms/InstCombine/CMakeLists.txt index 6238bd89c6..0ed8e6273d 100644 --- a/lib/Transforms/InstCombine/CMakeLists.txt +++ b/lib/Transforms/InstCombine/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMInstCombine InstructionCombining.cpp InstCombineAddSub.cpp diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp index 9f0129c6d8..2d2c109f32 100644 --- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp @@ -1,14 +1,15 @@ //===- InstCombineAddSub.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineAddSub.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visit functions for add, fadd, sub, and fsub. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visit functions for add, fadd, sub, and fsub. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index cf379d29fb..15e0889b51 100644 --- a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp @@ -1,14 +1,15 @@ //===- InstCombineAndOrXor.cpp --------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineAndOrXor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visitAnd, visitOr, and visitXor functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visitAnd, visitOr, and visitXor functions. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/Analysis/InstructionSimplify.h" diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index 4a32266c66..e1ad3c19d2 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1,14 +1,15 @@ //===- InstCombineCalls.cpp -----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineCalls.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visitCall and visitInvoke functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visitCall and visitInvoke functions. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/InstCombine/InstCombineCasts.cpp b/lib/Transforms/InstCombine/InstCombineCasts.cpp index e5b866992e..48ab0eb2c1 100644 --- a/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -1,14 +1,15 @@ //===- InstCombineCasts.cpp -----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineCasts.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visit functions for cast operations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visit functions for cast operations. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/Analysis/ConstantFolding.h" diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index ac03f331ea..95bba3c7af 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -1,14 +1,15 @@ //===- InstCombineCompares.cpp --------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineCompares.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visitICmp and visitFCmp functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visitICmp and visitFCmp functions. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/ADT/APSInt.h" diff --git a/lib/Transforms/InstCombine/InstCombineInternal.h b/lib/Transforms/InstCombine/InstCombineInternal.h index c842e3e04d..ac934f1bd8 100644 --- a/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/lib/Transforms/InstCombine/InstCombineInternal.h @@ -1,17 +1,16 @@ //===- InstCombineInternal.h - InstCombine pass internals -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineInternal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file provides internal interfaces used to implement the InstCombine.// +/// This file provides internal interfaces used to implement the InstCombine. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_INSTCOMBINE_INSTCOMBINEINTERNAL_H #define LLVM_LIB_TRANSFORMS_INSTCOMBINE_INSTCOMBINEINTERNAL_H diff --git a/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index 9ea4594fb8..785fbccb31 100644 --- a/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -1,14 +1,15 @@ //===- InstCombineLoadStoreAlloca.cpp -------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineLoadStoreAlloca.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visit functions for load, store and alloca. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visit functions for load, store and alloca. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 1166853777..a554e9f628 100644 --- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp @@ -1,15 +1,16 @@ //===- InstCombineMulDivRem.cpp -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineMulDivRem.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visit functions for mul, fmul, sdiv, udiv, fdiv, // -// srem, urem, frem. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visit functions for mul, fmul, sdiv, udiv, fdiv, +// srem, urem, frem. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/Analysis/InstructionSimplify.h" diff --git a/lib/Transforms/InstCombine/InstCombinePHI.cpp b/lib/Transforms/InstCombine/InstCombinePHI.cpp index 6e7f878ad9..460f6eb6a8 100644 --- a/lib/Transforms/InstCombine/InstCombinePHI.cpp +++ b/lib/Transforms/InstCombine/InstCombinePHI.cpp @@ -1,14 +1,15 @@ //===- InstCombinePHI.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombinePHI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visitPHINode function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visitPHINode function. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/InstCombine/InstCombineSelect.cpp b/lib/Transforms/InstCombine/InstCombineSelect.cpp index 94a1caa692..f51442a9f3 100644 --- a/lib/Transforms/InstCombine/InstCombineSelect.cpp +++ b/lib/Transforms/InstCombine/InstCombineSelect.cpp @@ -1,14 +1,15 @@ //===- InstCombineSelect.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineSelect.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visitSelect function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visitSelect function. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/Analysis/ConstantFolding.h" diff --git a/lib/Transforms/InstCombine/InstCombineShifts.cpp b/lib/Transforms/InstCombine/InstCombineShifts.cpp index c55c26eabc..d04ed58b01 100644 --- a/lib/Transforms/InstCombine/InstCombineShifts.cpp +++ b/lib/Transforms/InstCombine/InstCombineShifts.cpp @@ -1,14 +1,15 @@ //===- InstCombineShifts.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineShifts.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the visitShl, visitLShr, and visitAShr functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the visitShl, visitLShr, and visitAShr functions. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/Analysis/ConstantFolding.h" diff --git a/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index efd64d46c2..2d28b14213 100644 --- a/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp @@ -1,15 +1,16 @@ //===- InstCombineSimplifyDemanded.cpp ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineSimplifyDemanded.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains logic for simplifying instructions based on information// -// about how they are used. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains logic for simplifying instructions based on information +// about how they are used. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/Analysis/ValueTracking.h" diff --git a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index dcae47ad8c..273047279e 100644 --- a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -1,15 +1,16 @@ //===- InstCombineVectorOps.cpp -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstCombineVectorOps.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements instcombine for ExtractElement, InsertElement and // -// ShuffleVector. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements instcombine for ExtractElement, InsertElement and +// ShuffleVector. +// +//===----------------------------------------------------------------------===// #include "InstCombineInternal.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index e01b6a452a..fd34a244f2 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1,36 +1,37 @@ //===- InstructionCombining.cpp - Combine multiple instructions -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstructionCombining.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// InstructionCombining - Combine instructions to form fewer, simple // -// instructions. This pass does not modify the CFG. This pass is where // -// algebraic simplification happens. // -// // -// This pass combines things like: // -// %Y = add i32 %X, 1 // -// %Z = add i32 %Y, 1 // -// into: // -// %Z = add i32 %X, 2 // -// // -// This is a simple worklist driven algorithm. // -// // -// This pass guarantees that the following canonicalizations are performed on// -// the program: // -// 1. If a binary operator has a constant operand, it is moved to the RHS // -// 2. Bitwise operators with constant operands are always grouped so that // -// shifts are performed first, then or's, then and's, then xor's. // -// 3. Compare instructions are converted from <,>,<=,>= to ==,!= if possible// -// 4. All cmp instructions on boolean values are replaced with logical ops// -// 5. add X, X is represented as (X*2) => (X << 1) // -// 6. Multiplies with a power-of-two constant argument are transformed into// -// shifts. // -// ... etc. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// InstructionCombining - Combine instructions to form fewer, simple +// instructions. This pass does not modify the CFG. This pass is where +// algebraic simplification happens. +// +// This pass combines things like: +// %Y = add i32 %X, 1 +// %Z = add i32 %Y, 1 +// into: +// %Z = add i32 %X, 2 +// +// This is a simple worklist driven algorithm. +// +// This pass guarantees that the following canonicalizations are performed on +// the program: +// 1. If a binary operator has a constant operand, it is moved to the RHS +// 2. Bitwise operators with constant operands are always grouped so that +// shifts are performed first, then or's, then and's, then xor's. +// 3. Compare instructions are converted from <,>,<=,>= to ==,!= if possible +// 4. All cmp instructions on boolean values are replaced with logical ops +// 5. add X, X is represented as (X*2) => (X << 1) +// 6. Multiplies with a power-of-two constant argument are transformed into +// shifts. +// ... etc. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/InstCombine/InstCombine.h" #include "InstCombineInternal.h" diff --git a/lib/Transforms/InstCombine/LLVMBuild.txt b/lib/Transforms/InstCombine/LLVMBuild.txt index d061f964bb..c26e0e3ea4 100644 --- a/lib/Transforms/InstCombine/LLVMBuild.txt +++ b/lib/Transforms/InstCombine/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/InstCombine/LLVMBuild.txt ---------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 7cba6dbbc5..0b8d983ca7 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -1,16 +1,17 @@ //===-- AddressSanitizer.cpp - memory error detector ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AddressSanitizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is a part of AddressSanitizer, an address sanity checker. // -// Details of the algorithm: // -// http://code.google.com/p/address-sanitizer/wiki/AddressSanitizerAlgorithm// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is a part of AddressSanitizer, an address sanity checker. +// Details of the algorithm: +// http://code.google.com/p/address-sanitizer/wiki/AddressSanitizerAlgorithm +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/Transforms/Instrumentation/BoundsChecking.cpp b/lib/Transforms/Instrumentation/BoundsChecking.cpp index f1efb2ceb2..f6858034d7 100644 --- a/lib/Transforms/Instrumentation/BoundsChecking.cpp +++ b/lib/Transforms/Instrumentation/BoundsChecking.cpp @@ -1,15 +1,16 @@ //===- BoundsChecking.cpp - Instrumentation for run-time bounds checking --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BoundsChecking.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a pass that instruments the code to perform run-time // -// bounds checking on loads, stores, and other memory intrinsics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a pass that instruments the code to perform run-time +// bounds checking on loads, stores, and other memory intrinsics. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Instrumentation/CMakeLists.txt b/lib/Transforms/Instrumentation/CMakeLists.txt index 5a4f845dee..9b81f4bb16 100644 --- a/lib/Transforms/Instrumentation/CMakeLists.txt +++ b/lib/Transforms/Instrumentation/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMInstrumentation AddressSanitizer.cpp BoundsChecking.cpp diff --git a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index c68c27d663..2de6e1afab 100644 --- a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -1,50 +1,48 @@ //===-- DataFlowSanitizer.cpp - dynamic data flow analysis ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataFlowSanitizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file is a part of DataFlowSanitizer, a generalised dynamic data flow// -/// analysis. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file is a part of DataFlowSanitizer, a generalised dynamic data flow +/// analysis. /// -/// Unlike other Sanitizer tools, this tool is not designed to detect a specific// -/// class of bugs on its own. Instead, it provides a generic dynamic data flow// -/// analysis framework to be used by clients to help detect application-specific// -/// issues within their own code. // +/// Unlike other Sanitizer tools, this tool is not designed to detect a specific +/// class of bugs on its own. Instead, it provides a generic dynamic data flow +/// analysis framework to be used by clients to help detect application-specific +/// issues within their own code. /// -/// The analysis is based on automatic propagation of data flow labels (also // -/// known as taint labels) through a program as it performs computation. Each// -/// byte of application memory is backed by two bytes of shadow memory which // -/// hold the label. On Linux/x86_64, memory is laid out as follows: // +/// The analysis is based on automatic propagation of data flow labels (also +/// known as taint labels) through a program as it performs computation. Each +/// byte of application memory is backed by two bytes of shadow memory which +/// hold the label. On Linux/x86_64, memory is laid out as follows: /// -/// +--------------------+ 0x800000000000 (top of memory) // -/// | application memory | // -/// +--------------------+ 0x700000008000 (kAppAddr) // -/// | | // -/// | unused | // -/// | | // -/// +--------------------+ 0x200200000000 (kUnusedAddr) // -/// | union table | // -/// +--------------------+ 0x200000000000 (kUnionTableAddr) // -/// | shadow memory | // -/// +--------------------+ 0x000000010000 (kShadowAddr) // -/// | reserved by kernel | // -/// +--------------------+ 0x000000000000 // +/// +--------------------+ 0x800000000000 (top of memory) +/// | application memory | +/// +--------------------+ 0x700000008000 (kAppAddr) +/// | | +/// | unused | +/// | | +/// +--------------------+ 0x200200000000 (kUnusedAddr) +/// | union table | +/// +--------------------+ 0x200000000000 (kUnionTableAddr) +/// | shadow memory | +/// +--------------------+ 0x000000010000 (kShadowAddr) +/// | reserved by kernel | +/// +--------------------+ 0x000000000000 /// -/// To derive a shadow memory address from an application memory address, // -/// bits 44-46 are cleared to bring the address into the range // -/// [0x000000008000,0x100000000000). Then the address is shifted left by 1 to// -/// account for the double byte representation of shadow labels and move the // -/// address into the shadow memory range. See the function // -/// DataFlowSanitizer::getShadowAddress below. // +/// To derive a shadow memory address from an application memory address, +/// bits 44-46 are cleared to bring the address into the range +/// [0x000000008000,0x100000000000). Then the address is shifted left by 1 to +/// account for the double byte representation of shadow labels and move the +/// address into the shadow memory range. See the function +/// DataFlowSanitizer::getShadowAddress below. /// -/// For more information, please refer to the design document: // -/// http://clang.llvm.org/docs/DataFlowSanitizerDesign.html // -// // -/////////////////////////////////////////////////////////////////////////////// +/// For more information, please refer to the design document: +/// http://clang.llvm.org/docs/DataFlowSanitizerDesign.html #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 293cd7ff47..9a3ed5c04e 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -1,17 +1,18 @@ //===- GCOVProfiling.cpp - Insert edge counters for gcov profiling --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GCOVProfiling.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements GCOV-style profiling. When this pass is run it emits // -// "gcno" files next to the existing source, and instruments the code that runs// -// to records the edges between blocks that run and emit a complementary "gcda"// -// file on exit. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass implements GCOV-style profiling. When this pass is run it emits +// "gcno" files next to the existing source, and instruments the code that runs +// to records the edges between blocks that run and emit a complementary "gcda" +// file on exit. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Instrumentation/InstrProfiling.cpp b/lib/Transforms/Instrumentation/InstrProfiling.cpp index 6eeb7a5036..712bf8edc7 100644 --- a/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -1,16 +1,17 @@ //===-- InstrProfiling.cpp - Frontend instrumentation based profiling -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfiling.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass lowers instrprof_increment intrinsics emitted by a frontend for // -// profiling. It also builds the data structures and initialization code needed// -// for updating execution counts and emitting the profile at runtime. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass lowers instrprof_increment intrinsics emitted by a frontend for +// profiling. It also builds the data structures and initialization code needed +// for updating execution counts and emitting the profile at runtime. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" diff --git a/lib/Transforms/Instrumentation/Instrumentation.cpp b/lib/Transforms/Instrumentation/Instrumentation.cpp index e64a421dbd..2750585910 100644 --- a/lib/Transforms/Instrumentation/Instrumentation.cpp +++ b/lib/Transforms/Instrumentation/Instrumentation.cpp @@ -1,15 +1,16 @@ //===-- Instrumentation.cpp - TransformUtils Infrastructure ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Instrumentation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the common initialization infrastructure for the // -// Instrumentation library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the common initialization infrastructure for the +// Instrumentation library. +// +//===----------------------------------------------------------------------===// #include "llvm/InitializePasses.h" #include "llvm-c/Initialization.h" diff --git a/lib/Transforms/Instrumentation/LLVMBuild.txt b/lib/Transforms/Instrumentation/LLVMBuild.txt index ac0fac21a7..b8ded7c361 100644 --- a/lib/Transforms/Instrumentation/LLVMBuild.txt +++ b/lib/Transforms/Instrumentation/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/Instrumentation/LLVMBuild.txt -----------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/Instrumentation/MaximumSpanningTree.h b/lib/Transforms/Instrumentation/MaximumSpanningTree.h index aceb87d088..363539b288 100644 --- a/lib/Transforms/Instrumentation/MaximumSpanningTree.h +++ b/lib/Transforms/Instrumentation/MaximumSpanningTree.h @@ -1,15 +1,16 @@ //===- llvm/Analysis/MaximumSpanningTree.h - Interface ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MaximumSpanningTree.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This module provides means for calculating a maximum spanning tree for a // -// given set of weighted edges. The type parameter T is the type of a node. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This module provides means for calculating a maximum spanning tree for a +// given set of weighted edges. The type parameter T is the type of a node. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_MAXIMUMSPANNINGTREE_H #define LLVM_ANALYSIS_MAXIMUMSPANNINGTREE_H diff --git a/lib/Transforms/Instrumentation/SafeStack.cpp b/lib/Transforms/Instrumentation/SafeStack.cpp index bb7558cf1f..6b185a2b12 100644 --- a/lib/Transforms/Instrumentation/SafeStack.cpp +++ b/lib/Transforms/Instrumentation/SafeStack.cpp @@ -1,18 +1,19 @@ //===-- SafeStack.cpp - Safe Stack Insertion ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SafeStack.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass splits the stack into the safe stack (kept as-is for LLVM backend)// -// and the unsafe stack (explicitly allocated and managed through the runtime// -// support library). // -// // -// http://clang.llvm.org/docs/SafeStack.html // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass splits the stack into the safe stack (kept as-is for LLVM backend) +// and the unsafe stack (explicitly allocated and managed through the runtime +// support library). +// +// http://clang.llvm.org/docs/SafeStack.html +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Instrumentation/SanitizerCoverage.cpp b/lib/Transforms/Instrumentation/SanitizerCoverage.cpp index cf87e41eb1..7a5b4cb017 100644 --- a/lib/Transforms/Instrumentation/SanitizerCoverage.cpp +++ b/lib/Transforms/Instrumentation/SanitizerCoverage.cpp @@ -1,31 +1,32 @@ //===-- SanitizerCoverage.cpp - coverage instrumentation for sanitizers ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerCoverage.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Coverage instrumentation that works with AddressSanitizer // -// and potentially with other Sanitizers. // -// // -// We create a Guard variable with the same linkage // -// as the function and inject this code into the entry block (SCK_Function) // -// or all blocks (SCK_BB): // -// if (Guard < 0) { // -// __sanitizer_cov(&Guard); // -// } // -// The accesses to Guard are atomic. The rest of the logic is // -// in __sanitizer_cov (it's fine to call it more than once). // -// // -// With SCK_Edge we also split critical edges this effectively // -// instrumenting all edges. // -// // -// This coverage implementation provides very limited data: // -// it only tells if a given function (block) was ever executed. No counters. // -// But for many use cases this is what we need and the added slowdown small. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Coverage instrumentation that works with AddressSanitizer +// and potentially with other Sanitizers. +// +// We create a Guard variable with the same linkage +// as the function and inject this code into the entry block (SCK_Function) +// or all blocks (SCK_BB): +// if (Guard < 0) { +// __sanitizer_cov(&Guard); +// } +// The accesses to Guard are atomic. The rest of the logic is +// in __sanitizer_cov (it's fine to call it more than once). +// +// With SCK_Edge we also split critical edges this effectively +// instrumenting all edges. +// +// This coverage implementation provides very limited data: +// it only tells if a given function (block) was ever executed. No counters. +// But for many use cases this is what we need and the added slowdown small. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/Transforms/Instrumentation/ThreadSanitizer.cpp b/lib/Transforms/Instrumentation/ThreadSanitizer.cpp index bf92ef29fc..1a46bbb861 100644 --- a/lib/Transforms/Instrumentation/ThreadSanitizer.cpp +++ b/lib/Transforms/Instrumentation/ThreadSanitizer.cpp @@ -1,23 +1,23 @@ //===-- ThreadSanitizer.cpp - race detector -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSanitizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is a part of ThreadSanitizer, a race detector. // -// // -// The tool is under development, for the details about previous versions see// -// http://code.google.com/p/data-race-test // -// // -// The instrumentation phase is quite simple: // -// - Insert calls to run-time library before every memory access. // -// - Optimizations may apply to avoid instrumenting some of the accesses.// -// - Insert calls at function entry/exit. // -// The rest is handled by the run-time library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is a part of ThreadSanitizer, a race detector. +// +// The tool is under development, for the details about previous versions see +// http://code.google.com/p/data-race-test +// +// The instrumentation phase is quite simple: +// - Insert calls to run-time library before every memory access. +// - Optimizations may apply to avoid instrumenting some of the accesses. +// - Insert calls at function entry/exit. +// The rest is handled by the run-time library. +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/SmallSet.h" diff --git a/lib/Transforms/Instrumentation/memorysanitizer.cpp b/lib/Transforms/Instrumentation/memorysanitizer.cpp index b3fae66afc..623da9775b 100644 --- a/lib/Transforms/Instrumentation/memorysanitizer.cpp +++ b/lib/Transforms/Instrumentation/memorysanitizer.cpp @@ -1,95 +1,93 @@ //===-- MemorySanitizer.cpp - detector of uninitialized reads -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// memorysanitizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file is a part of MemorySanitizer, a detector of uninitialized // -/// reads. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file is a part of MemorySanitizer, a detector of uninitialized +/// reads. /// -/// The algorithm of the tool is similar to Memcheck // -/// (http://goo.gl/QKbem). We associate a few shadow bits with every // -/// byte of the application memory, poison the shadow of the malloc-ed // -/// or alloca-ed memory, load the shadow bits on every memory read, // -/// propagate the shadow bits through some of the arithmetic // -/// instruction (including MOV), store the shadow bits on every memory // -/// write, report a bug on some other instructions (e.g. JMP) if the // -/// associated shadow is poisoned. // +/// The algorithm of the tool is similar to Memcheck +/// (http://goo.gl/QKbem). We associate a few shadow bits with every +/// byte of the application memory, poison the shadow of the malloc-ed +/// or alloca-ed memory, load the shadow bits on every memory read, +/// propagate the shadow bits through some of the arithmetic +/// instruction (including MOV), store the shadow bits on every memory +/// write, report a bug on some other instructions (e.g. JMP) if the +/// associated shadow is poisoned. /// -/// But there are differences too. The first and the major one: // -/// compiler instrumentation instead of binary instrumentation. This // -/// gives us much better register allocation, possible compiler // -/// optimizations and a fast start-up. But this brings the major issue // -/// as well: msan needs to see all program events, including system // -/// calls and reads/writes in system libraries, so we either need to // -/// compile *everything* with msan or use a binary translation // -/// component (e.g. DynamoRIO) to instrument pre-built libraries. // -/// Another difference from Memcheck is that we use 8 shadow bits per // -/// byte of application memory and use a direct shadow mapping. This // -/// greatly simplifies the instrumentation code and avoids races on // -/// shadow updates (Memcheck is single-threaded so races are not a // -/// concern there. Memcheck uses 2 shadow bits per byte with a slow // -/// path storage that uses 8 bits per byte). // +/// But there are differences too. The first and the major one: +/// compiler instrumentation instead of binary instrumentation. This +/// gives us much better register allocation, possible compiler +/// optimizations and a fast start-up. But this brings the major issue +/// as well: msan needs to see all program events, including system +/// calls and reads/writes in system libraries, so we either need to +/// compile *everything* with msan or use a binary translation +/// component (e.g. DynamoRIO) to instrument pre-built libraries. +/// Another difference from Memcheck is that we use 8 shadow bits per +/// byte of application memory and use a direct shadow mapping. This +/// greatly simplifies the instrumentation code and avoids races on +/// shadow updates (Memcheck is single-threaded so races are not a +/// concern there. Memcheck uses 2 shadow bits per byte with a slow +/// path storage that uses 8 bits per byte). /// -/// The default value of shadow is 0, which means "clean" (not poisoned). // +/// The default value of shadow is 0, which means "clean" (not poisoned). /// -/// Every module initializer should call __msan_init to ensure that the // -/// shadow memory is ready. On error, __msan_warning is called. Since // -/// parameters and return values may be passed via registers, we have a // -/// specialized thread-local shadow for return values // -/// (__msan_retval_tls) and parameters (__msan_param_tls). // +/// Every module initializer should call __msan_init to ensure that the +/// shadow memory is ready. On error, __msan_warning is called. Since +/// parameters and return values may be passed via registers, we have a +/// specialized thread-local shadow for return values +/// (__msan_retval_tls) and parameters (__msan_param_tls). /// -/// Origin tracking. // +/// Origin tracking. /// -/// MemorySanitizer can track origins (allocation points) of all uninitialized// -/// values. This behavior is controlled with a flag (msan-track-origins) and is// -/// disabled by default. // +/// MemorySanitizer can track origins (allocation points) of all uninitialized +/// values. This behavior is controlled with a flag (msan-track-origins) and is +/// disabled by default. /// -/// Origins are 4-byte values created and interpreted by the runtime library.// -/// They are stored in a second shadow mapping, one 4-byte value for 4 bytes // -/// of application memory. Propagation of origins is basically a bunch of // -/// "select" instructions that pick the origin of a dirty argument, if an // -/// instruction has one. // +/// Origins are 4-byte values created and interpreted by the runtime library. +/// They are stored in a second shadow mapping, one 4-byte value for 4 bytes +/// of application memory. Propagation of origins is basically a bunch of +/// "select" instructions that pick the origin of a dirty argument, if an +/// instruction has one. /// -/// Every 4 aligned, consecutive bytes of application memory have one origin // -/// value associated with them. If these bytes contain uninitialized data // -/// coming from 2 different allocations, the last store wins. Because of this,// -/// MemorySanitizer reports can show unrelated origins, but this is unlikely in// -/// practice. // +/// Every 4 aligned, consecutive bytes of application memory have one origin +/// value associated with them. If these bytes contain uninitialized data +/// coming from 2 different allocations, the last store wins. Because of this, +/// MemorySanitizer reports can show unrelated origins, but this is unlikely in +/// practice. /// -/// Origins are meaningless for fully initialized values, so MemorySanitizer // -/// avoids storing origin to memory when a fully initialized value is stored.// -/// This way it avoids needless overwritting origin of the 4-byte region on // -/// a short (i.e. 1 byte) clean store, and it is also good for performance. // +/// Origins are meaningless for fully initialized values, so MemorySanitizer +/// avoids storing origin to memory when a fully initialized value is stored. +/// This way it avoids needless overwritting origin of the 4-byte region on +/// a short (i.e. 1 byte) clean store, and it is also good for performance. /// -/// Atomic handling. // +/// Atomic handling. /// -/// Ideally, every atomic store of application value should update the // -/// corresponding shadow location in an atomic way. Unfortunately, atomic store// -/// of two disjoint locations can not be done without severe slowdown. // +/// Ideally, every atomic store of application value should update the +/// corresponding shadow location in an atomic way. Unfortunately, atomic store +/// of two disjoint locations can not be done without severe slowdown. /// -/// Therefore, we implement an approximation that may err on the safe side. // -/// In this implementation, every atomically accessed location in the program// -/// may only change from (partially) uninitialized to fully initialized, but // -/// not the other way around. We load the shadow _after_ the application load,// -/// and we store the shadow _before_ the app store. Also, we always store clean// -/// shadow (if the application store is atomic). This way, if the store-load // -/// pair constitutes a happens-before arc, shadow store and load are correctly// -/// ordered such that the load will get either the value that was stored, or // -/// some later value (which is always clean). // +/// Therefore, we implement an approximation that may err on the safe side. +/// In this implementation, every atomically accessed location in the program +/// may only change from (partially) uninitialized to fully initialized, but +/// not the other way around. We load the shadow _after_ the application load, +/// and we store the shadow _before_ the app store. Also, we always store clean +/// shadow (if the application store is atomic). This way, if the store-load +/// pair constitutes a happens-before arc, shadow store and load are correctly +/// ordered such that the load will get either the value that was stored, or +/// some later value (which is always clean). /// -/// This does not work very well with Compare-And-Swap (CAS) and // -/// Read-Modify-Write (RMW) operations. To follow the above logic, CAS and RMW// -/// must store the new shadow before the app operation, and load the shadow // -/// after the app operation. Computers don't work this way. Current // -/// implementation ignores the load aspect of CAS/RMW, always returning a clean// -/// value. It implements the store part as a simple atomic store by storing a// -/// clean shadow. // -// // -/////////////////////////////////////////////////////////////////////////////// +/// This does not work very well with Compare-And-Swap (CAS) and +/// Read-Modify-Write (RMW) operations. To follow the above logic, CAS and RMW +/// must store the new shadow before the app operation, and load the shadow +/// after the app operation. Computers don't work this way. Current +/// implementation ignores the load aspect of CAS/RMW, always returning a clean +/// value. It implements the store part as a simple atomic store by storing a +/// clean shadow. #include "llvm/Transforms/Instrumentation.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Transforms/LLVMBuild.txt b/lib/Transforms/LLVMBuild.txt index bee9a2d119..15e9fba0a7 100644 --- a/lib/Transforms/LLVMBuild.txt +++ b/lib/Transforms/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/LLVMBuild.txt ---------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/ObjCARC/ARCInstKind.cpp b/lib/Transforms/ObjCARC/ARCInstKind.cpp index 35664650d7..afb873a355 100644 --- a/lib/Transforms/ObjCARC/ARCInstKind.cpp +++ b/lib/Transforms/ObjCARC/ARCInstKind.cpp @@ -1,24 +1,23 @@ //===- ARCInstKind.cpp - ObjC ARC Optimization ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCInstKind.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file defines several utility functions used by various ARC // -/// optimizations which are IMHO too big to be in a header file. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file defines several utility functions used by various ARC +/// optimizations which are IMHO too big to be in a header file. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "llvm/IR/Intrinsics.h" diff --git a/lib/Transforms/ObjCARC/ARCInstKind.h b/lib/Transforms/ObjCARC/ARCInstKind.h index 9ff4fe0c8a..636c65c9b6 100644 --- a/lib/Transforms/ObjCARC/ARCInstKind.h +++ b/lib/Transforms/ObjCARC/ARCInstKind.h @@ -1,12 +1,11 @@ //===--- ARCInstKind.h - ARC instruction equivalence classes -*- C++ -*----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCInstKind.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_ARCINSTKIND_H #define LLVM_LIB_TRANSFORMS_OBJCARC_ARCINSTKIND_H diff --git a/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h b/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h index 02a33f820b..d4fef10d96 100644 --- a/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h +++ b/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h @@ -1,24 +1,23 @@ //===- ARCRuntimeEntryPoints.h - ObjC ARC Optimization --*- C++ -*---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCRuntimeEntryPoints.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file contains a class ARCRuntimeEntryPoints for use in // -/// creating/managing references to entry points to the arc objective c runtime.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file contains a class ARCRuntimeEntryPoints for use in +/// creating/managing references to entry points to the arc objective c runtime. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_ARCRUNTIMEENTRYPOINTS_H #define LLVM_LIB_TRANSFORMS_OBJCARC_ARCRUNTIMEENTRYPOINTS_H diff --git a/lib/Transforms/ObjCARC/BlotMapVector.h b/lib/Transforms/ObjCARC/BlotMapVector.h index 819efcd146..d6439b6984 100644 --- a/lib/Transforms/ObjCARC/BlotMapVector.h +++ b/lib/Transforms/ObjCARC/BlotMapVector.h @@ -1,12 +1,11 @@ //===- BlotMapVector.h - A MapVector with the blot operation -*- C++ -*----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlotMapVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseMap.h" #include diff --git a/lib/Transforms/ObjCARC/CMakeLists.txt b/lib/Transforms/ObjCARC/CMakeLists.txt index 962ad3e14b..fbcae29044 100644 --- a/lib/Transforms/ObjCARC/CMakeLists.txt +++ b/lib/Transforms/ObjCARC/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMObjCARCOpts ObjCARC.cpp ObjCARCOpts.cpp diff --git a/lib/Transforms/ObjCARC/DependencyAnalysis.cpp b/lib/Transforms/ObjCARC/DependencyAnalysis.cpp index 15cc7eac83..4edd02904b 100644 --- a/lib/Transforms/ObjCARC/DependencyAnalysis.cpp +++ b/lib/Transforms/ObjCARC/DependencyAnalysis.cpp @@ -1,25 +1,24 @@ //===- DependencyAnalysis.cpp - ObjC ARC Optimization ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependencyAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file defines special dependency analysis routines used in Objective C// -/// ARC Optimizations. // +/// This file defines special dependency analysis routines used in Objective C +/// ARC Optimizations. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "DependencyAnalysis.h" diff --git a/lib/Transforms/ObjCARC/DependencyAnalysis.h b/lib/Transforms/ObjCARC/DependencyAnalysis.h index d4889aa361..8e042d47ee 100644 --- a/lib/Transforms/ObjCARC/DependencyAnalysis.h +++ b/lib/Transforms/ObjCARC/DependencyAnalysis.h @@ -1,25 +1,24 @@ //===- DependencyAnalysis.h - ObjC ARC Optimization ---*- C++ -*-----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependencyAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file declares special dependency analysis routines used in Objective C// -/// ARC Optimizations. // +/// This file declares special dependency analysis routines used in Objective C +/// ARC Optimizations. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_DEPENDENCYANALYSIS_H #define LLVM_LIB_TRANSFORMS_OBJCARC_DEPENDENCYANALYSIS_H diff --git a/lib/Transforms/ObjCARC/LLVMBuild.txt b/lib/Transforms/ObjCARC/LLVMBuild.txt index 178be2525a..90a233851a 100644 --- a/lib/Transforms/ObjCARC/LLVMBuild.txt +++ b/lib/Transforms/ObjCARC/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/ObjCARC/LLVMBuild.txt -------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/ObjCARC/ObjCARC.cpp b/lib/Transforms/ObjCARC/ObjCARC.cpp index 713e4997c5..6ea038b8ba 100644 --- a/lib/Transforms/ObjCARC/ObjCARC.cpp +++ b/lib/Transforms/ObjCARC/ObjCARC.cpp @@ -1,16 +1,17 @@ //===-- ObjCARC.cpp -------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements common infrastructure for libLLVMObjCARCOpts.a, which// -// implements several scalar transformations over the LLVM intermediate // -// representation, including the C bindings for that library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements common infrastructure for libLLVMObjCARCOpts.a, which +// implements several scalar transformations over the LLVM intermediate +// representation, including the C bindings for that library. +// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "llvm-c/Core.h" diff --git a/lib/Transforms/ObjCARC/ObjCARC.h b/lib/Transforms/ObjCARC/ObjCARC.h index bbb7185cc1..7595e2db1a 100644 --- a/lib/Transforms/ObjCARC/ObjCARC.h +++ b/lib/Transforms/ObjCARC/ObjCARC.h @@ -1,25 +1,24 @@ //===- ObjCARC.h - ObjC ARC Optimization --------------*- C++ -*-----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARC.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file defines common definitions/declarations used by the ObjC ARC // -/// Optimizer. ARC stands for Automatic Reference Counting and is a system for// -/// managing reference counts for objects in Objective C. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file defines common definitions/declarations used by the ObjC ARC +/// Optimizer. ARC stands for Automatic Reference Counting and is a system for +/// managing reference counts for objects in Objective C. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_OBJCARC_H #define LLVM_LIB_TRANSFORMS_OBJCARC_OBJCARC_H diff --git a/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp b/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp index 3ef25f16ab..d318643a35 100644 --- a/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCAPElim.cpp @@ -1,29 +1,28 @@ //===- ObjCARCAPElim.cpp - ObjC ARC Optimization --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARCAPElim.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file defines ObjC ARC optimizations. ARC stands for Automatic // -/// Reference Counting and is a system for managing reference counts for objects// -/// in Objective C. // +/// This file defines ObjC ARC optimizations. ARC stands for Automatic +/// Reference Counting and is a system for managing reference counts for objects +/// in Objective C. /// -/// This specific file implements optimizations which remove extraneous // -/// autorelease pools. // +/// This specific file implements optimizations which remove extraneous +/// autorelease pools. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp b/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp index 31467578c4..3893aab76b 100644 --- a/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp @@ -1,25 +1,24 @@ //===- ObjCARCAliasAnalysis.cpp - ObjC ARC Optimization -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARCAliasAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file defines a simple ARC-aware AliasAnalysis using special knowledge// -/// of Objective C to enhance other optimization passes which rely on the Alias// -/// Analysis infrastructure. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file defines a simple ARC-aware AliasAnalysis using special knowledge +/// of Objective C to enhance other optimization passes which rely on the Alias +/// Analysis infrastructure. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "ObjCARCAliasAnalysis.h" diff --git a/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h b/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h index 018caad521..eecc82fe57 100644 --- a/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h +++ b/lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h @@ -1,25 +1,24 @@ //===- ObjCARCAliasAnalysis.h - ObjC ARC Optimization -*- C++ -*-----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARCAliasAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file declares a simple ARC-aware AliasAnalysis using special knowledge// -/// of Objective C to enhance other optimization passes which rely on the Alias// -/// Analysis infrastructure. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file declares a simple ARC-aware AliasAnalysis using special knowledge +/// of Objective C to enhance other optimization passes which rely on the Alias +/// Analysis infrastructure. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_OBJCARCALIASANALYSIS_H #define LLVM_LIB_TRANSFORMS_OBJCARC_OBJCARCALIASANALYSIS_H diff --git a/lib/Transforms/ObjCARC/ObjCARCContract.cpp b/lib/Transforms/ObjCARC/ObjCARCContract.cpp index d496c4cdb5..4d0ce9cf9d 100644 --- a/lib/Transforms/ObjCARC/ObjCARCContract.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCContract.cpp @@ -1,30 +1,27 @@ //===- ObjCARCContract.cpp - ObjC ARC Optimization ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARCContract.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file defines late ObjC ARC optimizations. ARC stands for Automatic // -/// Reference Counting and is a system for managing reference counts for objects// -/// in Objective C. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file defines late ObjC ARC optimizations. ARC stands for Automatic +/// Reference Counting and is a system for managing reference counts for objects +/// in Objective C. /// -/// This specific file mainly deals with ``contracting'' multiple lower level// -/// operations into singular higher level operations through pattern matching.// +/// This specific file mainly deals with ``contracting'' multiple lower level +/// operations into singular higher level operations through pattern matching. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// -// TODO: ObjCARCContract could insert PHI nodes when uses aren't // -// dominated by single calls. // +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "ARCRuntimeEntryPoints.h" diff --git a/lib/Transforms/ObjCARC/ObjCARCExpand.cpp b/lib/Transforms/ObjCARC/ObjCARCExpand.cpp index dacc97f7e5..53c19c39f9 100644 --- a/lib/Transforms/ObjCARC/ObjCARCExpand.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCExpand.cpp @@ -1,28 +1,27 @@ //===- ObjCARCExpand.cpp - ObjC ARC Optimization --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARCExpand.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file defines ObjC ARC optimizations. ARC stands for Automatic // -/// Reference Counting and is a system for managing reference counts for objects// -/// in Objective C. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file defines ObjC ARC optimizations. ARC stands for Automatic +/// Reference Counting and is a system for managing reference counts for objects +/// in Objective C. /// -/// This specific file deals with early optimizations which perform certain // -/// cleanup operations. // +/// This specific file deals with early optimizations which perform certain +/// cleanup operations. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "llvm/ADT/StringRef.h" diff --git a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index 778ab478e9..9edbb17e8d 100644 --- a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp @@ -1,29 +1,28 @@ //===- ObjCARCOpts.cpp - ObjC ARC Optimization ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCARCOpts.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This file defines ObjC ARC optimizations. ARC stands for Automatic // -/// Reference Counting and is a system for managing reference counts for objects// -/// in Objective C. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This file defines ObjC ARC optimizations. ARC stands for Automatic +/// Reference Counting and is a system for managing reference counts for objects +/// in Objective C. /// -/// The optimizations performed include elimination of redundant, partially // -/// redundant, and inconsequential reference count operations, elimination of// -/// redundant weak pointer operations, and numerous minor simplifications. // +/// The optimizations performed include elimination of redundant, partially +/// redundant, and inconsequential reference count operations, elimination of +/// redundant weak pointer operations, and numerous minor simplifications. /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "ARCRuntimeEntryPoints.h" diff --git a/lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp b/lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp index 72604f002b..9ffdfb4f7f 100644 --- a/lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp +++ b/lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp @@ -1,27 +1,26 @@ //===- ProvenanceAnalysis.cpp - ObjC ARC Optimization ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProvenanceAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file defines a special form of Alias Analysis called ``Provenance // -/// Analysis''. The word ``provenance'' refers to the history of the ownership// -/// of an object. Thus ``Provenance Analysis'' is an analysis which attempts to// -/// use various techniques to determine if locally // +/// This file defines a special form of Alias Analysis called ``Provenance +/// Analysis''. The word ``provenance'' refers to the history of the ownership +/// of an object. Thus ``Provenance Analysis'' is an analysis which attempts to +/// use various techniques to determine if locally /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjCARC.h" #include "ProvenanceAnalysis.h" diff --git a/lib/Transforms/ObjCARC/ProvenanceAnalysis.h b/lib/Transforms/ObjCARC/ProvenanceAnalysis.h index d25088f2e2..0ac41d3ea3 100644 --- a/lib/Transforms/ObjCARC/ProvenanceAnalysis.h +++ b/lib/Transforms/ObjCARC/ProvenanceAnalysis.h @@ -1,27 +1,26 @@ //===- ProvenanceAnalysis.h - ObjC ARC Optimization ---*- C++ -*-----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProvenanceAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file declares a special form of Alias Analysis called ``Provenance // -/// Analysis''. The word ``provenance'' refers to the history of the ownership// -/// of an object. Thus ``Provenance Analysis'' is an analysis which attempts to// -/// use various techniques to determine if locally // +/// This file declares a special form of Alias Analysis called ``Provenance +/// Analysis''. The word ``provenance'' refers to the history of the ownership +/// of an object. Thus ``Provenance Analysis'' is an analysis which attempts to +/// use various techniques to determine if locally /// -/// WARNING: This file knows about certain library functions. It recognizes them// -/// by name, and hardwires knowledge of their semantics. // +/// WARNING: This file knows about certain library functions. It recognizes them +/// by name, and hardwires knowledge of their semantics. /// -/// WARNING: This file knows about how certain Objective-C library functions are// -/// used. Naive LLVM IR transformations which would otherwise be // -/// behavior-preserving may break these assumptions. // +/// WARNING: This file knows about how certain Objective-C library functions are +/// used. Naive LLVM IR transformations which would otherwise be +/// behavior-preserving may break these assumptions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_PROVENANCEANALYSIS_H #define LLVM_LIB_TRANSFORMS_OBJCARC_PROVENANCEANALYSIS_H diff --git a/lib/Transforms/ObjCARC/ProvenanceAnalysisEvaluator.cpp b/lib/Transforms/ObjCARC/ProvenanceAnalysisEvaluator.cpp index b832739b64..0be75af520 100644 --- a/lib/Transforms/ObjCARC/ProvenanceAnalysisEvaluator.cpp +++ b/lib/Transforms/ObjCARC/ProvenanceAnalysisEvaluator.cpp @@ -1,12 +1,11 @@ //===- ProvenanceAnalysisEvaluator.cpp - ObjC ARC Optimization ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProvenanceAnalysisEvaluator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ProvenanceAnalysis.h" #include "llvm/Pass.h" diff --git a/lib/Transforms/ObjCARC/PtrState.cpp b/lib/Transforms/ObjCARC/PtrState.cpp index f06d6a15e0..ae20e7e6d3 100644 --- a/lib/Transforms/ObjCARC/PtrState.cpp +++ b/lib/Transforms/ObjCARC/PtrState.cpp @@ -1,12 +1,11 @@ //===--- PtrState.cpp -----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PtrState.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "PtrState.h" #include "DependencyAnalysis.h" diff --git a/lib/Transforms/ObjCARC/PtrState.h b/lib/Transforms/ObjCARC/PtrState.h index 3efcca96bb..e45e1ea96c 100644 --- a/lib/Transforms/ObjCARC/PtrState.h +++ b/lib/Transforms/ObjCARC/PtrState.h @@ -1,17 +1,18 @@ //===--- PtrState.h - ARC State for a Ptr -------------------*- C++ -*-----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PtrState.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains declarations for the ARC state associated with a ptr. It// -// is only used by the ARC Sequence Dataflow computation. By separating this// -// from the actual dataflow, it is easier to consider the mechanics of the ARC// -// optimization separate from the actual predicates being used. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains declarations for the ARC state associated with a ptr. It +// is only used by the ARC Sequence Dataflow computation. By separating this +// from the actual dataflow, it is easier to consider the mechanics of the ARC +// optimization separate from the actual predicates being used. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_PTRSTATE_H #define LLVM_LIB_TRANSFORMS_OBJCARC_PTRSTATE_H diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 31e350986c..d6fc916415 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -1,17 +1,18 @@ //===- DCE.cpp - Code to perform dead code elimination --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ADCE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Aggressive Dead Code Elimination pass. This pass// -// optimistically assumes that all instructions are dead until proven otherwise,// -// allowing it to eliminate dead computations that other DCE passes do not // -// catch, particularly involving loop computations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Aggressive Dead Code Elimination pass. This pass +// optimistically assumes that all instructions are dead until proven otherwise, +// allowing it to eliminate dead computations that other DCE passes do not +// catch, particularly involving loop computations. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp b/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp index e1cf7ece04..8918909f48 100644 --- a/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp +++ b/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp @@ -1,18 +1,20 @@ //===----------------------- AlignmentFromAssumptions.cpp -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AlignmentFromAssumptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a ScalarEvolution-based transformation to set // -// the alignments of load, stores and memory intrinsics based on the truth // -// expressions of assume intrinsics. The primary motivation is to handle // -// complex alignment assumptions that apply to vector loads and stores that // -// appear after vectorization and unrolling. // -// // -/////////////////////////////////////////////////////////////////////////////// +// Set Load/Store Alignments From Assumptions +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a ScalarEvolution-based transformation to set +// the alignments of load, stores and memory intrinsics based on the truth +// expressions of assume intrinsics. The primary motivation is to handle +// complex alignment assumptions that apply to vector loads and stores that +// appear after vectorization and unrolling. +// +//===----------------------------------------------------------------------===// #define AA_NAME "alignment-from-assumptions" #define DEBUG_TYPE AA_NAME diff --git a/lib/Transforms/Scalar/BDCE.cpp b/lib/Transforms/Scalar/BDCE.cpp index f8d002ea96..09c605e767 100644 --- a/lib/Transforms/Scalar/BDCE.cpp +++ b/lib/Transforms/Scalar/BDCE.cpp @@ -1,17 +1,18 @@ //===---- BDCE.cpp - Bit-tracking dead code elimination -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BDCE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Bit-Tracking Dead Code Elimination pass. Some // -// instructions (shifts, some ands, ors, etc.) kill some of their input bits.// -// We track these dead bits and remove instructions that compute only these // -// dead bits. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Bit-Tracking Dead Code Elimination pass. Some +// instructions (shifts, some ands, ors, etc.) kill some of their input bits. +// We track these dead bits and remove instructions that compute only these +// dead bits. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/CMakeLists.txt b/lib/Transforms/Scalar/CMakeLists.txt index 07aca5e644..06f5eb773e 100644 --- a/lib/Transforms/Scalar/CMakeLists.txt +++ b/lib/Transforms/Scalar/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMScalarOpts ADCE.cpp AlignmentFromAssumptions.cpp diff --git a/lib/Transforms/Scalar/ConstantHoisting.cpp b/lib/Transforms/Scalar/ConstantHoisting.cpp index 03efff7d5b..4288742dd3 100644 --- a/lib/Transforms/Scalar/ConstantHoisting.cpp +++ b/lib/Transforms/Scalar/ConstantHoisting.cpp @@ -1,37 +1,37 @@ //===- ConstantHoisting.cpp - Prepare code for expensive constants --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantHoisting.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass identifies expensive constants to hoist and coalesces them to // -// better prepare it for SelectionDAG-based code generation. This works around// -// the limitations of the basic-block-at-a-time approach. // -// // -// First it scans all instructions for integer constants and calculates its // -// cost. If the constant can be folded into the instruction (the cost is // -// TCC_Free) or the cost is just a simple operation (TCC_BASIC), then we don't// -// consider it expensive and leave it alone. This is the default behavior and// -// the default implementation of getIntImmCost will always return TCC_Free. // -// // -// If the cost is more than TCC_BASIC, then the integer constant can't be folded// -// into the instruction and it might be beneficial to hoist the constant. // -// Similar constants are coalesced to reduce register pressure and // -// materialization code. // -// // -// When a constant is hoisted, it is also hidden behind a bitcast to force it to// -// be live-out of the basic block. Otherwise the constant would be just // -// duplicated and each basic block would have its own copy in the SelectionDAG.// -// The SelectionDAG recognizes such constants as opaque and doesn't perform // -// certain transformations on them, which would create a new expensive constant.// -// // -// This optimization is only applied to integer constants in instructions and// -// simple (this means not nested) constant cast expressions. For example: // -// %0 = load i64* inttoptr (i64 big_constant to i64*) // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass identifies expensive constants to hoist and coalesces them to +// better prepare it for SelectionDAG-based code generation. This works around +// the limitations of the basic-block-at-a-time approach. +// +// First it scans all instructions for integer constants and calculates its +// cost. If the constant can be folded into the instruction (the cost is +// TCC_Free) or the cost is just a simple operation (TCC_BASIC), then we don't +// consider it expensive and leave it alone. This is the default behavior and +// the default implementation of getIntImmCost will always return TCC_Free. +// +// If the cost is more than TCC_BASIC, then the integer constant can't be folded +// into the instruction and it might be beneficial to hoist the constant. +// Similar constants are coalesced to reduce register pressure and +// materialization code. +// +// When a constant is hoisted, it is also hidden behind a bitcast to force it to +// be live-out of the basic block. Otherwise the constant would be just +// duplicated and each basic block would have its own copy in the SelectionDAG. +// The SelectionDAG recognizes such constants as opaque and doesn't perform +// certain transformations on them, which would create a new expensive constant. +// +// This optimization is only applied to integer constants in instructions and +// simple (this means not nested) constant cast expressions. For example: +// %0 = load i64* inttoptr (i64 big_constant to i64*) +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SmallSet.h" diff --git a/lib/Transforms/Scalar/ConstantProp.cpp b/lib/Transforms/Scalar/ConstantProp.cpp index 2a0cbb0100..c974ebb945 100644 --- a/lib/Transforms/Scalar/ConstantProp.cpp +++ b/lib/Transforms/Scalar/ConstantProp.cpp @@ -1,21 +1,22 @@ //===- ConstantProp.cpp - Code to perform Simple Constant Propagation -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantProp.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements constant propagation and merging: // -// // -// Specifically, this: // -// * Converts instructions like "add int 1, 2" into 3 // -// // -// Notice that: // -// * This pass has a habit of making definitions be dead. It is a good idea// -// to run a DIE pass sometime after running this pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements constant propagation and merging: +// +// Specifically, this: +// * Converts instructions like "add int 1, 2" into 3 +// +// Notice that: +// * This pass has a habit of making definitions be dead. It is a good idea +// to run a DIE pass sometime after running this pass. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp index e676837ed1..79624b2e4c 100644 --- a/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp +++ b/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp @@ -1,14 +1,15 @@ //===- CorrelatedValuePropagation.cpp - Propagate CFG-derived info --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CorrelatedValuePropagation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Correlated Value Propagation pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Correlated Value Propagation pass. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp index 87e5b610dc..3b262a2309 100644 --- a/lib/Transforms/Scalar/DCE.cpp +++ b/lib/Transforms/Scalar/DCE.cpp @@ -1,19 +1,20 @@ //===- DCE.cpp - Code to perform dead code elimination --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DCE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements dead inst elimination and dead code elimination. // -// // -// Dead Inst Elimination performs a single pass over the function removing // -// instructions that are obviously dead. Dead Code Elimination is similar, but// -// it rechecks instructions that were used by removed instructions to see if // -// they are newly dead. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements dead inst elimination and dead code elimination. +// +// Dead Inst Elimination performs a single pass over the function removing +// instructions that are obviously dead. Dead Code Elimination is similar, but +// it rechecks instructions that were used by removed instructions to see if +// they are newly dead. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index 5b9754a507..c50558434d 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -1,18 +1,19 @@ //===- DeadStoreElimination.cpp - Fast Dead Store Elimination -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeadStoreElimination.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a trivial dead store elimination that only considers // -// basic-block local redundant stores. // -// // -// FIXME: This should eventually be extended to be a post-dominator tree // -// traversal. Doing so would be pretty trivial. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a trivial dead store elimination that only considers +// basic-block local redundant stores. +// +// FIXME: This should eventually be extended to be a post-dominator tree +// traversal. Doing so would be pretty trivial. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Scalar/EarlyCSE.cpp b/lib/Transforms/Scalar/EarlyCSE.cpp index dc44e6c600..029b44c2ea 100644 --- a/lib/Transforms/Scalar/EarlyCSE.cpp +++ b/lib/Transforms/Scalar/EarlyCSE.cpp @@ -1,15 +1,16 @@ //===- EarlyCSE.cpp - Simple and fast CSE pass ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EarlyCSE.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs a simple dominator tree walk that eliminates trivially // -// redundant instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs a simple dominator tree walk that eliminates trivially +// redundant instructions. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar/EarlyCSE.h" #include "llvm/ADT/Hashing.h" diff --git a/lib/Transforms/Scalar/FlattenCFGPass.cpp b/lib/Transforms/Scalar/FlattenCFGPass.cpp index fcd2a8969f..0430c1898c 100644 --- a/lib/Transforms/Scalar/FlattenCFGPass.cpp +++ b/lib/Transforms/Scalar/FlattenCFGPass.cpp @@ -1,14 +1,15 @@ //===- FlattenCFGPass.cpp - CFG Flatten Pass ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FlattenCFGPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements flattening of CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements flattening of CFG. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Transforms/Scalar/Float2Int.cpp b/lib/Transforms/Scalar/Float2Int.cpp index f4c6ea4115..c9314229c3 100644 --- a/lib/Transforms/Scalar/Float2Int.cpp +++ b/lib/Transforms/Scalar/Float2Int.cpp @@ -1,15 +1,16 @@ //===- Float2Int.cpp - Demote floating point ops to work on integers ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Float2Int.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Float2Int pass, which aims to demote floating // -// point operations to work on integers, where that is losslessly possible. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Float2Int pass, which aims to demote floating +// point operations to work on integers, where that is losslessly possible. +// +//===----------------------------------------------------------------------===// #define DEBUG_TYPE "float2int" #include "llvm/ADT/APInt.h" diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 5e30f81088..db5a5bd0cd 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1,18 +1,19 @@ //===- GVN.cpp - Eliminate redundant values and loads ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GVN.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs global value numbering to eliminate fully redundant // -// instructions. It also performs simple dead load elimination. // -// // -// Note that this pass does the value numbering itself; it does not use the // -// ValueNumbering analysis passes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs global value numbering to eliminate fully redundant +// instructions. It also performs simple dead load elimination. +// +// Note that this pass does the value numbering itself; it does not use the +// ValueNumbering analysis passes. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 41d9883e83..2a954d9961 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -1,27 +1,28 @@ //===- IndVarSimplify.cpp - Induction Variable Elimination ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndVarSimplify.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transformation analyzes and transforms the induction variables (and // -// computations derived from them) into simpler forms suitable for subsequent// -// analysis and transformation. // -// // -// If the trip count of a loop is computable, this pass also makes the following// -// changes: // -// 1. The exit condition for the loop is canonicalized to compare the // -// induction value against the exit value. This turns loops like: // -// 'for (i = 7; i*i < 1000; ++i)' into 'for (i = 0; i != 25; ++i)' // -// 2. Any use outside of the loop of an expression derived from the indvar // -// is changed to compute the derived value outside of the loop, eliminating// -// the dependence on the exit value of the induction variable. If the only// -// purpose of the loop is to compute the exit value of some derived // -// expression, this transformation will make the loop dead. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transformation analyzes and transforms the induction variables (and +// computations derived from them) into simpler forms suitable for subsequent +// analysis and transformation. +// +// If the trip count of a loop is computable, this pass also makes the following +// changes: +// 1. The exit condition for the loop is canonicalized to compare the +// induction value against the exit value. This turns loops like: +// 'for (i = 7; i*i < 1000; ++i)' into 'for (i = 0; i != 25; ++i)' +// 2. Any use outside of the loop of an expression derived from the indvar +// is changed to compute the derived value outside of the loop, eliminating +// the dependence on the exit value of the induction variable. If the only +// purpose of the loop is to compute the exit value of some derived +// expression, this transformation will make the loop dead. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index 98418f1624..cbdacad8f2 100644 --- a/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -1,46 +1,45 @@ //===-- InductiveRangeCheckElimination.cpp - ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InductiveRangeCheckElimination.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The InductiveRangeCheckElimination pass splits a loop's iteration space into// -// three disjoint ranges. It does that in a way such that the loop running in// -// the middle loop provably does not need range checks. As an example, it will// -// convert // -// // -// len = < known positive > // -// for (i = 0; i < n; i++) { // -// if (0 <= i && i < len) { // -// do_something(); // -// } else { // -// throw_out_of_bounds(); // -// } // -// } // -// // -// to // -// // -// len = < known positive > // -// limit = smin(n, len) // -// // no first segment // -// for (i = 0; i < limit; i++) { // -// if (0 <= i && i < len) { // this check is fully redundant // -// do_something(); // -// } else { // -// throw_out_of_bounds(); // -// } // -// } // -// for (i = limit; i < n; i++) { // -// if (0 <= i && i < len) { // -// do_something(); // -// } else { // -// throw_out_of_bounds(); // -// } // -// } // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// The InductiveRangeCheckElimination pass splits a loop's iteration space into +// three disjoint ranges. It does that in a way such that the loop running in +// the middle loop provably does not need range checks. As an example, it will +// convert +// +// len = < known positive > +// for (i = 0; i < n; i++) { +// if (0 <= i && i < len) { +// do_something(); +// } else { +// throw_out_of_bounds(); +// } +// } +// +// to +// +// len = < known positive > +// limit = smin(n, len) +// // no first segment +// for (i = 0; i < limit; i++) { +// if (0 <= i && i < len) { // this check is fully redundant +// do_something(); +// } else { +// throw_out_of_bounds(); +// } +// } +// for (i = limit; i < n; i++) { +// if (0 <= i && i < len) { +// do_something(); +// } else { +// throw_out_of_bounds(); +// } +// } +//===----------------------------------------------------------------------===// #include "llvm/ADT/Optional.h" #include "llvm/Analysis/BranchProbabilityInfo.h" diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp index 39b8c01179..1130d228ac 100644 --- a/lib/Transforms/Scalar/JumpThreading.cpp +++ b/lib/Transforms/Scalar/JumpThreading.cpp @@ -1,14 +1,15 @@ //===- JumpThreading.cpp - Thread control through conditional blocks ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// JumpThreading.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Jump Threading pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Jump Threading pass. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 65fca7525b..43fc50e588 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -1,33 +1,34 @@ //===-- LICM.cpp - Loop Invariant Code Motion Pass ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LICM.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs loop invariant code motion, attempting to remove as much// -// code from the body of a loop as possible. It does this by either hoisting// -// code into the preheader block, or by sinking code to the exit blocks if it is// -// safe. This pass also promotes must-aliased memory locations in the loop to// -// live in registers, thus hoisting and sinking "invariant" loads and stores.// -// // -// This pass uses alias analysis for two purposes: // -// // -// 1. Moving loop invariant loads and calls out of loops. If we can determine// -// that a load or call inside of a loop never aliases anything stored to,// -// we can hoist it or sink it like any other instruction. // -// 2. Scalar Promotion of Memory - If there is a store instruction inside of// -// the loop, we try to move the store to happen AFTER the loop instead of// -// inside of the loop. This can only happen if a few conditions are true:// -// A. The pointer stored through is loop invariant // -// B. There are no stores or loads in the loop which _may_ alias the // -// pointer. There are no calls in the loop which mod/ref the pointer.// -// If these conditions are true, we can promote the loads and stores in the// -// loop of the pointer to use a temporary alloca'd variable. We then use// -// the SSAUpdater to construct the appropriate SSA form for the value. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs loop invariant code motion, attempting to remove as much +// code from the body of a loop as possible. It does this by either hoisting +// code into the preheader block, or by sinking code to the exit blocks if it is +// safe. This pass also promotes must-aliased memory locations in the loop to +// live in registers, thus hoisting and sinking "invariant" loads and stores. +// +// This pass uses alias analysis for two purposes: +// +// 1. Moving loop invariant loads and calls out of loops. If we can determine +// that a load or call inside of a loop never aliases anything stored to, +// we can hoist it or sink it like any other instruction. +// 2. Scalar Promotion of Memory - If there is a store instruction inside of +// the loop, we try to move the store to happen AFTER the loop instead of +// inside of the loop. This can only happen if a few conditions are true: +// A. The pointer stored through is loop invariant +// B. There are no stores or loads in the loop which _may_ alias the +// pointer. There are no calls in the loop which mod/ref the pointer. +// If these conditions are true, we can promote the loads and stores in the +// loop of the pointer to use a temporary alloca'd variable. We then use +// the SSAUpdater to construct the appropriate SSA form for the value. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/LLVMBuild.txt b/lib/Transforms/Scalar/LLVMBuild.txt index 905a07e0ac..deea9e2d01 100644 --- a/lib/Transforms/Scalar/LLVMBuild.txt +++ b/lib/Transforms/Scalar/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/Scalar/LLVMBuild.txt --------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/Scalar/LoadCombine.cpp b/lib/Transforms/Scalar/LoadCombine.cpp index 7fd3fbad47..c19cd19059 100644 --- a/lib/Transforms/Scalar/LoadCombine.cpp +++ b/lib/Transforms/Scalar/LoadCombine.cpp @@ -1,16 +1,15 @@ //===- LoadCombine.cpp - Combine Adjacent Loads ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoadCombine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This transformation combines adjacent loads. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This transformation combines adjacent loads. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/LoopDeletion.cpp b/lib/Transforms/Scalar/LoopDeletion.cpp index 7fa953229f..98b068edf5 100644 --- a/lib/Transforms/Scalar/LoopDeletion.cpp +++ b/lib/Transforms/Scalar/LoopDeletion.cpp @@ -1,17 +1,18 @@ //===- LoopDeletion.cpp - Dead Loop Deletion Pass ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopDeletion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Dead Loop Deletion Pass. This pass is responsible// -// for eliminating loops with non-infinite computable trip counts that have no// -// side effects or volatile instructions, and do not contribute to the // -// computation of the function's return value. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Dead Loop Deletion Pass. This pass is responsible +// for eliminating loops with non-infinite computable trip counts that have no +// side effects or volatile instructions, and do not contribute to the +// computation of the function's return value. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/Scalar/LoopDistribute.cpp b/lib/Transforms/Scalar/LoopDistribute.cpp index 4d47f455f1..1b9859b577 100644 --- a/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/lib/Transforms/Scalar/LoopDistribute.cpp @@ -1,25 +1,26 @@ //===- LoopDistribute.cpp - Loop Distribution Pass ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopDistribute.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Loop Distribution Pass. Its main focus is to // -// distribute loops that cannot be vectorized due to dependence cycles. It // -// tries to isolate the offending dependences into a new loop allowing // -// vectorization of the remaining parts. // -// // -// For dependence analysis, the pass uses the LoopVectorizer's // -// LoopAccessAnalysis. Because this analysis presumes no change in the order of// -// memory operations, special care is taken to preserve the lexical order of // -// these operations. // -// // -// Similarly to the Vectorizer, the pass also supports loop versioning to // -// run-time disambiguate potentially overlapping arrays. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Loop Distribution Pass. Its main focus is to +// distribute loops that cannot be vectorized due to dependence cycles. It +// tries to isolate the offending dependences into a new loop allowing +// vectorization of the remaining parts. +// +// For dependence analysis, the pass uses the LoopVectorizer's +// LoopAccessAnalysis. Because this analysis presumes no change in the order of +// memory operations, special care is taken to preserve the lexical order of +// these operations. +// +// Similarly to the Vectorizer, the pass also supports loop versioning to +// run-time disambiguate potentially overlapping arrays. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/EquivalenceClasses.h" diff --git a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 476bb5439c..656cddc516 100644 --- a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -1,42 +1,45 @@ //===-- LoopIdiomRecognize.cpp - Loop idiom recognition -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopIdiomRecognize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements an idiom recognizer that transforms simple loops into a// -// non-loop form. In cases that this kicks in, it can be a significant // -// performance win. // -// // -// TODO List: // -// // -// Future loop memory idioms to recognize: // -// memcmp, memmove, strlen, etc. // -// Future floating point idioms to recognize in -ffast-math mode: // -// fpowi // -// Future integer operation idioms to recognize: // -// ctpop, ctlz, cttz // -// // -// Beware that isel's default lowering for ctpop is highly inefficient for // -// i64 and larger types when i64 is legal and the value has few bits set. It// -// would be good to enhance isel to emit a loop for ctpop in this case. // -// // -// We should enhance the memset/memcpy recognition to handle multiple stores in// -// the loop. This would handle things like: // -// void foo(_Complex float *P) // -// for (i) { __real__(*P) = 0; __imag__(*P) = 0; } // -// // -// We should enhance this to handle negative strides through memory. // -// Alternatively (and perhaps better) we could rely on an earlier pass to force// -// forward iteration through memory, which is generally better for cache // -// behavior. Negative strides *do* happen for memset/memcpy loops. // -// // -// This could recognize common matrix multiplies and dot product idioms and // -// replace them with calls to BLAS (if linked in??). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass implements an idiom recognizer that transforms simple loops into a +// non-loop form. In cases that this kicks in, it can be a significant +// performance win. +// +//===----------------------------------------------------------------------===// +// +// TODO List: +// +// Future loop memory idioms to recognize: +// memcmp, memmove, strlen, etc. +// Future floating point idioms to recognize in -ffast-math mode: +// fpowi +// Future integer operation idioms to recognize: +// ctpop, ctlz, cttz +// +// Beware that isel's default lowering for ctpop is highly inefficient for +// i64 and larger types when i64 is legal and the value has few bits set. It +// would be good to enhance isel to emit a loop for ctpop in this case. +// +// We should enhance the memset/memcpy recognition to handle multiple stores in +// the loop. This would handle things like: +// void foo(_Complex float *P) +// for (i) { __real__(*P) = 0; __imag__(*P) = 0; } +// +// We should enhance this to handle negative strides through memory. +// Alternatively (and perhaps better) we could rely on an earlier pass to force +// forward iteration through memory, which is generally better for cache +// behavior. Negative strides *do* happen for memset/memcpy loops. +// +// This could recognize common matrix multiplies and dot product idioms and +// replace them with calls to BLAS (if linked in??). +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/LoopInstSimplify.cpp b/lib/Transforms/Scalar/LoopInstSimplify.cpp index 250d4d9a29..e125026547 100644 --- a/lib/Transforms/Scalar/LoopInstSimplify.cpp +++ b/lib/Transforms/Scalar/LoopInstSimplify.cpp @@ -1,14 +1,15 @@ //===- LoopInstSimplify.cpp - Loop Instruction Simplification Pass --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopInstSimplify.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs lightweight instruction simplification on loop bodies. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs lightweight instruction simplification on loop bodies. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Scalar/LoopInterchange.cpp b/lib/Transforms/Scalar/LoopInterchange.cpp index b0feb0fda8..9d7e57ffeb 100644 --- a/lib/Transforms/Scalar/LoopInterchange.cpp +++ b/lib/Transforms/Scalar/LoopInterchange.cpp @@ -1,16 +1,17 @@ //===- LoopInterchange.cpp - Loop interchange pass------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopInterchange.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This Pass handles loop interchange transform. // -// This pass interchanges loops to provide a more cache-friendly memory access// -// patterns. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This Pass handles loop interchange transform. +// This pass interchanges loops to provide a more cache-friendly memory access +// patterns. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallVector.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Transforms/Scalar/LoopRerollPass.cpp b/lib/Transforms/Scalar/LoopRerollPass.cpp index 8a001c8345..ed103e6b8e 100644 --- a/lib/Transforms/Scalar/LoopRerollPass.cpp +++ b/lib/Transforms/Scalar/LoopRerollPass.cpp @@ -1,14 +1,15 @@ //===-- LoopReroll.cpp - Loop rerolling pass ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopRerollPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements a simple loop reroller. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass implements a simple loop reroller. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/MapVector.h" diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp index e34417d987..a675e1289b 100644 --- a/lib/Transforms/Scalar/LoopRotation.cpp +++ b/lib/Transforms/Scalar/LoopRotation.cpp @@ -1,14 +1,15 @@ //===- LoopRotation.cpp - Loop Rotation Pass ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopRotation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Loop Rotation Pass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Loop Rotation Pass. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index cebb6646e2..48f364fa92 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1,56 +1,57 @@ //===- LoopStrengthReduce.cpp - Strength Reduce IVs in Loops --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopStrengthReduce.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transformation analyzes and transforms the induction variables (and // -// computations derived from them) into forms suitable for efficient execution// -// on the target. // -// // -// This pass performs a strength reduction on array references inside loops that// -// have as one or more of their components the loop induction variable, it // -// rewrites expressions to take advantage of scaled-index addressing modes // -// available on the target, and it performs a variety of other optimizations // -// related to loop induction variables. // -// // -// Terminology note: this code has a lot of handling for "post-increment" or // -// "post-inc" users. This is not talking about post-increment addressing modes;// -// it is instead talking about code like this: // -// // -// %i = phi [ 0, %entry ], [ %i.next, %latch ] // -// ... // -// %i.next = add %i, 1 // -// %c = icmp eq %i.next, %n // -// // -// The SCEV for %i is {0,+,1}<%L>. The SCEV for %i.next is {1,+,1}<%L>, however// -// it's useful to think about these as the same register, with some uses using// -// the value of the register before the add and some using it after. In this // -// example, the icmp is a post-increment user, since it uses %i.next, which is// -// the value of the induction variable after the increment. The other common // -// case of post-increment users is users outside the loop. // -// // -// TODO: More sophistication in the way Formulae are generated and filtered. // -// // -// TODO: Handle multiple loops at a time. // -// // -// TODO: Should the addressing mode BaseGV be changed to a ConstantExpr instead// -// of a GlobalValue? // -// // -// TODO: When truncation is free, truncate ICmp users' operands to make it a // -// smaller encoding (on x86 at least). // -// // -// TODO: When a negated register is used by an add (such as in a list of // -// multiple base registers, or as the increment expression in an addrec),// -// we may not actually need both reg and (-1 * reg) in registers; the // -// negation can be implemented by using a sub instead of an add. The // -// lack of support for taking this into consideration when making // -// register pressure decisions is partly worked around by the "Special"// -// use kind. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transformation analyzes and transforms the induction variables (and +// computations derived from them) into forms suitable for efficient execution +// on the target. +// +// This pass performs a strength reduction on array references inside loops that +// have as one or more of their components the loop induction variable, it +// rewrites expressions to take advantage of scaled-index addressing modes +// available on the target, and it performs a variety of other optimizations +// related to loop induction variables. +// +// Terminology note: this code has a lot of handling for "post-increment" or +// "post-inc" users. This is not talking about post-increment addressing modes; +// it is instead talking about code like this: +// +// %i = phi [ 0, %entry ], [ %i.next, %latch ] +// ... +// %i.next = add %i, 1 +// %c = icmp eq %i.next, %n +// +// The SCEV for %i is {0,+,1}<%L>. The SCEV for %i.next is {1,+,1}<%L>, however +// it's useful to think about these as the same register, with some uses using +// the value of the register before the add and some using it after. In this +// example, the icmp is a post-increment user, since it uses %i.next, which is +// the value of the induction variable after the increment. The other common +// case of post-increment users is users outside the loop. +// +// TODO: More sophistication in the way Formulae are generated and filtered. +// +// TODO: Handle multiple loops at a time. +// +// TODO: Should the addressing mode BaseGV be changed to a ConstantExpr instead +// of a GlobalValue? +// +// TODO: When truncation is free, truncate ICmp users' operands to make it a +// smaller encoding (on x86 at least). +// +// TODO: When a negated register is used by an add (such as in a list of +// multiple base registers, or as the increment expression in an addrec), +// we may not actually need both reg and (-1 * reg) in registers; the +// negation can be implemented by using a sub instead of an add. The +// lack of support for taking this into consideration when making +// register pressure decisions is partly worked around by the "Special" +// use kind. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseSet.h" diff --git a/lib/Transforms/Scalar/LoopUnrollPass.cpp b/lib/Transforms/Scalar/LoopUnrollPass.cpp index 209899bf08..d78db6c369 100644 --- a/lib/Transforms/Scalar/LoopUnrollPass.cpp +++ b/lib/Transforms/Scalar/LoopUnrollPass.cpp @@ -1,16 +1,16 @@ //===-- LoopUnroll.cpp - Loop unroller pass -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopUnrollPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements a simple loop unroller. It works best when loops have// -// been canonicalized by the -indvars pass, allowing it to determine the trip// -// counts of loops easily. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass implements a simple loop unroller. It works best when loops have +// been canonicalized by the -indvars pass, allowing it to determine the trip +// counts of loops easily. +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index e0dcb11115..cbc563bd89 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -1,29 +1,30 @@ //===-- LoopUnswitch.cpp - Hoist loop-invariant conditionals in loop ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopUnswitch.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass transforms loops that contain branches on loop-invariant conditions// -// to have multiple loops. For example, it turns the left into the right code:// -// // -// for (...) if (lic) // -// A for (...) // -// if (lic) A; B; C // -// B else // -// C for (...) // -// A; C // -// // -// This can increase the size of the code exponentially (doubling it every time// -// a loop is unswitched) so we only unswitch if the resultant code will be // -// smaller than a threshold. // -// // -// This pass expects LICM to be run before it to hoist invariant conditions out// -// of the loop, to make the unswitching opportunity obvious. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass transforms loops that contain branches on loop-invariant conditions +// to have multiple loops. For example, it turns the left into the right code: +// +// for (...) if (lic) +// A for (...) +// if (lic) A; B; C +// B else +// C for (...) +// A; C +// +// This can increase the size of the code exponentially (doubling it every time +// a loop is unswitched) so we only unswitch if the resultant code will be +// smaller than a threshold. +// +// This pass expects LICM to be run before it to hoist invariant conditions out +// of the loop, to make the unswitching opportunity obvious. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Scalar/LowerAtomic.cpp b/lib/Transforms/Scalar/LowerAtomic.cpp index 12e1cb05a4..3314e1ed41 100644 --- a/lib/Transforms/Scalar/LowerAtomic.cpp +++ b/lib/Transforms/Scalar/LowerAtomic.cpp @@ -1,15 +1,16 @@ //===- LowerAtomic.cpp - Lower atomic intrinsics --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerAtomic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass lowers atomic intrinsics to non-atomic form for use in a known // -// non-preemptible environment. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass lowers atomic intrinsics to non-atomic form for use in a known +// non-preemptible environment. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/IR/Function.h" diff --git a/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp b/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp index dd654b4b7d..0c47cbd5bf 100644 --- a/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp +++ b/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp @@ -1,14 +1,15 @@ //===- LowerExpectIntrinsic.cpp - Lower expect intrinsic ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerExpectIntrinsic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass lowers the 'expect' intrinsic to LLVM metadata. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass lowers the 'expect' intrinsic to LLVM metadata. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar/LowerExpectIntrinsic.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/lib/Transforms/Scalar/MemCpyOptimizer.cpp index 537726abc2..85012afc80 100644 --- a/lib/Transforms/Scalar/MemCpyOptimizer.cpp +++ b/lib/Transforms/Scalar/MemCpyOptimizer.cpp @@ -1,15 +1,16 @@ //===- MemCpyOptimizer.cpp - Optimize use of memcpy and friends -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemCpyOptimizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs various transformations related to eliminating memcpy // -// calls, or transforming sets of stores into memset's. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs various transformations related to eliminating memcpy +// calls, or transforming sets of stores into memset's. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp b/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp index d5811c3dd6..643f3740ee 100644 --- a/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp +++ b/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp @@ -1,71 +1,76 @@ //===- MergedLoadStoreMotion.cpp - merge and hoist/sink load/stores -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MergedLoadStoreMotion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -//! \file // -//! \brief This pass performs merges of loads and stores on both sides of a // -// diamond (hammock). It hoists the loads and sinks the stores. // -// // -// The algorithm iteratively hoists two loads to the same address out of a // -// diamond (hammock) and merges them into a single load in the header. Similar// -// it sinks and merges two stores to the tail block (footer). The algorithm // -// iterates over the instructions of one side of the diamond and attempts to // -// find a matching load/store on the other side. It hoists / sinks when it // -// thinks it safe to do so. This optimization helps with eg. hiding load // -// latencies, triggering if-conversion, and reducing static code size. // -// // -// Example: // -// Diamond shaped code before merge: // -// // -// header: // -// br %cond, label %if.then, label %if.else // -// + + // -// + + // -// + + // -// if.then: if.else: // -// %lt = load %addr_l %le = load %addr_l // -// // -// <...> <...> // -// store %st, %addr_s store %se, %addr_s // -// br label %if.end br label %if.end // -// + + // -// + + // -// + + // -// if.end ("footer"): // -// <...> // -// // -// Diamond shaped code after merge: // -// // -// header: // -// %l = load %addr_l // -// br %cond, label %if.then, label %if.else // -// + + // -// + + // -// + + // -// if.then: if.else: // -// // -// <...> <...> // -// br label %if.end br label %if.end // -// + + // -// + + // -// + + // -// if.end ("footer"): // -// %s.sink = phi [%st, if.then], [%se, if.else] // -// <...> // -// store %s.sink, %addr_s // -// <...> // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +//! \file +//! \brief This pass performs merges of loads and stores on both sides of a +// diamond (hammock). It hoists the loads and sinks the stores. +// +// The algorithm iteratively hoists two loads to the same address out of a +// diamond (hammock) and merges them into a single load in the header. Similar +// it sinks and merges two stores to the tail block (footer). The algorithm +// iterates over the instructions of one side of the diamond and attempts to +// find a matching load/store on the other side. It hoists / sinks when it +// thinks it safe to do so. This optimization helps with eg. hiding load +// latencies, triggering if-conversion, and reducing static code size. +// +//===----------------------------------------------------------------------===// +// +// +// Example: +// Diamond shaped code before merge: +// +// header: +// br %cond, label %if.then, label %if.else +// + + +// + + +// + + +// if.then: if.else: +// %lt = load %addr_l %le = load %addr_l +// +// <...> <...> +// store %st, %addr_s store %se, %addr_s +// br label %if.end br label %if.end +// + + +// + + +// + + +// if.end ("footer"): +// <...> +// +// Diamond shaped code after merge: +// +// header: +// %l = load %addr_l +// br %cond, label %if.then, label %if.else +// + + +// + + +// + + +// if.then: if.else: +// +// <...> <...> +// br label %if.end br label %if.end +// + + +// + + +// + + +// if.end ("footer"): +// %s.sink = phi [%st, if.then], [%se, if.else] +// <...> +// store %s.sink, %addr_s +// <...> +// +// //===----------------------- TODO -----------------------------------------===// -// // -// 1) Generalize to regions other than diamonds // -// 2) Be more aggressive merging memory operations // -// Note that both changes require register pressure control // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// 1) Generalize to regions other than diamonds +// 2) Be more aggressive merging memory operations +// Note that both changes require register pressure control +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Transforms/Scalar/NaryReassociate.cpp b/lib/Transforms/Scalar/NaryReassociate.cpp index c7e33de603..f42f8306fc 100644 --- a/lib/Transforms/Scalar/NaryReassociate.cpp +++ b/lib/Transforms/Scalar/NaryReassociate.cpp @@ -1,79 +1,80 @@ //===- NaryReassociate.cpp - Reassociate n-ary expressions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NaryReassociate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass reassociates n-ary add expressions and eliminates the redundancy// -// exposed by the reassociation. // -// // -// A motivating example: // -// // -// void foo(int a, int b) { // -// bar(a + b); // -// bar((a + 2) + b); // -// } // -// // -// An ideal compiler should reassociate (a + 2) + b to (a + b) + 2 and simplify// -// the above code to // -// // -// int t = a + b; // -// bar(t); // -// bar(t + 2); // -// // -// However, the Reassociate pass is unable to do that because it processes each// -// instruction individually and believes (a + 2) + b is the best form according// -// to its rank system. // -// // -// To address this limitation, NaryReassociate reassociates an expression in a// -// form that reuses existing instructions. As a result, NaryReassociate can // -// reassociate (a + 2) + b in the example to (a + b) + 2 because it detects that// -// (a + b) is computed before. // -// // -// NaryReassociate works as follows. For every instruction in the form of (a +// -// b) + c, it checks whether a + c or b + c is already computed by a dominating// -// instruction. If so, it then reassociates (a + b) + c into (a + c) + b or (b +// -// c) + a and removes the redundancy accordingly. To efficiently look up whether// -// an expression is computed before, we store each instruction seen and its SCEV// -// into an SCEV-to-instruction map. // -// // -// Although the algorithm pattern-matches only ternary additions, it // -// automatically handles many >3-ary expressions by walking through the function// -// in the depth-first order. For example, given // -// // -// (a + c) + d // -// ((a + b) + c) + d // -// // -// NaryReassociate first rewrites (a + b) + c to (a + c) + b, and then rewrites// -// ((a + c) + b) + d into ((a + c) + d) + b. // -// // -// Finally, the above dominator-based algorithm may need to be run multiple // -// iterations before emitting optimal code. One source of this need is that we// -// only split an operand when it is used only once. The above algorithm can // -// eliminate an instruction and decrease the usage count of its operands. As a// -// result, an instruction that previously had multiple uses may become a // -// single-use instruction and thus eligible for split consideration. For // -// example, // -// // -// ac = a + c // -// ab = a + b // -// abc = ab + c // -// ab2 = ab + b // -// ab2c = ab2 + c // -// // -// In the first iteration, we cannot reassociate abc to ac+b because ab is used// -// twice. However, we can reassociate ab2c to abc+b in the first iteration. As a// -// result, ab2 becomes dead and ab will be used only once in the second // -// iteration. // -// // -// Limitations and TODO items: // -// // -// 1) We only considers n-ary adds for now. This should be extended and // -// generalized. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass reassociates n-ary add expressions and eliminates the redundancy +// exposed by the reassociation. +// +// A motivating example: +// +// void foo(int a, int b) { +// bar(a + b); +// bar((a + 2) + b); +// } +// +// An ideal compiler should reassociate (a + 2) + b to (a + b) + 2 and simplify +// the above code to +// +// int t = a + b; +// bar(t); +// bar(t + 2); +// +// However, the Reassociate pass is unable to do that because it processes each +// instruction individually and believes (a + 2) + b is the best form according +// to its rank system. +// +// To address this limitation, NaryReassociate reassociates an expression in a +// form that reuses existing instructions. As a result, NaryReassociate can +// reassociate (a + 2) + b in the example to (a + b) + 2 because it detects that +// (a + b) is computed before. +// +// NaryReassociate works as follows. For every instruction in the form of (a + +// b) + c, it checks whether a + c or b + c is already computed by a dominating +// instruction. If so, it then reassociates (a + b) + c into (a + c) + b or (b + +// c) + a and removes the redundancy accordingly. To efficiently look up whether +// an expression is computed before, we store each instruction seen and its SCEV +// into an SCEV-to-instruction map. +// +// Although the algorithm pattern-matches only ternary additions, it +// automatically handles many >3-ary expressions by walking through the function +// in the depth-first order. For example, given +// +// (a + c) + d +// ((a + b) + c) + d +// +// NaryReassociate first rewrites (a + b) + c to (a + c) + b, and then rewrites +// ((a + c) + b) + d into ((a + c) + d) + b. +// +// Finally, the above dominator-based algorithm may need to be run multiple +// iterations before emitting optimal code. One source of this need is that we +// only split an operand when it is used only once. The above algorithm can +// eliminate an instruction and decrease the usage count of its operands. As a +// result, an instruction that previously had multiple uses may become a +// single-use instruction and thus eligible for split consideration. For +// example, +// +// ac = a + c +// ab = a + b +// abc = ab + c +// ab2 = ab + b +// ab2c = ab2 + c +// +// In the first iteration, we cannot reassociate abc to ac+b because ab is used +// twice. However, we can reassociate ab2c to abc+b in the first iteration. As a +// result, ab2 becomes dead and ab will be used only once in the second +// iteration. +// +// Limitations and TODO items: +// +// 1) We only considers n-ary adds for now. This should be extended and +// generalized. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/AssumptionCache.h" #include "llvm/Analysis/ScalarEvolution.h" diff --git a/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp b/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp index e1ec921f0d..31d7df39c7 100644 --- a/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp +++ b/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp @@ -1,16 +1,17 @@ //===--- PartiallyInlineLibCalls.cpp - Partially inline libcalls ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PartiallyInlineLibCalls.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass tries to partially inline the fast path of well-known library // -// functions, such as using square-root instructions for cases where sqrt() // -// does not need to set errno. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass tries to partially inline the fast path of well-known library +// functions, such as using square-root instructions for cases where sqrt() +// does not need to set errno. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/TargetTransformInfo.h" #include "llvm/IR/IRBuilder.h" diff --git a/lib/Transforms/Scalar/PlaceSafepoints.cpp b/lib/Transforms/Scalar/PlaceSafepoints.cpp index d48f2c7d62..366301ad73 100644 --- a/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -1,51 +1,52 @@ //===- PlaceSafepoints.cpp - Place GC Safepoints --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PlaceSafepoints.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Place garbage collection safepoints at appropriate locations in the IR. This// -// does not make relocation semantics or variable liveness explicit. That's // -// done by RewriteStatepointsForGC. // -// // -// Terminology: // -// - A call is said to be "parseable" if there is a stack map generated for the// -// return PC of the call. A runtime can determine where values listed in the// -// deopt arguments and (after RewriteStatepointsForGC) gc arguments are located// -// on the stack when the code is suspended inside such a call. Every parse // -// point is represented by a call wrapped in an gc.statepoint intrinsic. // -// - A "poll" is an explicit check in the generated code to determine if the // -// runtime needs the generated code to cooperate by calling a helper routine // -// and thus suspending its execution at a known state. The call to the helper// -// routine will be parseable. The (gc & runtime specific) logic of a poll is// -// assumed to be provided in a function of the name "gc.safepoint_poll". // -// // -// We aim to insert polls such that running code can quickly be brought to a // -// well defined state for inspection by the collector. In the current // -// implementation, this is done via the insertion of poll sites at method entry// -// and the backedge of most loops. We try to avoid inserting more polls than// -// are neccessary to ensure a finite period between poll sites. This is not // -// because the poll itself is expensive in the generated code; it's not. Polls// -// do tend to impact the optimizer itself in negative ways; we'd like to avoid// -// perturbing the optimization of the method as much as we can. // -// // -// We also need to make most call sites parseable. The callee might execute a// -// poll (or otherwise be inspected by the GC). If so, the entire stack // -// (including the suspended frame of the current method) must be parseable. // -// // -// This pass will insert: // -// - Call parse points ("call safepoints") for any call which may need to // -// reach a safepoint during the execution of the callee function. // -// - Backedge safepoint polls and entry safepoint polls to ensure that // -// executing code reaches a safepoint poll in a finite amount of time. // -// // -// We do not currently support return statepoints, but adding them would not // -// be hard. They are not required for correctness - entry safepoints are an // -// alternative - but some GCs may prefer them. Patches welcome. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Place garbage collection safepoints at appropriate locations in the IR. This +// does not make relocation semantics or variable liveness explicit. That's +// done by RewriteStatepointsForGC. +// +// Terminology: +// - A call is said to be "parseable" if there is a stack map generated for the +// return PC of the call. A runtime can determine where values listed in the +// deopt arguments and (after RewriteStatepointsForGC) gc arguments are located +// on the stack when the code is suspended inside such a call. Every parse +// point is represented by a call wrapped in an gc.statepoint intrinsic. +// - A "poll" is an explicit check in the generated code to determine if the +// runtime needs the generated code to cooperate by calling a helper routine +// and thus suspending its execution at a known state. The call to the helper +// routine will be parseable. The (gc & runtime specific) logic of a poll is +// assumed to be provided in a function of the name "gc.safepoint_poll". +// +// We aim to insert polls such that running code can quickly be brought to a +// well defined state for inspection by the collector. In the current +// implementation, this is done via the insertion of poll sites at method entry +// and the backedge of most loops. We try to avoid inserting more polls than +// are neccessary to ensure a finite period between poll sites. This is not +// because the poll itself is expensive in the generated code; it's not. Polls +// do tend to impact the optimizer itself in negative ways; we'd like to avoid +// perturbing the optimization of the method as much as we can. +// +// We also need to make most call sites parseable. The callee might execute a +// poll (or otherwise be inspected by the GC). If so, the entire stack +// (including the suspended frame of the current method) must be parseable. +// +// This pass will insert: +// - Call parse points ("call safepoints") for any call which may need to +// reach a safepoint during the execution of the callee function. +// - Backedge safepoint polls and entry safepoint polls to ensure that +// executing code reaches a safepoint poll in a finite amount of time. +// +// We do not currently support return statepoints, but adding them would not +// be hard. They are not required for correctness - entry safepoints are an +// alternative - but some GCs may prefer them. Patches welcome. +// +//===----------------------------------------------------------------------===// #include "llvm/Pass.h" #include "llvm/IR/LegacyPassManager.h" diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 48edc1e131..d1acf785d0 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -1,23 +1,24 @@ //===- Reassociate.cpp - Reassociate binary expressions -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Reassociate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass reassociates commutative expressions in an order that is designed// -// to promote better constant propagation, GCSE, LICM, PRE, etc. // -// // -// For example: 4 + (x + 5) -> x + (4 + 5) // -// // -// In the implementation of this algorithm, constants are assigned rank = 0, // -// function arguments are rank = 1, and other values are assigned ranks // -// corresponding to the reverse post order traversal of current function // -// (starting at 2), which effectively gives values in deep loops higher rank // -// than values not in loops. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass reassociates commutative expressions in an order that is designed +// to promote better constant propagation, GCSE, LICM, PRE, etc. +// +// For example: 4 + (x + 5) -> x + (4 + 5) +// +// In the implementation of this algorithm, constants are assigned rank = 0, +// function arguments are rank = 1, and other values are assigned ranks +// corresponding to the reverse post order traversal of current function +// (starting at 2), which effectively gives values in deep loops higher rank +// than values not in loops. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/Reg2Mem.cpp b/lib/Transforms/Scalar/Reg2Mem.cpp index 92dde3b08d..1b46727c17 100644 --- a/lib/Transforms/Scalar/Reg2Mem.cpp +++ b/lib/Transforms/Scalar/Reg2Mem.cpp @@ -1,19 +1,20 @@ //===- Reg2Mem.cpp - Convert registers to allocas -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Reg2Mem.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file demotes all registers to memory references. It is intended to be// -// the inverse of PromoteMemoryToRegister. By converting to loads, the only // -// values live across basic blocks are allocas and loads before phi nodes. // -// It is intended that this should make CFG hacking much easier. // -// To make later hacking easier, the entry block is split into two, such that// -// all introduced allocas and nothing else are in the entry block. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file demotes all registers to memory references. It is intended to be +// the inverse of PromoteMemoryToRegister. By converting to loads, the only +// values live across basic blocks are allocas and loads before phi nodes. +// It is intended that this should make CFG hacking much easier. +// To make later hacking easier, the entry block is split into two, such that +// all introduced allocas and nothing else are in the entry block. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/Reg2MemHLSL.cpp b/lib/Transforms/Scalar/Reg2MemHLSL.cpp index a914d6519f..f6d7796f29 100644 --- a/lib/Transforms/Scalar/Reg2MemHLSL.cpp +++ b/lib/Transforms/Scalar/Reg2MemHLSL.cpp @@ -1,12 +1,11 @@ //===- Reg2MemHLSL.cpp - Convert registers to allocas ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Reg2MemHLSL.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 2f75d1019a..ae2ae3af0c 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1,15 +1,16 @@ //===- RewriteStatepointsForGC.cpp - Make GC relocations explicit ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteStatepointsForGC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Rewrite an existing set of gc.statepoints such that they make potential // -// relocations performed by the garbage collector explicit in the IR. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Rewrite an existing set of gc.statepoints such that they make potential +// relocations performed by the garbage collector explicit in the IR. +// +//===----------------------------------------------------------------------===// #include "llvm/Pass.h" #include "llvm/Analysis/CFG.h" diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 578e53c08d..4d3a708fa2 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -1,20 +1,21 @@ //===- SCCP.cpp - Sparse Conditional Constant Propagation -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SCCP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements sparse conditional constant propagation and merging: // -// // -// Specifically, this: // -// * Assumes values are constant unless proven otherwise // -// * Assumes BasicBlocks are dead unless proven otherwise // -// * Proves values to be constant, and replaces them with constants // -// * Proves conditional branches to be unconditional // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements sparse conditional constant propagation and merging: +// +// Specifically, this: +// * Assumes values are constant unless proven otherwise +// * Assumes BasicBlocks are dead unless proven otherwise +// * Proves values to be constant, and replaces them with constants +// * Proves conditional branches to be unconditional +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index abcc53a7f8..947513a365 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -1,28 +1,27 @@ //===- SROA.cpp - Scalar Replacement Of Aggregates ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SROA.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// This transformation implements the well known scalar replacement of // -/// aggregates transformation. It tries to identify promotable elements of an// -/// aggregate alloca, and promote them to registers. It will also try to // -/// convert uses of an element (or set of elements) of an alloca into a vector// -/// or bitfield-style integer scalar if appropriate. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// This transformation implements the well known scalar replacement of +/// aggregates transformation. It tries to identify promotable elements of an +/// aggregate alloca, and promote them to registers. It will also try to +/// convert uses of an element (or set of elements) of an alloca into a vector +/// or bitfield-style integer scalar if appropriate. /// -/// It works to do this with minimal slicing of the alloca so that regions // -/// which are merely transferred in and out of external memory remain unchanged// -/// and are not decomposed to scalar code. // +/// It works to do this with minimal slicing of the alloca so that regions +/// which are merely transferred in and out of external memory remain unchanged +/// and are not decomposed to scalar code. /// -/// Because this also performs alloca promotion, it can be thought of as also// -/// serving the purpose of SSA formation. The algorithm iterates on the // -/// function until all opportunities for promotion have been realized. // +/// Because this also performs alloca promotion, it can be thought of as also +/// serving the purpose of SSA formation. The algorithm iterates on the +/// function until all opportunities for promotion have been realized. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Scalar/SampleProfile.cpp b/lib/Transforms/Scalar/SampleProfile.cpp index 3304eaa24a..c8dfa54a4a 100644 --- a/lib/Transforms/Scalar/SampleProfile.cpp +++ b/lib/Transforms/Scalar/SampleProfile.cpp @@ -1,25 +1,26 @@ //===- SampleProfile.cpp - Incorporate sample profiles into the IR --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SampleProfile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SampleProfileLoader transformation. This pass // -// reads a profile file generated by a sampling profiler (e.g. Linux Perf - // -// http://perf.wiki.kernel.org/) and generates IR metadata to reflect the // -// profile information in the given profile. // -// // -// This pass generates branch weight annotations on the IR: // -// // -// - prof: Represents branch weights. This annotation is added to branches // -// to indicate the weights of each edge coming out of the branch. // -// The weight of each edge is the weight of the target block for // -// that edge. The weight of a block B is computed as the maximum // -// number of samples found in B. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SampleProfileLoader transformation. This pass +// reads a profile file generated by a sampling profiler (e.g. Linux Perf - +// http://perf.wiki.kernel.org/) and generates IR metadata to reflect the +// profile information in the given profile. +// +// This pass generates branch weight annotations on the IR: +// +// - prof: Represents branch weights. This annotation is added to branches +// to indicate the weights of each edge coming out of the branch. +// The weight of each edge is the weight of the target block for +// that edge. The weight of a block B is computed as the maximum +// number of samples found in B. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Scalar/Scalar.cpp b/lib/Transforms/Scalar/Scalar.cpp index beae7783d6..f6e304a2f8 100644 --- a/lib/Transforms/Scalar/Scalar.cpp +++ b/lib/Transforms/Scalar/Scalar.cpp @@ -1,16 +1,17 @@ //===-- Scalar.cpp --------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Scalar.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements common infrastructure for libLLVMScalarOpts.a, which // -// implements several scalar transformations over the LLVM intermediate // -// representation, including the C bindings for that library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements common infrastructure for libLLVMScalarOpts.a, which +// implements several scalar transformations over the LLVM intermediate +// representation, including the C bindings for that library. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm-c/Initialization.h" diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 22f161a720..d955da7ce7 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -1,22 +1,23 @@ //===- ScalarReplAggregates.cpp - Scalar Replacement of Aggregates --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarReplAggregates.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transformation implements the well known scalar replacement of // -// aggregates transformation. This xform breaks up alloca instructions of // -// aggregate type (structure or array) into individual alloca instructions for// -// each member (if possible). Then, if possible, it transforms the individual// -// alloca instructions into nice clean scalar SSA form. // -// // -// This combines a simple SRoA algorithm with the Mem2Reg algorithm because they// -// often interact, especially for C++ programs. As such, iterating between // -// SRoA, then Mem2Reg until we run out of things to promote works well. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transformation implements the well known scalar replacement of +// aggregates transformation. This xform breaks up alloca instructions of +// aggregate type (structure or array) into individual alloca instructions for +// each member (if possible). Then, if possible, it transforms the individual +// alloca instructions into nice clean scalar SSA form. +// +// This combines a simple SRoA algorithm with the Mem2Reg algorithm because they +// often interact, especially for C++ programs. As such, iterating between +// SRoA, then Mem2Reg until we run out of things to promote works well. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SetVector.h" diff --git a/lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp b/lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp index 80c919c8f1..7a48aa39da 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp @@ -1,13 +1,11 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarReplAggregatesHLSL.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Scalar Replacement of Aggregates for HLSL. // -// // -/////////////////////////////////////////////////////////////////////////////// +//===- ScalarReplAggregatesHLSL.cpp - Scalar Replacement of Aggregates ----===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // diff --git a/lib/Transforms/Scalar/Scalarizer.cpp b/lib/Transforms/Scalar/Scalarizer.cpp index 8429610acd..8ab85c5bd5 100644 --- a/lib/Transforms/Scalar/Scalarizer.cpp +++ b/lib/Transforms/Scalar/Scalarizer.cpp @@ -1,17 +1,18 @@ //===--- Scalarizer.cpp - Scalarize vector operations ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Scalarizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass converts vector operations into scalar operations, in order // -// to expose optimization opportunities on the individual scalar operations. // -// It is mainly intended for targets that do not have vector units, but it // -// may also be useful for revectorizing code to different vector widths. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass converts vector operations into scalar operations, in order +// to expose optimization opportunities on the individual scalar operations. +// It is mainly intended for targets that do not have vector units, but it +// may also be useful for revectorizing code to different vector widths. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/IR/IRBuilder.h" diff --git a/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp b/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp index ed822447b4..4a87531188 100644 --- a/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp +++ b/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp @@ -1,159 +1,160 @@ //===-- SeparateConstOffsetFromGEP.cpp - ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SeparateConstOffsetFromGEP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Loop unrolling may create many similar GEPs for array accesses. // -// e.g., a 2-level loop // -// // -// float a[32][32]; // global variable // -// // -// for (int i = 0; i < 2; ++i) { // -// for (int j = 0; j < 2; ++j) { // -// ... // -// ... = a[x + i][y + j]; // -// ... // -// } // -// } // -// // -// will probably be unrolled to: // -// // -// gep %a, 0, %x, %y; load // -// gep %a, 0, %x, %y + 1; load // -// gep %a, 0, %x + 1, %y; load // -// gep %a, 0, %x + 1, %y + 1; load // -// // -// LLVM's GVN does not use partial redundancy elimination yet, and is thus // -// unable to reuse (gep %a, 0, %x, %y). As a result, this misoptimization incurs// -// significant slowdown in targets with limited addressing modes. For instance,// -// because the PTX target does not support the reg+reg addressing mode, the // -// NVPTX backend emits PTX code that literally computes the pointer address of// -// each GEP, wasting tons of registers. It emits the following PTX for the // -// first load and similar PTX for other loads. // -// // -// mov.u32 %r1, %x; // -// mov.u32 %r2, %y; // -// mul.wide.u32 %rl2, %r1, 128; // -// mov.u64 %rl3, a; // -// add.s64 %rl4, %rl3, %rl2; // -// mul.wide.u32 %rl5, %r2, 4; // -// add.s64 %rl6, %rl4, %rl5; // -// ld.global.f32 %f1, [%rl6]; // -// // -// To reduce the register pressure, the optimization implemented in this file// -// merges the common part of a group of GEPs, so we can compute each pointer // -// address by adding a simple offset to the common part, saving many registers.// -// // -// It works by splitting each GEP into a variadic base and a constant offset.// -// The variadic base can be computed once and reused by multiple GEPs, and the// -// constant offsets can be nicely folded into the reg+immediate addressing mode// -// (supported by most targets) without using any extra register. // -// // -// For instance, we transform the four GEPs and four loads in the above example// -// into: // -// // -// base = gep a, 0, x, y // -// load base // -// laod base + 1 * sizeof(float) // -// load base + 32 * sizeof(float) // -// load base + 33 * sizeof(float) // -// // -// Given the transformed IR, a backend that supports the reg+immediate // -// addressing mode can easily fold the pointer arithmetics into the loads. For// -// example, the NVPTX backend can easily fold the pointer arithmetics into the// -// ld.global.f32 instructions, and the resultant PTX uses much fewer registers.// -// // -// mov.u32 %r1, %tid.x; // -// mov.u32 %r2, %tid.y; // -// mul.wide.u32 %rl2, %r1, 128; // -// mov.u64 %rl3, a; // -// add.s64 %rl4, %rl3, %rl2; // -// mul.wide.u32 %rl5, %r2, 4; // -// add.s64 %rl6, %rl4, %rl5; // -// ld.global.f32 %f1, [%rl6]; // so far the same as unoptimized PTX // -// ld.global.f32 %f2, [%rl6+4]; // much better // -// ld.global.f32 %f3, [%rl6+128]; // much better // -// ld.global.f32 %f4, [%rl6+132]; // much better // -// // -// Another improvement enabled by the LowerGEP flag is to lower a GEP with // -// multiple indices to either multiple GEPs with a single index or arithmetic// -// operations (depending on whether the target uses alias analysis in codegen).// -// Such transformation can have following benefits: // -// (1) It can always extract constants in the indices of structure type. // -// (2) After such Lowering, there are more optimization opportunities such as// -// CSE, LICM and CGP. // -// // -// E.g. The following GEPs have multiple indices: // -// BB1: // -// %p = getelementptr [10 x %struct]* %ptr, i64 %i, i64 %j1, i32 3 // -// load %p // -// ... // -// BB2: // -// %p2 = getelementptr [10 x %struct]* %ptr, i64 %i, i64 %j1, i32 2 // -// load %p2 // -// ... // -// // -// We can not do CSE for to the common part related to index "i64 %i". Lowering// -// GEPs can achieve such goals. // -// If the target does not use alias analysis in codegen, this pass will // -// lower a GEP with multiple indices into arithmetic operations: // -// BB1: // -// %1 = ptrtoint [10 x %struct]* %ptr to i64 ; CSE opportunity // -// %2 = mul i64 %i, length_of_10xstruct ; CSE opportunity // -// %3 = add i64 %1, %2 ; CSE opportunity // -// %4 = mul i64 %j1, length_of_struct // -// %5 = add i64 %3, %4 // -// %6 = add i64 %3, struct_field_3 ; Constant offset // -// %p = inttoptr i64 %6 to i32* // -// load %p // -// ... // -// BB2: // -// %7 = ptrtoint [10 x %struct]* %ptr to i64 ; CSE opportunity // -// %8 = mul i64 %i, length_of_10xstruct ; CSE opportunity // -// %9 = add i64 %7, %8 ; CSE opportunity // -// %10 = mul i64 %j2, length_of_struct // -// %11 = add i64 %9, %10 // -// %12 = add i64 %11, struct_field_2 ; Constant offset // -// %p = inttoptr i64 %12 to i32* // -// load %p2 // -// ... // -// // -// If the target uses alias analysis in codegen, this pass will lower a GEP // -// with multiple indices into multiple GEPs with a single index: // -// BB1: // -// %1 = bitcast [10 x %struct]* %ptr to i8* ; CSE opportunity // -// %2 = mul i64 %i, length_of_10xstruct ; CSE opportunity // -// %3 = getelementptr i8* %1, i64 %2 ; CSE opportunity // -// %4 = mul i64 %j1, length_of_struct // -// %5 = getelementptr i8* %3, i64 %4 // -// %6 = getelementptr i8* %5, struct_field_3 ; Constant offset // -// %p = bitcast i8* %6 to i32* // -// load %p // -// ... // -// BB2: // -// %7 = bitcast [10 x %struct]* %ptr to i8* ; CSE opportunity // -// %8 = mul i64 %i, length_of_10xstruct ; CSE opportunity // -// %9 = getelementptr i8* %7, i64 %8 ; CSE opportunity // -// %10 = mul i64 %j2, length_of_struct // -// %11 = getelementptr i8* %9, i64 %10 // -// %12 = getelementptr i8* %11, struct_field_2 ; Constant offset // -// %p2 = bitcast i8* %12 to i32* // -// load %p2 // -// ... // -// // -// Lowering GEPs can also benefit other passes such as LICM and CGP. // -// LICM (Loop Invariant Code Motion) can not hoist/sink a GEP of multiple // -// indices if one of the index is variant. If we lower such GEP into invariant// -// parts and variant parts, LICM can hoist/sink those invariant parts. // -// CGP (CodeGen Prepare) tries to sink address calculations that match the // -// target's addressing modes. A GEP with multiple indices may not match and will// -// not be sunk. If we lower such GEP into smaller parts, CGP may sink some of// -// them. So we end up with a better addressing mode. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Loop unrolling may create many similar GEPs for array accesses. +// e.g., a 2-level loop +// +// float a[32][32]; // global variable +// +// for (int i = 0; i < 2; ++i) { +// for (int j = 0; j < 2; ++j) { +// ... +// ... = a[x + i][y + j]; +// ... +// } +// } +// +// will probably be unrolled to: +// +// gep %a, 0, %x, %y; load +// gep %a, 0, %x, %y + 1; load +// gep %a, 0, %x + 1, %y; load +// gep %a, 0, %x + 1, %y + 1; load +// +// LLVM's GVN does not use partial redundancy elimination yet, and is thus +// unable to reuse (gep %a, 0, %x, %y). As a result, this misoptimization incurs +// significant slowdown in targets with limited addressing modes. For instance, +// because the PTX target does not support the reg+reg addressing mode, the +// NVPTX backend emits PTX code that literally computes the pointer address of +// each GEP, wasting tons of registers. It emits the following PTX for the +// first load and similar PTX for other loads. +// +// mov.u32 %r1, %x; +// mov.u32 %r2, %y; +// mul.wide.u32 %rl2, %r1, 128; +// mov.u64 %rl3, a; +// add.s64 %rl4, %rl3, %rl2; +// mul.wide.u32 %rl5, %r2, 4; +// add.s64 %rl6, %rl4, %rl5; +// ld.global.f32 %f1, [%rl6]; +// +// To reduce the register pressure, the optimization implemented in this file +// merges the common part of a group of GEPs, so we can compute each pointer +// address by adding a simple offset to the common part, saving many registers. +// +// It works by splitting each GEP into a variadic base and a constant offset. +// The variadic base can be computed once and reused by multiple GEPs, and the +// constant offsets can be nicely folded into the reg+immediate addressing mode +// (supported by most targets) without using any extra register. +// +// For instance, we transform the four GEPs and four loads in the above example +// into: +// +// base = gep a, 0, x, y +// load base +// laod base + 1 * sizeof(float) +// load base + 32 * sizeof(float) +// load base + 33 * sizeof(float) +// +// Given the transformed IR, a backend that supports the reg+immediate +// addressing mode can easily fold the pointer arithmetics into the loads. For +// example, the NVPTX backend can easily fold the pointer arithmetics into the +// ld.global.f32 instructions, and the resultant PTX uses much fewer registers. +// +// mov.u32 %r1, %tid.x; +// mov.u32 %r2, %tid.y; +// mul.wide.u32 %rl2, %r1, 128; +// mov.u64 %rl3, a; +// add.s64 %rl4, %rl3, %rl2; +// mul.wide.u32 %rl5, %r2, 4; +// add.s64 %rl6, %rl4, %rl5; +// ld.global.f32 %f1, [%rl6]; // so far the same as unoptimized PTX +// ld.global.f32 %f2, [%rl6+4]; // much better +// ld.global.f32 %f3, [%rl6+128]; // much better +// ld.global.f32 %f4, [%rl6+132]; // much better +// +// Another improvement enabled by the LowerGEP flag is to lower a GEP with +// multiple indices to either multiple GEPs with a single index or arithmetic +// operations (depending on whether the target uses alias analysis in codegen). +// Such transformation can have following benefits: +// (1) It can always extract constants in the indices of structure type. +// (2) After such Lowering, there are more optimization opportunities such as +// CSE, LICM and CGP. +// +// E.g. The following GEPs have multiple indices: +// BB1: +// %p = getelementptr [10 x %struct]* %ptr, i64 %i, i64 %j1, i32 3 +// load %p +// ... +// BB2: +// %p2 = getelementptr [10 x %struct]* %ptr, i64 %i, i64 %j1, i32 2 +// load %p2 +// ... +// +// We can not do CSE for to the common part related to index "i64 %i". Lowering +// GEPs can achieve such goals. +// If the target does not use alias analysis in codegen, this pass will +// lower a GEP with multiple indices into arithmetic operations: +// BB1: +// %1 = ptrtoint [10 x %struct]* %ptr to i64 ; CSE opportunity +// %2 = mul i64 %i, length_of_10xstruct ; CSE opportunity +// %3 = add i64 %1, %2 ; CSE opportunity +// %4 = mul i64 %j1, length_of_struct +// %5 = add i64 %3, %4 +// %6 = add i64 %3, struct_field_3 ; Constant offset +// %p = inttoptr i64 %6 to i32* +// load %p +// ... +// BB2: +// %7 = ptrtoint [10 x %struct]* %ptr to i64 ; CSE opportunity +// %8 = mul i64 %i, length_of_10xstruct ; CSE opportunity +// %9 = add i64 %7, %8 ; CSE opportunity +// %10 = mul i64 %j2, length_of_struct +// %11 = add i64 %9, %10 +// %12 = add i64 %11, struct_field_2 ; Constant offset +// %p = inttoptr i64 %12 to i32* +// load %p2 +// ... +// +// If the target uses alias analysis in codegen, this pass will lower a GEP +// with multiple indices into multiple GEPs with a single index: +// BB1: +// %1 = bitcast [10 x %struct]* %ptr to i8* ; CSE opportunity +// %2 = mul i64 %i, length_of_10xstruct ; CSE opportunity +// %3 = getelementptr i8* %1, i64 %2 ; CSE opportunity +// %4 = mul i64 %j1, length_of_struct +// %5 = getelementptr i8* %3, i64 %4 +// %6 = getelementptr i8* %5, struct_field_3 ; Constant offset +// %p = bitcast i8* %6 to i32* +// load %p +// ... +// BB2: +// %7 = bitcast [10 x %struct]* %ptr to i8* ; CSE opportunity +// %8 = mul i64 %i, length_of_10xstruct ; CSE opportunity +// %9 = getelementptr i8* %7, i64 %8 ; CSE opportunity +// %10 = mul i64 %j2, length_of_struct +// %11 = getelementptr i8* %9, i64 %10 +// %12 = getelementptr i8* %11, struct_field_2 ; Constant offset +// %p2 = bitcast i8* %12 to i32* +// load %p2 +// ... +// +// Lowering GEPs can also benefit other passes such as LICM and CGP. +// LICM (Loop Invariant Code Motion) can not hoist/sink a GEP of multiple +// indices if one of the index is variant. If we lower such GEP into invariant +// parts and variant parts, LICM can hoist/sink those invariant parts. +// CGP (CodeGen Prepare) tries to sink address calculations that match the +// target's addressing modes. A GEP with multiple indices may not match and will +// not be sunk. If we lower such GEP into smaller parts, CGP may sink some of +// them. So we end up with a better addressing mode. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/TargetTransformInfo.h" #include "llvm/Analysis/ValueTracking.h" diff --git a/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/lib/Transforms/Scalar/SimplifyCFGPass.cpp index 5ee89990db..231411a16c 100644 --- a/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/lib/Transforms/Scalar/SimplifyCFGPass.cpp @@ -1,24 +1,25 @@ //===- SimplifyCFGPass.cpp - CFG Simplification Pass ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyCFGPass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements dead code elimination and basic block merging, along // -// with a collection of other peephole control flow optimizations. For example:// -// // -// * Removes basic blocks with no predecessors. // -// * Merges a basic block into its predecessor if there is only one and the// -// predecessor only has one successor. // -// * Eliminates PHI nodes for basic blocks with a single predecessor. // -// * Eliminates a basic block that only contains an unconditional branch. // -// * Changes invoke instructions to nounwind functions to be calls. // -// * Change things like "if (x) if (y)" into "if (x&y)". // -// * etc.. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements dead code elimination and basic block merging, along +// with a collection of other peephole control flow optimizations. For example: +// +// * Removes basic blocks with no predecessors. +// * Merges a basic block into its predecessor if there is only one and the +// predecessor only has one successor. +// * Eliminates PHI nodes for basic blocks with a single predecessor. +// * Eliminates a basic block that only contains an unconditional branch. +// * Changes invoke instructions to nounwind functions to be calls. +// * Change things like "if (x) if (y)" into "if (x&y)". +// * etc.. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar/SimplifyCFG.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/Scalar/Sink.cpp b/lib/Transforms/Scalar/Sink.cpp index fe7081f485..f49f4eaaed 100644 --- a/lib/Transforms/Scalar/Sink.cpp +++ b/lib/Transforms/Scalar/Sink.cpp @@ -1,15 +1,16 @@ //===-- Sink.cpp - Code Sinking -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Sink.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass moves instructions into successor blocks, when possible, so that// -// they aren't executed on paths where their results aren't needed. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass moves instructions into successor blocks, when possible, so that +// they aren't executed on paths where their results aren't needed. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Scalar/SpeculativeExecution.cpp b/lib/Transforms/Scalar/SpeculativeExecution.cpp index 9e4554f066..ff3f00a2e2 100644 --- a/lib/Transforms/Scalar/SpeculativeExecution.cpp +++ b/lib/Transforms/Scalar/SpeculativeExecution.cpp @@ -1,55 +1,56 @@ //===- SpeculativeExecution.cpp ---------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SpeculativeExecution.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass hoists instructions to enable speculative execution on // -// targets where branches are expensive. This is aimed at GPUs. It // -// currently works on simple if-then and if-then-else // -// patterns. // -// // -// Removing branches is not the only motivation for this // -// pass. E.g. consider this code and assume that there is no // -// addressing mode for multiplying by sizeof(*a): // -// // -// if (b > 0) // -// c = a[i + 1] // -// if (d > 0) // -// e = a[i + 2] // -// // -// turns into // -// // -// p = &a[i + 1]; // -// if (b > 0) // -// c = *p; // -// q = &a[i + 2]; // -// if (d > 0) // -// e = *q; // -// // -// which could later be optimized to // -// // -// r = &a[i]; // -// if (b > 0) // -// c = r[1]; // -// if (d > 0) // -// e = r[2]; // -// // -// Later passes sink back much of the speculated code that did not enable // -// further optimization. // -// // -// This pass is more aggressive than the function SpeculativeyExecuteBB in // -// SimplifyCFG. SimplifyCFG will not speculate if no selects are introduced and// -// it will speculate at most one instruction. It also will not speculate if // -// there is a value defined in the if-block that is only used in the then-block.// -// These restrictions make sense since the speculation in SimplifyCFG seems // -// aimed at introducing cheap selects, while this pass is intended to do more// -// aggressive speculation while counting on later passes to either capitalize on// -// that or clean it up. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass hoists instructions to enable speculative execution on +// targets where branches are expensive. This is aimed at GPUs. It +// currently works on simple if-then and if-then-else +// patterns. +// +// Removing branches is not the only motivation for this +// pass. E.g. consider this code and assume that there is no +// addressing mode for multiplying by sizeof(*a): +// +// if (b > 0) +// c = a[i + 1] +// if (d > 0) +// e = a[i + 2] +// +// turns into +// +// p = &a[i + 1]; +// if (b > 0) +// c = *p; +// q = &a[i + 2]; +// if (d > 0) +// e = *q; +// +// which could later be optimized to +// +// r = &a[i]; +// if (b > 0) +// c = r[1]; +// if (d > 0) +// e = r[2]; +// +// Later passes sink back much of the speculated code that did not enable +// further optimization. +// +// This pass is more aggressive than the function SpeculativeyExecuteBB in +// SimplifyCFG. SimplifyCFG will not speculate if no selects are introduced and +// it will speculate at most one instruction. It also will not speculate if +// there is a value defined in the if-block that is only used in the then-block. +// These restrictions make sense since the speculation in SimplifyCFG seems +// aimed at introducing cheap selects, while this pass is intended to do more +// aggressive speculation while counting on later passes to either capitalize on +// that or clean it up. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallSet.h" #include "llvm/Analysis/TargetTransformInfo.h" diff --git a/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp b/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp index 47c882675c..a4d08c77ed 100644 --- a/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp +++ b/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp @@ -1,59 +1,60 @@ //===-- StraightLineStrengthReduce.cpp - ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StraightLineStrengthReduce.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements straight-line strength reduction (SLSR). Unlike loop // -// strength reduction, this algorithm is designed to reduce arithmetic // -// redundancy in straight-line code instead of loops. It has proven to be // -// effective in simplifying arithmetic statements derived from an unrolled loop.// -// It can also simplify the logic of SeparateConstOffsetFromGEP. // -// // -// There are many optimizations we can perform in the domain of SLSR. This file// -// for now contains only an initial step. Specifically, we look for strength // -// reduction candidates in the following forms: // -// // -// Form 1: B + i * S // -// Form 2: (B + i) * S // -// Form 3: &B[i * S] // -// // -// where S is an integer variable, and i is a constant integer. If we found two// -// candidates S1 and S2 in the same form and S1 dominates S2, we may rewrite S2// -// in a simpler way with respect to S1. For example, // -// // -// S1: X = B + i * S // -// S2: Y = B + i' * S => X + (i' - i) * S // -// // -// S1: X = (B + i) * S // -// S2: Y = (B + i') * S => X + (i' - i) * S // -// // -// S1: X = &B[i * S] // -// S2: Y = &B[i' * S] => &X[(i' - i) * S] // -// // -// Note: (i' - i) * S is folded to the extent possible. // -// // -// This rewriting is in general a good idea. The code patterns we focus on // -// usually come from loop unrolling, so (i' - i) * S is likely the same // -// across iterations and can be reused. When that happens, the optimized form// -// takes only one add starting from the second iteration. // -// // -// When such rewriting is possible, we call S1 a "basis" of S2. When S2 has // -// multiple bases, we choose to rewrite S2 with respect to its "immediate" // -// basis, the basis that is the closest ancestor in the dominator tree. // -// // -// TODO: // -// // -// - Floating point arithmetics when fast math is enabled. // -// // -// - SLSR may decrease ILP at the architecture level. Targets that are very // -// sensitive to ILP may want to disable it. Having SLSR to consider ILP is // -// left as future work. // -// // -// - When (i' - i) is constant but i and i' are not, we could still perform // -// SLSR. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements straight-line strength reduction (SLSR). Unlike loop +// strength reduction, this algorithm is designed to reduce arithmetic +// redundancy in straight-line code instead of loops. It has proven to be +// effective in simplifying arithmetic statements derived from an unrolled loop. +// It can also simplify the logic of SeparateConstOffsetFromGEP. +// +// There are many optimizations we can perform in the domain of SLSR. This file +// for now contains only an initial step. Specifically, we look for strength +// reduction candidates in the following forms: +// +// Form 1: B + i * S +// Form 2: (B + i) * S +// Form 3: &B[i * S] +// +// where S is an integer variable, and i is a constant integer. If we found two +// candidates S1 and S2 in the same form and S1 dominates S2, we may rewrite S2 +// in a simpler way with respect to S1. For example, +// +// S1: X = B + i * S +// S2: Y = B + i' * S => X + (i' - i) * S +// +// S1: X = (B + i) * S +// S2: Y = (B + i') * S => X + (i' - i) * S +// +// S1: X = &B[i * S] +// S2: Y = &B[i' * S] => &X[(i' - i) * S] +// +// Note: (i' - i) * S is folded to the extent possible. +// +// This rewriting is in general a good idea. The code patterns we focus on +// usually come from loop unrolling, so (i' - i) * S is likely the same +// across iterations and can be reused. When that happens, the optimized form +// takes only one add starting from the second iteration. +// +// When such rewriting is possible, we call S1 a "basis" of S2. When S2 has +// multiple bases, we choose to rewrite S2 with respect to its "immediate" +// basis, the basis that is the closest ancestor in the dominator tree. +// +// TODO: +// +// - Floating point arithmetics when fast math is enabled. +// +// - SLSR may decrease ILP at the architecture level. Targets that are very +// sensitive to ILP may want to disable it. Having SLSR to consider ILP is +// left as future work. +// +// - When (i' - i) is constant but i and i' are not, we could still perform +// SLSR. #include // // diff --git a/lib/Transforms/Scalar/StructurizeCFG.cpp b/lib/Transforms/Scalar/StructurizeCFG.cpp index f10ed37e17..4f23e20d25 100644 --- a/lib/Transforms/Scalar/StructurizeCFG.cpp +++ b/lib/Transforms/Scalar/StructurizeCFG.cpp @@ -1,12 +1,11 @@ //===-- StructurizeCFG.cpp ------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StructurizeCFG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/MapVector.h" diff --git a/lib/Transforms/Scalar/TailRecursionElimination.cpp b/lib/Transforms/Scalar/TailRecursionElimination.cpp index ac309ae81a..c7de2e2965 100644 --- a/lib/Transforms/Scalar/TailRecursionElimination.cpp +++ b/lib/Transforms/Scalar/TailRecursionElimination.cpp @@ -1,53 +1,54 @@ //===- TailRecursionElimination.cpp - Eliminate Tail Calls ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TailRecursionElimination.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file transforms calls of the current function (self recursion) followed// -// by a return instruction with a branch to the entry of the function, creating// -// a loop. This pass also implements the following extensions to the basic // -// algorithm: // -// // -// 1. Trivial instructions between the call and return do not prevent the // -// transformation from taking place, though currently the analysis cannot// -// support moving any really useful instructions (only dead ones). // -// 2. This pass transforms functions that are prevented from being tail // -// recursive by an associative and commutative expression to use an // -// accumulator variable, thus compiling the typical naive factorial or // -// 'fib' implementation into efficient code. // -// 3. TRE is performed if the function returns void, if the return // -// returns the result returned by the call, or if the function returns a // -// run-time constant on all exits from the function. It is possible, though// -// unlikely, that the return returns something else (like constant 0), and// -// can still be TRE'd. It can be TRE'd if ALL OTHER return instructions in// -// the function return the exact same value. // -// 4. If it can prove that callees do not access their caller stack frame, // -// they are marked as eligible for tail call elimination (by the code // -// generator). // -// // -// There are several improvements that could be made: // -// // -// 1. If the function has any alloca instructions, these instructions will be// -// moved out of the entry block of the function, causing them to be // -// evaluated each time through the tail recursion. Safely keeping allocas// -// in the entry block requires analysis to proves that the tail-called // -// function does not read or write the stack object. // -// 2. Tail recursion is only performed if the call immediately precedes the // -// return instruction. It's possible that there could be a jump between // -// the call and the return. // -// 3. There can be intervening operations between the call and the return that// -// prevent the TRE from occurring. For example, there could be GEP's and// -// stores to memory that will not be read or written by the call. This // -// requires some substantial analysis (such as with DSA) to prove safe to// -// move ahead of the call, but doing so could allow many more TREs to be // -// performed, for example in TreeAdd/TreeAlloc from the treeadd benchmark.// -// 4. The algorithm we use to detect if callees access their caller stack // -// frames is very primitive. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file transforms calls of the current function (self recursion) followed +// by a return instruction with a branch to the entry of the function, creating +// a loop. This pass also implements the following extensions to the basic +// algorithm: +// +// 1. Trivial instructions between the call and return do not prevent the +// transformation from taking place, though currently the analysis cannot +// support moving any really useful instructions (only dead ones). +// 2. This pass transforms functions that are prevented from being tail +// recursive by an associative and commutative expression to use an +// accumulator variable, thus compiling the typical naive factorial or +// 'fib' implementation into efficient code. +// 3. TRE is performed if the function returns void, if the return +// returns the result returned by the call, or if the function returns a +// run-time constant on all exits from the function. It is possible, though +// unlikely, that the return returns something else (like constant 0), and +// can still be TRE'd. It can be TRE'd if ALL OTHER return instructions in +// the function return the exact same value. +// 4. If it can prove that callees do not access their caller stack frame, +// they are marked as eligible for tail call elimination (by the code +// generator). +// +// There are several improvements that could be made: +// +// 1. If the function has any alloca instructions, these instructions will be +// moved out of the entry block of the function, causing them to be +// evaluated each time through the tail recursion. Safely keeping allocas +// in the entry block requires analysis to proves that the tail-called +// function does not read or write the stack object. +// 2. Tail recursion is only performed if the call immediately precedes the +// return instruction. It's possible that there could be a jump between +// the call and the return. +// 3. There can be intervening operations between the call and the return that +// prevent the TRE from occurring. For example, there could be GEP's and +// stores to memory that will not be read or written by the call. This +// requires some substantial analysis (such as with DSA) to prove safe to +// move ahead of the call, but doing so could allow many more TREs to be +// performed, for example in TreeAdd/TreeAlloc from the treeadd benchmark. +// 4. The algorithm we use to detect if callees access their caller stack +// frames is very primitive. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Utils/ASanStackFrameLayout.cpp b/lib/Transforms/Utils/ASanStackFrameLayout.cpp index 5a8266a700..0a4846bbb4 100644 --- a/lib/Transforms/Utils/ASanStackFrameLayout.cpp +++ b/lib/Transforms/Utils/ASanStackFrameLayout.cpp @@ -1,13 +1,15 @@ //===-- ASanStackFrameLayout.cpp - helper for AddressSanitizer ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASanStackFrameLayout.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of ComputeASanStackFrameLayout (see ASanStackFrameLayout.h). // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of ComputeASanStackFrameLayout (see ASanStackFrameLayout.h). +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/ASanStackFrameLayout.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Transforms/Utils/AddDiscriminators.cpp b/lib/Transforms/Utils/AddDiscriminators.cpp index 87be90bd1a..0d595ad049 100644 --- a/lib/Transforms/Utils/AddDiscriminators.cpp +++ b/lib/Transforms/Utils/AddDiscriminators.cpp @@ -1,56 +1,56 @@ //===- AddDiscriminators.cpp - Insert DWARF path discriminators -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AddDiscriminators.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file adds DWARF discriminators to the IR. Path discriminators are // -// used to decide what CFG path was taken inside sub-graphs whose instructions// -// share the same line and column number information. // -// // -// The main user of this is the sample profiler. Instruction samples are // -// mapped to line number information. Since a single line may be spread // -// out over several basic blocks, discriminators add more precise location // -// for the samples. // -// // -// For example, // -// // -// 1 #define ASSERT(P) // -// 2 if (!(P)) // -// 3 abort() // -// ... // -// 100 while (true) { // -// 101 ASSERT (sum < 0); // -// 102 ... // -// 130 } // -// // -// when converted to IR, this snippet looks something like: // -// // -// while.body: ; preds = %entry, %if.end// -// %0 = load i32* %sum, align 4, !dbg !15 // -// %cmp = icmp slt i32 %0, 0, !dbg !15 // -// br i1 %cmp, label %if.end, label %if.then, !dbg !15 // -// // -// if.then: ; preds = %while.body // -// call void @abort(), !dbg !15 // -// br label %if.end, !dbg !15 // -// // -// Notice that all the instructions in blocks 'while.body' and 'if.then' // -// have exactly the same debug information. When this program is sampled // -// at runtime, the profiler will assume that all these instructions are // -// equally frequent. This, in turn, will consider the edge while.body->if.then// -// to be frequently taken (which is incorrect). // -// // -// By adding a discriminator value to the instructions in block 'if.then', // -// we can distinguish instructions at line 101 with discriminator 0 from // -// the instructions at line 101 with discriminator 1. // -// // -// For more details about DWARF discriminators, please visit // -// http://wiki.dwarfstd.org/index.php?title=Path_Discriminators // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file adds DWARF discriminators to the IR. Path discriminators are +// used to decide what CFG path was taken inside sub-graphs whose instructions +// share the same line and column number information. +// +// The main user of this is the sample profiler. Instruction samples are +// mapped to line number information. Since a single line may be spread +// out over several basic blocks, discriminators add more precise location +// for the samples. +// +// For example, +// +// 1 #define ASSERT(P) +// 2 if (!(P)) +// 3 abort() +// ... +// 100 while (true) { +// 101 ASSERT (sum < 0); +// 102 ... +// 130 } +// +// when converted to IR, this snippet looks something like: +// +// while.body: ; preds = %entry, %if.end +// %0 = load i32* %sum, align 4, !dbg !15 +// %cmp = icmp slt i32 %0, 0, !dbg !15 +// br i1 %cmp, label %if.end, label %if.then, !dbg !15 +// +// if.then: ; preds = %while.body +// call void @abort(), !dbg !15 +// br label %if.end, !dbg !15 +// +// Notice that all the instructions in blocks 'while.body' and 'if.then' +// have exactly the same debug information. When this program is sampled +// at runtime, the profiler will assume that all these instructions are +// equally frequent. This, in turn, will consider the edge while.body->if.then +// to be frequently taken (which is incorrect). +// +// By adding a discriminator value to the instructions in block 'if.then', +// we can distinguish instructions at line 101 with discriminator 0 from +// the instructions at line 101 with discriminator 1. +// +// For more details about DWARF discriminators, please visit +// http://wiki.dwarfstd.org/index.php?title=Path_Discriminators +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/IR/BasicBlock.h" diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp index 2b984f804e..ef7dacac79 100644 --- a/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -1,15 +1,16 @@ //===-- BasicBlockUtils.cpp - BasicBlock Utilities -------------------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicBlockUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions perform manipulations on basic blocks, and // -// instructions contained within basic blocks. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions perform manipulations on basic blocks, and +// instructions contained within basic blocks. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Analysis/AliasAnalysis.h" diff --git a/lib/Transforms/Utils/BreakCriticalEdges.cpp b/lib/Transforms/Utils/BreakCriticalEdges.cpp index 53d91914c3..7e83c9eece 100644 --- a/lib/Transforms/Utils/BreakCriticalEdges.cpp +++ b/lib/Transforms/Utils/BreakCriticalEdges.cpp @@ -1,18 +1,19 @@ //===- BreakCriticalEdges.cpp - Critical Edge Elimination Pass ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BreakCriticalEdges.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// BreakCriticalEdges pass - Break all of the critical edges in the CFG by // -// inserting a dummy basic block. This pass may be "required" by passes that// -// cannot deal with critical edges. For this usage, the structure type is // -// forward declared. This pass obviously invalidates the CFG, but can update// -// dominator trees. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// BreakCriticalEdges pass - Break all of the critical edges in the CFG by +// inserting a dummy basic block. This pass may be "required" by passes that +// cannot deal with critical edges. For this usage, the structure type is +// forward declared. This pass obviously invalidates the CFG, but can update +// dominator trees. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/Utils/BuildLibCalls.cpp b/lib/Transforms/Utils/BuildLibCalls.cpp index b8789328be..8aa7b2a65b 100644 --- a/lib/Transforms/Utils/BuildLibCalls.cpp +++ b/lib/Transforms/Utils/BuildLibCalls.cpp @@ -1,14 +1,15 @@ //===- BuildLibCalls.cpp - Utility builder for libcalls -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuildLibCalls.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements some functions that will create standard C libcalls. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements some functions that will create standard C libcalls. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/BuildLibCalls.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Transforms/Utils/BypassSlowDivision.cpp b/lib/Transforms/Utils/BypassSlowDivision.cpp index 19333b630f..f2d5e07450 100644 --- a/lib/Transforms/Utils/BypassSlowDivision.cpp +++ b/lib/Transforms/Utils/BypassSlowDivision.cpp @@ -1,18 +1,19 @@ //===-- BypassSlowDivision.cpp - Bypass slow division ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BypassSlowDivision.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an optimization for div and rem on architectures that // -// execute short instructions significantly faster than longer instructions. // -// For example, on Intel Atom 32-bit divides are slow enough that during // -// runtime it is profitable to check the value of the operands, and if they are// -// positive and less than 256 use an unsigned 8-bit divide. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains an optimization for div and rem on architectures that +// execute short instructions significantly faster than longer instructions. +// For example, on Intel Atom 32-bit divides are slow enough that during +// runtime it is profitable to check the value of the operands, and if they are +// positive and less than 256 use an unsigned 8-bit divide. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/BypassSlowDivision.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Utils/CMakeLists.txt b/lib/Transforms/Utils/CMakeLists.txt index c3a383f7c0..716e655aff 100644 --- a/lib/Transforms/Utils/CMakeLists.txt +++ b/lib/Transforms/Utils/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_library(LLVMTransformUtils ASanStackFrameLayout.cpp AddDiscriminators.cpp diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 872dd5f4ad..cc4d6c6fb1 100644 --- a/lib/Transforms/Utils/CloneFunction.cpp +++ b/lib/Transforms/Utils/CloneFunction.cpp @@ -1,16 +1,17 @@ //===- CloneFunction.cpp - Clone a function into another function ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CloneFunction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CloneFunctionInto interface, which is used as the// -// low-level function cloner. This is used by the CloneFunction and function// -// inliner to do the dirty work of copying the body of a function around. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CloneFunctionInto interface, which is used as the +// low-level function cloner. This is used by the CloneFunction and function +// inliner to do the dirty work of copying the body of a function around. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/Utils/CloneModule.cpp b/lib/Transforms/Utils/CloneModule.cpp index b322f2f031..69408adc29 100644 --- a/lib/Transforms/Utils/CloneModule.cpp +++ b/lib/Transforms/Utils/CloneModule.cpp @@ -1,15 +1,16 @@ //===- CloneModule.cpp - Clone an entire module ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CloneModule.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CloneModule interface which makes a copy of an // -// entire module. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CloneModule interface which makes a copy of an +// entire module. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/IR/Constant.h" diff --git a/lib/Transforms/Utils/CmpInstAnalysis.cpp b/lib/Transforms/Utils/CmpInstAnalysis.cpp index 5729088aaf..3b15a0a3e6 100644 --- a/lib/Transforms/Utils/CmpInstAnalysis.cpp +++ b/lib/Transforms/Utils/CmpInstAnalysis.cpp @@ -1,15 +1,16 @@ //===- CmpInstAnalysis.cpp - Utils to help fold compares ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CmpInstAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file holds routines to help analyse compare instructions // -// and fold them into constants or other compare instructions // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file holds routines to help analyse compare instructions +// and fold them into constants or other compare instructions +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/CmpInstAnalysis.h" #include "llvm/IR/Constants.h" diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index f889d4e99a..ab89b41f67 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -1,16 +1,17 @@ //===- CodeExtractor.cpp - Pull code region into a new function -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeExtractor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the interface to tear out a code region, such as an // -// individual loop or a parallel section, into a new function, replacing it with// -// a call to the new function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the interface to tear out a code region, such as an +// individual loop or a parallel section, into a new function, replacing it with +// a call to the new function. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/CodeExtractor.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Utils/CtorUtils.cpp b/lib/Transforms/Utils/CtorUtils.cpp index 2800262b48..dc95089cd2 100644 --- a/lib/Transforms/Utils/CtorUtils.cpp +++ b/lib/Transforms/Utils/CtorUtils.cpp @@ -1,14 +1,15 @@ //===- CtorUtils.cpp - Helpers for working with global_ctors ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CtorUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines functions that are used to process llvm.global_ctors. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines functions that are used to process llvm.global_ctors. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/CtorUtils.h" #include "llvm/ADT/BitVector.h" diff --git a/lib/Transforms/Utils/DemoteRegToStack.cpp b/lib/Transforms/Utils/DemoteRegToStack.cpp index 6dcbe9657b..003da58ee7 100644 --- a/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/lib/Transforms/Utils/DemoteRegToStack.cpp @@ -1,12 +1,11 @@ //===- DemoteRegToStack.cpp - Move a virtual register to the stack --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DemoteRegToStack.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Utils/FlattenCFG.cpp b/lib/Transforms/Utils/FlattenCFG.cpp index e44c8d0bae..4eb3e3dd17 100644 --- a/lib/Transforms/Utils/FlattenCFG.cpp +++ b/lib/Transforms/Utils/FlattenCFG.cpp @@ -1,14 +1,15 @@ //===- FlatternCFG.cpp - Code to perform CFG flattening ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FlattenCFG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Reduce conditional branches in CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Reduce conditional branches in CFG. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Local.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/Utils/GlobalStatus.cpp b/lib/Transforms/Utils/GlobalStatus.cpp index ce754809ee..44b7d25d51 100644 --- a/lib/Transforms/Utils/GlobalStatus.cpp +++ b/lib/Transforms/Utils/GlobalStatus.cpp @@ -1,12 +1,11 @@ //===-- GlobalStatus.cpp - Compute status info for globals -----------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalStatus.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallPtrSet.h" #include "llvm/IR/BasicBlock.h" diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index 539ed93158..d2d60d7cd9 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -1,15 +1,16 @@ //===- InlineFunction.cpp - Code to perform function inlining -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InlineFunction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements inlining of a function into a call site, resolving // -// parameters and the return value as appropriate. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements inlining of a function into a call site, resolving +// parameters and the return value as appropriate. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/ADT/SmallSet.h" diff --git a/lib/Transforms/Utils/InstructionNamer.cpp b/lib/Transforms/Utils/InstructionNamer.cpp index 18a6f1512b..da890a2970 100644 --- a/lib/Transforms/Utils/InstructionNamer.cpp +++ b/lib/Transforms/Utils/InstructionNamer.cpp @@ -1,17 +1,18 @@ //===- InstructionNamer.cpp - Give anonymous instructions names -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstructionNamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a little utility pass that gives instructions names, this is mostly// -// useful when diffing the effect of an optimization because deleting an // -// unnamed instruction can change all other instruction numbering, making the// -// diff very noisy. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a little utility pass that gives instructions names, this is mostly +// useful when diffing the effect of an optimization because deleting an +// unnamed instruction can change all other instruction numbering, making the +// diff very noisy. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/IR/Function.h" diff --git a/lib/Transforms/Utils/IntegerDivision.cpp b/lib/Transforms/Utils/IntegerDivision.cpp index b8ebc08d90..30edf3b7aa 100644 --- a/lib/Transforms/Utils/IntegerDivision.cpp +++ b/lib/Transforms/Utils/IntegerDivision.cpp @@ -1,17 +1,18 @@ //===-- IntegerDivision.cpp - Expand integer division ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntegerDivision.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains an implementation of 32bit and 64bit scalar integer // -// division for targets that don't have native support. It's largely derived // -// from compiler-rt's implementations of __udivsi3 and __udivmoddi4, // -// but hand-tuned for targets that prefer less control flow. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains an implementation of 32bit and 64bit scalar integer +// division for targets that don't have native support. It's largely derived +// from compiler-rt's implementations of __udivsi3 and __udivmoddi4, +// but hand-tuned for targets that prefer less control flow. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/IntegerDivision.h" #include "llvm/IR/Function.h" diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index 171d6aa656..9d40b6989d 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/lib/Transforms/Utils/LCSSA.cpp @@ -1,30 +1,31 @@ //===-- LCSSA.cpp - Convert loops into loop-closed SSA form ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LCSSA.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass transforms loops by placing phi nodes at the end of the loops for// -// all values that are live across the loop boundary. For example, it turns // -// the left into the right code: // -// // -// for (...) for (...) // -// if (c) if (c) // -// X1 = ... X1 = ... // -// else else // -// X2 = ... X2 = ... // -// X3 = phi(X1, X2) X3 = phi(X1, X2) // -// ... = X3 + 4 X4 = phi(X3) // -// ... = X4 + 4 // -// // -// This is still valid LLVM; the extra phi nodes are purely redundant, and will// -// be trivially eliminated by InstCombine. The major benefit of this // -// transformation is that it makes many other loop optimizations, such as // -// LoopUnswitching, simpler. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass transforms loops by placing phi nodes at the end of the loops for +// all values that are live across the loop boundary. For example, it turns +// the left into the right code: +// +// for (...) for (...) +// if (c) if (c) +// X1 = ... X1 = ... +// else else +// X2 = ... X2 = ... +// X3 = phi(X1, X2) X3 = phi(X1, X2) +// ... = X3 + 4 X4 = phi(X3) +// ... = X4 + 4 +// +// This is still valid LLVM; the extra phi nodes are purely redundant, and will +// be trivially eliminated by InstCombine. The major benefit of this +// transformation is that it makes many other loop optimizations, such as +// LoopUnswitching, simpler. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Utils/LLVMBuild.txt b/lib/Transforms/Utils/LLVMBuild.txt index d35c1d877f..6b2d405b1f 100644 --- a/lib/Transforms/Utils/LLVMBuild.txt +++ b/lib/Transforms/Utils/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/Utils/LLVMBuild.txt ---------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index 1d163b9e62..50ca6234d0 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -1,15 +1,16 @@ //===-- Local.cpp - Functions to perform local transformations ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Local.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions perform various local transformations to the // -// program. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions perform various local transformations to the +// program. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Local.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 266d3e36c2..5c98043e46 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -1,40 +1,41 @@ //===- LoopSimplify.cpp - Loop Canonicalization Pass ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopSimplify.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass performs several transformations to transform natural loops into a// -// simpler form, which makes subsequent analyses and transformations simpler and// -// more effective. // -// // -// Loop pre-header insertion guarantees that there is a single, non-critical // -// entry edge from outside of the loop to the loop header. This simplifies a// -// number of analyses and transformations, such as LICM. // -// // -// Loop exit-block insertion guarantees that all exit blocks from the loop // -// (blocks which are outside of the loop that have predecessors inside of the// -// loop) only have predecessors from inside of the loop (and are thus dominated// -// by the loop header). This simplifies transformations such as store-sinking// -// that are built into LICM. // -// // -// This pass also guarantees that loops will have exactly one backedge. // -// // -// Indirectbr instructions introduce several complications. If the loop // -// contains or is entered by an indirectbr instruction, it may not be possible// -// to transform the loop and make these guarantees. Client code should check // -// that these conditions are true before relying on them. // -// // -// Note that the simplifycfg pass will clean up blocks which are split out but// -// end up being unnecessary, so usage of this pass should not pessimize // -// generated code. // -// // -// This pass obviously modifies the CFG, but updates loop information and // -// dominator information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass performs several transformations to transform natural loops into a +// simpler form, which makes subsequent analyses and transformations simpler and +// more effective. +// +// Loop pre-header insertion guarantees that there is a single, non-critical +// entry edge from outside of the loop to the loop header. This simplifies a +// number of analyses and transformations, such as LICM. +// +// Loop exit-block insertion guarantees that all exit blocks from the loop +// (blocks which are outside of the loop that have predecessors inside of the +// loop) only have predecessors from inside of the loop (and are thus dominated +// by the loop header). This simplifies transformations such as store-sinking +// that are built into LICM. +// +// This pass also guarantees that loops will have exactly one backedge. +// +// Indirectbr instructions introduce several complications. If the loop +// contains or is entered by an indirectbr instruction, it may not be possible +// to transform the loop and make these guarantees. Client code should check +// that these conditions are true before relying on them. +// +// Note that the simplifycfg pass will clean up blocks which are split out but +// end up being unnecessary, so usage of this pass should not pessimize +// generated code. +// +// This pass obviously modifies the CFG, but updates loop information and +// dominator information. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Transforms/Utils/LoopUnroll.cpp b/lib/Transforms/Utils/LoopUnroll.cpp index ed089d9eeb..1dbce47468 100644 --- a/lib/Transforms/Utils/LoopUnroll.cpp +++ b/lib/Transforms/Utils/LoopUnroll.cpp @@ -1,19 +1,20 @@ //===-- UnrollLoop.cpp - Loop unrolling utilities -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopUnroll.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements some loop unrolling utilities. It does not define any// -// actual pass or policy, but provides a single function to perform loop // -// unrolling. // -// // -// The process of unrolling can produce extraneous basic blocks linked with // -// unconditional branches. This will be corrected in the future. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements some loop unrolling utilities. It does not define any +// actual pass or policy, but provides a single function to perform loop +// unrolling. +// +// The process of unrolling can produce extraneous basic blocks linked with +// unconditional branches. This will be corrected in the future. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/UnrollLoop.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 4e779e8129..add5432aa2 100644 --- a/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -1,24 +1,25 @@ //===-- UnrollLoopRuntime.cpp - Runtime Loop unrolling utilities ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopUnrollRuntime.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements some loop unrolling utilities for loops with run-time// -// trip counts. See LoopUnroll.cpp for unrolling loops with compile-time // -// trip counts. // -// // -// The functions in this file are used to generate extra code when the // -// run-time trip count modulo the unroll factor is not 0. When this is the // -// case, we need to generate code to execute these 'left over' iterations. // -// // -// The current strategy generates an if-then-else sequence prior to the // -// unrolled loop to execute the 'left over' iterations. Other strategies // -// include generate a loop before or after the unrolled loop. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements some loop unrolling utilities for loops with run-time +// trip counts. See LoopUnroll.cpp for unrolling loops with compile-time +// trip counts. +// +// The functions in this file are used to generate extra code when the +// run-time trip count modulo the unroll factor is not 0. When this is the +// case, we need to generate code to execute these 'left over' iterations. +// +// The current strategy generates an if-then-else sequence prior to the +// unrolled loop to execute the 'left over' iterations. Other strategies +// include generate a loop before or after the unrolled loop. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/UnrollLoop.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Utils/LoopUtils.cpp b/lib/Transforms/Utils/LoopUtils.cpp index 3ff829aba2..5cbde94a98 100644 --- a/lib/Transforms/Utils/LoopUtils.cpp +++ b/lib/Transforms/Utils/LoopUtils.cpp @@ -1,14 +1,15 @@ //===-- LoopUtils.cpp - Loop Utility functions -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines common loop utility functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines common loop utility functions. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopInfo.h" #include "llvm/IR/Instructions.h" diff --git a/lib/Transforms/Utils/LoopVersioning.cpp b/lib/Transforms/Utils/LoopVersioning.cpp index 5734f1f71d..832079d2cf 100644 --- a/lib/Transforms/Utils/LoopVersioning.cpp +++ b/lib/Transforms/Utils/LoopVersioning.cpp @@ -1,16 +1,17 @@ //===- LoopVersioning.cpp - Utility to version a loop ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopVersioning.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a utility class to perform loop versioning. The versioned// -// loop speculates that otherwise may-aliasing memory accesses don't overlap and// -// emits checks to prove this. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a utility class to perform loop versioning. The versioned +// loop speculates that otherwise may-aliasing memory accesses don't overlap and +// emits checks to prove this. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LoopAccessAnalysis.h" #include "llvm/Analysis/LoopInfo.h" diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index 032499312a..66d57b069f 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -1,17 +1,18 @@ //===- LowerInvoke.cpp - Eliminate Invoke instructions --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerInvoke.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This transformation is designed for use by code generators which do not yet// -// support stack unwinding. This pass converts 'invoke' instructions to 'call'// -// instructions, so that any exception-handling 'landingpad' blocks become dead// -// code (which can be removed by running the '-simplifycfg' pass afterwards).// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This transformation is designed for use by code generators which do not yet +// support stack unwinding. This pass converts 'invoke' instructions to 'call' +// instructions, so that any exception-handling 'landingpad' blocks become dead +// code (which can be removed by running the '-simplifycfg' pass afterwards). +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/SmallVector.h" diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index 873c5f4d91..4acd988691 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -1,16 +1,17 @@ //===- LowerSwitch.cpp - Eliminate Switch instructions --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerSwitch.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The LowerSwitch transformation rewrites switch instructions with a sequence// -// of branches, which allows targets to get away with not implementing the // -// switch instruction until it is convenient. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The LowerSwitch transformation rewrites switch instructions with a sequence +// of branches, which allows targets to get away with not implementing the +// switch instruction until it is convenient. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp index 4cb529ed11..00cf4e6c01 100644 --- a/lib/Transforms/Utils/Mem2Reg.cpp +++ b/lib/Transforms/Utils/Mem2Reg.cpp @@ -1,15 +1,16 @@ //===- Mem2Reg.cpp - The -mem2reg pass, a wrapper around the Utils lib ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mem2Reg.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is a simple pass wrapper around the PromoteMemToReg function call// -// exposed by the Utils library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is a simple pass wrapper around the PromoteMemToReg function call +// exposed by the Utils library. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/Statistic.h" diff --git a/lib/Transforms/Utils/MetaRenamer.cpp b/lib/Transforms/Utils/MetaRenamer.cpp index 4db5ffe5d5..395a46bad9 100644 --- a/lib/Transforms/Utils/MetaRenamer.cpp +++ b/lib/Transforms/Utils/MetaRenamer.cpp @@ -1,16 +1,17 @@ //===- MetaRenamer.cpp - Rename everything with metasyntatic names --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MetaRenamer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass renames everything with metasyntatic names. The intent is to use// -// this pass after bugpoint reduction to conceal the nature of the original // -// program. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass renames everything with metasyntatic names. The intent is to use +// this pass after bugpoint reduction to conceal the nature of the original +// program. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Utils/ModuleUtils.cpp b/lib/Transforms/Utils/ModuleUtils.cpp index 6fc43d7a4a..d69a81ec47 100644 --- a/lib/Transforms/Utils/ModuleUtils.cpp +++ b/lib/Transforms/Utils/ModuleUtils.cpp @@ -1,14 +1,15 @@ //===-- ModuleUtils.cpp - Functions to manipulate Modules -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This family of functions perform manipulations on Modules. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This family of functions perform manipulations on Modules. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/ModuleUtils.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 45ec2534be..a87f8504bf 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -1,18 +1,19 @@ //===- PromoteMemoryToRegister.cpp - Convert allocas to registers ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PromoteMemoryToRegister.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file promotes memory references to be register references. It promotes// -// alloca instructions which only have loads and stores as uses. An alloca is// -// transformed by using iterated dominator frontiers to place PHI nodes, then// -// traversing the function in depth-first order to rewrite loads and stores as// -// appropriate. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file promotes memory references to be register references. It promotes +// alloca instructions which only have loads and stores as uses. An alloca is +// transformed by using iterated dominator frontiers to place PHI nodes, then +// traversing the function in depth-first order to rewrite loads and stores as +// appropriate. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/PromoteMemToReg.h" #include "llvm/ADT/ArrayRef.h" diff --git a/lib/Transforms/Utils/SSAUpdater.cpp b/lib/Transforms/Utils/SSAUpdater.cpp index b50af2578f..88b39dd7f6 100644 --- a/lib/Transforms/Utils/SSAUpdater.cpp +++ b/lib/Transforms/Utils/SSAUpdater.cpp @@ -1,14 +1,15 @@ //===- SSAUpdater.cpp - Unstructured SSA Update Tool ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SSAUpdater.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SSAUpdater class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SSAUpdater class. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/SSAUpdater.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index f16e32e167..a5faefc326 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1,14 +1,15 @@ //===- SimplifyCFG.cpp - Code to perform CFG simplification ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyCFG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Peephole optimize the CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Peephole optimize the CFG. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Local.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Utils/SimplifyIndVar.cpp b/lib/Transforms/Utils/SimplifyIndVar.cpp index be7ce4d609..ab30aa17c7 100644 --- a/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -1,16 +1,17 @@ //===-- SimplifyIndVar.cpp - Induction variable simplification ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyIndVar.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements induction variable simplification. It does // -// not define any actual pass or policy, but provides a single function to // -// simplify a loop's induction variables based on ScalarEvolution. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements induction variable simplification. It does +// not define any actual pass or policy, but provides a single function to +// simplify a loop's induction variables based on ScalarEvolution. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/SimplifyIndVar.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/Transforms/Utils/SimplifyInstructions.cpp b/lib/Transforms/Utils/SimplifyInstructions.cpp index f3cd58f873..c499c87b1f 100644 --- a/lib/Transforms/Utils/SimplifyInstructions.cpp +++ b/lib/Transforms/Utils/SimplifyInstructions.cpp @@ -1,17 +1,18 @@ //===------ SimplifyInstructions.cpp - Remove redundant instructions ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyInstructions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a utility pass used for testing the InstructionSimplify analysis. // -// The analysis is applied to every instruction, and if it simplifies then the// -// instruction is replaced by the simplification. If you are looking for a pass// -// that performs serious instruction folding, use the instcombine pass instead.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a utility pass used for testing the InstructionSimplify analysis. +// The analysis is applied to every instruction, and if it simplifies then the +// instruction is replaced by the simplification. If you are looking for a pass +// that performs serious instruction folding, use the instcombine pass instead. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar.h" #include "llvm/ADT/DepthFirstIterator.h" diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp index 3283d1bab3..6bbf8287e2 100644 --- a/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -1,17 +1,18 @@ //===------ SimplifyLibCalls.cpp - Library calls simplifier ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimplifyLibCalls.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a utility pass used for testing the InstructionSimplify analysis. // -// The analysis is applied to every instruction, and if it simplifies then the// -// instruction is replaced by the simplification. If you are looking for a pass// -// that performs serious instruction folding, use the instcombine pass instead.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a utility pass used for testing the InstructionSimplify analysis. +// The analysis is applied to every instruction, and if it simplifies then the +// instruction is replaced by the simplification. If you are looking for a pass +// that performs serious instruction folding, use the instcombine pass instead. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/SimplifyLibCalls.h" #include "llvm/ADT/SmallString.h" diff --git a/lib/Transforms/Utils/SymbolRewriter.cpp b/lib/Transforms/Utils/SymbolRewriter.cpp index 5319c6e1d9..a2a54da859 100644 --- a/lib/Transforms/Utils/SymbolRewriter.cpp +++ b/lib/Transforms/Utils/SymbolRewriter.cpp @@ -1,60 +1,61 @@ //===- SymbolRewriter.cpp - Symbol Rewriter ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolRewriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// SymbolRewriter is a LLVM pass which can rewrite symbols transparently within// -// existing code. It is implemented as a compiler pass and is configured via a// -// YAML configuration file. // -// // -// The YAML configuration file format is as follows: // -// // -// RewriteMapFile := RewriteDescriptors // -// RewriteDescriptors := RewriteDescriptor | RewriteDescriptors // -// RewriteDescriptor := RewriteDescriptorType ':' '{' RewriteDescriptorFields '}'// -// RewriteDescriptorFields := RewriteDescriptorField | RewriteDescriptorFields// -// RewriteDescriptorField := FieldIdentifier ':' FieldValue ',' // -// RewriteDescriptorType := Identifier // -// FieldIdentifier := Identifier // -// FieldValue := Identifier // -// Identifier := [0-9a-zA-Z]+ // -// // -// Currently, the following descriptor types are supported: // -// // -// - function: (function rewriting) // -// + Source (original name of the function) // -// + Target (explicit transformation) // -// + Transform (pattern transformation) // -// + Naked (boolean, whether the function is undecorated) // -// - global variable: (external linkage global variable rewriting) // -// + Source (original name of externally visible variable) // -// + Target (explicit transformation) // -// + Transform (pattern transformation) // -// - global alias: (global alias rewriting) // -// + Source (original name of the aliased name) // -// + Target (explicit transformation) // -// + Transform (pattern transformation) // -// // -// Note that source and exactly one of [Target, Transform] must be provided // -// // -// New rewrite descriptors can be created. Addding a new rewrite descriptor // -// involves: // -// // -// a) extended the rewrite descriptor kind enumeration // -// (::RewriteDescriptor::RewriteDescriptorType) // -// b) implementing the new descriptor // -// (c.f. ::ExplicitRewriteFunctionDescriptor) // -// c) extending the rewrite map parser // -// (::RewriteMapParser::parseEntry) // -// // -// Specify to rewrite the symbols using the `-rewrite-symbols` option, and // -// specify the map file to use for the rewriting via the `-rewrite-map-file`// -// option. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// SymbolRewriter is a LLVM pass which can rewrite symbols transparently within +// existing code. It is implemented as a compiler pass and is configured via a +// YAML configuration file. +// +// The YAML configuration file format is as follows: +// +// RewriteMapFile := RewriteDescriptors +// RewriteDescriptors := RewriteDescriptor | RewriteDescriptors +// RewriteDescriptor := RewriteDescriptorType ':' '{' RewriteDescriptorFields '}' +// RewriteDescriptorFields := RewriteDescriptorField | RewriteDescriptorFields +// RewriteDescriptorField := FieldIdentifier ':' FieldValue ',' +// RewriteDescriptorType := Identifier +// FieldIdentifier := Identifier +// FieldValue := Identifier +// Identifier := [0-9a-zA-Z]+ +// +// Currently, the following descriptor types are supported: +// +// - function: (function rewriting) +// + Source (original name of the function) +// + Target (explicit transformation) +// + Transform (pattern transformation) +// + Naked (boolean, whether the function is undecorated) +// - global variable: (external linkage global variable rewriting) +// + Source (original name of externally visible variable) +// + Target (explicit transformation) +// + Transform (pattern transformation) +// - global alias: (global alias rewriting) +// + Source (original name of the aliased name) +// + Target (explicit transformation) +// + Transform (pattern transformation) +// +// Note that source and exactly one of [Target, Transform] must be provided +// +// New rewrite descriptors can be created. Addding a new rewrite descriptor +// involves: +// +// a) extended the rewrite descriptor kind enumeration +// (::RewriteDescriptor::RewriteDescriptorType) +// b) implementing the new descriptor +// (c.f. ::ExplicitRewriteFunctionDescriptor) +// c) extending the rewrite map parser +// (::RewriteMapParser::parseEntry) +// +// Specify to rewrite the symbols using the `-rewrite-symbols` option, and +// specify the map file to use for the rewriting via the `-rewrite-map-file` +// option. +// +//===----------------------------------------------------------------------===// #define DEBUG_TYPE "symbol-rewriter" #include "llvm/CodeGen/Passes.h" diff --git a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index 7120c953f1..7e00a80989 100644 --- a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp @@ -1,17 +1,18 @@ //===- UnifyFunctionExitNodes.cpp - Make all functions have a single exit -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnifyFunctionExitNodes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass is used to ensure that functions have at most one return // -// instruction in them. Additionally, it keeps track of which node is the new// -// exit node of the CFG. If there are no exit nodes in the CFG, the getExitNode// -// method will return a null pointer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass is used to ensure that functions have at most one return +// instruction in them. Additionally, it keeps track of which node is the new +// exit node of the CFG. If there are no exit nodes in the CFG, the getExitNode +// method will return a null pointer. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h" #include "llvm/ADT/StringExtras.h" diff --git a/lib/Transforms/Utils/Utils.cpp b/lib/Transforms/Utils/Utils.cpp index b82519e4bb..ed4f45c6a6 100644 --- a/lib/Transforms/Utils/Utils.cpp +++ b/lib/Transforms/Utils/Utils.cpp @@ -1,15 +1,16 @@ //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Utils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the common initialization infrastructure for the // -// TransformUtils library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the common initialization infrastructure for the +// TransformUtils library. +// +//===----------------------------------------------------------------------===// #include "llvm/InitializePasses.h" #include "llvm-c/Initialization.h" diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 0f78071cf8..8c72641da9 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -1,15 +1,16 @@ //===- ValueMapper.cpp - Interface shared by lib/Transforms/Utils ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueMapper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MapValue function, which is shared by various parts of// -// the lib/Transforms/Utils library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MapValue function, which is shared by various parts of +// the lib/Transforms/Utils library. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/ValueMapper.h" #include "llvm/IR/CallSite.h" diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index 93f938c8a0..215d6f9a1e 100644 --- a/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/lib/Transforms/Vectorize/BBVectorize.cpp @@ -1,17 +1,18 @@ //===- BBVectorize.cpp - A Basic-Block Vectorizer -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BBVectorize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a basic-block vectorization pass. The algorithm was // -// inspired by that used by the Vienna MAP Vectorizor by Franchetti and Kral,// -// et al. It works by looking for chains of pairable operations and then // -// pairing them. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a basic-block vectorization pass. The algorithm was +// inspired by that used by the Vienna MAP Vectorizor by Franchetti and Kral, +// et al. It works by looking for chains of pairable operations and then +// pairing them. +// +//===----------------------------------------------------------------------===// #define BBV_NAME "bb-vectorize" #include "llvm/Transforms/Vectorize.h" diff --git a/lib/Transforms/Vectorize/CMakeLists.txt b/lib/Transforms/Vectorize/CMakeLists.txt index 5eda1fe04c..654d9dc239 100644 --- a/lib/Transforms/Vectorize/CMakeLists.txt +++ b/lib/Transforms/Vectorize/CMakeLists.txt @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. -# HLSL Change - add ignored sources set(HLSL_IGNORE_SOURCES BBVectorize.cpp LoopVectorize.cpp SLPVectorizer.cpp) add_llvm_library(LLVMVectorize diff --git a/lib/Transforms/Vectorize/LLVMBuild.txt b/lib/Transforms/Vectorize/LLVMBuild.txt index 1b64bb3503..be00294ea4 100644 --- a/lib/Transforms/Vectorize/LLVMBuild.txt +++ b/lib/Transforms/Vectorize/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./lib/Transforms/Scalar/LLVMBuild.txt --------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 545c1f258a..69ca2688c8 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -1,47 +1,50 @@ //===- LoopVectorize.cpp - A Loop Vectorizer ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopVectorize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the LLVM loop vectorizer. This pass modifies 'vectorizable' loops // -// and generates target-independent LLVM-IR. // -// The vectorizer uses the TargetTransformInfo analysis to estimate the costs// -// of instructions in order to estimate the profitability of vectorization. // -// // -// The loop vectorizer combines consecutive loop iterations into a single // -// 'wide' iteration. After this transformation the index is incremented // -// by the SIMD vector width, and not by one. // -// // -// This pass has three parts: // -// 1. The main loop pass that drives the different parts. // -// 2. LoopVectorizationLegality - A unit that checks for the legality // -// of the vectorization. // -// 3. InnerLoopVectorizer - A unit that performs the actual // -// widening of instructions. // -// 4. LoopVectorizationCostModel - A unit that checks for the profitability // -// of vectorization. It decides on the optimal vector width, which // -// can be one, if vectorization is not profitable. // -// // -// The reduction-variable vectorization is based on the paper: // -// D. Nuzman and R. Henderson. Multi-platform Auto-vectorization. // -// // -// Variable uniformity checks are inspired by: // -// Karrenberg, R. and Hack, S. Whole Function Vectorization. // -// // -// The interleaved access vectorization is based on the paper: // -// Dorit Nuzman, Ira Rosen and Ayal Zaks. Auto-Vectorization of Interleaved// -// Data for SIMD // -// // -// Other ideas/concepts are from: // -// A. Zaks and D. Nuzman. Autovectorization in GCC-two years later. // -// // -// S. Maleki, Y. Gao, M. Garzaran, T. Wong and D. Padua. An Evaluation of // -// Vectorizing Compilers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the LLVM loop vectorizer. This pass modifies 'vectorizable' loops +// and generates target-independent LLVM-IR. +// The vectorizer uses the TargetTransformInfo analysis to estimate the costs +// of instructions in order to estimate the profitability of vectorization. +// +// The loop vectorizer combines consecutive loop iterations into a single +// 'wide' iteration. After this transformation the index is incremented +// by the SIMD vector width, and not by one. +// +// This pass has three parts: +// 1. The main loop pass that drives the different parts. +// 2. LoopVectorizationLegality - A unit that checks for the legality +// of the vectorization. +// 3. InnerLoopVectorizer - A unit that performs the actual +// widening of instructions. +// 4. LoopVectorizationCostModel - A unit that checks for the profitability +// of vectorization. It decides on the optimal vector width, which +// can be one, if vectorization is not profitable. +// +//===----------------------------------------------------------------------===// +// +// The reduction-variable vectorization is based on the paper: +// D. Nuzman and R. Henderson. Multi-platform Auto-vectorization. +// +// Variable uniformity checks are inspired by: +// Karrenberg, R. and Hack, S. Whole Function Vectorization. +// +// The interleaved access vectorization is based on the paper: +// Dorit Nuzman, Ira Rosen and Ayal Zaks. Auto-Vectorization of Interleaved +// Data for SIMD +// +// Other ideas/concepts are from: +// A. Zaks and D. Nuzman. Autovectorization in GCC-two years later. +// +// S. Maleki, Y. Gao, M. Garzaran, T. Wong and D. Padua. An Evaluation of +// Vectorizing Compilers. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Vectorize.h" #include "llvm/ADT/DenseMap.h" diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 889a0c679d..9c4e5636df 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1,19 +1,20 @@ //===- SLPVectorizer.cpp - A bottom up SLP Vectorizer ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SLPVectorizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This pass implements the Bottom Up SLP vectorizer. It detects consecutive // -// stores that can be put together into vector-stores. Next, it attempts to // -// construct vectorizable tree using the use-def chains. If a profitable tree// -// was found, the SLP vectorizer performs vectorization on the tree. // -// // -// The pass is inspired by the work described in the paper: // -// "Loop-Aware SLP in GCC" by Ira Rosen, Dorit Nuzman, Ayal Zaks. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This pass implements the Bottom Up SLP vectorizer. It detects consecutive +// stores that can be put together into vector-stores. Next, it attempts to +// construct vectorizable tree using the use-def chains. If a profitable tree +// was found, the SLP vectorizer performs vectorization on the tree. +// +// The pass is inspired by the work described in the paper: +// "Loop-Aware SLP in GCC" by Ira Rosen, Dorit Nuzman, Ayal Zaks. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Vectorize.h" #include "llvm/ADT/MapVector.h" diff --git a/lib/Transforms/Vectorize/Vectorize.cpp b/lib/Transforms/Vectorize/Vectorize.cpp index 75a980cd1c..4a4d0af808 100644 --- a/lib/Transforms/Vectorize/Vectorize.cpp +++ b/lib/Transforms/Vectorize/Vectorize.cpp @@ -1,16 +1,17 @@ //===-- Vectorize.cpp -----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Vectorize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements common infrastructure for libLLVMVectorizeOpts.a, which// -// implements several vectorization transformations over the LLVM intermediate// -// representation, including the C bindings for that library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements common infrastructure for libLLVMVectorizeOpts.a, which +// implements several vectorization transformations over the LLVM intermediate +// representation, including the C bindings for that library. +// +//===----------------------------------------------------------------------===// #if HLSL_VECTORIZATION_ENABLED // HLSL Change - don't build vectorization passes diff --git a/projects/CMakeLists.txt b/projects/CMakeLists.txt index ab4d4c5727..d3b2fc37af 100644 --- a/projects/CMakeLists.txt +++ b/projects/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # Discover the projects that use CMake in the subdirectories. # Note that explicit cmake invocation is required every time a new project is # added or removed. diff --git a/projects/LLVMBuild.txt b/projects/LLVMBuild.txt index 90459f95b3..3c24d1a3bd 100644 --- a/projects/LLVMBuild.txt +++ b/projects/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./projects/LLVMBuild.txt ---------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/test/TableGen/Include.inc b/test/TableGen/Include.inc index d7e52277b5..d6d6081442 100644 --- a/test/TableGen/Include.inc +++ b/test/TableGen/Include.inc @@ -1,13 +1,4 @@ -//===- Include.inc ----------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Include.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// This is used by the Include.td test // +// This is used by the Include.td test def InInclude; diff --git a/test/tools/llvm-cov/Inputs/test.cpp b/test/tools/llvm-cov/Inputs/test.cpp index 0e6dc61388..f1f95018b1 100644 --- a/test/tools/llvm-cov/Inputs/test.cpp +++ b/test/tools/llvm-cov/Inputs/test.cpp @@ -1,12 +1,3 @@ -//===- test.cpp -------------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "test.h" #include diff --git a/test/tools/llvm-cov/Inputs/test.h b/test/tools/llvm-cov/Inputs/test.h index 3a8fdcafeb..fa1fdf8d55 100644 --- a/test/tools/llvm-cov/Inputs/test.h +++ b/test/tools/llvm-cov/Inputs/test.h @@ -1,12 +1,3 @@ -//===- test.h ---------------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// test.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// struct A { virtual void B(); diff --git a/test/tools/llvm-cov/range_based_for.cpp b/test/tools/llvm-cov/range_based_for.cpp index 2a7c9ce960..6f7a11ad63 100644 --- a/test/tools/llvm-cov/range_based_for.cpp +++ b/test/tools/llvm-cov/range_based_for.cpp @@ -1,14 +1,5 @@ -//===- range_based_for.cpp ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// range_based_for.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Make sure that compiler-added local variables (whose line number is zero) // -// don't crash llvm-cov. // +// Make sure that compiler-added local variables (whose line number is zero) +// don't crash llvm-cov. // We need shell for cd // REQUIRES: shell diff --git a/test/tools/llvm-cov/report.cpp b/test/tools/llvm-cov/report.cpp index 39de9feda2..3322e1a2c0 100644 --- a/test/tools/llvm-cov/report.cpp +++ b/test/tools/llvm-cov/report.cpp @@ -1,14 +1,5 @@ -//===- report.cpp ------------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// report.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence 2>&1 | FileCheck %s// -// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence report.cpp 2>&1 | FileCheck -check-prefix=FILT-NEXT %s// +// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence 2>&1 | FileCheck %s +// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -filename-equivalence report.cpp 2>&1 | FileCheck -check-prefix=FILT-NEXT %s // CHECK: Filename Regions Miss Cover Functions Executed // CHECK-NEXT: --- diff --git a/test/tools/llvm-cov/showExpansions.cpp b/test/tools/llvm-cov/showExpansions.cpp index 12133d851e..de3898fc89 100644 --- a/test/tools/llvm-cov/showExpansions.cpp +++ b/test/tools/llvm-cov/showExpansions.cpp @@ -1,13 +1,4 @@ -//===- showExpansions.cpp ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// showExpansions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// RUN: llvm-cov show %S/Inputs/showExpansions.covmapping -instr-profile %S/Inputs/showExpansions.profdata -dump -show-expansions -filename-equivalence %s 2>&1 | FileCheck %s// +// RUN: llvm-cov show %S/Inputs/showExpansions.covmapping -instr-profile %S/Inputs/showExpansions.profdata -dump -show-expansions -filename-equivalence %s 2>&1 | FileCheck %s #define DO_SOMETHING_ELSE() \ do { \ diff --git a/test/tools/llvm-cov/showHighlightedRanges.cpp b/test/tools/llvm-cov/showHighlightedRanges.cpp index 46f3aca79c..b5209d40d2 100644 --- a/test/tools/llvm-cov/showHighlightedRanges.cpp +++ b/test/tools/llvm-cov/showHighlightedRanges.cpp @@ -1,13 +1,4 @@ -//===- showHighlightedRanges.cpp ---------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// showHighlightedRanges.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// RUN: llvm-cov show %S/Inputs/highlightedRanges.covmapping -instr-profile %S/Inputs/highlightedRanges.profdata -dump -filename-equivalence %s 2>&1 | FileCheck %s// +// RUN: llvm-cov show %S/Inputs/highlightedRanges.covmapping -instr-profile %S/Inputs/highlightedRanges.profdata -dump -filename-equivalence %s 2>&1 | FileCheck %s void func() { return; diff --git a/test/tools/llvm-cov/showLineExecutionCounts.cpp b/test/tools/llvm-cov/showLineExecutionCounts.cpp index e593a5bfab..83fee977e6 100644 --- a/test/tools/llvm-cov/showLineExecutionCounts.cpp +++ b/test/tools/llvm-cov/showLineExecutionCounts.cpp @@ -1,14 +1,5 @@ -//===- showLineExecutionCounts.cpp ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// showLineExecutionCounts.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Basic handling of line counts. // -// RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata// +// Basic handling of line counts. +// RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata // before any coverage // WHOLE-FILE: | [[@LINE]]|// before // FILTER-NOT: | [[@LINE-1]]|// before diff --git a/test/tools/llvm-cov/showRegionMarkers.cpp b/test/tools/llvm-cov/showRegionMarkers.cpp index 006157b248..5507367c0e 100644 --- a/test/tools/llvm-cov/showRegionMarkers.cpp +++ b/test/tools/llvm-cov/showRegionMarkers.cpp @@ -1,13 +1,4 @@ -//===- showRegionMarkers.cpp ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// showRegionMarkers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// RUN: llvm-profdata merge %S/Inputs/regionMarkers.proftext -o %t.profdata // +// RUN: llvm-profdata merge %S/Inputs/regionMarkers.proftext -o %t.profdata int main() { // CHECK: Marker at [[@LINE]]:12 = 1.11M int x = 0; diff --git a/test/tools/llvm-cov/showTemplateInstantiations.cpp b/test/tools/llvm-cov/showTemplateInstantiations.cpp index b7dc39ec24..a9be473dc9 100644 --- a/test/tools/llvm-cov/showTemplateInstantiations.cpp +++ b/test/tools/llvm-cov/showTemplateInstantiations.cpp @@ -1,14 +1,5 @@ -//===- showTemplateInstantiations.cpp ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// showTemplateInstantiations.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=ALL %s// -// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence -name=_Z4funcIbEiT_ %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s// +// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=ALL %s +// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence -name=_Z4funcIbEiT_ %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s // before coverage // WHOLE-FILE: | [[@LINE]]|// before // FILTER-NOT: | [[@LINE-1]]|// before diff --git a/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp b/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp index 689ed47595..f1f98af419 100644 --- a/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp +++ b/test/tools/llvm-symbolizer/pdb/Inputs/test.cpp @@ -1,14 +1,5 @@ -//===- test.cpp --------------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// To generate the corresponding EXE/PDB, run: // -// cl /Zi test.cpp // +// To generate the corresponding EXE/PDB, run: +// cl /Zi test.cpp namespace NS { struct Foo { diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 5dfe282953..f359f91a1b 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. -# add_llvm_tool_subdirectory(llvm-config) # HLSL Change # Build polly before the tools: the tools link against polly when # LINK_POLLY_INTO_TOOLS is set. diff --git a/tools/LLVMBuild.txt b/tools/LLVMBuild.txt index f586f1ec49..b05db02633 100644 --- a/tools/LLVMBuild.txt +++ b/tools/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/LLVMBuild.txt ------------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/clang/CMakeLists.txt b/tools/clang/CMakeLists.txt index c8085f6bf1..f7961046e0 100644 --- a/tools/clang/CMakeLists.txt +++ b/tools/clang/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. cmake_minimum_required(VERSION 2.8.8) # FIXME: It may be removed when we use 2.8.12. diff --git a/tools/clang/NOTES.txt b/tools/clang/NOTES.txt index 20d5db486f..4e4e5ccb7a 100644 --- a/tools/clang/NOTES.txt +++ b/tools/clang/NOTES.txt @@ -1,5 +1,6 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. +//===---------------------------------------------------------------------===// +// Random Notes +//===---------------------------------------------------------------------===// //===---------------------------------------------------------------------===// // Random Notes //===---------------------------------------------------------------------===// diff --git a/tools/clang/README.txt b/tools/clang/README.txt index 2ff07b15f5..5f09c555d1 100644 --- a/tools/clang/README.txt +++ b/tools/clang/README.txt @@ -1,5 +1,6 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. +//===----------------------------------------------------------------------===// +// C Language Family Front-end +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // C Language Family Front-end //===----------------------------------------------------------------------===// diff --git a/tools/clang/bindings/python/README.txt b/tools/clang/bindings/python/README.txt index ddc8ba90e6..fdfd11ed40 100644 --- a/tools/clang/bindings/python/README.txt +++ b/tools/clang/bindings/python/README.txt @@ -1,5 +1,6 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. +//===----------------------------------------------------------------------===// +// Clang Python Bindings +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // Clang Python Bindings //===----------------------------------------------------------------------===// diff --git a/tools/clang/bindings/python/clang/__init__.py b/tools/clang/bindings/python/clang/__init__.py index f0fd388883..88f3081238 100644 --- a/tools/clang/bindings/python/clang/__init__.py +++ b/tools/clang/bindings/python/clang/__init__.py @@ -1,7 +1,9 @@ #===- __init__.py - Clang Python Bindings --------------------*- python -*--===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# diff --git a/tools/clang/bindings/python/clang/cindex.py b/tools/clang/bindings/python/clang/cindex.py index 070d214535..f5caca8572 100644 --- a/tools/clang/bindings/python/clang/cindex.py +++ b/tools/clang/bindings/python/clang/cindex.py @@ -1,7 +1,9 @@ #===- cindex.py - Python Indexing Library Bindings -----------*- python -*--===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# diff --git a/tools/clang/bindings/python/clang/enumerations.py b/tools/clang/bindings/python/clang/enumerations.py index 6f61db1b0a..a86a48ade3 100644 --- a/tools/clang/bindings/python/clang/enumerations.py +++ b/tools/clang/bindings/python/clang/enumerations.py @@ -1,7 +1,9 @@ #===- enumerations.py - Python Enumerations ------------------*- python -*--===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# diff --git a/tools/clang/examples/CMakeLists.txt b/tools/clang/examples/CMakeLists.txt index a8b1ac79b0..2200585556 100644 --- a/tools/clang/examples/CMakeLists.txt +++ b/tools/clang/examples/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. if(NOT CLANG_BUILD_EXAMPLES) set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL ON) set(EXCLUDE_FROM_ALL ON) diff --git a/tools/clang/examples/analyzer-plugin/CMakeLists.txt b/tools/clang/examples/analyzer-plugin/CMakeLists.txt index 288bba09a2..1788d6c5ca 100644 --- a/tools/clang/examples/analyzer-plugin/CMakeLists.txt +++ b/tools/clang/examples/analyzer-plugin/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp) if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) diff --git a/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp b/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp index 5571aab388..097efe7862 100644 --- a/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp +++ b/tools/clang/examples/analyzer-plugin/MainCallChecker.cpp @@ -1,12 +1,3 @@ -//===- analyzer-plugin\MainCallChecker.cpp -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MainCallChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "clang/StaticAnalyzer/Core/Checker.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/include/CMakeLists.txt b/tools/clang/include/CMakeLists.txt index 9611b0b485..253a09b101 100644 --- a/tools/clang/include/CMakeLists.txt +++ b/tools/clang/include/CMakeLists.txt @@ -1,3 +1 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(clang) diff --git a/tools/clang/include/clang-c/BuildSystem.h b/tools/clang/include/clang-c/BuildSystem.h index a62f05c914..0953eff040 100644 --- a/tools/clang/include/clang-c/BuildSystem.h +++ b/tools/clang/include/clang-c/BuildSystem.h @@ -1,12 +1,15 @@ /*==-- clang-c/BuildSystem.h - Utilities for use by build systems -*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// BuildSystem.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides various utilities for use by build systems. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_BUILDSYSTEM_H #define LLVM_CLANG_C_BUILDSYSTEM_H diff --git a/tools/clang/include/clang-c/CXCompilationDatabase.h b/tools/clang/include/clang-c/CXCompilationDatabase.h index 01dead95c9..11f30fc796 100644 --- a/tools/clang/include/clang-c/CXCompilationDatabase.h +++ b/tools/clang/include/clang-c/CXCompilationDatabase.h @@ -1,12 +1,16 @@ /*===-- clang-c/CXCompilationDatabase.h - Compilation database ---*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CXCompilationDatabase.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides a public inferface to use CompilationDatabase without *| +|* the full Clang C++ API. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_CXCOMPILATIONDATABASE_H #define LLVM_CLANG_C_CXCOMPILATIONDATABASE_H diff --git a/tools/clang/include/clang-c/CXErrorCode.h b/tools/clang/include/clang-c/CXErrorCode.h index aeab0eade6..7f1f8c837c 100644 --- a/tools/clang/include/clang-c/CXErrorCode.h +++ b/tools/clang/include/clang-c/CXErrorCode.h @@ -1,12 +1,15 @@ /*===-- clang-c/CXErrorCode.h - C Index Error Codes --------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CXErrorCode.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides the CXErrorCode enumerators. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_CXERRORCODE_H #define LLVM_CLANG_C_CXERRORCODE_H diff --git a/tools/clang/include/clang-c/CXString.h b/tools/clang/include/clang-c/CXString.h index 20d0df96e9..ebbcc20169 100644 --- a/tools/clang/include/clang-c/CXString.h +++ b/tools/clang/include/clang-c/CXString.h @@ -1,12 +1,15 @@ /*===-- clang-c/CXString.h - C Index strings --------------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CXString.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides the interface to C Index strings. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_CXSTRING_H #define LLVM_CLANG_C_CXSTRING_H diff --git a/tools/clang/include/clang-c/Documentation.h b/tools/clang/include/clang-c/Documentation.h index 5814ad48d4..44b3f54282 100644 --- a/tools/clang/include/clang-c/Documentation.h +++ b/tools/clang/include/clang-c/Documentation.h @@ -1,12 +1,16 @@ /*==-- clang-c/Documentation.h - Utilities for comment processing -*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Documentation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides a supplementary interface for inspecting *| +|* documentation comments. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_DOCUMENTATION_H #define LLVM_CLANG_C_DOCUMENTATION_H diff --git a/tools/clang/include/clang-c/Index.h b/tools/clang/include/clang-c/Index.h index e27b54364d..384a69b34a 100644 --- a/tools/clang/include/clang-c/Index.h +++ b/tools/clang/include/clang-c/Index.h @@ -1,12 +1,17 @@ /*===-- clang-c/Index.h - Indexing Public C Interface -------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Index.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides a public inferface to a Clang library for extracting *| +|* high-level symbol information from source files without exposing the full *| +|* Clang C++ API. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_INDEX_H #define LLVM_CLANG_C_INDEX_H diff --git a/tools/clang/include/clang-c/Platform.h b/tools/clang/include/clang-c/Platform.h index 114402e229..d7e05191a7 100644 --- a/tools/clang/include/clang-c/Platform.h +++ b/tools/clang/include/clang-c/Platform.h @@ -1,12 +1,15 @@ /*===-- clang-c/Platform.h - C Index platform decls -------------*- C -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// Platform.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This header provides platform specific macros (dllimport, deprecated, ...) *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_C_PLATFORM_H #define LLVM_CLANG_C_PLATFORM_H diff --git a/tools/clang/include/clang/ARCMigrate/ARCMT.h b/tools/clang/include/clang/ARCMigrate/ARCMT.h index 50419f452e..74081867ee 100644 --- a/tools/clang/include/clang/ARCMigrate/ARCMT.h +++ b/tools/clang/include/clang/ARCMigrate/ARCMT.h @@ -1,12 +1,11 @@ //===-- ARCMT.h - ARC Migration Rewriter ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCMT.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ARCMIGRATE_ARCMT_H #define LLVM_CLANG_ARCMIGRATE_ARCMT_H diff --git a/tools/clang/include/clang/ARCMigrate/ARCMTActions.h b/tools/clang/include/clang/ARCMigrate/ARCMTActions.h index be9c02b1ae..c830aa3d78 100644 --- a/tools/clang/include/clang/ARCMigrate/ARCMTActions.h +++ b/tools/clang/include/clang/ARCMigrate/ARCMTActions.h @@ -1,12 +1,11 @@ //===--- ARCMTActions.h - ARC Migrate Tool Frontend Actions -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCMTActions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ARCMIGRATE_ARCMTACTIONS_H #define LLVM_CLANG_ARCMIGRATE_ARCMTACTIONS_H diff --git a/tools/clang/include/clang/ARCMigrate/FileRemapper.h b/tools/clang/include/clang/ARCMigrate/FileRemapper.h index 27b2d92b8b..53b88e9eb5 100644 --- a/tools/clang/include/clang/ARCMigrate/FileRemapper.h +++ b/tools/clang/include/clang/ARCMigrate/FileRemapper.h @@ -1,12 +1,11 @@ //===-- FileRemapper.h - File Remapping Helper ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileRemapper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ARCMIGRATE_FILEREMAPPER_H #define LLVM_CLANG_ARCMIGRATE_FILEREMAPPER_H diff --git a/tools/clang/include/clang/AST/APValue.h b/tools/clang/include/clang/AST/APValue.h index f3b346b204..e58c21923f 100644 --- a/tools/clang/include/clang/AST/APValue.h +++ b/tools/clang/include/clang/AST/APValue.h @@ -1,14 +1,15 @@ //===--- APValue.h - Union class for APFloat/APSInt/Complex -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the APValue class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the APValue class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_APVALUE_H #define LLVM_CLANG_AST_APVALUE_H diff --git a/tools/clang/include/clang/AST/AST.h b/tools/clang/include/clang/AST/AST.h index 9753ddd39b..6db351d106 100644 --- a/tools/clang/include/clang/AST/AST.h +++ b/tools/clang/include/clang/AST/AST.h @@ -1,14 +1,15 @@ //===--- AST.h - "Umbrella" header for AST library --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AST.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface to the AST classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface to the AST classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_AST_H #define LLVM_CLANG_AST_AST_H diff --git a/tools/clang/include/clang/AST/ASTConsumer.h b/tools/clang/include/clang/AST/ASTConsumer.h index 085bfba2ed..b2730e4622 100644 --- a/tools/clang/include/clang/AST/ASTConsumer.h +++ b/tools/clang/include/clang/AST/ASTConsumer.h @@ -1,14 +1,15 @@ //===--- ASTConsumer.h - Abstract interface for reading ASTs ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTConsumer class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTConsumer class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTCONSUMER_H #define LLVM_CLANG_AST_ASTCONSUMER_H diff --git a/tools/clang/include/clang/AST/ASTContext.h b/tools/clang/include/clang/AST/ASTContext.h index e337b03211..c834ea9dd2 100644 --- a/tools/clang/include/clang/AST/ASTContext.h +++ b/tools/clang/include/clang/AST/ASTContext.h @@ -1,17 +1,16 @@ //===--- ASTContext.h - Context to hold long-lived AST nodes ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::ASTContext interface. // +/// \file +/// \brief Defines the clang::ASTContext interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTCONTEXT_H #define LLVM_CLANG_AST_ASTCONTEXT_H diff --git a/tools/clang/include/clang/AST/ASTDiagnostic.h b/tools/clang/include/clang/AST/ASTDiagnostic.h index d6b7acb650..27c85e65f2 100644 --- a/tools/clang/include/clang/AST/ASTDiagnostic.h +++ b/tools/clang/include/clang/AST/ASTDiagnostic.h @@ -1,12 +1,11 @@ //===--- ASTDiagnostic.h - Diagnostics for the AST library ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTDIAGNOSTIC_H #define LLVM_CLANG_AST_ASTDIAGNOSTIC_H diff --git a/tools/clang/include/clang/AST/ASTFwd.h b/tools/clang/include/clang/AST/ASTFwd.h index 2fc8856fbf..003d489c1c 100644 --- a/tools/clang/include/clang/AST/ASTFwd.h +++ b/tools/clang/include/clang/AST/ASTFwd.h @@ -1,15 +1,16 @@ //===--- ASTFwd.h ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTFwd.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// \file -// \brief Forward declaration of all AST node types. -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===--------------------------------------------------------------===// +/// +/// \file +/// \brief Forward declaration of all AST node types. +/// +//===-------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTFWD_H #define LLVM_CLANG_AST_ASTFWD_H diff --git a/tools/clang/include/clang/AST/ASTImporter.h b/tools/clang/include/clang/AST/ASTImporter.h index a777da00df..ee48955ca6 100644 --- a/tools/clang/include/clang/AST/ASTImporter.h +++ b/tools/clang/include/clang/AST/ASTImporter.h @@ -1,15 +1,16 @@ //===--- ASTImporter.h - Importing ASTs from other Contexts -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTImporter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTImporter class which imports AST nodes from one // -// context into another context. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTImporter class which imports AST nodes from one +// context into another context. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTIMPORTER_H #define LLVM_CLANG_AST_ASTIMPORTER_H diff --git a/tools/clang/include/clang/AST/ASTLambda.h b/tools/clang/include/clang/AST/ASTLambda.h index 969813e132..69df2d8c01 100644 --- a/tools/clang/include/clang/AST/ASTLambda.h +++ b/tools/clang/include/clang/AST/ASTLambda.h @@ -1,18 +1,17 @@ //===--- ASTLambda.h - Lambda Helper Functions --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTLambda.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file provides some common utility functions for processing // -/// Lambda related AST Constructs. // +/// \file +/// \brief This file provides some common utility functions for processing +/// Lambda related AST Constructs. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTLAMBDA_H #define LLVM_CLANG_AST_ASTLAMBDA_H diff --git a/tools/clang/include/clang/AST/ASTMutationListener.h b/tools/clang/include/clang/AST/ASTMutationListener.h index 9e283a8cac..f4026e9526 100644 --- a/tools/clang/include/clang/AST/ASTMutationListener.h +++ b/tools/clang/include/clang/AST/ASTMutationListener.h @@ -1,14 +1,15 @@ //===--- ASTMutationListener.h - AST Mutation Interface --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMutationListener.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTMutationListener interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTMutationListener interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTMUTATIONLISTENER_H #define LLVM_CLANG_AST_ASTMUTATIONLISTENER_H diff --git a/tools/clang/include/clang/AST/ASTTypeTraits.h b/tools/clang/include/clang/AST/ASTTypeTraits.h index 41f4d083f6..dc3c34f28d 100644 --- a/tools/clang/include/clang/AST/ASTTypeTraits.h +++ b/tools/clang/include/clang/AST/ASTTypeTraits.h @@ -1,16 +1,17 @@ //===--- ASTTypeTraits.h ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTTypeTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Provides a dynamic type identifier and a dynamically typed node container// -// that can be used to store an AST base node at runtime in the same storage in// -// a type safe way. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Provides a dynamic type identifier and a dynamically typed node container +// that can be used to store an AST base node at runtime in the same storage in +// a type safe way. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTTYPETRAITS_H #define LLVM_CLANG_AST_ASTTYPETRAITS_H diff --git a/tools/clang/include/clang/AST/ASTUnresolvedSet.h b/tools/clang/include/clang/AST/ASTUnresolvedSet.h index f8a60d727b..9078a0e802 100644 --- a/tools/clang/include/clang/AST/ASTUnresolvedSet.h +++ b/tools/clang/include/clang/AST/ASTUnresolvedSet.h @@ -1,15 +1,16 @@ //===-- ASTUnresolvedSet.h - Unresolved sets of declarations ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTUnresolvedSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides an UnresolvedSet-like class, whose contents are // -// allocated using the allocator associated with an ASTContext. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides an UnresolvedSet-like class, whose contents are +// allocated using the allocator associated with an ASTContext. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ASTUNRESOLVEDSET_H #define LLVM_CLANG_AST_ASTUNRESOLVEDSET_H diff --git a/tools/clang/include/clang/AST/ASTVector.h b/tools/clang/include/clang/AST/ASTVector.h index 31590ed6b9..79453bf108 100644 --- a/tools/clang/include/clang/AST/ASTVector.h +++ b/tools/clang/include/clang/AST/ASTVector.h @@ -1,15 +1,16 @@ //===- ASTVector.h - Vector that uses ASTContext for allocation --*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides ASTVector, a vector ADT whose contents are // -// allocated using the allocator associated with an ASTContext.. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides ASTVector, a vector ADT whose contents are +// allocated using the allocator associated with an ASTContext.. +// +//===----------------------------------------------------------------------===// // FIXME: Most of this is copy-and-paste from BumpVector.h and SmallVector.h. // We can refactor this core logic into something common. diff --git a/tools/clang/include/clang/AST/Attr.h b/tools/clang/include/clang/AST/Attr.h index dea1218bf0..4e282d68b7 100644 --- a/tools/clang/include/clang/AST/Attr.h +++ b/tools/clang/include/clang/AST/Attr.h @@ -1,14 +1,15 @@ //===--- Attr.h - Classes for representing attributes ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Attr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Attr interface and subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Attr interface and subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ATTR_H #define LLVM_CLANG_AST_ATTR_H diff --git a/tools/clang/include/clang/AST/AttrIterator.h b/tools/clang/include/clang/AST/AttrIterator.h index b92dafdc67..a0c803096a 100644 --- a/tools/clang/include/clang/AST/AttrIterator.h +++ b/tools/clang/include/clang/AST/AttrIterator.h @@ -1,14 +1,15 @@ //===--- AttrIterator.h - Classes for attribute iteration -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttrIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Attr vector and specific_attr_iterator interfaces. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Attr vector and specific_attr_iterator interfaces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_ATTRITERATOR_H #define LLVM_CLANG_AST_ATTRITERATOR_H diff --git a/tools/clang/include/clang/AST/BaseSubobject.h b/tools/clang/include/clang/AST/BaseSubobject.h index 1db14881ec..da538e3566 100644 --- a/tools/clang/include/clang/AST/BaseSubobject.h +++ b/tools/clang/include/clang/AST/BaseSubobject.h @@ -1,14 +1,15 @@ //===--- BaseSubobject.h - BaseSubobject class ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BaseSubobject.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides a definition of the BaseSubobject class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides a definition of the BaseSubobject class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_BASESUBOBJECT_H #define LLVM_CLANG_AST_BASESUBOBJECT_H diff --git a/tools/clang/include/clang/AST/BuiltinTypes.def b/tools/clang/include/clang/AST/BuiltinTypes.def index 4f73be45a0..2ed969220d 100644 --- a/tools/clang/include/clang/AST/BuiltinTypes.def +++ b/tools/clang/include/clang/AST/BuiltinTypes.def @@ -1,36 +1,37 @@ //===-- BuiltinTypeNodes.def - Metadata about BuiltinTypes ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinTypes.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the database about various builtin singleton types. // -// // -// BuiltinType::Id is the enumerator defining the type. // -// // -// Context.SingletonId is the global singleton of this type. Some global // -// singletons are shared by multiple types. // -// // -// BUILTIN_TYPE(Id, SingletonId) - A builtin type that has not been // -// covered by any other #define. Defining this macro covers all // -// the builtins. // -// // -// SIGNED_TYPE(Id, SingletonId) - A signed integral type. // -// // -// UNSIGNED_TYPE(Id, SingletonId) - An unsigned integral type. // -// // -// FLOATING_TYPE(Id, SingletonId) - A floating-point type. // -// // -// PLACEHOLDER_TYPE(Id, SingletonId) - A placeholder type. Placeholder // -// types are used to perform context-sensitive checking of specific // -// forms of expression. // -// // -// SHARED_SINGLETON_TYPE(Expansion) - The given expansion corresponds // -// to a builtin which uses a shared singleton type. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the database about various builtin singleton types. +// +// BuiltinType::Id is the enumerator defining the type. +// +// Context.SingletonId is the global singleton of this type. Some global +// singletons are shared by multiple types. +// +// BUILTIN_TYPE(Id, SingletonId) - A builtin type that has not been +// covered by any other #define. Defining this macro covers all +// the builtins. +// +// SIGNED_TYPE(Id, SingletonId) - A signed integral type. +// +// UNSIGNED_TYPE(Id, SingletonId) - An unsigned integral type. +// +// FLOATING_TYPE(Id, SingletonId) - A floating-point type. +// +// PLACEHOLDER_TYPE(Id, SingletonId) - A placeholder type. Placeholder +// types are used to perform context-sensitive checking of specific +// forms of expression. +// +// SHARED_SINGLETON_TYPE(Expansion) - The given expansion corresponds +// to a builtin which uses a shared singleton type. +// +//===----------------------------------------------------------------------===// #ifndef SIGNED_TYPE #define SIGNED_TYPE(Id, SingletonId) BUILTIN_TYPE(Id, SingletonId) diff --git a/tools/clang/include/clang/AST/CMakeLists.txt b/tools/clang/include/clang/AST/CMakeLists.txt index 2aa5272b88..260734f220 100644 --- a/tools/clang/include/clang/AST/CMakeLists.txt +++ b/tools/clang/include/clang/AST/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. clang_tablegen(Attrs.inc -gen-clang-attr-classes -I ${CMAKE_CURRENT_SOURCE_DIR}/../../ SOURCE ../Basic/Attr.td diff --git a/tools/clang/include/clang/AST/CXXInheritance.h b/tools/clang/include/clang/AST/CXXInheritance.h index 52f1d51467..f7612f21f2 100644 --- a/tools/clang/include/clang/AST/CXXInheritance.h +++ b/tools/clang/include/clang/AST/CXXInheritance.h @@ -1,14 +1,15 @@ //===------ CXXInheritance.h - C++ Inheritance ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXXInheritance.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides routines that help analyzing C++ inheritance hierarchies.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides routines that help analyzing C++ inheritance hierarchies. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_CXXINHERITANCE_H #define LLVM_CLANG_AST_CXXINHERITANCE_H diff --git a/tools/clang/include/clang/AST/CanonicalType.h b/tools/clang/include/clang/AST/CanonicalType.h index 1e4ec8b33a..b25800bfed 100644 --- a/tools/clang/include/clang/AST/CanonicalType.h +++ b/tools/clang/include/clang/AST/CanonicalType.h @@ -1,15 +1,16 @@ //===-- CanonicalType.h - C Language Family Type Representation -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CanonicalType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CanQual class template, which provides access to // -// canonical types. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CanQual class template, which provides access to +// canonical types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_CANONICALTYPE_H #define LLVM_CLANG_AST_CANONICALTYPE_H diff --git a/tools/clang/include/clang/AST/CharUnits.h b/tools/clang/include/clang/AST/CharUnits.h index 50331141f0..72ca9f5cd6 100644 --- a/tools/clang/include/clang/AST/CharUnits.h +++ b/tools/clang/include/clang/AST/CharUnits.h @@ -1,14 +1,15 @@ //===--- CharUnits.h - Character units for sizes and offsets ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CharUnits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CharUnits class // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CharUnits class +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_CHARUNITS_H #define LLVM_CLANG_AST_CHARUNITS_H diff --git a/tools/clang/include/clang/AST/Comment.h b/tools/clang/include/clang/AST/Comment.h index 4f4d26248b..94470cbf30 100644 --- a/tools/clang/include/clang/AST/Comment.h +++ b/tools/clang/include/clang/AST/Comment.h @@ -1,14 +1,15 @@ //===--- Comment.h - Comment AST nodes --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Comment.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines comment AST nodes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines comment AST nodes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENT_H #define LLVM_CLANG_AST_COMMENT_H diff --git a/tools/clang/include/clang/AST/CommentBriefParser.h b/tools/clang/include/clang/AST/CommentBriefParser.h index d84260601f..be5b8eeb80 100644 --- a/tools/clang/include/clang/AST/CommentBriefParser.h +++ b/tools/clang/include/clang/AST/CommentBriefParser.h @@ -1,14 +1,15 @@ //===--- CommentBriefParser.h - Dumb comment parser -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentBriefParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a very simple Doxygen comment parser. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a very simple Doxygen comment parser. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTBRIEFPARSER_H diff --git a/tools/clang/include/clang/AST/CommentCommandTraits.h b/tools/clang/include/clang/AST/CommentCommandTraits.h index 044249d0da..289f2fd345 100644 --- a/tools/clang/include/clang/AST/CommentCommandTraits.h +++ b/tools/clang/include/clang/AST/CommentCommandTraits.h @@ -1,15 +1,16 @@ //===--- CommentCommandTraits.h - Comment command properties ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentCommandTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the class that provides information about comment // -// commands. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the class that provides information about comment +// commands. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTCOMMANDTRAITS_H diff --git a/tools/clang/include/clang/AST/CommentCommands.td b/tools/clang/include/clang/AST/CommentCommands.td index 8ede3ad7b3..958ee032e7 100644 --- a/tools/clang/include/clang/AST/CommentCommands.td +++ b/tools/clang/include/clang/AST/CommentCommands.td @@ -1,12 +1,6 @@ //===----------------------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentCommands.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// Define command classes. +//===----------------------------------------------------------------------===// class Command { string Name = name; diff --git a/tools/clang/include/clang/AST/CommentDiagnostic.h b/tools/clang/include/clang/AST/CommentDiagnostic.h index 2293eb7e3f..f3a209bf6e 100644 --- a/tools/clang/include/clang/AST/CommentDiagnostic.h +++ b/tools/clang/include/clang/AST/CommentDiagnostic.h @@ -1,12 +1,11 @@ //===--- CommentDiagnostic.h - Diagnostics for the AST library --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTDIAGNOSTIC_H #define LLVM_CLANG_AST_COMMENTDIAGNOSTIC_H diff --git a/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td b/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td index 4ca23e688a..c32369ca4d 100644 --- a/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td +++ b/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td @@ -1,11 +1,4 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentHTMLNamedCharacterReferences.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// HTML Named Character Reference // HTML Named Character Reference class NCR { diff --git a/tools/clang/include/clang/AST/CommentHTMLTags.td b/tools/clang/include/clang/AST/CommentHTMLTags.td index 32cde1dfe8..c5226272b8 100644 --- a/tools/clang/include/clang/AST/CommentHTMLTags.td +++ b/tools/clang/include/clang/AST/CommentHTMLTags.td @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentHTMLTags.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// class Tag { string Spelling = spelling; diff --git a/tools/clang/include/clang/AST/CommentLexer.h b/tools/clang/include/clang/AST/CommentLexer.h index f8ad515a26..f190b932c0 100644 --- a/tools/clang/include/clang/AST/CommentLexer.h +++ b/tools/clang/include/clang/AST/CommentLexer.h @@ -1,14 +1,15 @@ //===--- CommentLexer.h - Lexer for structured comments ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines lexer for structured comments and supporting token class.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines lexer for structured comments and supporting token class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTLEXER_H #define LLVM_CLANG_AST_COMMENTLEXER_H diff --git a/tools/clang/include/clang/AST/CommentParser.h b/tools/clang/include/clang/AST/CommentParser.h index 7548d24465..fa8862899c 100644 --- a/tools/clang/include/clang/AST/CommentParser.h +++ b/tools/clang/include/clang/AST/CommentParser.h @@ -1,14 +1,15 @@ //===--- CommentParser.h - Doxygen comment parser ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Doxygen comment parser. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Doxygen comment parser. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTPARSER_H #define LLVM_CLANG_AST_COMMENTPARSER_H diff --git a/tools/clang/include/clang/AST/CommentSema.h b/tools/clang/include/clang/AST/CommentSema.h index 821692cb89..9b05d397ba 100644 --- a/tools/clang/include/clang/AST/CommentSema.h +++ b/tools/clang/include/clang/AST/CommentSema.h @@ -1,14 +1,15 @@ //===--- CommentSema.h - Doxygen comment semantic analysis ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentSema.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the semantic analysis class for Doxygen comments. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the semantic analysis class for Doxygen comments. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTSEMA_H #define LLVM_CLANG_AST_COMMENTSEMA_H diff --git a/tools/clang/include/clang/AST/CommentVisitor.h b/tools/clang/include/clang/AST/CommentVisitor.h index 2f8d756419..21641bfeb8 100644 --- a/tools/clang/include/clang/AST/CommentVisitor.h +++ b/tools/clang/include/clang/AST/CommentVisitor.h @@ -1,12 +1,11 @@ //===--- CommentVisitor.h - Visitor for Comment subclasses ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_COMMENTVISITOR_H #define LLVM_CLANG_AST_COMMENTVISITOR_H diff --git a/tools/clang/include/clang/AST/DataRecursiveASTVisitor.h b/tools/clang/include/clang/AST/DataRecursiveASTVisitor.h index 70300cfed4..dd167fe27c 100644 --- a/tools/clang/include/clang/AST/DataRecursiveASTVisitor.h +++ b/tools/clang/include/clang/AST/DataRecursiveASTVisitor.h @@ -1,15 +1,16 @@ //===--- DataRecursiveASTVisitor.h - Data-Recursive AST Visitor -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataRecursiveASTVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DataRecursiveASTVisitor interface, which recursively// -// traverses the entire AST, using data recursion for Stmts/Exprs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DataRecursiveASTVisitor interface, which recursively +// traverses the entire AST, using data recursion for Stmts/Exprs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DATARECURSIVEASTVISITOR_H #define LLVM_CLANG_AST_DATARECURSIVEASTVISITOR_H diff --git a/tools/clang/include/clang/AST/Decl.h b/tools/clang/include/clang/AST/Decl.h index 04d5fa4297..a1e4cd0814 100644 --- a/tools/clang/include/clang/AST/Decl.h +++ b/tools/clang/include/clang/AST/Decl.h @@ -1,14 +1,15 @@ //===--- Decl.h - Classes for representing declarations ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Decl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Decl subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Decl subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECL_H #define LLVM_CLANG_AST_DECL_H diff --git a/tools/clang/include/clang/AST/DeclAccessPair.h b/tools/clang/include/clang/AST/DeclAccessPair.h index 31eb899deb..3c5056c6e5 100644 --- a/tools/clang/include/clang/AST/DeclAccessPair.h +++ b/tools/clang/include/clang/AST/DeclAccessPair.h @@ -1,18 +1,19 @@ //===--- DeclAccessPair.h - A decl bundled with its path access -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclAccessPair.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DeclAccessPair class, which provides an // -// efficient representation of a pair of a NamedDecl* and an // -// AccessSpecifier. Generally the access specifier gives the // -// natural access of a declaration when named in a class, as // -// defined in C++ [class.access.base]p1. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DeclAccessPair class, which provides an +// efficient representation of a pair of a NamedDecl* and an +// AccessSpecifier. Generally the access specifier gives the +// natural access of a declaration when named in a class, as +// defined in C++ [class.access.base]p1. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLACCESSPAIR_H #define LLVM_CLANG_AST_DECLACCESSPAIR_H diff --git a/tools/clang/include/clang/AST/DeclBase.h b/tools/clang/include/clang/AST/DeclBase.h index 9dba9ab3cc..6b6ac3f7d5 100644 --- a/tools/clang/include/clang/AST/DeclBase.h +++ b/tools/clang/include/clang/AST/DeclBase.h @@ -1,14 +1,15 @@ //===-- DeclBase.h - Base Classes for representing declarations -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclBase.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Decl and DeclContext interfaces. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Decl and DeclContext interfaces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLBASE_H #define LLVM_CLANG_AST_DECLBASE_H diff --git a/tools/clang/include/clang/AST/DeclCXX.h b/tools/clang/include/clang/AST/DeclCXX.h index b5cde7a34d..08451c051b 100644 --- a/tools/clang/include/clang/AST/DeclCXX.h +++ b/tools/clang/include/clang/AST/DeclCXX.h @@ -1,18 +1,17 @@ //===-- DeclCXX.h - Classes for representing C++ declarations -*- C++ -*-=====// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclCXX.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the C++ Decl subclasses, other than those for templates // -/// (found in DeclTemplate.h) and friends (in DeclFriend.h). // +/// \file +/// \brief Defines the C++ Decl subclasses, other than those for templates +/// (found in DeclTemplate.h) and friends (in DeclFriend.h). /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLCXX_H #define LLVM_CLANG_AST_DECLCXX_H diff --git a/tools/clang/include/clang/AST/DeclContextInternals.h b/tools/clang/include/clang/AST/DeclContextInternals.h index cbe094d141..ff37758c25 100644 --- a/tools/clang/include/clang/AST/DeclContextInternals.h +++ b/tools/clang/include/clang/AST/DeclContextInternals.h @@ -1,15 +1,16 @@ //===-- DeclContextInternals.h - DeclContext Representation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclContextInternals.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the data structures used in the implementation // -// of DeclContext. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the data structures used in the implementation +// of DeclContext. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLCONTEXTINTERNALS_H #define LLVM_CLANG_AST_DECLCONTEXTINTERNALS_H diff --git a/tools/clang/include/clang/AST/DeclFriend.h b/tools/clang/include/clang/AST/DeclFriend.h index 4eb6912377..12b93b408a 100644 --- a/tools/clang/include/clang/AST/DeclFriend.h +++ b/tools/clang/include/clang/AST/DeclFriend.h @@ -1,15 +1,16 @@ //===-- DeclFriend.h - Classes for C++ friend declarations -*- C++ -*------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclFriend.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the section of the AST representing C++ friend // -// declarations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the section of the AST representing C++ friend +// declarations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLFRIEND_H #define LLVM_CLANG_AST_DECLFRIEND_H diff --git a/tools/clang/include/clang/AST/DeclGroup.h b/tools/clang/include/clang/AST/DeclGroup.h index 13f390b1fa..bd3dbd8fa7 100644 --- a/tools/clang/include/clang/AST/DeclGroup.h +++ b/tools/clang/include/clang/AST/DeclGroup.h @@ -1,14 +1,15 @@ //===--- DeclGroup.h - Classes for representing groups of Decls -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclGroup.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DeclGroup, DeclGroupRef, and OwningDeclGroup classes.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DeclGroup, DeclGroupRef, and OwningDeclGroup classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLGROUP_H #define LLVM_CLANG_AST_DECLGROUP_H diff --git a/tools/clang/include/clang/AST/DeclLookups.h b/tools/clang/include/clang/AST/DeclLookups.h index 13844ccffb..eba2266724 100644 --- a/tools/clang/include/clang/AST/DeclLookups.h +++ b/tools/clang/include/clang/AST/DeclLookups.h @@ -1,14 +1,15 @@ //===-- DeclLookups.h - Low-level interface to all names in a DC-*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclLookups.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines DeclContext::all_lookups_iterator. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines DeclContext::all_lookups_iterator. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLLOOKUPS_H #define LLVM_CLANG_AST_DECLLOOKUPS_H diff --git a/tools/clang/include/clang/AST/DeclObjC.h b/tools/clang/include/clang/AST/DeclObjC.h index c086bceb82..c42764b6f3 100644 --- a/tools/clang/include/clang/AST/DeclObjC.h +++ b/tools/clang/include/clang/AST/DeclObjC.h @@ -1,14 +1,15 @@ //===--- DeclObjC.h - Classes for representing declarations -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclObjC.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DeclObjC interface and subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DeclObjC interface and subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLOBJC_H #define LLVM_CLANG_AST_DECLOBJC_H diff --git a/tools/clang/include/clang/AST/DeclOpenMP.h b/tools/clang/include/clang/AST/DeclOpenMP.h index 75e1c78751..7f0616f1e6 100644 --- a/tools/clang/include/clang/AST/DeclOpenMP.h +++ b/tools/clang/include/clang/AST/DeclOpenMP.h @@ -1,17 +1,16 @@ //===- DeclOpenMP.h - Classes for representing OpenMP directives -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclOpenMP.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file defines OpenMP nodes for declarative directives. // +/// \file +/// \brief This file defines OpenMP nodes for declarative directives. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLOPENMP_H #define LLVM_CLANG_AST_DECLOPENMP_H diff --git a/tools/clang/include/clang/AST/DeclTemplate.h b/tools/clang/include/clang/AST/DeclTemplate.h index 5239a488a5..9904b091c1 100644 --- a/tools/clang/include/clang/AST/DeclTemplate.h +++ b/tools/clang/include/clang/AST/DeclTemplate.h @@ -1,14 +1,14 @@ //===-- DeclTemplate.h - Classes for representing C++ templates -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclTemplate.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the C++ template declaration subclasses. // +/// \file +/// \brief Defines the C++ template declaration subclasses. /// //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/AST/DeclVisitor.h b/tools/clang/include/clang/AST/DeclVisitor.h index c61e898acb..4eaae35778 100644 --- a/tools/clang/include/clang/AST/DeclVisitor.h +++ b/tools/clang/include/clang/AST/DeclVisitor.h @@ -1,14 +1,15 @@ //===--- DeclVisitor.h - Visitor for Decl subclasses ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DeclVisitor interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DeclVisitor interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLVISITOR_H #define LLVM_CLANG_AST_DECLVISITOR_H diff --git a/tools/clang/include/clang/AST/DeclarationName.h b/tools/clang/include/clang/AST/DeclarationName.h index c84c782496..ec0fb0b971 100644 --- a/tools/clang/include/clang/AST/DeclarationName.h +++ b/tools/clang/include/clang/AST/DeclarationName.h @@ -1,14 +1,15 @@ //===-- DeclarationName.h - Representation of declaration names -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclarationName.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the DeclarationName and DeclarationNameTable classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the DeclarationName and DeclarationNameTable classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DECLARATIONNAME_H #define LLVM_CLANG_AST_DECLARATIONNAME_H diff --git a/tools/clang/include/clang/AST/DependentDiagnostic.h b/tools/clang/include/clang/AST/DependentDiagnostic.h index 37bf89220a..8e038c83c9 100644 --- a/tools/clang/include/clang/AST/DependentDiagnostic.h +++ b/tools/clang/include/clang/AST/DependentDiagnostic.h @@ -1,18 +1,19 @@ //===-- DependentDiagnostic.h - Dependently-generated diagnostics -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependentDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines interfaces for diagnostics which may or may // -// fire based on how a template is instantiated. // // -// At the moment, the only consumer of this interface is access // -// control. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines interfaces for diagnostics which may or may +// fire based on how a template is instantiated. +// +// At the moment, the only consumer of this interface is access +// control. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DEPENDENTDIAGNOSTIC_H #define LLVM_CLANG_AST_DEPENDENTDIAGNOSTIC_H diff --git a/tools/clang/include/clang/AST/EvaluatedExprVisitor.h b/tools/clang/include/clang/AST/EvaluatedExprVisitor.h index 59c0220cf4..ad5287314d 100644 --- a/tools/clang/include/clang/AST/EvaluatedExprVisitor.h +++ b/tools/clang/include/clang/AST/EvaluatedExprVisitor.h @@ -1,16 +1,17 @@ //===--- EvaluatedExprVisitor.h - Evaluated expression visitor --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EvaluatedExprVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the EvaluatedExprVisitor class template, which visits // -// the potentially-evaluated subexpressions of a potentially-evaluated // -// expression. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the EvaluatedExprVisitor class template, which visits +// the potentially-evaluated subexpressions of a potentially-evaluated +// expression. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_EVALUATEDEXPRVISITOR_H #define LLVM_CLANG_AST_EVALUATEDEXPRVISITOR_H diff --git a/tools/clang/include/clang/AST/Expr.h b/tools/clang/include/clang/AST/Expr.h index 3c02ae8217..f455ab6b3e 100644 --- a/tools/clang/include/clang/AST/Expr.h +++ b/tools/clang/include/clang/AST/Expr.h @@ -1,12 +1,13 @@ //===--- Expr.h - Classes for representing expressions ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Expr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Expr interface and subclasses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Expr interface and subclasses. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/AST/ExprCXX.h b/tools/clang/include/clang/AST/ExprCXX.h index 3f6410a392..1dbf5743c1 100644 --- a/tools/clang/include/clang/AST/ExprCXX.h +++ b/tools/clang/include/clang/AST/ExprCXX.h @@ -1,17 +1,16 @@ //===--- ExprCXX.h - Classes for representing expressions -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprCXX.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::Expr interface and subclasses for C++ expressions.// +/// \file +/// \brief Defines the clang::Expr interface and subclasses for C++ expressions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_EXPRCXX_H #define LLVM_CLANG_AST_EXPRCXX_H diff --git a/tools/clang/include/clang/AST/ExprObjC.h b/tools/clang/include/clang/AST/ExprObjC.h index 95342b46fa..f28e5196c7 100644 --- a/tools/clang/include/clang/AST/ExprObjC.h +++ b/tools/clang/include/clang/AST/ExprObjC.h @@ -1,14 +1,15 @@ //===--- ExprObjC.h - Classes for representing ObjC expressions -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprObjC.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ExprObjC interface and subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ExprObjC interface and subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_EXPROBJC_H #define LLVM_CLANG_AST_EXPROBJC_H diff --git a/tools/clang/include/clang/AST/ExternalASTSource.h b/tools/clang/include/clang/AST/ExternalASTSource.h index b7a43aa50d..08c2e0cf26 100644 --- a/tools/clang/include/clang/AST/ExternalASTSource.h +++ b/tools/clang/include/clang/AST/ExternalASTSource.h @@ -1,15 +1,16 @@ //===--- ExternalASTSource.h - Abstract External AST Interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalASTSource.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ExternalASTSource interface, which enables // -// construction of AST nodes from some external source. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ExternalASTSource interface, which enables +// construction of AST nodes from some external source. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_EXTERNALASTSOURCE_H #define LLVM_CLANG_AST_EXTERNALASTSOURCE_H diff --git a/tools/clang/include/clang/AST/GlobalDecl.h b/tools/clang/include/clang/AST/GlobalDecl.h index 65684dbab0..54c9d88c9b 100644 --- a/tools/clang/include/clang/AST/GlobalDecl.h +++ b/tools/clang/include/clang/AST/GlobalDecl.h @@ -1,15 +1,16 @@ //===--- GlobalDecl.h - Global declaration holder ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalDecl.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A GlobalDecl can hold either a regular variable/function or a C++ ctor/dtor// -// together with its type. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A GlobalDecl can hold either a regular variable/function or a C++ ctor/dtor +// together with its type. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_GLOBALDECL_H #define LLVM_CLANG_AST_GLOBALDECL_H diff --git a/tools/clang/include/clang/AST/LambdaCapture.h b/tools/clang/include/clang/AST/LambdaCapture.h index 4fad307817..ddefa88a6b 100644 --- a/tools/clang/include/clang/AST/LambdaCapture.h +++ b/tools/clang/include/clang/AST/LambdaCapture.h @@ -1,17 +1,16 @@ //===--- LambdaCapture.h - Types for C++ Lambda Captures --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LambdaCapture.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the LambdaCapture class. // +/// \file +/// \brief Defines the LambdaCapture class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_LAMBDACAPTURE_H #define LLVM_CLANG_AST_LAMBDACAPTURE_H diff --git a/tools/clang/include/clang/AST/Mangle.h b/tools/clang/include/clang/AST/Mangle.h index 676e97d841..735ae11a23 100644 --- a/tools/clang/include/clang/AST/Mangle.h +++ b/tools/clang/include/clang/AST/Mangle.h @@ -1,14 +1,15 @@ //===--- Mangle.h - Mangle C++ Names ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mangle.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines the C++ name mangling interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines the C++ name mangling interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_MANGLE_H #define LLVM_CLANG_AST_MANGLE_H diff --git a/tools/clang/include/clang/AST/MangleNumberingContext.h b/tools/clang/include/clang/AST/MangleNumberingContext.h index bc965e8654..7a818557fd 100644 --- a/tools/clang/include/clang/AST/MangleNumberingContext.h +++ b/tools/clang/include/clang/AST/MangleNumberingContext.h @@ -1,16 +1,17 @@ //=== MangleNumberingContext.h - Context for mangling numbers ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MangleNumberingContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LambdaBlockMangleContext interface, which keeps track// -// of the Itanium C++ ABI mangling numbers for lambda expressions and block // -// literals. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LambdaBlockMangleContext interface, which keeps track +// of the Itanium C++ ABI mangling numbers for lambda expressions and block +// literals. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_MANGLENUMBERINGCONTEXT_H #define LLVM_CLANG_AST_MANGLENUMBERINGCONTEXT_H diff --git a/tools/clang/include/clang/AST/NSAPI.h b/tools/clang/include/clang/AST/NSAPI.h index 3ccae905b8..583f9d9f1d 100644 --- a/tools/clang/include/clang/AST/NSAPI.h +++ b/tools/clang/include/clang/AST/NSAPI.h @@ -1,12 +1,11 @@ //===--- NSAPI.h - NSFoundation APIs ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NSAPI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_NSAPI_H #define LLVM_CLANG_AST_NSAPI_H diff --git a/tools/clang/include/clang/AST/NestedNameSpecifier.h b/tools/clang/include/clang/AST/NestedNameSpecifier.h index dc9e89a1f9..4da17b0c07 100644 --- a/tools/clang/include/clang/AST/NestedNameSpecifier.h +++ b/tools/clang/include/clang/AST/NestedNameSpecifier.h @@ -1,15 +1,16 @@ //===--- NestedNameSpecifier.h - C++ nested name specifiers -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NestedNameSpecifier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the NestedNameSpecifier class, which represents // -// a C++ nested-name-specifier. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the NestedNameSpecifier class, which represents +// a C++ nested-name-specifier. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_NESTEDNAMESPECIFIER_H #define LLVM_CLANG_AST_NESTEDNAMESPECIFIER_H diff --git a/tools/clang/include/clang/AST/OpenMPClause.h b/tools/clang/include/clang/AST/OpenMPClause.h index b8b4ca0f45..55e12c0016 100644 --- a/tools/clang/include/clang/AST/OpenMPClause.h +++ b/tools/clang/include/clang/AST/OpenMPClause.h @@ -1,15 +1,15 @@ //===- OpenMPClause.h - Classes for OpenMP clauses --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OpenMPClause.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file defines OpenMP AST classes for clauses. // -/// There are clauses for executable directives, clauses for declarative // -/// directives and clauses which can be used in both kinds of directives. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file defines OpenMP AST classes for clauses. +/// There are clauses for executable directives, clauses for declarative +/// directives and clauses which can be used in both kinds of directives. /// //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/AST/OperationKinds.h b/tools/clang/include/clang/AST/OperationKinds.h index 32aee1282d..a6fa791351 100644 --- a/tools/clang/include/clang/AST/OperationKinds.h +++ b/tools/clang/include/clang/AST/OperationKinds.h @@ -1,15 +1,16 @@ //===- OperationKinds.h - Operation enums -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OperationKinds.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file enumerates the different kinds of operations that can be // -// performed by various expressions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file enumerates the different kinds of operations that can be +// performed by various expressions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_OPERATIONKINDS_H #define LLVM_CLANG_AST_OPERATIONKINDS_H diff --git a/tools/clang/include/clang/AST/ParentMap.h b/tools/clang/include/clang/AST/ParentMap.h index 4ec0c52b0c..8945c413d2 100644 --- a/tools/clang/include/clang/AST/ParentMap.h +++ b/tools/clang/include/clang/AST/ParentMap.h @@ -1,14 +1,15 @@ //===--- ParentMap.h - Mappings from Stmts to their Parents -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParentMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ParentMap class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ParentMap class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_PARENTMAP_H #define LLVM_CLANG_AST_PARENTMAP_H diff --git a/tools/clang/include/clang/AST/PrettyPrinter.h b/tools/clang/include/clang/AST/PrettyPrinter.h index b6f1d87a0d..f151b36834 100644 --- a/tools/clang/include/clang/AST/PrettyPrinter.h +++ b/tools/clang/include/clang/AST/PrettyPrinter.h @@ -1,14 +1,15 @@ //===--- PrettyPrinter.h - Classes for aiding with AST printing -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrettyPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PrinterHelper interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PrinterHelper interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_PRETTYPRINTER_H #define LLVM_CLANG_AST_PRETTYPRINTER_H diff --git a/tools/clang/include/clang/AST/RawCommentList.h b/tools/clang/include/clang/AST/RawCommentList.h index 2a1b6026f8..2e005ddbd0 100644 --- a/tools/clang/include/clang/AST/RawCommentList.h +++ b/tools/clang/include/clang/AST/RawCommentList.h @@ -1,12 +1,11 @@ //===--- RawCommentList.h - Classes for processing raw comments -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RawCommentList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_RAWCOMMENTLIST_H #define LLVM_CLANG_AST_RAWCOMMENTLIST_H diff --git a/tools/clang/include/clang/AST/RecordLayout.h b/tools/clang/include/clang/AST/RecordLayout.h index 80b4c4d46a..667f23520e 100644 --- a/tools/clang/include/clang/AST/RecordLayout.h +++ b/tools/clang/include/clang/AST/RecordLayout.h @@ -1,14 +1,15 @@ //===--- RecordLayout.h - Layout information for a struct/union -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecordLayout.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RecordLayout interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RecordLayout interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_RECORDLAYOUT_H #define LLVM_CLANG_AST_RECORDLAYOUT_H diff --git a/tools/clang/include/clang/AST/RecursiveASTVisitor.h b/tools/clang/include/clang/AST/RecursiveASTVisitor.h index f45a5aad26..c8c79664c8 100644 --- a/tools/clang/include/clang/AST/RecursiveASTVisitor.h +++ b/tools/clang/include/clang/AST/RecursiveASTVisitor.h @@ -1,15 +1,16 @@ //===--- RecursiveASTVisitor.h - Recursive AST Visitor ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecursiveASTVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RecursiveASTVisitor interface, which recursively // -// traverses the entire AST. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RecursiveASTVisitor interface, which recursively +// traverses the entire AST. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_RECURSIVEASTVISITOR_H #define LLVM_CLANG_AST_RECURSIVEASTVISITOR_H diff --git a/tools/clang/include/clang/AST/Redeclarable.h b/tools/clang/include/clang/AST/Redeclarable.h index a3a08a838f..92046d582b 100644 --- a/tools/clang/include/clang/AST/Redeclarable.h +++ b/tools/clang/include/clang/AST/Redeclarable.h @@ -1,14 +1,15 @@ //===-- Redeclarable.h - Base for Decls that can be redeclared -*- C++ -*-====// -/////////////////////////////////////////////////////////////////////////////// -// // -// Redeclarable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Redeclarable interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Redeclarable interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_REDECLARABLE_H #define LLVM_CLANG_AST_REDECLARABLE_H diff --git a/tools/clang/include/clang/AST/SelectorLocationsKind.h b/tools/clang/include/clang/AST/SelectorLocationsKind.h index f276d47144..6d903f820c 100644 --- a/tools/clang/include/clang/AST/SelectorLocationsKind.h +++ b/tools/clang/include/clang/AST/SelectorLocationsKind.h @@ -1,15 +1,16 @@ //===--- SelectorLocationsKind.h - Kind of selector locations ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectorLocationsKind.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Describes whether the identifier locations for a selector are "standard" // -// or not. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Describes whether the identifier locations for a selector are "standard" +// or not. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_SELECTORLOCATIONSKIND_H #define LLVM_CLANG_AST_SELECTORLOCATIONSKIND_H diff --git a/tools/clang/include/clang/AST/Stmt.h b/tools/clang/include/clang/AST/Stmt.h index 00bb27c1ff..cd988dd879 100644 --- a/tools/clang/include/clang/AST/Stmt.h +++ b/tools/clang/include/clang/AST/Stmt.h @@ -1,12 +1,13 @@ //===--- Stmt.h - Classes for representing statements -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Stmt.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Stmt interface and subclasses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Stmt interface and subclasses. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/AST/StmtCXX.h b/tools/clang/include/clang/AST/StmtCXX.h index fdfd3aafb7..567a772884 100644 --- a/tools/clang/include/clang/AST/StmtCXX.h +++ b/tools/clang/include/clang/AST/StmtCXX.h @@ -1,14 +1,15 @@ //===--- StmtCXX.h - Classes for representing C++ statements ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtCXX.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C++ statement AST node classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the C++ statement AST node classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_STMTCXX_H #define LLVM_CLANG_AST_STMTCXX_H diff --git a/tools/clang/include/clang/AST/StmtGraphTraits.h b/tools/clang/include/clang/AST/StmtGraphTraits.h index 64ea015ce9..ab636a5ddc 100644 --- a/tools/clang/include/clang/AST/StmtGraphTraits.h +++ b/tools/clang/include/clang/AST/StmtGraphTraits.h @@ -1,15 +1,16 @@ //===--- StmtGraphTraits.h - Graph Traits for the class Stmt ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtGraphTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a template specialization of llvm::GraphTraits to // -// treat ASTs (Stmt*) as graphs // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a template specialization of llvm::GraphTraits to +// treat ASTs (Stmt*) as graphs +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_STMTGRAPHTRAITS_H #define LLVM_CLANG_AST_STMTGRAPHTRAITS_H diff --git a/tools/clang/include/clang/AST/StmtIterator.h b/tools/clang/include/clang/AST/StmtIterator.h index 38744e02ba..a5a57af523 100644 --- a/tools/clang/include/clang/AST/StmtIterator.h +++ b/tools/clang/include/clang/AST/StmtIterator.h @@ -1,14 +1,15 @@ //===--- StmtIterator.h - Iterators for Statements --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtIterator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the StmtIterator and ConstStmtIterator classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the StmtIterator and ConstStmtIterator classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_STMTITERATOR_H #define LLVM_CLANG_AST_STMTITERATOR_H diff --git a/tools/clang/include/clang/AST/StmtObjC.h b/tools/clang/include/clang/AST/StmtObjC.h index 2786b9cf30..68fe3ef697 100644 --- a/tools/clang/include/clang/AST/StmtObjC.h +++ b/tools/clang/include/clang/AST/StmtObjC.h @@ -1,12 +1,11 @@ //===--- StmtObjC.h - Classes for representing ObjC statements --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtObjC.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// \file /// \brief Defines the Objective-C statement AST node classes. diff --git a/tools/clang/include/clang/AST/StmtOpenMP.h b/tools/clang/include/clang/AST/StmtOpenMP.h index a00455ba38..7ecb7acaa1 100644 --- a/tools/clang/include/clang/AST/StmtOpenMP.h +++ b/tools/clang/include/clang/AST/StmtOpenMP.h @@ -1,14 +1,14 @@ //===- StmtOpenMP.h - Classes for OpenMP directives ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtOpenMP.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file defines OpenMP AST classes for executable directives and// -/// clauses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file defines OpenMP AST classes for executable directives and +/// clauses. /// //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/AST/StmtVisitor.h b/tools/clang/include/clang/AST/StmtVisitor.h index b1d95275c4..c71af38b61 100644 --- a/tools/clang/include/clang/AST/StmtVisitor.h +++ b/tools/clang/include/clang/AST/StmtVisitor.h @@ -1,14 +1,15 @@ //===--- StmtVisitor.h - Visitor for Stmt subclasses ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the StmtVisitor and ConstStmtVisitor interfaces. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the StmtVisitor and ConstStmtVisitor interfaces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_STMTVISITOR_H #define LLVM_CLANG_AST_STMTVISITOR_H diff --git a/tools/clang/include/clang/AST/TemplateBase.h b/tools/clang/include/clang/AST/TemplateBase.h index ad6afcb6ed..1d01753c10 100644 --- a/tools/clang/include/clang/AST/TemplateBase.h +++ b/tools/clang/include/clang/AST/TemplateBase.h @@ -1,15 +1,16 @@ //===-- TemplateBase.h - Core classes for C++ templates ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TemplateBase.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides definitions which are common for all kinds of // -// template representation. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides definitions which are common for all kinds of +// template representation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_TEMPLATEBASE_H #define LLVM_CLANG_AST_TEMPLATEBASE_H diff --git a/tools/clang/include/clang/AST/TemplateName.h b/tools/clang/include/clang/AST/TemplateName.h index f7f2b0a608..f3d23b9260 100644 --- a/tools/clang/include/clang/AST/TemplateName.h +++ b/tools/clang/include/clang/AST/TemplateName.h @@ -1,14 +1,15 @@ //===--- TemplateName.h - C++ Template Name Representation-------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TemplateName.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TemplateName interface and subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TemplateName interface and subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_TEMPLATENAME_H #define LLVM_CLANG_AST_TEMPLATENAME_H diff --git a/tools/clang/include/clang/AST/Type.h b/tools/clang/include/clang/AST/Type.h index 0bae165d77..8124edaeee 100644 --- a/tools/clang/include/clang/AST/Type.h +++ b/tools/clang/include/clang/AST/Type.h @@ -1,14 +1,15 @@ //===--- Type.h - C Language Family Type Representation ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Type.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Type interface and subclasses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Type interface and subclasses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_TYPE_H #define LLVM_CLANG_AST_TYPE_H diff --git a/tools/clang/include/clang/AST/TypeLoc.h b/tools/clang/include/clang/AST/TypeLoc.h index e9004885c5..40d92537df 100644 --- a/tools/clang/include/clang/AST/TypeLoc.h +++ b/tools/clang/include/clang/AST/TypeLoc.h @@ -1,14 +1,14 @@ //===--- TypeLoc.h - Type Source Info Wrapper -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeLoc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::TypeLoc interface and its subclasses. // +/// \file +/// \brief Defines the clang::TypeLoc interface and its subclasses. /// //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/AST/TypeLocNodes.def b/tools/clang/include/clang/AST/TypeLocNodes.def index f065c231ea..4590e489e3 100644 --- a/tools/clang/include/clang/AST/TypeLocNodes.def +++ b/tools/clang/include/clang/AST/TypeLocNodes.def @@ -1,24 +1,25 @@ //===-- TypeLocNodes.def - Metadata about TypeLoc wrappers ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeLocNodes.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypeLoc info database. Each node is // -// enumerated by providing its core name (e.g., "Pointer" for "PointerTypeLoc")// -// and base class (e.g., "DeclaratorLoc"). All nodes except QualifiedTypeLoc// -// are associated // -// // -// TYPELOC(Class, Base) - A TypeLoc subclass. If UNQUAL_TYPELOC is // -// provided, there will be exactly one of these, Qualified. // -// // -// UNQUAL_TYPELOC(Class, Base, Type) - An UnqualTypeLoc subclass. // -// // -// ABSTRACT_TYPELOC(Class) - Refers to TypeSpecLoc and DeclaratorLoc. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypeLoc info database. Each node is +// enumerated by providing its core name (e.g., "Pointer" for "PointerTypeLoc") +// and base class (e.g., "DeclaratorLoc"). All nodes except QualifiedTypeLoc +// are associated +// +// TYPELOC(Class, Base) - A TypeLoc subclass. If UNQUAL_TYPELOC is +// provided, there will be exactly one of these, Qualified. +// +// UNQUAL_TYPELOC(Class, Base, Type) - An UnqualTypeLoc subclass. +// +// ABSTRACT_TYPELOC(Class) - Refers to TypeSpecLoc and DeclaratorLoc. +// +//===----------------------------------------------------------------------===// #ifndef UNQUAL_TYPELOC # define UNQUAL_TYPELOC(Class, Base) TYPELOC(Class, Base) diff --git a/tools/clang/include/clang/AST/TypeLocVisitor.h b/tools/clang/include/clang/AST/TypeLocVisitor.h index f1ac329825..db5775aa14 100644 --- a/tools/clang/include/clang/AST/TypeLocVisitor.h +++ b/tools/clang/include/clang/AST/TypeLocVisitor.h @@ -1,14 +1,15 @@ //===--- TypeLocVisitor.h - Visitor for TypeLoc subclasses ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeLocVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypeLocVisitor interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypeLocVisitor interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_TYPELOCVISITOR_H #define LLVM_CLANG_AST_TYPELOCVISITOR_H diff --git a/tools/clang/include/clang/AST/TypeNodes.def b/tools/clang/include/clang/AST/TypeNodes.def index 74d1c5a9c4..2549f0bf50 100644 --- a/tools/clang/include/clang/AST/TypeNodes.def +++ b/tools/clang/include/clang/AST/TypeNodes.def @@ -1,46 +1,47 @@ //===-- TypeNodes.def - Metadata about Type AST nodes -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeNodes.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AST type info database. Each type node is // -// enumerated by providing its name (e.g., "Builtin" or "Enum") and // -// base class (e.g., "Type" or "TagType"). Depending on where in the // -// abstract syntax tree the type will show up, the enumeration uses // -// one of five different macros: // -// // -// TYPE(Class, Base) - A type that can show up anywhere in the AST, // -// and might be dependent, canonical, or non-canonical. All clients // -// will need to understand these types. // -// // -// ABSTRACT_TYPE(Class, Base) - An abstract class that shows up in // -// the type hierarchy but has no concrete instances. // -// // -// NON_CANONICAL_TYPE(Class, Base) - A type that can show up // -// anywhere in the AST but will never be a part of a canonical // -// type. Clients that only need to deal with canonical types // -// (ignoring, e.g., typedefs and other type alises used for // -// pretty-printing) can ignore these types. // -// // -// DEPENDENT_TYPE(Class, Base) - A type that will only show up // -// within a C++ template that has not been instantiated, e.g., a // -// type that is always dependent. Clients that do not need to deal // -// with uninstantiated C++ templates can ignore these types. // -// // -// NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) - A type that // -// is non-canonical unless it is dependent. Defaults to TYPE because // -// it is neither reliably dependent nor reliably non-canonical. // -// // -// There is a sixth macro, independent of the others. Most clients // -// will not need to use it. // -// // -// LEAF_TYPE(Class) - A type that never has inner types. Clients // -// which can operate on such types more efficiently may wish to do so. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AST type info database. Each type node is +// enumerated by providing its name (e.g., "Builtin" or "Enum") and +// base class (e.g., "Type" or "TagType"). Depending on where in the +// abstract syntax tree the type will show up, the enumeration uses +// one of five different macros: +// +// TYPE(Class, Base) - A type that can show up anywhere in the AST, +// and might be dependent, canonical, or non-canonical. All clients +// will need to understand these types. +// +// ABSTRACT_TYPE(Class, Base) - An abstract class that shows up in +// the type hierarchy but has no concrete instances. +// +// NON_CANONICAL_TYPE(Class, Base) - A type that can show up +// anywhere in the AST but will never be a part of a canonical +// type. Clients that only need to deal with canonical types +// (ignoring, e.g., typedefs and other type alises used for +// pretty-printing) can ignore these types. +// +// DEPENDENT_TYPE(Class, Base) - A type that will only show up +// within a C++ template that has not been instantiated, e.g., a +// type that is always dependent. Clients that do not need to deal +// with uninstantiated C++ templates can ignore these types. +// +// NON_CANONICAL_UNLESS_DEPENDENT_TYPE(Class, Base) - A type that +// is non-canonical unless it is dependent. Defaults to TYPE because +// it is neither reliably dependent nor reliably non-canonical. +// +// There is a sixth macro, independent of the others. Most clients +// will not need to use it. +// +// LEAF_TYPE(Class) - A type that never has inner types. Clients +// which can operate on such types more efficiently may wish to do so. +// +//===----------------------------------------------------------------------===// #ifndef ABSTRACT_TYPE # define ABSTRACT_TYPE(Class, Base) TYPE(Class, Base) diff --git a/tools/clang/include/clang/AST/TypeOrdering.h b/tools/clang/include/clang/AST/TypeOrdering.h index 88c4eac43b..392e544d90 100644 --- a/tools/clang/include/clang/AST/TypeOrdering.h +++ b/tools/clang/include/clang/AST/TypeOrdering.h @@ -1,21 +1,20 @@ //===-------------- TypeOrdering.h - Total ordering for types -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeOrdering.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Allows QualTypes to be sorted and hence used in maps and sets. // +/// \file +/// \brief Allows QualTypes to be sorted and hence used in maps and sets. /// -/// Defines clang::QualTypeOrdering, a total ordering on clang::QualType, // -/// and hence enables QualType values to be sorted and to be used in // -/// std::maps, std::sets, llvm::DenseMaps, and llvm::DenseSets. // +/// Defines clang::QualTypeOrdering, a total ordering on clang::QualType, +/// and hence enables QualType values to be sorted and to be used in +/// std::maps, std::sets, llvm::DenseMaps, and llvm::DenseSets. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_TYPEORDERING_H #define LLVM_CLANG_AST_TYPEORDERING_H diff --git a/tools/clang/include/clang/AST/TypeVisitor.h b/tools/clang/include/clang/AST/TypeVisitor.h index 22b5323f16..11e5a47f1f 100644 --- a/tools/clang/include/clang/AST/TypeVisitor.h +++ b/tools/clang/include/clang/AST/TypeVisitor.h @@ -1,14 +1,15 @@ //===--- TypeVisitor.h - Visitor for Type subclasses ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypeVisitor interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypeVisitor interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_TYPEVISITOR_H #define LLVM_CLANG_AST_TYPEVISITOR_H diff --git a/tools/clang/include/clang/AST/UnresolvedSet.h b/tools/clang/include/clang/AST/UnresolvedSet.h index c32485601b..26ee1cf71c 100644 --- a/tools/clang/include/clang/AST/UnresolvedSet.h +++ b/tools/clang/include/clang/AST/UnresolvedSet.h @@ -1,15 +1,16 @@ //===-- UnresolvedSet.h - Unresolved sets of declarations ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnresolvedSet.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the UnresolvedSet class, which is used to store // -// collections of declarations in the AST. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the UnresolvedSet class, which is used to store +// collections of declarations in the AST. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_UNRESOLVEDSET_H #define LLVM_CLANG_AST_UNRESOLVEDSET_H diff --git a/tools/clang/include/clang/AST/VTTBuilder.h b/tools/clang/include/clang/AST/VTTBuilder.h index 520545e992..727bf5109a 100644 --- a/tools/clang/include/clang/AST/VTTBuilder.h +++ b/tools/clang/include/clang/AST/VTTBuilder.h @@ -1,15 +1,16 @@ //===--- VTTBuilder.h - C++ VTT layout builder --------------------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// VTTBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with generation of the layout of virtual table // -// tables (VTT). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with generation of the layout of virtual table +// tables (VTT). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_VTTBUILDER_H #define LLVM_CLANG_AST_VTTBUILDER_H diff --git a/tools/clang/include/clang/AST/VTableBuilder.h b/tools/clang/include/clang/AST/VTableBuilder.h index 213efba191..ebfbb8ad04 100644 --- a/tools/clang/include/clang/AST/VTableBuilder.h +++ b/tools/clang/include/clang/AST/VTableBuilder.h @@ -1,14 +1,15 @@ //===--- VTableBuilder.h - C++ vtable layout builder --------------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// VTableBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with generation of the layout of virtual tables.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with generation of the layout of virtual tables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_VTABLEBUILDER_H #define LLVM_CLANG_AST_VTABLEBUILDER_H diff --git a/tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h b/tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h index 4fcfc15d32..ce2674e442 100644 --- a/tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h +++ b/tools/clang/include/clang/ASTMatchers/ASTMatchFinder.h @@ -1,41 +1,42 @@ //===--- ASTMatchFinder.h - Structural query framework ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchFinder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Provides a way to construct an ASTConsumer that runs given matchers // -// over the AST and invokes a given callback on every match. // // -// The general idea is to construct a matcher expression that describes a // -// subtree match on the AST. Next, a callback that is executed every time the// -// expression matches is registered, and the matcher is run over the AST of // -// some code. Matched subexpressions can be bound to string IDs and easily // -// be accessed from the registered callback. The callback can than use the // -// AST nodes that the subexpressions matched on to output information about // -// the match or construct changes that can be applied to the code. // +// The LLVM Compiler Infrastructure // -// Example: // -// class HandleMatch : public MatchFinder::MatchCallback { // -// public: // -// virtual void Run(const MatchFinder::MatchResult &Result) { // -// const CXXRecordDecl *Class = // -// Result.Nodes.GetDeclAs("id"); // -// ... // -// } // -// }; // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// int main(int argc, char **argv) { // -// ClangTool Tool(argc, argv); // -// MatchFinder finder; // -// finder.AddMatcher(Id("id", record(hasName("::a_namespace::AClass"))), // -// new HandleMatch); // -// return Tool.Run(newFrontendActionFactory(&finder)); // -// } // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// Provides a way to construct an ASTConsumer that runs given matchers +// over the AST and invokes a given callback on every match. +// +// The general idea is to construct a matcher expression that describes a +// subtree match on the AST. Next, a callback that is executed every time the +// expression matches is registered, and the matcher is run over the AST of +// some code. Matched subexpressions can be bound to string IDs and easily +// be accessed from the registered callback. The callback can than use the +// AST nodes that the subexpressions matched on to output information about +// the match or construct changes that can be applied to the code. +// +// Example: +// class HandleMatch : public MatchFinder::MatchCallback { +// public: +// virtual void Run(const MatchFinder::MatchResult &Result) { +// const CXXRecordDecl *Class = +// Result.Nodes.GetDeclAs("id"); +// ... +// } +// }; +// +// int main(int argc, char **argv) { +// ClangTool Tool(argc, argv); +// MatchFinder finder; +// finder.AddMatcher(Id("id", record(hasName("::a_namespace::AClass"))), +// new HandleMatch); +// return Tool.Run(newFrontendActionFactory(&finder)); +// } +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_ASTMATCHFINDER_H #define LLVM_CLANG_ASTMATCHERS_ASTMATCHFINDER_H diff --git a/tools/clang/include/clang/ASTMatchers/ASTMatchers.h b/tools/clang/include/clang/ASTMatchers/ASTMatchers.h index cbeaaab5a2..281d6370e5 100644 --- a/tools/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/tools/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -1,45 +1,46 @@ //===--- ASTMatchers.h - Structural query framework -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements matchers to be used together with the MatchFinder to// -// match AST nodes. // // -// Matchers are created by generator functions, which can be combined in // -// a functional in-language DSL to express queries over the C++ AST. // +// The LLVM Compiler Infrastructure // -// For example, to match a class with a certain name, one would call: // -// recordDecl(hasName("MyClass")) // -// which returns a matcher that can be used to find all AST nodes that declare// -// a class named 'MyClass'. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// For more complicated match expressions we're often interested in accessing// -// multiple parts of the matched AST nodes once a match is found. In that case,// -// use the id(...) matcher around the match expressions that match the nodes// -// you want to access. // +//===----------------------------------------------------------------------===// // -// For example, when we're interested in child classes of a certain class, we// -// would write: // -// recordDecl(hasName("MyClass"), hasChild(id("child", recordDecl()))) // -// When the match is found via the MatchFinder, a user provided callback will// -// be called with a BoundNodes instance that contains a mapping from the // -// strings that we provided for the id(...) calls to the nodes that were // -// matched. // -// In the given example, each time our matcher finds a match we get a callback// -// where "child" is bound to the CXXRecordDecl node of the matching child // -// class declaration. // +// This file implements matchers to be used together with the MatchFinder to +// match AST nodes. // -// See ASTMatchersInternal.h for a more in-depth explanation of the // -// implementation details of the matcher framework. // +// Matchers are created by generator functions, which can be combined in +// a functional in-language DSL to express queries over the C++ AST. // -// See ASTMatchFinder.h for how to use the generated matchers to run over // -// an AST. // +// For example, to match a class with a certain name, one would call: +// recordDecl(hasName("MyClass")) +// which returns a matcher that can be used to find all AST nodes that declare +// a class named 'MyClass'. // -/////////////////////////////////////////////////////////////////////////////// +// For more complicated match expressions we're often interested in accessing +// multiple parts of the matched AST nodes once a match is found. In that case, +// use the id(...) matcher around the match expressions that match the nodes +// you want to access. +// +// For example, when we're interested in child classes of a certain class, we +// would write: +// recordDecl(hasName("MyClass"), hasChild(id("child", recordDecl()))) +// When the match is found via the MatchFinder, a user provided callback will +// be called with a BoundNodes instance that contains a mapping from the +// strings that we provided for the id(...) calls to the nodes that were +// matched. +// In the given example, each time our matcher finds a match we get a callback +// where "child" is bound to the CXXRecordDecl node of the matching child +// class declaration. +// +// See ASTMatchersInternal.h for a more in-depth explanation of the +// implementation details of the matcher framework. +// +// See ASTMatchFinder.h for how to use the generated matchers to run over +// an AST. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_ASTMATCHERS_H #define LLVM_CLANG_ASTMATCHERS_ASTMATCHERS_H diff --git a/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h b/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h index 984bf7f01b..b494647d79 100644 --- a/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h +++ b/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -1,35 +1,36 @@ //===--- ASTMatchersInternal.h - Structural query framework -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchersInternal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements the base layer of the matcher framework. // // -// Matchers are methods that return a Matcher which provides a method // -// Matches(...) which is a predicate on an AST node. The Matches method's // -// parameters define the context of the match, which allows matchers to recurse// -// or store the current node as bound to a specific string, so that it can be// -// retrieved later. // +// The LLVM Compiler Infrastructure // -// In general, matchers have two parts: // -// 1. A function Matcher MatcherName() which returns a Matcher// -// based on the arguments and optionally on template type deduction based// -// on the arguments. Matchers form an implicit reverse hierarchy // -// to clang's AST class hierarchy, meaning that you can use a Matcher// -// everywhere a Matcher is required. // -// 2. An implementation of a class derived from MatcherInterface. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// The matcher functions are defined in ASTMatchers.h. To make it possible // -// to implement both the matcher function and the implementation of the matcher// -// interface in one place, ASTMatcherMacros.h defines macros that allow // -// implementing a matcher in a single place. // +//===----------------------------------------------------------------------===// // -// This file contains the base classes needed to construct the actual matchers.// +// Implements the base layer of the matcher framework. // -/////////////////////////////////////////////////////////////////////////////// +// Matchers are methods that return a Matcher which provides a method +// Matches(...) which is a predicate on an AST node. The Matches method's +// parameters define the context of the match, which allows matchers to recurse +// or store the current node as bound to a specific string, so that it can be +// retrieved later. +// +// In general, matchers have two parts: +// 1. A function Matcher MatcherName() which returns a Matcher +// based on the arguments and optionally on template type deduction based +// on the arguments. Matchers form an implicit reverse hierarchy +// to clang's AST class hierarchy, meaning that you can use a Matcher +// everywhere a Matcher is required. +// 2. An implementation of a class derived from MatcherInterface. +// +// The matcher functions are defined in ASTMatchers.h. To make it possible +// to implement both the matcher function and the implementation of the matcher +// interface in one place, ASTMatcherMacros.h defines macros that allow +// implementing a matcher in a single place. +// +// This file contains the base classes needed to construct the actual matchers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_ASTMATCHERSINTERNAL_H #define LLVM_CLANG_ASTMATCHERS_ASTMATCHERSINTERNAL_H diff --git a/tools/clang/include/clang/ASTMatchers/ASTMatchersMacros.h b/tools/clang/include/clang/ASTMatchers/ASTMatchersMacros.h index 6abf356a77..8ad0c16ef8 100644 --- a/tools/clang/include/clang/ASTMatchers/ASTMatchersMacros.h +++ b/tools/clang/include/clang/ASTMatchers/ASTMatchersMacros.h @@ -1,50 +1,51 @@ //===--- ASTMatchersMacros.h - Structural query framework -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchersMacros.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines macros that enable us to define new matchers in a single place. // -// Since a matcher is a function which returns a Matcher object, where // -// T is the type of the actual implementation of the matcher, the macros allow// -// us to write matchers like functions and take care of the definition of the// -// class boilerplate. // // -// Note that when you define a matcher with an AST_MATCHER* macro, only the // -// function which creates the matcher goes into the current namespace - the // -// class that implements the actual matcher, which gets returned by the // -// generator function, is put into the 'internal' namespace. This allows us // -// to only have the functions (which is all the user cares about) in the // -// 'ast_matchers' namespace and hide the boilerplate. // +// The LLVM Compiler Infrastructure // -// To define a matcher in user code, put it into your own namespace. This would// -// help to prevent ODR violations in case a matcher with the same name is // -// defined in multiple translation units: // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// namespace my_matchers { // -// AST_MATCHER_P(clang::MemberExpr, Member, // -// clang::ast_matchers::internal::Matcher, // -// InnerMatcher) { // -// return InnerMatcher.matches(*Node.getMemberDecl(), Finder, Builder); // -// } // -// } // namespace my_matchers // +//===----------------------------------------------------------------------===// // -// Alternatively, an unnamed namespace may be used: // +// Defines macros that enable us to define new matchers in a single place. +// Since a matcher is a function which returns a Matcher object, where +// T is the type of the actual implementation of the matcher, the macros allow +// us to write matchers like functions and take care of the definition of the +// class boilerplate. // -// namespace clang { // -// namespace ast_matchers { // -// namespace { // -// AST_MATCHER_P(MemberExpr, Member, // -// internal::Matcher, InnerMatcher) { // -// return InnerMatcher.matches(*Node.getMemberDecl(), Finder, Builder); // -// } // -// } // namespace // -// } // namespace ast_matchers // -// } // namespace clang // +// Note that when you define a matcher with an AST_MATCHER* macro, only the +// function which creates the matcher goes into the current namespace - the +// class that implements the actual matcher, which gets returned by the +// generator function, is put into the 'internal' namespace. This allows us +// to only have the functions (which is all the user cares about) in the +// 'ast_matchers' namespace and hide the boilerplate. // -/////////////////////////////////////////////////////////////////////////////// +// To define a matcher in user code, put it into your own namespace. This would +// help to prevent ODR violations in case a matcher with the same name is +// defined in multiple translation units: +// +// namespace my_matchers { +// AST_MATCHER_P(clang::MemberExpr, Member, +// clang::ast_matchers::internal::Matcher, +// InnerMatcher) { +// return InnerMatcher.matches(*Node.getMemberDecl(), Finder, Builder); +// } +// } // namespace my_matchers +// +// Alternatively, an unnamed namespace may be used: +// +// namespace clang { +// namespace ast_matchers { +// namespace { +// AST_MATCHER_P(MemberExpr, Member, +// internal::Matcher, InnerMatcher) { +// return InnerMatcher.matches(*Node.getMemberDecl(), Finder, Builder); +// } +// } // namespace +// } // namespace ast_matchers +// } // namespace clang +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_ASTMATCHERSMACROS_H #define LLVM_CLANG_ASTMATCHERS_ASTMATCHERSMACROS_H diff --git a/tools/clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h b/tools/clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h index 5a8c80995a..ef93ac5450 100644 --- a/tools/clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h +++ b/tools/clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h @@ -1,17 +1,16 @@ //===--- Diagnostics.h - Helper class for error diagnostics -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Diagnostics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Diagnostics class to manage error messages. // +/// \file +/// \brief Diagnostics class to manage error messages. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_DYNAMIC_DIAGNOSTICS_H #define LLVM_CLANG_ASTMATCHERS_DYNAMIC_DIAGNOSTICS_H diff --git a/tools/clang/include/clang/ASTMatchers/Dynamic/Parser.h b/tools/clang/include/clang/ASTMatchers/Dynamic/Parser.h index 32e4aaacd4..cdc259e0d0 100644 --- a/tools/clang/include/clang/ASTMatchers/Dynamic/Parser.h +++ b/tools/clang/include/clang/ASTMatchers/Dynamic/Parser.h @@ -1,36 +1,35 @@ //===--- Parser.h - Matcher expression parser -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Parser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Simple matcher expression parser. // +/// \file +/// \brief Simple matcher expression parser. /// -/// The parser understands matcher expressions of the form: // -/// MatcherName(Arg0, Arg1, ..., ArgN) // -/// as well as simple types like strings. // -/// The parser does not know how to process the matchers. It delegates this task// -/// to a Sema object received as an argument. // +/// The parser understands matcher expressions of the form: +/// MatcherName(Arg0, Arg1, ..., ArgN) +/// as well as simple types like strings. +/// The parser does not know how to process the matchers. It delegates this task +/// to a Sema object received as an argument. /// -/// \code // -/// Grammar for the expressions supported: // -/// := | | // -/// := | // -/// := "quoted string" // -/// := [0-9]+ // -/// := // -/// := () | // -/// ().bind()// -/// := [a-zA-Z]+ // -/// := | , // -/// \endcode // +/// \code +/// Grammar for the expressions supported: +/// := | | +/// := | +/// := "quoted string" +/// := [0-9]+ +/// := +/// := () | +/// ().bind() +/// := [a-zA-Z]+ +/// := | , +/// \endcode /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_DYNAMIC_PARSER_H #define LLVM_CLANG_ASTMATCHERS_DYNAMIC_PARSER_H diff --git a/tools/clang/include/clang/ASTMatchers/Dynamic/Registry.h b/tools/clang/include/clang/ASTMatchers/Dynamic/Registry.h index 21bc8fd602..fc1e783a6c 100644 --- a/tools/clang/include/clang/ASTMatchers/Dynamic/Registry.h +++ b/tools/clang/include/clang/ASTMatchers/Dynamic/Registry.h @@ -1,19 +1,18 @@ //===--- Registry.h - Matcher registry -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Registry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Registry of all known matchers. // +/// \file +/// \brief Registry of all known matchers. /// -/// The registry provides a generic interface to construct any matcher by name.// +/// The registry provides a generic interface to construct any matcher by name. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_DYNAMIC_REGISTRY_H #define LLVM_CLANG_ASTMATCHERS_DYNAMIC_REGISTRY_H diff --git a/tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h b/tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h index 7ffa1ef93b..c391b24a33 100644 --- a/tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h +++ b/tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h @@ -1,20 +1,18 @@ //===--- VariantValue.h - Polymorphic value type -*- C++ -*-===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// VariantValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Polymorphic value type. // +/// \file +/// \brief Polymorphic value type. /// -/// Supports all the types required for dynamic Matcher construction. // -/// Used by the registry to construct matchers in a generic way. // +/// Supports all the types required for dynamic Matcher construction. +/// Used by the registry to construct matchers in a generic way. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ASTMATCHERS_DYNAMIC_VARIANTVALUE_H #define LLVM_CLANG_ASTMATCHERS_DYNAMIC_VARIANTVALUE_H diff --git a/tools/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h b/tools/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h index 5dd30eeefe..cc14c7bd33 100644 --- a/tools/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h +++ b/tools/clang/include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h @@ -1,16 +1,17 @@ //==- CFGReachabilityAnalysis.h - Basic reachability analysis ----*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGReachabilityAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a flow-sensitive, (mostly) path-insensitive reachability// -// analysis based on Clang's CFGs. Clients can query if a given basic block // -// is reachable within the CFG. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a flow-sensitive, (mostly) path-insensitive reachability +// analysis based on Clang's CFGs. Clients can query if a given basic block +// is reachable within the CFG. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_CFGREACHABILITYANALYSIS_H #define LLVM_CLANG_ANALYSIS_ANALYSES_CFGREACHABILITYANALYSIS_H diff --git a/tools/clang/include/clang/Analysis/Analyses/Consumed.h b/tools/clang/include/clang/Analysis/Analyses/Consumed.h index 2d1e0a2645..a710923398 100644 --- a/tools/clang/include/clang/Analysis/Analyses/Consumed.h +++ b/tools/clang/include/clang/Analysis/Analyses/Consumed.h @@ -1,15 +1,16 @@ //===- Consumed.h ----------------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Consumed.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A intra-procedural analysis for checking consumed properties. This is based,// -// in part, on research on linear types. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A intra-procedural analysis for checking consumed properties. This is based, +// in part, on research on linear types. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_CONSUMED_H #define LLVM_CLANG_ANALYSIS_ANALYSES_CONSUMED_H diff --git a/tools/clang/include/clang/Analysis/Analyses/Dominators.h b/tools/clang/include/clang/Analysis/Analyses/Dominators.h index 77ba82d979..4524aebe4e 100644 --- a/tools/clang/include/clang/Analysis/Analyses/Dominators.h +++ b/tools/clang/include/clang/Analysis/Analyses/Dominators.h @@ -1,14 +1,15 @@ //==- Dominators.h - Implementation of dominators tree for Clang CFG C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dominators.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the dominators tree functionality for Clang CFGs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the dominators tree functionality for Clang CFGs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_DOMINATORS_H #define LLVM_CLANG_ANALYSIS_ANALYSES_DOMINATORS_H diff --git a/tools/clang/include/clang/Analysis/Analyses/FormatString.h b/tools/clang/include/clang/Analysis/Analyses/FormatString.h index 4a5379f29a..5cff332aea 100644 --- a/tools/clang/include/clang/Analysis/Analyses/FormatString.h +++ b/tools/clang/include/clang/Analysis/Analyses/FormatString.h @@ -1,17 +1,18 @@ //= FormatString.h - Analysis of printf/fprintf format strings --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatString.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines APIs for analyzing the format strings of printf, fscanf,// -// and friends. // // -// The structure of format strings for fprintf are described in C99 7.19.6.1.// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines APIs for analyzing the format strings of printf, fscanf, +// and friends. +// +// The structure of format strings for fprintf are described in C99 7.19.6.1. // -// The structure of format strings for fscanf are described in C99 7.19.6.2. // +// The structure of format strings for fscanf are described in C99 7.19.6.2. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Analysis/Analyses/LiveVariables.h b/tools/clang/include/clang/Analysis/Analyses/LiveVariables.h index c7d17fb16a..e17f73a61f 100644 --- a/tools/clang/include/clang/Analysis/Analyses/LiveVariables.h +++ b/tools/clang/include/clang/Analysis/Analyses/LiveVariables.h @@ -1,14 +1,15 @@ //===- LiveVariables.h - Live Variable Analysis for Source CFGs -*- C++ --*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveVariables.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Live Variables analysis for source-level CFGs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Live Variables analysis for source-level CFGs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_LIVEVARIABLES_H #define LLVM_CLANG_ANALYSIS_ANALYSES_LIVEVARIABLES_H diff --git a/tools/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h b/tools/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h index c5184dfade..a1c6504275 100644 --- a/tools/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h +++ b/tools/clang/include/clang/Analysis/Analyses/PostOrderCFGView.h @@ -1,14 +1,15 @@ //===- PostOrderCFGView.h - Post order view of CFG blocks ---------*- C++ --*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostOrderCFGView.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements post order view of the blocks in a CFG. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements post order view of the blocks in a CFG. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_POSTORDERCFGVIEW_H #define LLVM_CLANG_ANALYSIS_ANALYSES_POSTORDERCFGVIEW_H diff --git a/tools/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h b/tools/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h index e30c0d1d9d..c4ec2f22ec 100644 --- a/tools/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h +++ b/tools/clang/include/clang/Analysis/Analyses/PseudoConstantAnalysis.h @@ -1,16 +1,17 @@ //== PseudoConstantAnalysis.h - Find Pseudo-constants in the AST -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// PseudoConstantAnalysis.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file tracks the usage of variables in a Decl body to see if they are // -// never written to, implying that they constant. This is useful in static // -// analysis to see if a developer might have intended a variable to be const.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file tracks the usage of variables in a Decl body to see if they are +// never written to, implying that they constant. This is useful in static +// analysis to see if a developer might have intended a variable to be const. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_PSEUDOCONSTANTANALYSIS_H #define LLVM_CLANG_ANALYSIS_ANALYSES_PSEUDOCONSTANTANALYSIS_H diff --git a/tools/clang/include/clang/Analysis/Analyses/ReachableCode.h b/tools/clang/include/clang/Analysis/Analyses/ReachableCode.h index 69d7e40a5f..a526daf73a 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ReachableCode.h +++ b/tools/clang/include/clang/Analysis/Analyses/ReachableCode.h @@ -1,12 +1,13 @@ //===- ReachableCode.h -----------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReachableCode.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A flow-sensitive, path-insensitive analysis of unreachable code. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A flow-sensitive, path-insensitive analysis of unreachable code. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafety.h b/tools/clang/include/clang/Analysis/Analyses/ThreadSafety.h index 357d098bb5..22694a7a22 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafety.h +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafety.h @@ -1,18 +1,20 @@ //===- ThreadSafety.h ------------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafety.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A intra-procedural analysis for thread safety (e.g. deadlocks and race // -// conditions), based off of an annotation system. // // -// See http://clang.llvm.org/docs/LanguageExtensions.html#thread-safety-annotation-checking// -// for more information. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// +// A intra-procedural analysis for thread safety (e.g. deadlocks and race +// conditions), based off of an annotation system. +// +// See http://clang.llvm.org/docs/LanguageExtensions.html#thread-safety-annotation-checking +// for more information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETY_H #define LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETY_H diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h index 20d9ce76c9..9b7725ab0f 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h @@ -1,22 +1,23 @@ //===- ThreadSafetyCommon.h ------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyCommon.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Parts of thread safety analysis that are not specific to thread safety // -// itself have been factored into classes here, where they can be potentially// -// used by other analyses. Currently these include: // // -// * Generalize clang CFG visitors. // -// * Conversion of the clang CFG to SSA form. // -// * Translation of clang Exprs to TIL SExprs // +// The LLVM Compiler Infrastructure // -// UNDER CONSTRUCTION. USE AT YOUR OWN RISK. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// Parts of thread safety analysis that are not specific to thread safety +// itself have been factored into classes here, where they can be potentially +// used by other analyses. Currently these include: +// +// * Generalize clang CFG visitors. +// * Conversion of the clang CFG to SSA form. +// * Translation of clang Exprs to TIL SExprs +// +// UNDER CONSTRUCTION. USE AT YOUR OWN RISK. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYCOMMON_H #define LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYCOMMON_H diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h index aaa897b2e9..bc78021343 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyLogical.h @@ -1,15 +1,14 @@ //===- ThreadSafetyLogical.h -----------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyLogical.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a representation for logical expressions with SExpr leaves// -// that are used as part of fact-checking capability expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file defines a representation for logical expressions with SExpr leaves +// that are used as part of fact-checking capability expressions. +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYLOGICAL_H #define LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYLOGICAL_H diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyOps.def b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyOps.def index 2a54c38f5f..848d9322b2 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyOps.def +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyOps.def @@ -1,16 +1,17 @@ //===- ThreadSafetyTIL.h ---------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyOps.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the list of core opcodes for the Thread Safety // -// Typed Intermediate language. Please see ThreadSafetyTIL.h for more // -// information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the list of core opcodes for the Thread Safety +// Typed Intermediate language. Please see ThreadSafetyTIL.h for more +// information. +// +//===----------------------------------------------------------------------===// TIL_OPCODE_DEF(Future) TIL_OPCODE_DEF(Undefined) diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h index c88e3065a2..4b5946617d 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h @@ -1,47 +1,48 @@ //===- ThreadSafetyTIL.h ---------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyTIL.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a simple Typed Intermediate Language, or TIL, that is used// -// by the thread safety analysis (See ThreadSafety.cpp). The TIL is intended// -// to be largely independent of clang, in the hope that the analysis can be // -// reused for other non-C++ languages. All dependencies on clang/llvm should// -// go in ThreadSafetyUtil.h. // // -// Thread safety analysis works by comparing mutex expressions, e.g. // +// The LLVM Compiler Infrastructure // -// class A { Mutex mu; int dat GUARDED_BY(this->mu); } // -// class B { A a; } // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT in the llvm repository for details. // -// void foo(B* b) { // -// (*b).a.mu.lock(); // locks (*b).a.mu // -// b->a.dat = 0; // substitute &b->a for 'this'; // -// // requires lock on (&b->a)->mu // -// (b->a.mu).unlock(); // unlocks (b->a.mu) // -// } // +//===----------------------------------------------------------------------===// // -// As illustrated by the above example, clang Exprs are not well-suited to // -// represent mutex expressions directly, since there is no easy way to compare// -// Exprs for equivalence. The thread safety analysis thus lowers clang Exprs// -// into a simple intermediate language (IL). The IL supports: // +// This file defines a simple Typed Intermediate Language, or TIL, that is used +// by the thread safety analysis (See ThreadSafety.cpp). The TIL is intended +// to be largely independent of clang, in the hope that the analysis can be +// reused for other non-C++ languages. All dependencies on clang/llvm should +// go in ThreadSafetyUtil.h. // -// (1) comparisons for semantic equality of expressions // -// (2) SSA renaming of variables // -// (3) wildcards and pattern matching over expressions // -// (4) hash-based expression lookup // +// Thread safety analysis works by comparing mutex expressions, e.g. // -// The TIL is currently very experimental, is intended only for use within // -// the thread safety analysis, and is subject to change without notice. // -// After the API stabilizes and matures, it may be appropriate to make this // -// more generally available to other analyses. // +// class A { Mutex mu; int dat GUARDED_BY(this->mu); } +// class B { A a; } // -// UNDER CONSTRUCTION. USE AT YOUR OWN RISK. // +// void foo(B* b) { +// (*b).a.mu.lock(); // locks (*b).a.mu +// b->a.dat = 0; // substitute &b->a for 'this'; +// // requires lock on (&b->a)->mu +// (b->a.mu).unlock(); // unlocks (b->a.mu) +// } // -/////////////////////////////////////////////////////////////////////////////// +// As illustrated by the above example, clang Exprs are not well-suited to +// represent mutex expressions directly, since there is no easy way to compare +// Exprs for equivalence. The thread safety analysis thus lowers clang Exprs +// into a simple intermediate language (IL). The IL supports: +// +// (1) comparisons for semantic equality of expressions +// (2) SSA renaming of variables +// (3) wildcards and pattern matching over expressions +// (4) hash-based expression lookup +// +// The TIL is currently very experimental, is intended only for use within +// the thread safety analysis, and is subject to change without notice. +// After the API stabilizes and matures, it may be appropriate to make this +// more generally available to other analyses. +// +// UNDER CONSTRUCTION. USE AT YOUR OWN RISK. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYTIL_H #define LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYTIL_H diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h index 77da7ec7ba..705fe910d0 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h @@ -1,17 +1,18 @@ //===- ThreadSafetyTraverse.h ----------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyTraverse.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a framework for doing generic traversals and rewriting // -// operations over the Thread Safety TIL. // // -// UNDER CONSTRUCTION. USE AT YOUR OWN RISK. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a framework for doing generic traversals and rewriting +// operations over the Thread Safety TIL. +// +// UNDER CONSTRUCTION. USE AT YOUR OWN RISK. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYTRAVERSE_H #define LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYTRAVERSE_H diff --git a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h index fb3da27b4a..4d3402f8c0 100644 --- a/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h +++ b/tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h @@ -1,14 +1,15 @@ //===- ThreadSafetyUtil.h --------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyUtil.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines some basic utility classes for use by ThreadSafetyTIL.h // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some basic utility classes for use by ThreadSafetyTIL.h +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYUTIL_H #define LLVM_CLANG_ANALYSIS_ANALYSES_THREADSAFETYUTIL_H diff --git a/tools/clang/include/clang/Analysis/Analyses/UninitializedValues.h b/tools/clang/include/clang/Analysis/Analyses/UninitializedValues.h index dc67228245..53ff20c235 100644 --- a/tools/clang/include/clang/Analysis/Analyses/UninitializedValues.h +++ b/tools/clang/include/clang/Analysis/Analyses/UninitializedValues.h @@ -1,15 +1,16 @@ //= UninitializedValues.h - Finding uses of uninitialized values -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// UninitializedValues.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines APIs for invoking and reported uninitialized values // -// warnings. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines APIs for invoking and reported uninitialized values +// warnings. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSES_UNINITIALIZEDVALUES_H #define LLVM_CLANG_ANALYSIS_ANALYSES_UNINITIALIZEDVALUES_H diff --git a/tools/clang/include/clang/Analysis/AnalysisContext.h b/tools/clang/include/clang/Analysis/AnalysisContext.h index 2d2821705e..931190e43a 100644 --- a/tools/clang/include/clang/Analysis/AnalysisContext.h +++ b/tools/clang/include/clang/Analysis/AnalysisContext.h @@ -1,15 +1,16 @@ //=== AnalysisContext.h - Analysis context for Path Sens analysis --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines AnalysisDeclContext, a class that manages the analysis // -// context data for path sensitive analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines AnalysisDeclContext, a class that manages the analysis +// context data for path sensitive analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSISCONTEXT_H #define LLVM_CLANG_ANALYSIS_ANALYSISCONTEXT_H diff --git a/tools/clang/include/clang/Analysis/AnalysisDiagnostic.h b/tools/clang/include/clang/Analysis/AnalysisDiagnostic.h index fc2e54fc05..8d28971cfe 100644 --- a/tools/clang/include/clang/Analysis/AnalysisDiagnostic.h +++ b/tools/clang/include/clang/Analysis/AnalysisDiagnostic.h @@ -1,12 +1,11 @@ //===--- DiagnosticAnalysis.h - Diagnostics for libanalysis -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_ANALYSISDIAGNOSTIC_H #define LLVM_CLANG_ANALYSIS_ANALYSISDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Analysis/CFG.h b/tools/clang/include/clang/Analysis/CFG.h index 62be99d94f..68ed8d3efa 100644 --- a/tools/clang/include/clang/Analysis/CFG.h +++ b/tools/clang/include/clang/Analysis/CFG.h @@ -1,13 +1,14 @@ //===--- CFG.h - Classes for representing and building CFGs------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFG.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CFG and CFGBuilder classes for representing and // -// building Control-Flow Graphs (CFGs) from ASTs. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CFG and CFGBuilder classes for representing and +// building Control-Flow Graphs (CFGs) from ASTs. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Analysis/CFGStmtMap.h b/tools/clang/include/clang/Analysis/CFGStmtMap.h index cef303a9a0..4dfa91df0f 100644 --- a/tools/clang/include/clang/Analysis/CFGStmtMap.h +++ b/tools/clang/include/clang/Analysis/CFGStmtMap.h @@ -1,15 +1,16 @@ //===--- CFGStmtMap.h - Map from Stmt* to CFGBlock* -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGStmtMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CFGStmtMap class, which defines a mapping from // -// Stmt* to CFGBlock* // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CFGStmtMap class, which defines a mapping from +// Stmt* to CFGBlock* +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_CFGSTMTMAP_H #define LLVM_CLANG_ANALYSIS_CFGSTMTMAP_H diff --git a/tools/clang/include/clang/Analysis/CallGraph.h b/tools/clang/include/clang/Analysis/CallGraph.h index 654e4fdc6c..eda22a57e8 100644 --- a/tools/clang/include/clang/Analysis/CallGraph.h +++ b/tools/clang/include/clang/Analysis/CallGraph.h @@ -1,18 +1,18 @@ //== CallGraph.h - AST-based Call graph ------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraph.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the AST-based CallGraph. // // -// A call graph for functions whose definitions/bodies are available in the // -// current translation unit. The graph has a "virtual" root node that contains// -// edges to all externally available functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the AST-based CallGraph. +// +// A call graph for functions whose definitions/bodies are available in the +// current translation unit. The graph has a "virtual" root node that contains +// edges to all externally available functions. +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_CALLGRAPH_H #define LLVM_CLANG_ANALYSIS_CALLGRAPH_H diff --git a/tools/clang/include/clang/Analysis/CodeInjector.h b/tools/clang/include/clang/Analysis/CodeInjector.h index 1dfa7103cf..413a55b05b 100644 --- a/tools/clang/include/clang/Analysis/CodeInjector.h +++ b/tools/clang/include/clang/Analysis/CodeInjector.h @@ -1,19 +1,18 @@ //===-- CodeInjector.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeInjector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::CodeInjector interface which is responsible for// -/// injecting AST of function definitions that may not be available in the // -/// original source. // +/// \file +/// \brief Defines the clang::CodeInjector interface which is responsible for +/// injecting AST of function definitions that may not be available in the +/// original source. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_CODEINJECTOR_H #define LLVM_CLANG_ANALYSIS_CODEINJECTOR_H diff --git a/tools/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h b/tools/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h index 08e0b68789..8b3fcff52d 100644 --- a/tools/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h +++ b/tools/clang/include/clang/Analysis/DomainSpecific/CocoaConventions.h @@ -1,14 +1,15 @@ //===- CocoaConventions.h - Special handling of Cocoa conventions -*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// CocoaConventions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements cocoa naming convention analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements cocoa naming convention analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_DOMAINSPECIFIC_COCOACONVENTIONS_H #define LLVM_CLANG_ANALYSIS_DOMAINSPECIFIC_COCOACONVENTIONS_H diff --git a/tools/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h b/tools/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h index 19e5ae5828..f9e800a4a4 100644 --- a/tools/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h +++ b/tools/clang/include/clang/Analysis/DomainSpecific/ObjCNoReturn.h @@ -1,15 +1,16 @@ //= ObjCNoReturn.h - Handling of Cocoa APIs known not to return --*- C++ -*---// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCNoReturn.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements special handling of recognizing ObjC API hooks that // -// do not return but aren't marked as such in API headers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements special handling of recognizing ObjC API hooks that +// do not return but aren't marked as such in API headers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_DOMAINSPECIFIC_OBJCNORETURN_H #define LLVM_CLANG_ANALYSIS_DOMAINSPECIFIC_OBJCNORETURN_H diff --git a/tools/clang/include/clang/Analysis/FlowSensitive/DataflowValues.h b/tools/clang/include/clang/Analysis/FlowSensitive/DataflowValues.h index 263a0b861c..638ed9b72e 100644 --- a/tools/clang/include/clang/Analysis/FlowSensitive/DataflowValues.h +++ b/tools/clang/include/clang/Analysis/FlowSensitive/DataflowValues.h @@ -1,14 +1,15 @@ //===--- DataflowValues.h - Data structure for dataflow values --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataflowValues.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a skeleton data structure for encapsulating the dataflow// -// values for a CFG. Typically this is subclassed to provide methods for // -// computing these values from a CFG. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a skeleton data structure for encapsulating the dataflow +// values for a CFG. Typically this is subclassed to provide methods for +// computing these values from a CFG. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Analysis/ProgramPoint.h b/tools/clang/include/clang/Analysis/ProgramPoint.h index ee0268def2..f87271550c 100644 --- a/tools/clang/include/clang/Analysis/ProgramPoint.h +++ b/tools/clang/include/clang/Analysis/ProgramPoint.h @@ -1,15 +1,16 @@ //==- ProgramPoint.h - Program Points for Path-Sensitive Analysis --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramPoint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface ProgramPoint, which identifies a // -// distinct location in a function. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface ProgramPoint, which identifies a +// distinct location in a function. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_ANALYSIS_PROGRAMPOINT_H #define LLVM_CLANG_ANALYSIS_PROGRAMPOINT_H diff --git a/tools/clang/include/clang/Analysis/Support/BumpVector.h b/tools/clang/include/clang/Analysis/Support/BumpVector.h index fbf02048d1..3abe32d79c 100644 --- a/tools/clang/include/clang/Analysis/Support/BumpVector.h +++ b/tools/clang/include/clang/Analysis/Support/BumpVector.h @@ -1,15 +1,16 @@ //===-- BumpVector.h - Vector-like ADT that uses bump allocation --*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// BumpVector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides BumpVector, a vector-like ADT whose contents are // -// allocated from a BumpPtrAllocator. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides BumpVector, a vector-like ADT whose contents are +// allocated from a BumpPtrAllocator. +// +//===----------------------------------------------------------------------===// // FIXME: Most of this is copy-and-paste from SmallVector.h. We can // refactor this core logic into something common that is shared between diff --git a/tools/clang/include/clang/Basic/ABI.h b/tools/clang/include/clang/Basic/ABI.h index 2dd862427c..75e9faf461 100644 --- a/tools/clang/include/clang/Basic/ABI.h +++ b/tools/clang/include/clang/Basic/ABI.h @@ -1,18 +1,17 @@ //===----- ABI.h - ABI related declarations ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ABI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Enums/classes describing ABI related information about constructors,// -/// destructors and thunks. // +/// \file +/// \brief Enums/classes describing ABI related information about constructors, +/// destructors and thunks. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_ABI_H #define LLVM_CLANG_BASIC_ABI_H diff --git a/tools/clang/include/clang/Basic/AddressSpaces.h b/tools/clang/include/clang/Basic/AddressSpaces.h index e541c6cae0..8dd75660c6 100644 --- a/tools/clang/include/clang/Basic/AddressSpaces.h +++ b/tools/clang/include/clang/Basic/AddressSpaces.h @@ -1,18 +1,17 @@ //===--- AddressSpaces.h - Language-specific address spaces -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AddressSpaces.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Provides definitions for the various language-specific address // -/// spaces. // +/// \file +/// \brief Provides definitions for the various language-specific address +/// spaces. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_ADDRESSSPACES_H #define LLVM_CLANG_BASIC_ADDRESSSPACES_H diff --git a/tools/clang/include/clang/Basic/AllDiagnostics.h b/tools/clang/include/clang/Basic/AllDiagnostics.h index 27ed9ec3cd..18a2b8a318 100644 --- a/tools/clang/include/clang/Basic/AllDiagnostics.h +++ b/tools/clang/include/clang/Basic/AllDiagnostics.h @@ -1,17 +1,16 @@ //===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AllDiagnostics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Includes all the separate Diagnostic headers & some related helpers.// +/// \file +/// \brief Includes all the separate Diagnostic headers & some related helpers. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H #define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H diff --git a/tools/clang/include/clang/Basic/Attr.td b/tools/clang/include/clang/Basic/Attr.td index ca9393dfd6..46e1d49a28 100644 --- a/tools/clang/include/clang/Basic/Attr.td +++ b/tools/clang/include/clang/Basic/Attr.td @@ -1,14 +1,11 @@ //==--- Attr.td - attribute definitions -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Attr.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The documentation is organized by category. Attributes can have category- // -// specific documentation that is collated within the larger document. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// class DocumentationCategory { string Name = name; diff --git a/tools/clang/include/clang/Basic/AttrDocs.td b/tools/clang/include/clang/Basic/AttrDocs.td index 3da5bfbc4d..c480cb9137 100644 --- a/tools/clang/include/clang/Basic/AttrDocs.td +++ b/tools/clang/include/clang/Basic/AttrDocs.td @@ -1,12 +1,11 @@ //==--- AttrDocs.td - Attribute documentation ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttrDocs.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===---------------------------------------------------------------------===// def GlobalDocumentation { code Intro =[{.. diff --git a/tools/clang/include/clang/Basic/AttrKinds.h b/tools/clang/include/clang/Basic/AttrKinds.h index 3435725123..f0b0a6445d 100644 --- a/tools/clang/include/clang/Basic/AttrKinds.h +++ b/tools/clang/include/clang/Basic/AttrKinds.h @@ -1,17 +1,16 @@ //===----- Attr.h - Enum values for C Attribute Kinds ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttrKinds.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::attr::Kind enum. // +/// \file +/// \brief Defines the clang::attr::Kind enum. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_ATTRKINDS_H #define LLVM_CLANG_BASIC_ATTRKINDS_H diff --git a/tools/clang/include/clang/Basic/Attributes.h b/tools/clang/include/clang/Basic/Attributes.h index 0b24860144..a64dd5666b 100644 --- a/tools/clang/include/clang/Basic/Attributes.h +++ b/tools/clang/include/clang/Basic/Attributes.h @@ -1,12 +1,11 @@ //===--- Attributes.h - Attributes header -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Attributes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_ATTRIBUTES_H #define LLVM_CLANG_BASIC_ATTRIBUTES_H diff --git a/tools/clang/include/clang/Basic/Builtins.def b/tools/clang/include/clang/Basic/Builtins.def index 1e9415e0ee..d856270ad6 100644 --- a/tools/clang/include/clang/Basic/Builtins.def +++ b/tools/clang/include/clang/Basic/Builtins.def @@ -1,17 +1,16 @@ //===--- Builtins.def - Builtin function info database ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Builtins.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the standard builtin function database. Users of this file// -// must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// FIXME: This should really be a .td file, but that requires modifying tblgen.// -// Perhaps tblgen should have plugins. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the standard builtin function database. Users of this file +// must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // The first value provided to the macro specifies the function name of the // builtin, and results in a clang::builtin::BIXX enum value for XX. diff --git a/tools/clang/include/clang/Basic/Builtins.h b/tools/clang/include/clang/Basic/Builtins.h index 7d87740799..27428ad81c 100644 --- a/tools/clang/include/clang/Basic/Builtins.h +++ b/tools/clang/include/clang/Basic/Builtins.h @@ -1,18 +1,17 @@ //===--- Builtins.h - Builtin function header -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Builtins.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines enum values for all the target-independent builtin // -/// functions. // +/// \file +/// \brief Defines enum values for all the target-independent builtin +/// functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_BUILTINS_H #define LLVM_CLANG_BASIC_BUILTINS_H diff --git a/tools/clang/include/clang/Basic/BuiltinsAArch64.def b/tools/clang/include/clang/Basic/BuiltinsAArch64.def index c76d3d2183..f3030aba97 100644 --- a/tools/clang/include/clang/Basic/BuiltinsAArch64.def +++ b/tools/clang/include/clang/Basic/BuiltinsAArch64.def @@ -1,16 +1,16 @@ //==- BuiltinsAArch64.def - AArch64 Builtin function database ----*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsAArch64.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AArch64-specific builtin function database. Users of// -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AArch64-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // In libgcc BUILTIN(__clear_cache, "vv*v*", "i") diff --git a/tools/clang/include/clang/Basic/BuiltinsAMDGPU.def b/tools/clang/include/clang/Basic/BuiltinsAMDGPU.def index f5b82b67be..b90beaa65d 100644 --- a/tools/clang/include/clang/Basic/BuiltinsAMDGPU.def +++ b/tools/clang/include/clang/Basic/BuiltinsAMDGPU.def @@ -1,16 +1,16 @@ //==- BuiltinsAMDGPU.def - AMDGPU Builtin function database ------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsAMDGPU.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the R600-specific builtin function database. Users of this// -// file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the R600-specific builtin function database. Users of this +// file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// BUILTIN(__builtin_amdgpu_div_scale, "dddbb*", "n") BUILTIN(__builtin_amdgpu_div_scalef, "fffbb*", "n") diff --git a/tools/clang/include/clang/Basic/BuiltinsARM.def b/tools/clang/include/clang/Basic/BuiltinsARM.def index 6df032cdcc..fdeb01d1a7 100644 --- a/tools/clang/include/clang/Basic/BuiltinsARM.def +++ b/tools/clang/include/clang/Basic/BuiltinsARM.def @@ -1,16 +1,16 @@ //===--- BuiltinsARM.def - ARM Builtin function database ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsARM.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ARM-specific builtin function database. Users of // -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ARM-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// #if defined(BUILTIN) && !defined(LANGBUILTIN) # define LANGBUILTIN(ID, TYPE, ATTRS, BUILTIN_LANG) BUILTIN(ID, TYPE, ATTRS) diff --git a/tools/clang/include/clang/Basic/BuiltinsHexagon.def b/tools/clang/include/clang/Basic/BuiltinsHexagon.def index 8cb524e3b2..7b7a4db05d 100644 --- a/tools/clang/include/clang/Basic/BuiltinsHexagon.def +++ b/tools/clang/include/clang/Basic/BuiltinsHexagon.def @@ -1,16 +1,16 @@ //===-- BuiltinsHexagon.def - Hexagon Builtin function database --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsHexagon.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Hexagon-specific builtin function database. Users of// -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Hexagon-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // The builtins below are not autogenerated from iset.py. // Make sure you do not overwrite these. diff --git a/tools/clang/include/clang/Basic/BuiltinsLe64.def b/tools/clang/include/clang/Basic/BuiltinsLe64.def index 830a54f99d..54a5dd1527 100644 --- a/tools/clang/include/clang/Basic/BuiltinsLe64.def +++ b/tools/clang/include/clang/Basic/BuiltinsLe64.def @@ -1,16 +1,16 @@ //==- BuiltinsLe64.def - Le64 Builtin function database ----------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsLe64.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Le64-specific builtin function database. Users of this// -// file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Le64-specific builtin function database. Users of this +// file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// BUILTIN(__clear_cache, "vv*v*", "i") diff --git a/tools/clang/include/clang/Basic/BuiltinsMips.def b/tools/clang/include/clang/Basic/BuiltinsMips.def index 2d58b98da4..e70bad8ecb 100644 --- a/tools/clang/include/clang/Basic/BuiltinsMips.def +++ b/tools/clang/include/clang/Basic/BuiltinsMips.def @@ -1,16 +1,16 @@ //===-- BuiltinsMips.def - Mips Builtin function database --------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsMips.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MIPS-specific builtin function database. Users of // -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MIPS-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // MIPS DSP Rev 1 diff --git a/tools/clang/include/clang/Basic/BuiltinsNEON.def b/tools/clang/include/clang/Basic/BuiltinsNEON.def index 9545c10b39..fca7820309 100644 --- a/tools/clang/include/clang/Basic/BuiltinsNEON.def +++ b/tools/clang/include/clang/Basic/BuiltinsNEON.def @@ -1,16 +1,16 @@ //===--- BuiltinsNEON.def - NEON Builtin function database ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsNEON.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the NEON-specific builtin function database. Users of // -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the NEON-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// #define GET_NEON_BUILTINS #include "clang/Basic/arm_neon.inc" diff --git a/tools/clang/include/clang/Basic/BuiltinsNVPTX.def b/tools/clang/include/clang/Basic/BuiltinsNVPTX.def index c5f677c10b..6b209b3d8e 100644 --- a/tools/clang/include/clang/Basic/BuiltinsNVPTX.def +++ b/tools/clang/include/clang/Basic/BuiltinsNVPTX.def @@ -1,16 +1,16 @@ //===--- BuiltinsPTX.def - PTX Builtin function database ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsNVPTX.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PTX-specific builtin function database. Users of // -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PTX-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // Builtins retained from previous PTX back-end BUILTIN(__builtin_ptx_read_tid_x, "i", "nc") diff --git a/tools/clang/include/clang/Basic/BuiltinsPPC.def b/tools/clang/include/clang/Basic/BuiltinsPPC.def index 1ca0d448c5..826c2e734d 100644 --- a/tools/clang/include/clang/Basic/BuiltinsPPC.def +++ b/tools/clang/include/clang/Basic/BuiltinsPPC.def @@ -1,17 +1,16 @@ //===--- BuiltinsPPC.def - PowerPC Builtin function database ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsPPC.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PowerPC-specific builtin function database. Users of// -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// FIXME: this needs to be the full list supported by GCC. Right now, I'm just// -// adding stuff on demand. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PowerPC-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // The format of this database matches clang/Basic/Builtins.def. diff --git a/tools/clang/include/clang/Basic/BuiltinsSystemZ.def b/tools/clang/include/clang/Basic/BuiltinsSystemZ.def index 85c64b3270..bb3b6ff336 100644 --- a/tools/clang/include/clang/Basic/BuiltinsSystemZ.def +++ b/tools/clang/include/clang/Basic/BuiltinsSystemZ.def @@ -1,16 +1,16 @@ //===-- BuiltinsSystemZ.def - SystemZ Builtin function database -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsSystemZ.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SystemZ-specific builtin function database. Users of// -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SystemZ-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // Transactional-memory intrinsics BUILTIN(__builtin_tbegin, "iv*", "j") diff --git a/tools/clang/include/clang/Basic/BuiltinsX86.def b/tools/clang/include/clang/Basic/BuiltinsX86.def index 128896b9e9..5b1952f32a 100644 --- a/tools/clang/include/clang/Basic/BuiltinsX86.def +++ b/tools/clang/include/clang/Basic/BuiltinsX86.def @@ -1,16 +1,16 @@ //===--- BuiltinsX86.def - X86 Builtin function database --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsX86.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the X86-specific builtin function database. Users of // -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the X86-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// // FIXME: In GCC, these builtins are defined depending on whether support for // MMX/SSE/etc is turned on. We should do this too. diff --git a/tools/clang/include/clang/Basic/BuiltinsXCore.def b/tools/clang/include/clang/Basic/BuiltinsXCore.def index 675c51d5fe..282b2abe49 100644 --- a/tools/clang/include/clang/Basic/BuiltinsXCore.def +++ b/tools/clang/include/clang/Basic/BuiltinsXCore.def @@ -1,16 +1,16 @@ //===--- BuiltinsXCore.def - XCore Builtin function database ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinsXCore.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the XCore-specific builtin function database. Users of // -// this file must define the BUILTIN macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The format of this database matches clang/Basic/Builtins.def. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the XCore-specific builtin function database. Users of +// this file must define the BUILTIN macro to make use of this information. +// +//===----------------------------------------------------------------------===// BUILTIN(__builtin_bitrev, "UiUi", "nc") BUILTIN(__builtin_getid, "Si", "nc") diff --git a/tools/clang/include/clang/Basic/CMakeLists.txt b/tools/clang/include/clang/Basic/CMakeLists.txt index aaf9336fe6..8fcaee6bd6 100644 --- a/tools/clang/include/clang/Basic/CMakeLists.txt +++ b/tools/clang/include/clang/Basic/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. macro(clang_diag_gen component) clang_tablegen(Diagnostic${component}Kinds.inc -gen-clang-diags-defs -clang-component=${component} diff --git a/tools/clang/include/clang/Basic/CapturedStmt.h b/tools/clang/include/clang/Basic/CapturedStmt.h index f286b773f9..c4a289b696 100644 --- a/tools/clang/include/clang/Basic/CapturedStmt.h +++ b/tools/clang/include/clang/Basic/CapturedStmt.h @@ -1,12 +1,11 @@ //===--- CapturedStmt.h - Types for CapturedStmts ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CapturedStmt.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_CAPTUREDSTMT_H diff --git a/tools/clang/include/clang/Basic/CharInfo.h b/tools/clang/include/clang/Basic/CharInfo.h index e557c76d23..dd9c55431e 100644 --- a/tools/clang/include/clang/Basic/CharInfo.h +++ b/tools/clang/include/clang/Basic/CharInfo.h @@ -1,12 +1,11 @@ //===--- clang/Basic/CharInfo.h - Classifying ASCII Characters ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CharInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_CHARINFO_H #define LLVM_CLANG_BASIC_CHARINFO_H diff --git a/tools/clang/include/clang/Basic/CommentNodes.td b/tools/clang/include/clang/Basic/CommentNodes.td index de00abf81c..78a21f1d76 100644 --- a/tools/clang/include/clang/Basic/CommentNodes.td +++ b/tools/clang/include/clang/Basic/CommentNodes.td @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentNodes.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// class Comment { bit Abstract = abstract; diff --git a/tools/clang/include/clang/Basic/CommentOptions.h b/tools/clang/include/clang/Basic/CommentOptions.h index 8b1c986e39..92419f91b7 100644 --- a/tools/clang/include/clang/Basic/CommentOptions.h +++ b/tools/clang/include/clang/Basic/CommentOptions.h @@ -1,17 +1,16 @@ //===--- CommentOptions.h - Options for parsing comments -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::CommentOptions interface. // +/// \file +/// \brief Defines the clang::CommentOptions interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_COMMENTOPTIONS_H #define LLVM_CLANG_BASIC_COMMENTOPTIONS_H diff --git a/tools/clang/include/clang/Basic/DeclNodes.td b/tools/clang/include/clang/Basic/DeclNodes.td index d26e64bbdf..b53dd33e7a 100644 --- a/tools/clang/include/clang/Basic/DeclNodes.td +++ b/tools/clang/include/clang/Basic/DeclNodes.td @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclNodes.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// class AttrSubject; diff --git a/tools/clang/include/clang/Basic/Diagnostic.h b/tools/clang/include/clang/Basic/Diagnostic.h index 187b5fa5c8..3d5e5e8b04 100644 --- a/tools/clang/include/clang/Basic/Diagnostic.h +++ b/tools/clang/include/clang/Basic/Diagnostic.h @@ -1,14 +1,14 @@ //===--- Diagnostic.h - C Language Family Diagnostic Handling ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Diagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the Diagnostic-related interfaces. // +/// \file +/// \brief Defines the Diagnostic-related interfaces. /// //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Basic/Diagnostic.td b/tools/clang/include/clang/Basic/Diagnostic.td index 79c2d0ccd5..bc450636b9 100644 --- a/tools/clang/include/clang/Basic/Diagnostic.td +++ b/tools/clang/include/clang/Basic/Diagnostic.td @@ -1,16 +1,16 @@ //===--- Diagnostic.td - C Language Family Diagnostic Handling ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Diagnostic.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TableGen core definitions for the diagnostics // -// and diagnostic control. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Define the diagnostic severities. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TableGen core definitions for the diagnostics +// and diagnostic control. +// +//===----------------------------------------------------------------------===// class Severity { string Name = N; diff --git a/tools/clang/include/clang/Basic/DiagnosticASTKinds.td b/tools/clang/include/clang/Basic/DiagnosticASTKinds.td index 85449a3b2c..0b37030d7e 100644 --- a/tools/clang/include/clang/Basic/DiagnosticASTKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticASTKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticASTKinds.td - libast diagnostics ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticASTKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "AST" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticAnalysisKinds.td b/tools/clang/include/clang/Basic/DiagnosticAnalysisKinds.td index b7ece683a9..5461212cd2 100644 --- a/tools/clang/include/clang/Basic/DiagnosticAnalysisKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticAnalysisKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticAnalysisKinds.td - libanalysis diagnostics --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticAnalysisKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Analysis" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticCategories.h b/tools/clang/include/clang/Basic/DiagnosticCategories.h index 862a41f976..4dd067ba1e 100644 --- a/tools/clang/include/clang/Basic/DiagnosticCategories.h +++ b/tools/clang/include/clang/Basic/DiagnosticCategories.h @@ -1,12 +1,11 @@ //===- DiagnosticCategories.h - Diagnostic Categories Enumerators-*- C++ -*===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticCategories.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_DIAGNOSTICCATEGORIES_H #define LLVM_CLANG_BASIC_DIAGNOSTICCATEGORIES_H diff --git a/tools/clang/include/clang/Basic/DiagnosticCategories.td b/tools/clang/include/clang/Basic/DiagnosticCategories.td index 7b896332ec..37b856976d 100644 --- a/tools/clang/include/clang/Basic/DiagnosticCategories.td +++ b/tools/clang/include/clang/Basic/DiagnosticCategories.td @@ -1,12 +1,11 @@ //==--- DiagnosticCategories.td - Diagnostic Category Definitions ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticCategories.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// class CatInlineAsm : DiagCategory<"Inline Assembly Issue">; class CatBackend : DiagCategory<"Backend Issue">; diff --git a/tools/clang/include/clang/Basic/DiagnosticCommentKinds.td b/tools/clang/include/clang/Basic/DiagnosticCommentKinds.td index 635f2a2740..ab24582c11 100644 --- a/tools/clang/include/clang/Basic/DiagnosticCommentKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticCommentKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticCommentKinds.td - diagnostics related to comments -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticCommentKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Comment" in { let CategoryName = "Documentation Issue" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td b/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td index 34e1332248..c390014615 100644 --- a/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticCommonKinds.td @@ -1,13 +1,11 @@ //==--- DiagnosticCommonKinds.td - common diagnostics ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticCommonKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Common Helpers // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Common" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td b/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td index 38c6ba5c2e..f7f09da4ea 100644 --- a/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticDriverKinds.td - libdriver diagnostics ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticDriverKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Driver" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td b/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td index d59b2c7f31..f4ab4800c9 100644 --- a/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticFrontendKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticFrontendKinds.td - frontend diagnostics -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticFrontendKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// class BackendInfo : CatBackend, ShowInSystemHeader; diff --git a/tools/clang/include/clang/Basic/DiagnosticGroups.td b/tools/clang/include/clang/Basic/DiagnosticGroups.td index 7fffddab9f..e0442ce911 100644 --- a/tools/clang/include/clang/Basic/DiagnosticGroups.td +++ b/tools/clang/include/clang/Basic/DiagnosticGroups.td @@ -1,12 +1,11 @@ //==--- DiagnosticGroups.td - Diagnostic Group Definitions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticGroups.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">; def ImplicitInt : DiagGroup<"implicit-int">; diff --git a/tools/clang/include/clang/Basic/DiagnosticIDs.h b/tools/clang/include/clang/Basic/DiagnosticIDs.h index 17f455b499..a675dfabe4 100644 --- a/tools/clang/include/clang/Basic/DiagnosticIDs.h +++ b/tools/clang/include/clang/Basic/DiagnosticIDs.h @@ -1,17 +1,16 @@ //===--- DiagnosticIDs.h - Diagnostic IDs Handling --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticIDs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the Diagnostic IDs-related interfaces. // +/// \file +/// \brief Defines the Diagnostic IDs-related interfaces. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_DIAGNOSTICIDS_H #define LLVM_CLANG_BASIC_DIAGNOSTICIDS_H diff --git a/tools/clang/include/clang/Basic/DiagnosticLexKinds.td b/tools/clang/include/clang/Basic/DiagnosticLexKinds.td index dd2bb96ca1..6ea94dcc56 100644 --- a/tools/clang/include/clang/Basic/DiagnosticLexKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticLexKinds.td @@ -1,13 +1,11 @@ //==--- DiagnosticLexKinds.td - liblex diagnostics ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticLexKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Lexer Diagnostics // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Lex", CategoryName = "Lexical or Preprocessor Issue" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticOptions.def b/tools/clang/include/clang/Basic/DiagnosticOptions.def index 12379e8ab8..233bcb8389 100644 --- a/tools/clang/include/clang/Basic/DiagnosticOptions.def +++ b/tools/clang/include/clang/Basic/DiagnosticOptions.def @@ -1,19 +1,21 @@ //===--- DiagOptions.def - Diagnostic option database ------------- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticOptions.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the diagnostic options. Users of this file // -// must define the DIAGOPT macro to make use of this information. // -// Optionally, the user may also define ENUM_DIAGOPT (for options // -// that have enumeration type and VALUE_DIAGOPT (for options that // -// describe a value rather than a flag). The SEMANTIC_* variants of these macros// -// indicate options that affect the processing of the program, rather than // -// simply the output. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the diagnostic options. Users of this file +// must define the DIAGOPT macro to make use of this information. +// Optionally, the user may also define ENUM_DIAGOPT (for options +// that have enumeration type and VALUE_DIAGOPT (for options that +// describe a value rather than a flag). The SEMANTIC_* variants of these macros +// indicate options that affect the processing of the program, rather than +// simply the output. +// +//===----------------------------------------------------------------------===// #ifndef DIAGOPT # error Define the DIAGOPT macro to handle language options diff --git a/tools/clang/include/clang/Basic/DiagnosticOptions.h b/tools/clang/include/clang/Basic/DiagnosticOptions.h index 2b1da2a3b6..c9b0c5def9 100644 --- a/tools/clang/include/clang/Basic/DiagnosticOptions.h +++ b/tools/clang/include/clang/Basic/DiagnosticOptions.h @@ -1,12 +1,11 @@ //===--- DiagnosticOptions.h ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H #define LLVM_CLANG_BASIC_DIAGNOSTICOPTIONS_H diff --git a/tools/clang/include/clang/Basic/DiagnosticParseKinds.td b/tools/clang/include/clang/Basic/DiagnosticParseKinds.td index c61d26c8b1..db671e04b4 100644 --- a/tools/clang/include/clang/Basic/DiagnosticParseKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticParseKinds.td @@ -1,13 +1,11 @@ //==--- DiagnosticParseKinds.td - libparse diagnostics --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticParseKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Parser Diagnostics // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Parse" in { diff --git a/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td b/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td index 6d3081cd17..390f99b4b2 100644 --- a/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticSemaKinds.td - libsema diagnostics ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticsSemaKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // Semantic Analysis diff --git a/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.td b/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.td index 0c46a65a9f..796027ea62 100644 --- a/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.td +++ b/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.td @@ -1,12 +1,11 @@ //==--- DiagnosticSerializationKinds.td - serialization diagnostics -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticSerializationKinds.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// let Component = "Serialization" in { let CategoryName = "AST Deserialization Issue" in { diff --git a/tools/clang/include/clang/Basic/ExceptionSpecificationType.h b/tools/clang/include/clang/Basic/ExceptionSpecificationType.h index 5b021c5577..132b5ba1e5 100644 --- a/tools/clang/include/clang/Basic/ExceptionSpecificationType.h +++ b/tools/clang/include/clang/Basic/ExceptionSpecificationType.h @@ -1,18 +1,17 @@ //===--- ExceptionSpecificationType.h ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExceptionSpecificationType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the ExceptionSpecificationType enumeration and various // -/// utility functions. // +/// \file +/// \brief Defines the ExceptionSpecificationType enumeration and various +/// utility functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_EXCEPTIONSPECIFICATIONTYPE_H #define LLVM_CLANG_BASIC_EXCEPTIONSPECIFICATIONTYPE_H diff --git a/tools/clang/include/clang/Basic/ExpressionTraits.h b/tools/clang/include/clang/Basic/ExpressionTraits.h index 61dd485ad1..0363a1d2c7 100644 --- a/tools/clang/include/clang/Basic/ExpressionTraits.h +++ b/tools/clang/include/clang/Basic/ExpressionTraits.h @@ -1,17 +1,16 @@ //===- ExpressionTraits.h - C++ Expression Traits Support Enums -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExpressionTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines enumerations for expression traits intrinsics. // +/// \file +/// \brief Defines enumerations for expression traits intrinsics. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_EXPRESSIONTRAITS_H #define LLVM_CLANG_BASIC_EXPRESSIONTRAITS_H diff --git a/tools/clang/include/clang/Basic/FileManager.h b/tools/clang/include/clang/Basic/FileManager.h index 468d06e758..ac0d7a15e5 100644 --- a/tools/clang/include/clang/Basic/FileManager.h +++ b/tools/clang/include/clang/Basic/FileManager.h @@ -1,17 +1,16 @@ //===--- FileManager.h - File System Probing and Caching --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::FileManager interface and associated types. // +/// \file +/// \brief Defines the clang::FileManager interface and associated types. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_FILEMANAGER_H #define LLVM_CLANG_BASIC_FILEMANAGER_H diff --git a/tools/clang/include/clang/Basic/FileSystemOptions.h b/tools/clang/include/clang/Basic/FileSystemOptions.h index 305cd40640..38f1346312 100644 --- a/tools/clang/include/clang/Basic/FileSystemOptions.h +++ b/tools/clang/include/clang/Basic/FileSystemOptions.h @@ -1,17 +1,16 @@ //===--- FileSystemOptions.h - File System Options --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileSystemOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::FileSystemOptions interface. // +/// \file +/// \brief Defines the clang::FileSystemOptions interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_FILESYSTEMOPTIONS_H #define LLVM_CLANG_BASIC_FILESYSTEMOPTIONS_H diff --git a/tools/clang/include/clang/Basic/FileSystemStatCache.h b/tools/clang/include/clang/Basic/FileSystemStatCache.h index e719bdf7e0..cad9189348 100644 --- a/tools/clang/include/clang/Basic/FileSystemStatCache.h +++ b/tools/clang/include/clang/Basic/FileSystemStatCache.h @@ -1,17 +1,16 @@ //===--- FileSystemStatCache.h - Caching for 'stat' calls -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileSystemStatCache.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the FileSystemStatCache interface. // +/// \file +/// \brief Defines the FileSystemStatCache interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_FILESYSTEMSTATCACHE_H #define LLVM_CLANG_BASIC_FILESYSTEMSTATCACHE_H diff --git a/tools/clang/include/clang/Basic/IdentifierTable.h b/tools/clang/include/clang/Basic/IdentifierTable.h index ee8c47df4e..1785e04b91 100644 --- a/tools/clang/include/clang/Basic/IdentifierTable.h +++ b/tools/clang/include/clang/Basic/IdentifierTable.h @@ -1,18 +1,17 @@ //===--- IdentifierTable.h - Hash table for identifier lookup ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IdentifierTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::IdentifierInfo, clang::IdentifierTable, and // -/// clang::Selector interfaces. // +/// \file +/// \brief Defines the clang::IdentifierInfo, clang::IdentifierTable, and +/// clang::Selector interfaces. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_IDENTIFIERTABLE_H #define LLVM_CLANG_BASIC_IDENTIFIERTABLE_H diff --git a/tools/clang/include/clang/Basic/LLVM.h b/tools/clang/include/clang/Basic/LLVM.h index 7028aff7f5..0e6ff9259a 100644 --- a/tools/clang/include/clang/Basic/LLVM.h +++ b/tools/clang/include/clang/Basic/LLVM.h @@ -1,17 +1,17 @@ //===--- LLVM.h - Import various common LLVM datatypes ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVM.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief Forward-declares and imports various common LLVM datatypes that // -/// clang wants to use unqualified. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// \file +/// \brief Forward-declares and imports various common LLVM datatypes that +/// clang wants to use unqualified. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_LLVM_H #define LLVM_CLANG_BASIC_LLVM_H diff --git a/tools/clang/include/clang/Basic/Lambda.h b/tools/clang/include/clang/Basic/Lambda.h index d5298a400a..e676e726dd 100644 --- a/tools/clang/include/clang/Basic/Lambda.h +++ b/tools/clang/include/clang/Basic/Lambda.h @@ -1,18 +1,17 @@ //===--- Lambda.h - Types for C++ Lambdas -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Lambda.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines several types used to describe C++ lambda expressions // -/// that are shared between the parser and AST. // +/// \file +/// \brief Defines several types used to describe C++ lambda expressions +/// that are shared between the parser and AST. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_LAMBDA_H diff --git a/tools/clang/include/clang/Basic/LangOptions.def b/tools/clang/include/clang/Basic/LangOptions.def index db4b326428..67cd80d9e1 100644 --- a/tools/clang/include/clang/Basic/LangOptions.def +++ b/tools/clang/include/clang/Basic/LangOptions.def @@ -1,35 +1,35 @@ //===--- LangOptions.def - Language option database -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LangOptions.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the language options. Users of this file must // -// define the LANGOPT macro to make use of this information. // -// // -// Optionally, the user may also define: // -// // -// BENIGN_LANGOPT: for options that don't affect the construction of the AST in// -// any way (that is, the value can be different between an implicit module// -// and the user of that module). // -// // -// COMPATIBLE_LANGOPT: for options that affect the construction of the AST in// -// a way that doesn't prevent interoperability (that is, the value can be// -// different between an explicit module and the user of that module). // -// // -// ENUM_LANGOPT: for options that have enumeration, rather than unsigned, type.// -// // -// VALUE_LANGOPT: for options that describe a value rather than a flag. // -// // -// BENIGN_ENUM_LANGOPT, COMPATIBLE_ENUM_LANGOPT: combinations of the above. // -// // -// FIXME: Clients should be able to more easily select whether they want // -// different levels of compatibility versus how to handle different kinds // -// of option. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the language options. Users of this file must +// define the LANGOPT macro to make use of this information. +// +// Optionally, the user may also define: +// +// BENIGN_LANGOPT: for options that don't affect the construction of the AST in +// any way (that is, the value can be different between an implicit module +// and the user of that module). +// +// COMPATIBLE_LANGOPT: for options that affect the construction of the AST in +// a way that doesn't prevent interoperability (that is, the value can be +// different between an explicit module and the user of that module). +// +// ENUM_LANGOPT: for options that have enumeration, rather than unsigned, type. +// +// VALUE_LANGOPT: for options that describe a value rather than a flag. +// +// BENIGN_ENUM_LANGOPT, COMPATIBLE_ENUM_LANGOPT: combinations of the above. +// +// FIXME: Clients should be able to more easily select whether they want +// different levels of compatibility versus how to handle different kinds +// of option. +//===----------------------------------------------------------------------===// #ifndef LANGOPT # error Define the LANGOPT macro to handle language options diff --git a/tools/clang/include/clang/Basic/LangOptions.h b/tools/clang/include/clang/Basic/LangOptions.h index b4687c6096..33ea62b41b 100644 --- a/tools/clang/include/clang/Basic/LangOptions.h +++ b/tools/clang/include/clang/Basic/LangOptions.h @@ -1,17 +1,16 @@ //===--- LangOptions.h - C Language Family Language Options -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LangOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::LangOptions interface. // +/// \file +/// \brief Defines the clang::LangOptions interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_LANGOPTIONS_H #define LLVM_CLANG_BASIC_LANGOPTIONS_H diff --git a/tools/clang/include/clang/Basic/Linkage.h b/tools/clang/include/clang/Basic/Linkage.h index ac3c99c296..8b15c8ed6e 100644 --- a/tools/clang/include/clang/Basic/Linkage.h +++ b/tools/clang/include/clang/Basic/Linkage.h @@ -1,17 +1,16 @@ //===--- Linkage.h - Linkage enumeration and utilities ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Linkage.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the Linkage enumeration and various utility functions. // +/// \file +/// \brief Defines the Linkage enumeration and various utility functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_LINKAGE_H #define LLVM_CLANG_BASIC_LINKAGE_H diff --git a/tools/clang/include/clang/Basic/MacroBuilder.h b/tools/clang/include/clang/Basic/MacroBuilder.h index 696670cb5e..9a9eaa2498 100644 --- a/tools/clang/include/clang/Basic/MacroBuilder.h +++ b/tools/clang/include/clang/Basic/MacroBuilder.h @@ -1,17 +1,16 @@ //===--- MacroBuilder.h - CPP Macro building utility ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacroBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::MacroBuilder utility class. // +/// \file +/// \brief Defines the clang::MacroBuilder utility class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_MACROBUILDER_H #define LLVM_CLANG_BASIC_MACROBUILDER_H diff --git a/tools/clang/include/clang/Basic/Module.h b/tools/clang/include/clang/Basic/Module.h index 870c71f8da..1bc89257d3 100644 --- a/tools/clang/include/clang/Basic/Module.h +++ b/tools/clang/include/clang/Basic/Module.h @@ -1,18 +1,17 @@ //===--- Module.h - Describe a module ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Module.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::Module class, which describes a module in the // -/// source code. // +/// \file +/// \brief Defines the clang::Module class, which describes a module in the +/// source code. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_MODULE_H #define LLVM_CLANG_BASIC_MODULE_H diff --git a/tools/clang/include/clang/Basic/ObjCRuntime.h b/tools/clang/include/clang/Basic/ObjCRuntime.h index d9285e53ec..e33587d8f3 100644 --- a/tools/clang/include/clang/Basic/ObjCRuntime.h +++ b/tools/clang/include/clang/Basic/ObjCRuntime.h @@ -1,17 +1,16 @@ //===--- ObjCRuntime.h - Objective-C Runtime Configuration ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCRuntime.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines types useful for describing an Objective-C runtime. // +/// \file +/// \brief Defines types useful for describing an Objective-C runtime. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_OBJCRUNTIME_H #define LLVM_CLANG_BASIC_OBJCRUNTIME_H diff --git a/tools/clang/include/clang/Basic/OpenCLExtensions.def b/tools/clang/include/clang/Basic/OpenCLExtensions.def index 1cb09f3fc9..f493a1b716 100644 --- a/tools/clang/include/clang/Basic/OpenCLExtensions.def +++ b/tools/clang/include/clang/Basic/OpenCLExtensions.def @@ -1,15 +1,15 @@ //===--- OpenCLExtensions.def - OpenCL extension list -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OpenCLExtensions.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the list of supported OpenCL extensions. // -// // -/////////////////////////////////////////////////////////////////////////////// -// OpenCL 1.1. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the list of supported OpenCL extensions. +// +//===----------------------------------------------------------------------===// OPENCLEXT(cl_khr_fp64) OPENCLEXT(cl_khr_int64_base_atomics) diff --git a/tools/clang/include/clang/Basic/OpenMPKinds.def b/tools/clang/include/clang/Basic/OpenMPKinds.def index 2c3ab33867..67a5068cc2 100644 --- a/tools/clang/include/clang/Basic/OpenMPKinds.def +++ b/tools/clang/include/clang/Basic/OpenMPKinds.def @@ -1,17 +1,16 @@ //===--- OpenMPKinds.def - OpenMP directives and clauses list ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OpenMPKinds.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file defines the list of supported OpenMP directives and // -/// clauses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file defines the list of supported OpenMP directives and +/// clauses. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef OPENMP_DIRECTIVE # define OPENMP_DIRECTIVE(Name) diff --git a/tools/clang/include/clang/Basic/OpenMPKinds.h b/tools/clang/include/clang/Basic/OpenMPKinds.h index 808983d7a6..83939bb079 100644 --- a/tools/clang/include/clang/Basic/OpenMPKinds.h +++ b/tools/clang/include/clang/Basic/OpenMPKinds.h @@ -1,17 +1,16 @@ //===--- OpenMPKinds.h - OpenMP enums ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OpenMPKinds.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines some OpenMP-specific enums and functions. // +/// \file +/// \brief Defines some OpenMP-specific enums and functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_OPENMPKINDS_H #define LLVM_CLANG_BASIC_OPENMPKINDS_H diff --git a/tools/clang/include/clang/Basic/OperatorKinds.def b/tools/clang/include/clang/Basic/OperatorKinds.def index 1f6e230874..d011e9d39f 100644 --- a/tools/clang/include/clang/Basic/OperatorKinds.def +++ b/tools/clang/include/clang/Basic/OperatorKinds.def @@ -1,50 +1,51 @@ //===--- OperatorKinds.def - C++ Overloaded Operator Database ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OperatorKinds.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the OverloadedOperator database, which includes // -// all of the overloadable C++ operators. // -// // -/// @file OperatorKinds.def // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the OverloadedOperator database, which includes +// all of the overloadable C++ operators. +// +//===----------------------------------------------------------------------===// +// +/// @file OperatorKinds.def /// -/// In this file, each of the overloadable C++ operators is enumerated // -/// with either the OVERLOADED_OPERATOR or OVERLOADED_OPERATOR_MULTI // -/// macro, each of which can be specified by the code including this // -/// file. OVERLOADED_OPERATOR is used for single-token operators // -/// (e.g., "+"), and has six arguments: // +/// In this file, each of the overloadable C++ operators is enumerated +/// with either the OVERLOADED_OPERATOR or OVERLOADED_OPERATOR_MULTI +/// macro, each of which can be specified by the code including this +/// file. OVERLOADED_OPERATOR is used for single-token operators +/// (e.g., "+"), and has six arguments: /// -/// Name: The name of the token. OO_Name will be the name of the // -/// corresponding enumerator in OverloadedOperatorKind in // -/// OperatorKinds.h. // +/// Name: The name of the token. OO_Name will be the name of the +/// corresponding enumerator in OverloadedOperatorKind in +/// OperatorKinds.h. /// -/// Spelling: A string that provides a canonical spelling for the // -/// operator, e.g., "operator+". // +/// Spelling: A string that provides a canonical spelling for the +/// operator, e.g., "operator+". /// -/// Token: The name of the token that specifies the operator, e.g., // -/// "plus" for operator+ or "greatergreaterequal" for // -/// "operator>>=". With a "kw_" prefix, the token name can be used as // -/// an enumerator into the TokenKind enumeration. // +/// Token: The name of the token that specifies the operator, e.g., +/// "plus" for operator+ or "greatergreaterequal" for +/// "operator>>=". With a "kw_" prefix, the token name can be used as +/// an enumerator into the TokenKind enumeration. /// -/// Unary: True if the operator can be declared as a unary operator. // +/// Unary: True if the operator can be declared as a unary operator. /// -/// Binary: True if the operator can be declared as a binary // -/// operator. Note that some operators (e.g., "operator+" and // -/// "operator*") can be both unary and binary. // +/// Binary: True if the operator can be declared as a binary +/// operator. Note that some operators (e.g., "operator+" and +/// "operator*") can be both unary and binary. /// -/// MemberOnly: True if this operator can only be declared as a // -/// non-static member function. False if the operator can be both a // -/// non-member function and a non-static member function. // +/// MemberOnly: True if this operator can only be declared as a +/// non-static member function. False if the operator can be both a +/// non-member function and a non-static member function. /// -/// OVERLOADED_OPERATOR_MULTI is used to enumerate the multi-token // -/// overloaded operator names, e.g., "operator delete []". The macro // -/// has all of the parameters of OVERLOADED_OPERATOR except Token, // -/// which is omitted. // -// // -/////////////////////////////////////////////////////////////////////////////// +/// OVERLOADED_OPERATOR_MULTI is used to enumerate the multi-token +/// overloaded operator names, e.g., "operator delete []". The macro +/// has all of the parameters of OVERLOADED_OPERATOR except Token, +/// which is omitted. #ifndef OVERLOADED_OPERATOR # define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) diff --git a/tools/clang/include/clang/Basic/OperatorKinds.h b/tools/clang/include/clang/Basic/OperatorKinds.h index aaa14148d9..7120baeef6 100644 --- a/tools/clang/include/clang/Basic/OperatorKinds.h +++ b/tools/clang/include/clang/Basic/OperatorKinds.h @@ -1,17 +1,16 @@ //===--- OperatorKinds.h - C++ Overloaded Operators -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OperatorKinds.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines an enumeration for C++ overloaded operators. // +/// \file +/// \brief Defines an enumeration for C++ overloaded operators. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_OPERATORKINDS_H #define LLVM_CLANG_BASIC_OPERATORKINDS_H diff --git a/tools/clang/include/clang/Basic/OperatorPrecedence.h b/tools/clang/include/clang/Basic/OperatorPrecedence.h index b4474b5664..640749fdd1 100644 --- a/tools/clang/include/clang/Basic/OperatorPrecedence.h +++ b/tools/clang/include/clang/Basic/OperatorPrecedence.h @@ -1,17 +1,16 @@ //===--- OperatorPrecedence.h - Operator precedence levels ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OperatorPrecedence.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines and computes precedence levels for binary/ternary operators.// +/// \file +/// \brief Defines and computes precedence levels for binary/ternary operators. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_OPERATORPRECEDENCE_H #define LLVM_CLANG_BASIC_OPERATORPRECEDENCE_H diff --git a/tools/clang/include/clang/Basic/PartialDiagnostic.h b/tools/clang/include/clang/Basic/PartialDiagnostic.h index 728d42a52a..6b6113b38a 100644 --- a/tools/clang/include/clang/Basic/PartialDiagnostic.h +++ b/tools/clang/include/clang/Basic/PartialDiagnostic.h @@ -1,18 +1,17 @@ //===--- PartialDiagnostic.h - Diagnostic "closures" ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PartialDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Implements a partial diagnostic that can be emitted anwyhere // -/// in a DiagnosticBuilder stream. // +/// \file +/// \brief Implements a partial diagnostic that can be emitted anwyhere +/// in a DiagnosticBuilder stream. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_PARTIALDIAGNOSTIC_H #define LLVM_CLANG_BASIC_PARTIALDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Basic/PlistSupport.h b/tools/clang/include/clang/Basic/PlistSupport.h index 63fa8975ad..84dd29138a 100644 --- a/tools/clang/include/clang/Basic/PlistSupport.h +++ b/tools/clang/include/clang/Basic/PlistSupport.h @@ -1,12 +1,11 @@ //===---------- PlistSupport.h - Plist Output Utilities ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PlistSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_PLISTSUPPORT_H #define LLVM_CLANG_BASIC_PLISTSUPPORT_H diff --git a/tools/clang/include/clang/Basic/PrettyStackTrace.h b/tools/clang/include/clang/Basic/PrettyStackTrace.h index 3fcd815faa..6badae5c03 100644 --- a/tools/clang/include/clang/Basic/PrettyStackTrace.h +++ b/tools/clang/include/clang/Basic/PrettyStackTrace.h @@ -1,19 +1,18 @@ //===- clang/Basic/PrettyStackTrace.h - Pretty Crash Handling --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrettyStackTrace.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the PrettyStackTraceEntry class, which is used to make // -/// crashes give more contextual information about what the program was doing// -/// when it crashed. // +/// \file +/// \brief Defines the PrettyStackTraceEntry class, which is used to make +/// crashes give more contextual information about what the program was doing +/// when it crashed. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_PRETTYSTACKTRACE_H #define LLVM_CLANG_BASIC_PRETTYSTACKTRACE_H diff --git a/tools/clang/include/clang/Basic/SanitizerBlacklist.h b/tools/clang/include/clang/Basic/SanitizerBlacklist.h index 1abfd54163..e651e18316 100644 --- a/tools/clang/include/clang/Basic/SanitizerBlacklist.h +++ b/tools/clang/include/clang/Basic/SanitizerBlacklist.h @@ -1,15 +1,16 @@ //===--- SanitizerBlacklist.h - Blacklist for sanitizers --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerBlacklist.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// User-provided blacklist used to disable/alter instrumentation done in // -// sanitizers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// User-provided blacklist used to disable/alter instrumentation done in +// sanitizers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_SANITIZERBLACKLIST_H #define LLVM_CLANG_BASIC_SANITIZERBLACKLIST_H diff --git a/tools/clang/include/clang/Basic/Sanitizers.def b/tools/clang/include/clang/Basic/Sanitizers.def index 2b9ed2cf36..1b528c8d6f 100644 --- a/tools/clang/include/clang/Basic/Sanitizers.def +++ b/tools/clang/include/clang/Basic/Sanitizers.def @@ -1,17 +1,18 @@ //===--- Sanitizers.def - Runtime sanitizer options -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Sanitizers.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the options for specifying which runtime sanitizers to // -// enable. Users of this file must define the SANITIZER macro to make use of // -// this information. Users of this file can also define the SANITIZER_GROUP // -// macro to get information on options which refer to sets of sanitizers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the options for specifying which runtime sanitizers to +// enable. Users of this file must define the SANITIZER macro to make use of +// this information. Users of this file can also define the SANITIZER_GROUP +// macro to get information on options which refer to sets of sanitizers. +// +//===----------------------------------------------------------------------===// #ifndef SANITIZER #error "Define SANITIZER prior to including this file!" diff --git a/tools/clang/include/clang/Basic/Sanitizers.h b/tools/clang/include/clang/Basic/Sanitizers.h index 23a23aa130..98e70dee45 100644 --- a/tools/clang/include/clang/Basic/Sanitizers.h +++ b/tools/clang/include/clang/Basic/Sanitizers.h @@ -1,17 +1,16 @@ //===--- Sanitizers.h - C Language Family Language Options ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Sanitizers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::SanitizerKind enum. // +/// \file +/// \brief Defines the clang::SanitizerKind enum. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_SANITIZERS_H #define LLVM_CLANG_BASIC_SANITIZERS_H diff --git a/tools/clang/include/clang/Basic/SourceLocation.h b/tools/clang/include/clang/Basic/SourceLocation.h index 8dd11943bc..7aaee1df22 100644 --- a/tools/clang/include/clang/Basic/SourceLocation.h +++ b/tools/clang/include/clang/Basic/SourceLocation.h @@ -1,17 +1,16 @@ //===--- SourceLocation.h - Compact identifier for Source Files -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceLocation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::SourceLocation class and associated facilities.// +/// \file +/// \brief Defines the clang::SourceLocation class and associated facilities. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_SOURCELOCATION_H #define LLVM_CLANG_BASIC_SOURCELOCATION_H diff --git a/tools/clang/include/clang/Basic/SourceManager.h b/tools/clang/include/clang/Basic/SourceManager.h index be1db76ffb..3aea5ea982 100644 --- a/tools/clang/include/clang/Basic/SourceManager.h +++ b/tools/clang/include/clang/Basic/SourceManager.h @@ -1,37 +1,36 @@ //===--- SourceManager.h - Track and cache source files ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the SourceManager interface. // +/// \file +/// \brief Defines the SourceManager interface. /// -/// There are three different types of locations in a %file: a spelling // -/// location, an expansion location, and a presumed location. // +/// There are three different types of locations in a %file: a spelling +/// location, an expansion location, and a presumed location. /// -/// Given an example of: // -/// \code // -/// #define min(x, y) x < y ? x : y // -/// \endcode // +/// Given an example of: +/// \code +/// #define min(x, y) x < y ? x : y +/// \endcode /// -/// and then later on a use of min: // -/// \code // -/// #line 17 // -/// return min(a, b); // -/// \endcode // +/// and then later on a use of min: +/// \code +/// #line 17 +/// return min(a, b); +/// \endcode /// -/// The expansion location is the line in the source code where the macro // -/// was expanded (the return statement), the spelling location is the // -/// location in the source where the macro was originally defined, // -/// and the presumed location is where the line directive states that // -/// the line is 17, or any other line. // +/// The expansion location is the line in the source code where the macro +/// was expanded (the return statement), the spelling location is the +/// location in the source where the macro was originally defined, +/// and the presumed location is where the line directive states that +/// the line is 17, or any other line. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_SOURCEMANAGER_H #define LLVM_CLANG_BASIC_SOURCEMANAGER_H diff --git a/tools/clang/include/clang/Basic/SourceManagerInternals.h b/tools/clang/include/clang/Basic/SourceManagerInternals.h index 25830df3ea..c34858b79a 100644 --- a/tools/clang/include/clang/Basic/SourceManagerInternals.h +++ b/tools/clang/include/clang/Basic/SourceManagerInternals.h @@ -1,14 +1,14 @@ //===--- SourceManagerInternals.h - SourceManager Internals -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceManagerInternals.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines implementation details of the clang::SourceManager class. // +/// \file +/// \brief Defines implementation details of the clang::SourceManager class. /// //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Basic/Specifiers.h b/tools/clang/include/clang/Basic/Specifiers.h index 78b8881a05..86001d8a85 100644 --- a/tools/clang/include/clang/Basic/Specifiers.h +++ b/tools/clang/include/clang/Basic/Specifiers.h @@ -1,18 +1,17 @@ //===--- Specifiers.h - Declaration and Type Specifiers ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Specifiers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines various enumerations that describe declaration and // -/// type specifiers. // +/// \file +/// \brief Defines various enumerations that describe declaration and +/// type specifiers. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_SPECIFIERS_H #define LLVM_CLANG_BASIC_SPECIFIERS_H diff --git a/tools/clang/include/clang/Basic/StmtNodes.td b/tools/clang/include/clang/Basic/StmtNodes.td index 3e91cf88ab..5d0c795275 100644 --- a/tools/clang/include/clang/Basic/StmtNodes.td +++ b/tools/clang/include/clang/Basic/StmtNodes.td @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtNodes.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// class AttrSubject; diff --git a/tools/clang/include/clang/Basic/TargetBuiltins.h b/tools/clang/include/clang/Basic/TargetBuiltins.h index a4a2c8dfcb..e86ad23d7d 100644 --- a/tools/clang/include/clang/Basic/TargetBuiltins.h +++ b/tools/clang/include/clang/Basic/TargetBuiltins.h @@ -1,18 +1,17 @@ //===--- TargetBuiltins.h - Target specific builtin IDs ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetBuiltins.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Enumerates target-specific builtins in their own namespaces within// -/// namespace ::clang. // +/// \file +/// \brief Enumerates target-specific builtins in their own namespaces within +/// namespace ::clang. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TARGETBUILTINS_H #define LLVM_CLANG_BASIC_TARGETBUILTINS_H diff --git a/tools/clang/include/clang/Basic/TargetCXXABI.h b/tools/clang/include/clang/Basic/TargetCXXABI.h index e0a0757b05..42a976b3af 100644 --- a/tools/clang/include/clang/Basic/TargetCXXABI.h +++ b/tools/clang/include/clang/Basic/TargetCXXABI.h @@ -1,18 +1,17 @@ //===--- TargetCXXABI.h - C++ ABI Target Configuration ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetCXXABI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the TargetCXXABI class, which abstracts details of the // -/// C++ ABI that we're targeting. // +/// \file +/// \brief Defines the TargetCXXABI class, which abstracts details of the +/// C++ ABI that we're targeting. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TARGETCXXABI_H #define LLVM_CLANG_BASIC_TARGETCXXABI_H diff --git a/tools/clang/include/clang/Basic/TargetInfo.h b/tools/clang/include/clang/Basic/TargetInfo.h index 822a4adb6e..39f575f90e 100644 --- a/tools/clang/include/clang/Basic/TargetInfo.h +++ b/tools/clang/include/clang/Basic/TargetInfo.h @@ -1,17 +1,16 @@ //===--- TargetInfo.h - Expose information about the target -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::TargetInfo interface. // +/// \file +/// \brief Defines the clang::TargetInfo interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TARGETINFO_H #define LLVM_CLANG_BASIC_TARGETINFO_H diff --git a/tools/clang/include/clang/Basic/TargetOptions.h b/tools/clang/include/clang/Basic/TargetOptions.h index 57ea89273f..ca0cca78bf 100644 --- a/tools/clang/include/clang/Basic/TargetOptions.h +++ b/tools/clang/include/clang/Basic/TargetOptions.h @@ -1,17 +1,16 @@ //===--- TargetOptions.h ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::TargetOptions class. // +/// \file +/// \brief Defines the clang::TargetOptions class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TARGETOPTIONS_H #define LLVM_CLANG_BASIC_TARGETOPTIONS_H diff --git a/tools/clang/include/clang/Basic/TemplateKinds.h b/tools/clang/include/clang/Basic/TemplateKinds.h index 31ee20a8da..aed287b462 100644 --- a/tools/clang/include/clang/Basic/TemplateKinds.h +++ b/tools/clang/include/clang/Basic/TemplateKinds.h @@ -1,17 +1,16 @@ //===--- TemplateKinds.h - Enum values for C++ Template Kinds ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TemplateKinds.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::TemplateNameKind enum. // +/// \file +/// \brief Defines the clang::TemplateNameKind enum. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TEMPLATEKINDS_H #define LLVM_CLANG_BASIC_TEMPLATEKINDS_H diff --git a/tools/clang/include/clang/Basic/TokenKinds.def b/tools/clang/include/clang/Basic/TokenKinds.def index 5ae0a7e9f0..ff599b0fe0 100644 --- a/tools/clang/include/clang/Basic/TokenKinds.def +++ b/tools/clang/include/clang/Basic/TokenKinds.def @@ -1,18 +1,19 @@ //===--- TokenKinds.def - C Family Token Kind Database ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenKinds.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TokenKind database. This includes normal tokens like// -// tok::ampamp (corresponding to the && token) as well as keywords for various// -// languages. Users of this file must optionally #define the TOK, KEYWORD, // -// CXX11_KEYWORD, CONCEPTS_KEYWORD, ALIAS, or PPKEYWORD macros to make use of// -// this file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TokenKind database. This includes normal tokens like +// tok::ampamp (corresponding to the && token) as well as keywords for various +// languages. Users of this file must optionally #define the TOK, KEYWORD, +// CXX11_KEYWORD, CONCEPTS_KEYWORD, ALIAS, or PPKEYWORD macros to make use of +// this file. +// +//===----------------------------------------------------------------------===// #ifndef TOK #define TOK(X) diff --git a/tools/clang/include/clang/Basic/TokenKinds.h b/tools/clang/include/clang/Basic/TokenKinds.h index 301774c7fe..f4ecb3eb30 100644 --- a/tools/clang/include/clang/Basic/TokenKinds.h +++ b/tools/clang/include/clang/Basic/TokenKinds.h @@ -1,17 +1,16 @@ //===--- TokenKinds.h - Enum values for C Token Kinds -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenKinds.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::TokenKind enum and support functions. // +/// \file +/// \brief Defines the clang::TokenKind enum and support functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TOKENKINDS_H #define LLVM_CLANG_BASIC_TOKENKINDS_H diff --git a/tools/clang/include/clang/Basic/TypeTraits.h b/tools/clang/include/clang/Basic/TypeTraits.h index 44284371ff..765246b4cc 100644 --- a/tools/clang/include/clang/Basic/TypeTraits.h +++ b/tools/clang/include/clang/Basic/TypeTraits.h @@ -1,17 +1,16 @@ //===--- TypeTraits.h - C++ Type Traits Support Enumerations ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeTraits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines enumerations for the type traits support. // +/// \file +/// \brief Defines enumerations for the type traits support. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_TYPETRAITS_H #define LLVM_CLANG_BASIC_TYPETRAITS_H diff --git a/tools/clang/include/clang/Basic/Version.h b/tools/clang/include/clang/Basic/Version.h index 7364f9da04..02da432a40 100644 --- a/tools/clang/include/clang/Basic/Version.h +++ b/tools/clang/include/clang/Basic/Version.h @@ -1,18 +1,17 @@ //===- Version.h - Clang Version Number -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Version.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines version macros and version-related utility functions // -/// for Clang. // +/// \file +/// \brief Defines version macros and version-related utility functions +/// for Clang. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_VERSION_H #define LLVM_CLANG_BASIC_VERSION_H diff --git a/tools/clang/include/clang/Basic/VersionTuple.h b/tools/clang/include/clang/Basic/VersionTuple.h index 2a24d64ef9..784f3f322d 100644 --- a/tools/clang/include/clang/Basic/VersionTuple.h +++ b/tools/clang/include/clang/Basic/VersionTuple.h @@ -1,18 +1,17 @@ //===- VersionTuple.h - Version Number Handling -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VersionTuple.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::VersionTuple class, which represents a version in// -/// the form major[.minor[.subminor]]. // +/// \file +/// \brief Defines the clang::VersionTuple class, which represents a version in +/// the form major[.minor[.subminor]]. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_VERSIONTUPLE_H #define LLVM_CLANG_BASIC_VERSIONTUPLE_H diff --git a/tools/clang/include/clang/Basic/VirtualFileSystem.h b/tools/clang/include/clang/Basic/VirtualFileSystem.h index 724a30aeb8..1c65fb5eac 100644 --- a/tools/clang/include/clang/Basic/VirtualFileSystem.h +++ b/tools/clang/include/clang/Basic/VirtualFileSystem.h @@ -1,15 +1,14 @@ //===- VirtualFileSystem.h - Virtual File System Layer ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VirtualFileSystem.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief Defines the virtual file system interface vfs::FileSystem. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief Defines the virtual file system interface vfs::FileSystem. +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_VIRTUALFILESYSTEM_H #define LLVM_CLANG_BASIC_VIRTUALFILESYSTEM_H diff --git a/tools/clang/include/clang/Basic/Visibility.h b/tools/clang/include/clang/Basic/Visibility.h index 6c01b23973..6ac52ed6b5 100644 --- a/tools/clang/include/clang/Basic/Visibility.h +++ b/tools/clang/include/clang/Basic/Visibility.h @@ -1,18 +1,17 @@ //===--- Visibility.h - Visibility enumeration and utilities ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Visibility.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::Visibility enumeration and various utility // -/// functions. // +/// \file +/// \brief Defines the clang::Visibility enumeration and various utility +/// functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_VISIBILITY_H #define LLVM_CLANG_BASIC_VISIBILITY_H diff --git a/tools/clang/include/clang/Basic/arm_neon.td b/tools/clang/include/clang/Basic/arm_neon.td index ad84f5bb26..9f5f72965e 100644 --- a/tools/clang/include/clang/Basic/arm_neon.td +++ b/tools/clang/include/clang/Basic/arm_neon.td @@ -1,23 +1,25 @@ //===--- arm_neon.td - ARM NEON compiler interface ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// arm_neon.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TableGen definitions from which the ARM NEON header// -// file will be generated. See ARM document DUI0348B. // -// // -// Each intrinsic is a subclass of the Inst class. An intrinsic can either // -// generate a __builtin_* call or it can expand to a set of generic operations.// -// // -// The operations are subclasses of Operation providing a list of DAGs, the // -// last of which is the return value. The available DAG nodes are documented // -// below. // -// // -/////////////////////////////////////////////////////////////////////////////// -// The base Operation class. All operations must subclass this. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TableGen definitions from which the ARM NEON header +// file will be generated. See ARM document DUI0348B. +// +//===----------------------------------------------------------------------===// +// +// Each intrinsic is a subclass of the Inst class. An intrinsic can either +// generate a __builtin_* call or it can expand to a set of generic operations. +// +// The operations are subclasses of Operation providing a list of DAGs, the +// last of which is the return value. The available DAG nodes are documented +// below. +// +//===----------------------------------------------------------------------===// class Operation ops=[]> { list Ops = ops; diff --git a/tools/clang/include/clang/CMakeLists.txt b/tools/clang/include/clang/CMakeLists.txt index a5667e03b1..1d8aecd3b2 100644 --- a/tools/clang/include/clang/CMakeLists.txt +++ b/tools/clang/include/clang/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(AST) add_subdirectory(Basic) add_subdirectory(Driver) diff --git a/tools/clang/include/clang/CodeGen/BackendUtil.h b/tools/clang/include/clang/CodeGen/BackendUtil.h index 100593ec77..cd0540c93f 100644 --- a/tools/clang/include/clang/CodeGen/BackendUtil.h +++ b/tools/clang/include/clang/CodeGen/BackendUtil.h @@ -1,12 +1,11 @@ //===--- BackendUtil.h - LLVM Backend Utilities -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BackendUtil.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_BACKENDUTIL_H #define LLVM_CLANG_CODEGEN_BACKENDUTIL_H diff --git a/tools/clang/include/clang/CodeGen/CGFunctionInfo.h b/tools/clang/include/clang/CodeGen/CGFunctionInfo.h index 8f645c7442..e32fb14585 100644 --- a/tools/clang/include/clang/CodeGen/CGFunctionInfo.h +++ b/tools/clang/include/clang/CodeGen/CGFunctionInfo.h @@ -1,16 +1,17 @@ //==-- CGFunctionInfo.h - Representation of function argument/return types -==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGFunctionInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines CGFunctionInfo and associated types used in representing the // -// LLVM source types and ABI-coerced types for function arguments and // -// return values. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines CGFunctionInfo and associated types used in representing the +// LLVM source types and ABI-coerced types for function arguments and +// return values. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_CGFUNCTIONINFO_H #define LLVM_CLANG_CODEGEN_CGFUNCTIONINFO_H diff --git a/tools/clang/include/clang/CodeGen/CodeGenABITypes.h b/tools/clang/include/clang/CodeGen/CodeGenABITypes.h index 709b5b5393..4e76cd4d5b 100644 --- a/tools/clang/include/clang/CodeGen/CodeGenABITypes.h +++ b/tools/clang/include/clang/CodeGen/CodeGenABITypes.h @@ -1,24 +1,25 @@ //==---- CodeGenABITypes.h - Convert Clang types to LLVM types for ABI -----==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenABITypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// CodeGenABITypes is a simple interface for getting LLVM types for // -// the parameters and the return value of a function given the Clang // -// types. // // -// The class is implemented as a public wrapper around the private // -// CodeGenTypes class in lib/CodeGen. // +// The LLVM Compiler Infrastructure // -// It allows other clients, like LLDB, to determine the LLVM types that are // -// actually used in function calls, which makes it possible to then determine// -// the acutal ABI locations (e.g. registers, stack locations, etc.) that // -// these parameters are stored in. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// +// +// CodeGenABITypes is a simple interface for getting LLVM types for +// the parameters and the return value of a function given the Clang +// types. +// +// The class is implemented as a public wrapper around the private +// CodeGenTypes class in lib/CodeGen. +// +// It allows other clients, like LLDB, to determine the LLVM types that are +// actually used in function calls, which makes it possible to then determine +// the acutal ABI locations (e.g. registers, stack locations, etc.) that +// these parameters are stored in. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_CODEGENABITYPES_H #define LLVM_CLANG_CODEGEN_CODEGENABITYPES_H diff --git a/tools/clang/include/clang/CodeGen/CodeGenAction.h b/tools/clang/include/clang/CodeGen/CodeGenAction.h index 075416b802..168342b5d2 100644 --- a/tools/clang/include/clang/CodeGen/CodeGenAction.h +++ b/tools/clang/include/clang/CodeGen/CodeGenAction.h @@ -1,12 +1,11 @@ //===--- CodeGenAction.h - LLVM Code Generation Frontend Action -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenAction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_CODEGENACTION_H #define LLVM_CLANG_CODEGEN_CODEGENACTION_H diff --git a/tools/clang/include/clang/CodeGen/ModuleBuilder.h b/tools/clang/include/clang/CodeGen/ModuleBuilder.h index feb5557c65..52497d9a9a 100644 --- a/tools/clang/include/clang/CodeGen/ModuleBuilder.h +++ b/tools/clang/include/clang/CodeGen/ModuleBuilder.h @@ -1,14 +1,15 @@ //===--- CodeGen/ModuleBuilder.h - Build LLVM from ASTs ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ModuleBuilder interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ModuleBuilder interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_MODULEBUILDER_H #define LLVM_CLANG_CODEGEN_MODULEBUILDER_H diff --git a/tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h b/tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h index 04c1874ef4..e82aab7875 100644 --- a/tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h +++ b/tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h @@ -1,12 +1,11 @@ //===-- CodeGen/ObjectFilePCHContainerOperations.h - ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectFilePCHContainerOperations.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_CODEGEN_OBJECT_FILE_PCH_CONTAINER_OPERATIONS_H #define LLVM_CLANG_CODEGEN_OBJECT_FILE_PCH_CONTAINER_OPERATIONS_H diff --git a/tools/clang/include/clang/Driver/Action.h b/tools/clang/include/clang/Driver/Action.h index f74d3cec59..fddd15885e 100644 --- a/tools/clang/include/clang/Driver/Action.h +++ b/tools/clang/include/clang/Driver/Action.h @@ -1,12 +1,11 @@ //===--- Action.h - Abstract compilation steps ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Action.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_ACTION_H #define LLVM_CLANG_DRIVER_ACTION_H diff --git a/tools/clang/include/clang/Driver/CC1Options.td b/tools/clang/include/clang/Driver/CC1Options.td index 4a3ae96c13..5bf761084a 100644 --- a/tools/clang/include/clang/Driver/CC1Options.td +++ b/tools/clang/include/clang/Driver/CC1Options.td @@ -1,14 +1,15 @@ //===--- CC1Options.td - Options for clang -cc1 ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CC1Options.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the options accepted by clang -cc1 and clang -cc1as. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the options accepted by clang -cc1 and clang -cc1as. +// +//===----------------------------------------------------------------------===// let Flags = [CC1Option, NoDriverOption] in { diff --git a/tools/clang/include/clang/Driver/CLCompatOptions.td b/tools/clang/include/clang/Driver/CLCompatOptions.td index c43b3a0597..907b16fd5c 100644 --- a/tools/clang/include/clang/Driver/CLCompatOptions.td +++ b/tools/clang/include/clang/Driver/CLCompatOptions.td @@ -1,14 +1,15 @@ //===--- CLCompatOptions.td - Options for clang-cl ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CLCompatOptions.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the options accepted by clang-cl. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the options accepted by clang-cl. +// +//===----------------------------------------------------------------------===// def cl_Group : OptionGroup<"">, HelpText<"CL.EXE COMPATIBILITY OPTIONS">; diff --git a/tools/clang/include/clang/Driver/CMakeLists.txt b/tools/clang/include/clang/Driver/CMakeLists.txt index 84d678e378..a9d9880479 100644 --- a/tools/clang/include/clang/Driver/CMakeLists.txt +++ b/tools/clang/include/clang/Driver/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_TARGET_DEFINITIONS Options.td) tablegen(LLVM Options.inc -gen-opt-parser-defs) add_public_tablegen_target(ClangDriverOptions) diff --git a/tools/clang/include/clang/Driver/Compilation.h b/tools/clang/include/clang/Driver/Compilation.h index 314f7aa97f..f0c1bedb39 100644 --- a/tools/clang/include/clang/Driver/Compilation.h +++ b/tools/clang/include/clang/Driver/Compilation.h @@ -1,12 +1,11 @@ //===--- Compilation.h - Compilation Task Data Structure --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Compilation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_COMPILATION_H #define LLVM_CLANG_DRIVER_COMPILATION_H diff --git a/tools/clang/include/clang/Driver/Driver.h b/tools/clang/include/clang/Driver/Driver.h index 866c0faab9..4a67fdb653 100644 --- a/tools/clang/include/clang/Driver/Driver.h +++ b/tools/clang/include/clang/Driver/Driver.h @@ -1,12 +1,11 @@ //===--- Driver.h - Clang GCC Compatible Driver -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Driver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_DRIVER_H #define LLVM_CLANG_DRIVER_DRIVER_H diff --git a/tools/clang/include/clang/Driver/DriverDiagnostic.h b/tools/clang/include/clang/Driver/DriverDiagnostic.h index 1448a654b7..680338a2ea 100644 --- a/tools/clang/include/clang/Driver/DriverDiagnostic.h +++ b/tools/clang/include/clang/Driver/DriverDiagnostic.h @@ -1,12 +1,11 @@ //===--- DiagnosticDriver.h - Diagnostics for libdriver ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DriverDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_DRIVERDIAGNOSTIC_H #define LLVM_CLANG_DRIVER_DRIVERDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Driver/Job.h b/tools/clang/include/clang/Driver/Job.h index 9b932eba59..186244bacf 100644 --- a/tools/clang/include/clang/Driver/Job.h +++ b/tools/clang/include/clang/Driver/Job.h @@ -1,12 +1,11 @@ //===--- Job.h - Commands to Execute ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Job.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_JOB_H #define LLVM_CLANG_DRIVER_JOB_H diff --git a/tools/clang/include/clang/Driver/Multilib.h b/tools/clang/include/clang/Driver/Multilib.h index 5e2efb7f37..20bb80dca2 100644 --- a/tools/clang/include/clang/Driver/Multilib.h +++ b/tools/clang/include/clang/Driver/Multilib.h @@ -1,12 +1,11 @@ //===--- Multilib.h ---------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Multilib.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_MULTILIB_H #define LLVM_CLANG_DRIVER_MULTILIB_H diff --git a/tools/clang/include/clang/Driver/Options.h b/tools/clang/include/clang/Driver/Options.h index 2b35ac6274..2716fa9ae8 100644 --- a/tools/clang/include/clang/Driver/Options.h +++ b/tools/clang/include/clang/Driver/Options.h @@ -1,12 +1,11 @@ //===--- Options.h - Option info & table ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Options.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_OPTIONS_H #define LLVM_CLANG_DRIVER_OPTIONS_H diff --git a/tools/clang/include/clang/Driver/Options.td b/tools/clang/include/clang/Driver/Options.td index 1e3e9675c0..db234627f3 100644 --- a/tools/clang/include/clang/Driver/Options.td +++ b/tools/clang/include/clang/Driver/Options.td @@ -1,15 +1,15 @@ //===--- Options.td - Options for clang -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Options.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the options accepted by clang. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Include the common option parsing interfaces. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the options accepted by clang. +// +//===----------------------------------------------------------------------===// include "llvm/Option/OptParser.td" diff --git a/tools/clang/include/clang/Driver/Phases.h b/tools/clang/include/clang/Driver/Phases.h index 588aa843bd..cd6b5b5c9f 100644 --- a/tools/clang/include/clang/Driver/Phases.h +++ b/tools/clang/include/clang/Driver/Phases.h @@ -1,12 +1,11 @@ //===--- Phases.h - Transformations on Driver Types -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Phases.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_PHASES_H #define LLVM_CLANG_DRIVER_PHASES_H diff --git a/tools/clang/include/clang/Driver/SanitizerArgs.h b/tools/clang/include/clang/Driver/SanitizerArgs.h index 7be83fdbf5..82b668ac88 100644 --- a/tools/clang/include/clang/Driver/SanitizerArgs.h +++ b/tools/clang/include/clang/Driver/SanitizerArgs.h @@ -1,12 +1,11 @@ //===--- SanitizerArgs.h - Arguments for sanitizer tools -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerArgs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_SANITIZERARGS_H #define LLVM_CLANG_DRIVER_SANITIZERARGS_H diff --git a/tools/clang/include/clang/Driver/Tool.h b/tools/clang/include/clang/Driver/Tool.h index b83b8dae3b..b9eac1cad6 100644 --- a/tools/clang/include/clang/Driver/Tool.h +++ b/tools/clang/include/clang/Driver/Tool.h @@ -1,12 +1,11 @@ //===--- Tool.h - Compilation Tools -----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Tool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_TOOL_H #define LLVM_CLANG_DRIVER_TOOL_H diff --git a/tools/clang/include/clang/Driver/ToolChain.h b/tools/clang/include/clang/Driver/ToolChain.h index daf1851ddd..aba18c9916 100644 --- a/tools/clang/include/clang/Driver/ToolChain.h +++ b/tools/clang/include/clang/Driver/ToolChain.h @@ -1,12 +1,11 @@ //===--- ToolChain.h - Collections of tools for one platform ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolChain.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_TOOLCHAIN_H #define LLVM_CLANG_DRIVER_TOOLCHAIN_H diff --git a/tools/clang/include/clang/Driver/Types.def b/tools/clang/include/clang/Driver/Types.def index ff75afc16f..cdccd3c82e 100644 --- a/tools/clang/include/clang/Driver/Types.def +++ b/tools/clang/include/clang/Driver/Types.def @@ -1,15 +1,16 @@ //===--- Types.def - Driver Type info ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Types.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the driver type information. Users of this file // -// must define the TYPE macro to make use of this information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the driver type information. Users of this file +// must define the TYPE macro to make use of this information. +// +//===----------------------------------------------------------------------===// #ifndef TYPE #error "Define TYPE prior to including this file!" diff --git a/tools/clang/include/clang/Driver/Types.h b/tools/clang/include/clang/Driver/Types.h index 96a8f38833..dd95d65991 100644 --- a/tools/clang/include/clang/Driver/Types.h +++ b/tools/clang/include/clang/Driver/Types.h @@ -1,12 +1,11 @@ //===--- Types.h - Input & Temporary Driver Types ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Types.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_TYPES_H #define LLVM_CLANG_DRIVER_TYPES_H diff --git a/tools/clang/include/clang/Driver/Util.h b/tools/clang/include/clang/Driver/Util.h index 9f5d7c9a97..07495a1850 100644 --- a/tools/clang/include/clang/Driver/Util.h +++ b/tools/clang/include/clang/Driver/Util.h @@ -1,12 +1,11 @@ //===--- Util.h - Common Driver Utilities -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Util.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_DRIVER_UTIL_H #define LLVM_CLANG_DRIVER_UTIL_H diff --git a/tools/clang/include/clang/Edit/Commit.h b/tools/clang/include/clang/Edit/Commit.h index ef940ad1e2..5cc5b9c6ff 100644 --- a/tools/clang/include/clang/Edit/Commit.h +++ b/tools/clang/include/clang/Edit/Commit.h @@ -1,12 +1,11 @@ //===----- Commit.h - A unit of edits ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Commit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_EDIT_COMMIT_H #define LLVM_CLANG_EDIT_COMMIT_H diff --git a/tools/clang/include/clang/Edit/EditedSource.h b/tools/clang/include/clang/Edit/EditedSource.h index 4e93c07767..150a5b41b5 100644 --- a/tools/clang/include/clang/Edit/EditedSource.h +++ b/tools/clang/include/clang/Edit/EditedSource.h @@ -1,12 +1,11 @@ //===----- EditedSource.h - Collection of source edits ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EditedSource.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_EDIT_EDITEDSOURCE_H #define LLVM_CLANG_EDIT_EDITEDSOURCE_H diff --git a/tools/clang/include/clang/Edit/EditsReceiver.h b/tools/clang/include/clang/Edit/EditsReceiver.h index 1360c7e13d..600ac28ea9 100644 --- a/tools/clang/include/clang/Edit/EditsReceiver.h +++ b/tools/clang/include/clang/Edit/EditsReceiver.h @@ -1,12 +1,11 @@ //===----- EditedSource.h - Collection of source edits ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EditsReceiver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_EDIT_EDITSRECEIVER_H #define LLVM_CLANG_EDIT_EDITSRECEIVER_H diff --git a/tools/clang/include/clang/Edit/FileOffset.h b/tools/clang/include/clang/Edit/FileOffset.h index 4ce133269a..0c1e72b84e 100644 --- a/tools/clang/include/clang/Edit/FileOffset.h +++ b/tools/clang/include/clang/Edit/FileOffset.h @@ -1,12 +1,11 @@ //===----- FileOffset.h - Offset in a file ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileOffset.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_EDIT_FILEOFFSET_H #define LLVM_CLANG_EDIT_FILEOFFSET_H diff --git a/tools/clang/include/clang/Edit/Rewriters.h b/tools/clang/include/clang/Edit/Rewriters.h index 861d789bcf..5e3425f56f 100644 --- a/tools/clang/include/clang/Edit/Rewriters.h +++ b/tools/clang/include/clang/Edit/Rewriters.h @@ -1,12 +1,11 @@ //===--- Rewriters.h - Rewritings ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Rewriters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_EDIT_REWRITERS_H #define LLVM_CLANG_EDIT_REWRITERS_H diff --git a/tools/clang/include/clang/Format/Format.h b/tools/clang/include/clang/Format/Format.h index 89e8002253..f8c8c373e1 100644 --- a/tools/clang/include/clang/Format/Format.h +++ b/tools/clang/include/clang/Format/Format.h @@ -1,17 +1,16 @@ //===--- Format.h - Format C++ code -----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Format.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// Various functions to configurably format source code. // +/// \file +/// Various functions to configurably format source code. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FORMAT_FORMAT_H #define LLVM_CLANG_FORMAT_FORMAT_H diff --git a/tools/clang/include/clang/Frontend/ASTConsumers.h b/tools/clang/include/clang/Frontend/ASTConsumers.h index f8bdfb9909..e113a71411 100644 --- a/tools/clang/include/clang/Frontend/ASTConsumers.h +++ b/tools/clang/include/clang/Frontend/ASTConsumers.h @@ -1,14 +1,15 @@ //===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTConsumers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// AST Consumers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// AST Consumers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_ASTCONSUMERS_H #define LLVM_CLANG_FRONTEND_ASTCONSUMERS_H diff --git a/tools/clang/include/clang/Frontend/ASTUnit.h b/tools/clang/include/clang/Frontend/ASTUnit.h index bf7bf85bc1..c888e90475 100644 --- a/tools/clang/include/clang/Frontend/ASTUnit.h +++ b/tools/clang/include/clang/Frontend/ASTUnit.h @@ -1,14 +1,15 @@ //===--- ASTUnit.h - ASTUnit utility ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// ASTUnit utility class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// ASTUnit utility class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_ASTUNIT_H #define LLVM_CLANG_FRONTEND_ASTUNIT_H diff --git a/tools/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h b/tools/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h index 10de0f413f..eb33273c2f 100644 --- a/tools/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h +++ b/tools/clang/include/clang/Frontend/ChainedDiagnosticConsumer.h @@ -1,12 +1,11 @@ //===- ChainedDiagnosticConsumer.h - Chain Diagnostic Clients ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ChainedDiagnosticConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_CHAINEDDIAGNOSTICCONSUMER_H #define LLVM_CLANG_FRONTEND_CHAINEDDIAGNOSTICCONSUMER_H diff --git a/tools/clang/include/clang/Frontend/CodeGenOptions.def b/tools/clang/include/clang/Frontend/CodeGenOptions.def index 0030f0f871..9d4eb3bb27 100644 --- a/tools/clang/include/clang/Frontend/CodeGenOptions.def +++ b/tools/clang/include/clang/Frontend/CodeGenOptions.def @@ -1,17 +1,19 @@ //===--- CodeGenOptions.def - Code generation option database ------ C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenOptions.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the code generation options. Users of this file // -// must define the CODEGENOPT macro to make use of this information. // -// Optionally, the user may also define ENUM_CODEGENOPT (for options // -// that have enumeration type and VALUE_CODEGENOPT is a code // -// generation option that describes a value rather than a flag. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the code generation options. Users of this file +// must define the CODEGENOPT macro to make use of this information. +// Optionally, the user may also define ENUM_CODEGENOPT (for options +// that have enumeration type and VALUE_CODEGENOPT is a code +// generation option that describes a value rather than a flag. +// +//===----------------------------------------------------------------------===// #ifndef CODEGENOPT # error Define the CODEGENOPT macro to handle language options diff --git a/tools/clang/include/clang/Frontend/CodeGenOptions.h b/tools/clang/include/clang/Frontend/CodeGenOptions.h index 683b8399ea..b249a1b736 100644 --- a/tools/clang/include/clang/Frontend/CodeGenOptions.h +++ b/tools/clang/include/clang/Frontend/CodeGenOptions.h @@ -1,14 +1,15 @@ //===--- CodeGenOptions.h ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CodeGenOptions interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CodeGenOptions interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_CODEGENOPTIONS_H #define LLVM_CLANG_FRONTEND_CODEGENOPTIONS_H diff --git a/tools/clang/include/clang/Frontend/CommandLineSourceLoc.h b/tools/clang/include/clang/Frontend/CommandLineSourceLoc.h index 46dd0783b5..21972ddfb1 100644 --- a/tools/clang/include/clang/Frontend/CommandLineSourceLoc.h +++ b/tools/clang/include/clang/Frontend/CommandLineSourceLoc.h @@ -1,14 +1,15 @@ //===--- CommandLineSourceLoc.h - Parsing for source locations-*- C++ -*---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommandLineSourceLoc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Command line parsing for source locations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Command line parsing for source locations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_COMMANDLINESOURCELOC_H #define LLVM_CLANG_FRONTEND_COMMANDLINESOURCELOC_H diff --git a/tools/clang/include/clang/Frontend/CompilerInstance.h b/tools/clang/include/clang/Frontend/CompilerInstance.h index 860e074ea2..ef19bd2982 100644 --- a/tools/clang/include/clang/Frontend/CompilerInstance.h +++ b/tools/clang/include/clang/Frontend/CompilerInstance.h @@ -1,12 +1,11 @@ //===-- CompilerInstance.h - Clang Compiler Instance ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilerInstance.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_COMPILERINSTANCE_H_ #define LLVM_CLANG_FRONTEND_COMPILERINSTANCE_H_ diff --git a/tools/clang/include/clang/Frontend/CompilerInvocation.h b/tools/clang/include/clang/Frontend/CompilerInvocation.h index 898f4e54a1..7d12548043 100644 --- a/tools/clang/include/clang/Frontend/CompilerInvocation.h +++ b/tools/clang/include/clang/Frontend/CompilerInvocation.h @@ -1,12 +1,11 @@ //===-- CompilerInvocation.h - Compiler Invocation Helper Data --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilerInvocation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_COMPILERINVOCATION_H_ #define LLVM_CLANG_FRONTEND_COMPILERINVOCATION_H_ diff --git a/tools/clang/include/clang/Frontend/DependencyOutputOptions.h b/tools/clang/include/clang/Frontend/DependencyOutputOptions.h index d9a3df9841..2221b54cf8 100644 --- a/tools/clang/include/clang/Frontend/DependencyOutputOptions.h +++ b/tools/clang/include/clang/Frontend/DependencyOutputOptions.h @@ -1,12 +1,11 @@ //===--- DependencyOutputOptions.h ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependencyOutputOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H #define LLVM_CLANG_FRONTEND_DEPENDENCYOUTPUTOPTIONS_H diff --git a/tools/clang/include/clang/Frontend/DiagnosticRenderer.h b/tools/clang/include/clang/Frontend/DiagnosticRenderer.h index 1360de4b4b..84a0f50823 100644 --- a/tools/clang/include/clang/Frontend/DiagnosticRenderer.h +++ b/tools/clang/include/clang/Frontend/DiagnosticRenderer.h @@ -1,16 +1,17 @@ //===--- DiagnosticRenderer.h - Diagnostic Pretty-Printing ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticRenderer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a utility class that provides support for pretty-printing of // -// diagnostics. It is used to implement the different code paths which require// -// such functionality in a consistent way. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a utility class that provides support for pretty-printing of +// diagnostics. It is used to implement the different code paths which require +// such functionality in a consistent way. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_DIAGNOSTICRENDERER_H #define LLVM_CLANG_FRONTEND_DIAGNOSTICRENDERER_H diff --git a/tools/clang/include/clang/Frontend/FrontendAction.h b/tools/clang/include/clang/Frontend/FrontendAction.h index 60b2d4224c..c407ff80ac 100644 --- a/tools/clang/include/clang/Frontend/FrontendAction.h +++ b/tools/clang/include/clang/Frontend/FrontendAction.h @@ -1,20 +1,19 @@ //===-- FrontendAction.h - Generic Frontend Action Interface ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendAction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::FrontendAction interface and various convenience// -/// abstract classes (clang::ASTFrontendAction, clang::PluginASTAction, // -/// clang::PreprocessorFrontendAction, and clang::WrapperFrontendAction) // -/// derived from it. // +/// \file +/// \brief Defines the clang::FrontendAction interface and various convenience +/// abstract classes (clang::ASTFrontendAction, clang::PluginASTAction, +/// clang::PreprocessorFrontendAction, and clang::WrapperFrontendAction) +/// derived from it. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_FRONTENDACTION_H #define LLVM_CLANG_FRONTEND_FRONTENDACTION_H diff --git a/tools/clang/include/clang/Frontend/FrontendActions.h b/tools/clang/include/clang/Frontend/FrontendActions.h index dca0a7da5e..d623567778 100644 --- a/tools/clang/include/clang/Frontend/FrontendActions.h +++ b/tools/clang/include/clang/Frontend/FrontendActions.h @@ -1,11 +1,11 @@ //===-- FrontendActions.h - Useful Frontend Actions -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendActions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_FRONTENDACTIONS_H #define LLVM_CLANG_FRONTEND_FRONTENDACTIONS_H diff --git a/tools/clang/include/clang/Frontend/FrontendDiagnostic.h b/tools/clang/include/clang/Frontend/FrontendDiagnostic.h index 5a36ab5dd6..0f37b7ece7 100644 --- a/tools/clang/include/clang/Frontend/FrontendDiagnostic.h +++ b/tools/clang/include/clang/Frontend/FrontendDiagnostic.h @@ -1,12 +1,11 @@ //===--- DiagnosticFrontend.h - Diagnostics for frontend --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_FRONTENDDIAGNOSTIC_H #define LLVM_CLANG_FRONTEND_FRONTENDDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Frontend/FrontendOptions.h b/tools/clang/include/clang/Frontend/FrontendOptions.h index bf44b68948..7068a5aa32 100644 --- a/tools/clang/include/clang/Frontend/FrontendOptions.h +++ b/tools/clang/include/clang/Frontend/FrontendOptions.h @@ -1,12 +1,11 @@ //===--- FrontendOptions.h --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H #define LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H diff --git a/tools/clang/include/clang/Frontend/FrontendPluginRegistry.h b/tools/clang/include/clang/Frontend/FrontendPluginRegistry.h index 06fc3827c2..ecab630c12 100644 --- a/tools/clang/include/clang/Frontend/FrontendPluginRegistry.h +++ b/tools/clang/include/clang/Frontend/FrontendPluginRegistry.h @@ -1,12 +1,11 @@ //===-- FrontendAction.h - Pluggable Frontend Action Interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendPluginRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_FRONTENDPLUGINREGISTRY_H #define LLVM_CLANG_FRONTEND_FRONTENDPLUGINREGISTRY_H diff --git a/tools/clang/include/clang/Frontend/LangStandard.h b/tools/clang/include/clang/Frontend/LangStandard.h index d20591f824..8021d08942 100644 --- a/tools/clang/include/clang/Frontend/LangStandard.h +++ b/tools/clang/include/clang/Frontend/LangStandard.h @@ -1,12 +1,11 @@ //===--- LangStandard.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LangStandard.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_LANGSTANDARD_H #define LLVM_CLANG_FRONTEND_LANGSTANDARD_H diff --git a/tools/clang/include/clang/Frontend/LangStandards.def b/tools/clang/include/clang/Frontend/LangStandards.def index dabd3dd15a..47f6f35d46 100644 --- a/tools/clang/include/clang/Frontend/LangStandards.def +++ b/tools/clang/include/clang/Frontend/LangStandards.def @@ -1,12 +1,11 @@ //===-- LangStandards.def - Language Standard Data --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LangStandards.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LANGSTANDARD #error "LANGSTANDARD must be defined before including this file" diff --git a/tools/clang/include/clang/Frontend/LayoutOverrideSource.h b/tools/clang/include/clang/Frontend/LayoutOverrideSource.h index aee336237a..16d032b7dd 100644 --- a/tools/clang/include/clang/Frontend/LayoutOverrideSource.h +++ b/tools/clang/include/clang/Frontend/LayoutOverrideSource.h @@ -1,12 +1,11 @@ //===--- LayoutOverrideSource.h --Override Record Layouts -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LayoutOverrideSource.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_LAYOUTOVERRIDESOURCE_H #define LLVM_CLANG_FRONTEND_LAYOUTOVERRIDESOURCE_H diff --git a/tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h b/tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h index dd4b8d7a81..98adf655fc 100644 --- a/tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h +++ b/tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h @@ -1,12 +1,11 @@ //===--- LogDiagnosticPrinter.h - Log Diagnostic Client ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LogDiagnosticPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_LOGDIAGNOSTICPRINTER_H #define LLVM_CLANG_FRONTEND_LOGDIAGNOSTICPRINTER_H diff --git a/tools/clang/include/clang/Frontend/MigratorOptions.h b/tools/clang/include/clang/Frontend/MigratorOptions.h index 99404957a7..8eb71b13f8 100644 --- a/tools/clang/include/clang/Frontend/MigratorOptions.h +++ b/tools/clang/include/clang/Frontend/MigratorOptions.h @@ -1,15 +1,16 @@ //===--- MigratorOptions.h - MigratorOptions Options ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MigratorOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header contains the structures necessary for a front-end to specify // -// various migration analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains the structures necessary for a front-end to specify +// various migration analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_MIGRATOROPTIONS_H #define LLVM_CLANG_FRONTEND_MIGRATOROPTIONS_H diff --git a/tools/clang/include/clang/Frontend/MultiplexConsumer.h b/tools/clang/include/clang/Frontend/MultiplexConsumer.h index 264d74c562..72183cb6e6 100644 --- a/tools/clang/include/clang/Frontend/MultiplexConsumer.h +++ b/tools/clang/include/clang/Frontend/MultiplexConsumer.h @@ -1,15 +1,16 @@ //===-- MultiplexConsumer.h - AST Consumer for PCH Generation ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MultiplexConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the MultiplexConsumer class, which can be used to // -// multiplex ASTConsumer and SemaConsumer messages to many consumers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the MultiplexConsumer class, which can be used to +// multiplex ASTConsumer and SemaConsumer messages to many consumers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_MULTIPLEXCONSUMER_H #define LLVM_CLANG_FRONTEND_MULTIPLEXCONSUMER_H diff --git a/tools/clang/include/clang/Frontend/PCHContainerOperations.h b/tools/clang/include/clang/Frontend/PCHContainerOperations.h index 73784f1120..868ea6866a 100644 --- a/tools/clang/include/clang/Frontend/PCHContainerOperations.h +++ b/tools/clang/include/clang/Frontend/PCHContainerOperations.h @@ -1,12 +1,11 @@ //===--- Frontend/PCHContainerOperations.h - PCH Containers -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PCHContainerOperations.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_PCH_CONTAINER_OPERATIONS_H #define LLVM_CLANG_PCH_CONTAINER_OPERATIONS_H diff --git a/tools/clang/include/clang/Frontend/PreprocessorOutputOptions.h b/tools/clang/include/clang/Frontend/PreprocessorOutputOptions.h index 2f722c0d9c..f86c49039e 100644 --- a/tools/clang/include/clang/Frontend/PreprocessorOutputOptions.h +++ b/tools/clang/include/clang/Frontend/PreprocessorOutputOptions.h @@ -1,12 +1,11 @@ //===--- PreprocessorOutputOptions.h ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PreprocessorOutputOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_PREPROCESSOROUTPUTOPTIONS_H #define LLVM_CLANG_FRONTEND_PREPROCESSOROUTPUTOPTIONS_H diff --git a/tools/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h b/tools/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h index 97e2e8992e..4c57e9d404 100644 --- a/tools/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h +++ b/tools/clang/include/clang/Frontend/SerializedDiagnosticPrinter.h @@ -1,12 +1,11 @@ //===--- SerializedDiagnosticPrinter.h - Serializer for diagnostics -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SerializedDiagnosticPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICPRINTER_H #define LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICPRINTER_H diff --git a/tools/clang/include/clang/Frontend/SerializedDiagnosticReader.h b/tools/clang/include/clang/Frontend/SerializedDiagnosticReader.h index 639fe072e5..92e99d305d 100644 --- a/tools/clang/include/clang/Frontend/SerializedDiagnosticReader.h +++ b/tools/clang/include/clang/Frontend/SerializedDiagnosticReader.h @@ -1,12 +1,11 @@ //===--- SerializedDiagnosticReader.h - Reads diagnostics -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SerializedDiagnosticReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_SERIALIZED_DIAGNOSTIC_READER_H_ #define LLVM_CLANG_FRONTEND_SERIALIZED_DIAGNOSTIC_READER_H_ diff --git a/tools/clang/include/clang/Frontend/SerializedDiagnostics.h b/tools/clang/include/clang/Frontend/SerializedDiagnostics.h index 418584200e..2032cd3988 100644 --- a/tools/clang/include/clang/Frontend/SerializedDiagnostics.h +++ b/tools/clang/include/clang/Frontend/SerializedDiagnostics.h @@ -1,12 +1,11 @@ //===--- SerializedDiagnostics.h - Common data for serialized diagnostics -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SerializedDiagnostics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTICS_H_ #define LLVM_CLANG_FRONTEND_SERIALIZE_DIAGNOSTICS_H_ diff --git a/tools/clang/include/clang/Frontend/TextDiagnostic.h b/tools/clang/include/clang/Frontend/TextDiagnostic.h index 88193a593d..d41f15a1ff 100644 --- a/tools/clang/include/clang/Frontend/TextDiagnostic.h +++ b/tools/clang/include/clang/Frontend/TextDiagnostic.h @@ -1,16 +1,17 @@ //===--- TextDiagnostic.h - Text Diagnostic Pretty-Printing -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TextDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a utility class that provides support for textual pretty-printing of// -// diagnostics. It is used to implement the different code paths which require// -// such functionality in a consistent way. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a utility class that provides support for textual pretty-printing of +// diagnostics. It is used to implement the different code paths which require +// such functionality in a consistent way. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_TEXTDIAGNOSTIC_H #define LLVM_CLANG_FRONTEND_TEXTDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Frontend/TextDiagnosticBuffer.h b/tools/clang/include/clang/Frontend/TextDiagnosticBuffer.h index 2325ed3ba7..3bcf824455 100644 --- a/tools/clang/include/clang/Frontend/TextDiagnosticBuffer.h +++ b/tools/clang/include/clang/Frontend/TextDiagnosticBuffer.h @@ -1,14 +1,15 @@ //===--- TextDiagnosticBuffer.h - Buffer Text Diagnostics -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TextDiagnosticBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a concrete diagnostic client, which buffers the diagnostic messages.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a concrete diagnostic client, which buffers the diagnostic messages. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_TEXTDIAGNOSTICBUFFER_H #define LLVM_CLANG_FRONTEND_TEXTDIAGNOSTICBUFFER_H diff --git a/tools/clang/include/clang/Frontend/TextDiagnosticPrinter.h b/tools/clang/include/clang/Frontend/TextDiagnosticPrinter.h index cc2515e967..04a570559f 100644 --- a/tools/clang/include/clang/Frontend/TextDiagnosticPrinter.h +++ b/tools/clang/include/clang/Frontend/TextDiagnosticPrinter.h @@ -1,15 +1,16 @@ //===--- TextDiagnosticPrinter.h - Text Diagnostic Client -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TextDiagnosticPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a concrete diagnostic client, which prints the diagnostics to // -// standard error. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a concrete diagnostic client, which prints the diagnostics to +// standard error. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_TEXTDIAGNOSTICPRINTER_H #define LLVM_CLANG_FRONTEND_TEXTDIAGNOSTICPRINTER_H diff --git a/tools/clang/include/clang/Frontend/Utils.h b/tools/clang/include/clang/Frontend/Utils.h index 2b17fa5ed8..aa567b4c02 100644 --- a/tools/clang/include/clang/Frontend/Utils.h +++ b/tools/clang/include/clang/Frontend/Utils.h @@ -1,14 +1,15 @@ //===--- Utils.h - Misc utilities for the front-end -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Utils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header contains miscellaneous utilities for various front-end actions.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains miscellaneous utilities for various front-end actions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_UTILS_H #define LLVM_CLANG_FRONTEND_UTILS_H diff --git a/tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h b/tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h index 047d2fa284..98aa083c0a 100644 --- a/tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h +++ b/tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h @@ -1,12 +1,11 @@ //===- VerifyDiagnosticConsumer.h - Verifying Diagnostic Client -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VerifyDiagnosticConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTEND_VERIFYDIAGNOSTICCONSUMER_H #define LLVM_CLANG_FRONTEND_VERIFYDIAGNOSTICCONSUMER_H diff --git a/tools/clang/include/clang/FrontendTool/Utils.h b/tools/clang/include/clang/FrontendTool/Utils.h index 332d17bcb2..031ee7df70 100644 --- a/tools/clang/include/clang/FrontendTool/Utils.h +++ b/tools/clang/include/clang/FrontendTool/Utils.h @@ -1,15 +1,16 @@ //===--- Utils.h - Misc utilities for the front-end -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Utils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header contains miscellaneous utilities for various front-end actions// -// which were split from Frontend to minimise Frontend's dependencies. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains miscellaneous utilities for various front-end actions +// which were split from Frontend to minimise Frontend's dependencies. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_FRONTENDTOOL_UTILS_H #define LLVM_CLANG_FRONTENDTOOL_UTILS_H diff --git a/tools/clang/include/clang/Index/CommentToXML.h b/tools/clang/include/clang/Index/CommentToXML.h index 5a99686cb6..bb7b71ad41 100644 --- a/tools/clang/include/clang/Index/CommentToXML.h +++ b/tools/clang/include/clang/Index/CommentToXML.h @@ -1,12 +1,11 @@ //===--- CommentToXML.h - Convert comments to XML representation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentToXML.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_INDEX_COMMENTTOXML_H #define LLVM_CLANG_INDEX_COMMENTTOXML_H diff --git a/tools/clang/include/clang/Index/USRGeneration.h b/tools/clang/include/clang/Index/USRGeneration.h index 40b3b5b77e..55e35cc6d9 100644 --- a/tools/clang/include/clang/Index/USRGeneration.h +++ b/tools/clang/include/clang/Index/USRGeneration.h @@ -1,12 +1,11 @@ //===- USRGeneration.h - Routines for USR generation ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// USRGeneration.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_INDEX_USRGENERATION_H #define LLVM_CLANG_INDEX_USRGENERATION_H diff --git a/tools/clang/include/clang/Lex/CodeCompletionHandler.h b/tools/clang/include/clang/Lex/CodeCompletionHandler.h index b574f66623..91c3b7811f 100644 --- a/tools/clang/include/clang/Lex/CodeCompletionHandler.h +++ b/tools/clang/include/clang/Lex/CodeCompletionHandler.h @@ -1,15 +1,16 @@ //===--- CodeCompletionHandler.h - Preprocessor code completion -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeCompletionHandler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CodeCompletionHandler interface, which provides // -// code-completion callbacks for the preprocessor. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CodeCompletionHandler interface, which provides +// code-completion callbacks for the preprocessor. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_CODECOMPLETIONHANDLER_H #define LLVM_CLANG_LEX_CODECOMPLETIONHANDLER_H diff --git a/tools/clang/include/clang/Lex/DirectoryLookup.h b/tools/clang/include/clang/Lex/DirectoryLookup.h index 468792d1ae..9edf119660 100644 --- a/tools/clang/include/clang/Lex/DirectoryLookup.h +++ b/tools/clang/include/clang/Lex/DirectoryLookup.h @@ -1,14 +1,15 @@ //===--- DirectoryLookup.h - Info for searching for headers -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DirectoryLookup.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DirectoryLookup interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DirectoryLookup interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_DIRECTORYLOOKUP_H #define LLVM_CLANG_LEX_DIRECTORYLOOKUP_H diff --git a/tools/clang/include/clang/Lex/ExternalPreprocessorSource.h b/tools/clang/include/clang/Lex/ExternalPreprocessorSource.h index 75b569f1c9..adf8e713e9 100644 --- a/tools/clang/include/clang/Lex/ExternalPreprocessorSource.h +++ b/tools/clang/include/clang/Lex/ExternalPreprocessorSource.h @@ -1,15 +1,16 @@ //===- ExternalPreprocessorSource.h - Abstract Macro Interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalPreprocessorSource.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ExternalPreprocessorSource interface, which enables// -// construction of macro definitions from some external source. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ExternalPreprocessorSource interface, which enables +// construction of macro definitions from some external source. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_EXTERNALPREPROCESSORSOURCE_H #define LLVM_CLANG_LEX_EXTERNALPREPROCESSORSOURCE_H diff --git a/tools/clang/include/clang/Lex/HeaderMap.h b/tools/clang/include/clang/Lex/HeaderMap.h index 4ad883741c..183361e4f8 100644 --- a/tools/clang/include/clang/Lex/HeaderMap.h +++ b/tools/clang/include/clang/Lex/HeaderMap.h @@ -1,14 +1,15 @@ //===--- HeaderMap.h - A file that acts like dir of symlinks ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HeaderMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the HeaderMap interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the HeaderMap interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_HEADERMAP_H #define LLVM_CLANG_LEX_HEADERMAP_H diff --git a/tools/clang/include/clang/Lex/HeaderSearch.h b/tools/clang/include/clang/Lex/HeaderSearch.h index bcb35a3023..4c13380100 100644 --- a/tools/clang/include/clang/Lex/HeaderSearch.h +++ b/tools/clang/include/clang/Lex/HeaderSearch.h @@ -1,14 +1,15 @@ //===--- HeaderSearch.h - Resolve Header File Locations ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HeaderSearch.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the HeaderSearch interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the HeaderSearch interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_HEADERSEARCH_H #define LLVM_CLANG_LEX_HEADERSEARCH_H diff --git a/tools/clang/include/clang/Lex/HeaderSearchOptions.h b/tools/clang/include/clang/Lex/HeaderSearchOptions.h index df99067ecd..12f0447a11 100644 --- a/tools/clang/include/clang/Lex/HeaderSearchOptions.h +++ b/tools/clang/include/clang/Lex/HeaderSearchOptions.h @@ -1,12 +1,11 @@ //===--- HeaderSearchOptions.h ----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HeaderSearchOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_HEADERSEARCHOPTIONS_H #define LLVM_CLANG_LEX_HEADERSEARCHOPTIONS_H diff --git a/tools/clang/include/clang/Lex/LexDiagnostic.h b/tools/clang/include/clang/Lex/LexDiagnostic.h index f64667f45c..5d724c0de8 100644 --- a/tools/clang/include/clang/Lex/LexDiagnostic.h +++ b/tools/clang/include/clang/Lex/LexDiagnostic.h @@ -1,12 +1,11 @@ //===--- DiagnosticLex.h - Diagnostics for liblex ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LexDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_LEXDIAGNOSTIC_H #define LLVM_CLANG_LEX_LEXDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Lex/Lexer.h b/tools/clang/include/clang/Lex/Lexer.h index 7c54c92ef4..5cea2b89f7 100644 --- a/tools/clang/include/clang/Lex/Lexer.h +++ b/tools/clang/include/clang/Lex/Lexer.h @@ -1,14 +1,15 @@ //===--- Lexer.h - C Language Family Lexer ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Lexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Lexer interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Lexer interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_LEXER_H #define LLVM_CLANG_LEX_LEXER_H diff --git a/tools/clang/include/clang/Lex/LiteralSupport.h b/tools/clang/include/clang/Lex/LiteralSupport.h index 805ad6b21e..5210e3f2e1 100644 --- a/tools/clang/include/clang/Lex/LiteralSupport.h +++ b/tools/clang/include/clang/Lex/LiteralSupport.h @@ -1,15 +1,16 @@ //===--- LiteralSupport.h ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiteralSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the NumericLiteralParser, CharLiteralParser, and // -// StringLiteralParser interfaces. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the NumericLiteralParser, CharLiteralParser, and +// StringLiteralParser interfaces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_LITERALSUPPORT_H #define LLVM_CLANG_LEX_LITERALSUPPORT_H diff --git a/tools/clang/include/clang/Lex/MacroArgs.h b/tools/clang/include/clang/Lex/MacroArgs.h index 6af8585f75..243b143f7a 100644 --- a/tools/clang/include/clang/Lex/MacroArgs.h +++ b/tools/clang/include/clang/Lex/MacroArgs.h @@ -1,14 +1,15 @@ //===--- MacroArgs.h - Formal argument info for Macros ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacroArgs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MacroArgs interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MacroArgs interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_MACROARGS_H #define LLVM_CLANG_LEX_MACROARGS_H diff --git a/tools/clang/include/clang/Lex/MacroInfo.h b/tools/clang/include/clang/Lex/MacroInfo.h index 65ffc24588..8b82a5bc93 100644 --- a/tools/clang/include/clang/Lex/MacroInfo.h +++ b/tools/clang/include/clang/Lex/MacroInfo.h @@ -1,17 +1,16 @@ //===--- MacroInfo.h - Information about #defined identifiers ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacroInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::MacroInfo and clang::MacroDirective classes. // +/// \file +/// \brief Defines the clang::MacroInfo and clang::MacroDirective classes. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_MACROINFO_H #define LLVM_CLANG_LEX_MACROINFO_H diff --git a/tools/clang/include/clang/Lex/ModuleLoader.h b/tools/clang/include/clang/Lex/ModuleLoader.h index 1e4be48bc2..ae79650d1f 100644 --- a/tools/clang/include/clang/Lex/ModuleLoader.h +++ b/tools/clang/include/clang/Lex/ModuleLoader.h @@ -1,15 +1,16 @@ //===--- ModuleLoader.h - Module Loader Interface ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleLoader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ModuleLoader interface, which is responsible for // -// loading named modules. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ModuleLoader interface, which is responsible for +// loading named modules. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_MODULELOADER_H #define LLVM_CLANG_LEX_MODULELOADER_H diff --git a/tools/clang/include/clang/Lex/ModuleMap.h b/tools/clang/include/clang/Lex/ModuleMap.h index 1bc668823b..0b03c4aa1c 100644 --- a/tools/clang/include/clang/Lex/ModuleMap.h +++ b/tools/clang/include/clang/Lex/ModuleMap.h @@ -1,15 +1,16 @@ //===--- ModuleMap.h - Describe the layout of modules -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ModuleMap interface, which describes the layout of a// -// module as it relates to headers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ModuleMap interface, which describes the layout of a +// module as it relates to headers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_MODULEMAP_H diff --git a/tools/clang/include/clang/Lex/MultipleIncludeOpt.h b/tools/clang/include/clang/Lex/MultipleIncludeOpt.h index 5e82858246..83e6f99078 100644 --- a/tools/clang/include/clang/Lex/MultipleIncludeOpt.h +++ b/tools/clang/include/clang/Lex/MultipleIncludeOpt.h @@ -1,16 +1,16 @@ //===--- MultipleIncludeOpt.h - Header Multiple-Include Optzn ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MultipleIncludeOpt.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the MultipleIncludeOpt interface. // +/// \file +/// \brief Defines the MultipleIncludeOpt interface. // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_MULTIPLEINCLUDEOPT_H #define LLVM_CLANG_LEX_MULTIPLEINCLUDEOPT_H diff --git a/tools/clang/include/clang/Lex/PPCallbacks.h b/tools/clang/include/clang/Lex/PPCallbacks.h index 8670cf5cb6..3803533b49 100644 --- a/tools/clang/include/clang/Lex/PPCallbacks.h +++ b/tools/clang/include/clang/Lex/PPCallbacks.h @@ -1,17 +1,16 @@ //===--- PPCallbacks.h - Callbacks for Preprocessor actions -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPCallbacks.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the PPCallbacks interface. // +/// \file +/// \brief Defines the PPCallbacks interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PPCALLBACKS_H #define LLVM_CLANG_LEX_PPCALLBACKS_H diff --git a/tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h b/tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h index be4c9042bd..8c5227561b 100644 --- a/tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h +++ b/tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h @@ -1,15 +1,16 @@ //===--- PPConditionalDirectiveRecord.h - Preprocessing Directives-*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPConditionalDirectiveRecord.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PPConditionalDirectiveRecord class, which maintains// -// a record of conditional directive regions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PPConditionalDirectiveRecord class, which maintains +// a record of conditional directive regions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PPCONDITIONALDIRECTIVERECORD_H #define LLVM_CLANG_LEX_PPCONDITIONALDIRECTIVERECORD_H diff --git a/tools/clang/include/clang/Lex/PTHLexer.h b/tools/clang/include/clang/Lex/PTHLexer.h index 42be56efc0..904be792b2 100644 --- a/tools/clang/include/clang/Lex/PTHLexer.h +++ b/tools/clang/include/clang/Lex/PTHLexer.h @@ -1,14 +1,15 @@ //===--- PTHLexer.h - Lexer based on Pre-tokenized input --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PTHLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PTHLexer interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PTHLexer interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PTHLEXER_H #define LLVM_CLANG_LEX_PTHLEXER_H diff --git a/tools/clang/include/clang/Lex/PTHManager.h b/tools/clang/include/clang/Lex/PTHManager.h index 779ffbc1ad..26178eddf3 100644 --- a/tools/clang/include/clang/Lex/PTHManager.h +++ b/tools/clang/include/clang/Lex/PTHManager.h @@ -1,14 +1,15 @@ //===--- PTHManager.h - Manager object for PTH processing -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PTHManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PTHManager interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PTHManager interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PTHMANAGER_H #define LLVM_CLANG_LEX_PTHMANAGER_H diff --git a/tools/clang/include/clang/Lex/Pragma.h b/tools/clang/include/clang/Lex/Pragma.h index 1673d01ad8..70fcfda6e7 100644 --- a/tools/clang/include/clang/Lex/Pragma.h +++ b/tools/clang/include/clang/Lex/Pragma.h @@ -1,14 +1,15 @@ //===--- Pragma.h - Pragma registration and handling ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Pragma.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PragmaHandler and PragmaTable interfaces. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PragmaHandler and PragmaTable interfaces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PRAGMA_H #define LLVM_CLANG_LEX_PRAGMA_H diff --git a/tools/clang/include/clang/Lex/PreprocessingRecord.h b/tools/clang/include/clang/Lex/PreprocessingRecord.h index b1d6419fa6..53367ab854 100644 --- a/tools/clang/include/clang/Lex/PreprocessingRecord.h +++ b/tools/clang/include/clang/Lex/PreprocessingRecord.h @@ -1,15 +1,16 @@ //===--- PreprocessingRecord.h - Record of Preprocessing --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PreprocessingRecord.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PreprocessingRecord class, which maintains a record// -// of what occurred during preprocessing. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PreprocessingRecord class, which maintains a record +// of what occurred during preprocessing. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PREPROCESSINGRECORD_H #define LLVM_CLANG_LEX_PREPROCESSINGRECORD_H diff --git a/tools/clang/include/clang/Lex/Preprocessor.h b/tools/clang/include/clang/Lex/Preprocessor.h index 9d96ad0986..477c4379cd 100644 --- a/tools/clang/include/clang/Lex/Preprocessor.h +++ b/tools/clang/include/clang/Lex/Preprocessor.h @@ -1,17 +1,16 @@ //===--- Preprocessor.h - C Language Family Preprocessor --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Preprocessor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the clang::Preprocessor interface. // +/// \file +/// \brief Defines the clang::Preprocessor interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PREPROCESSOR_H #define LLVM_CLANG_LEX_PREPROCESSOR_H diff --git a/tools/clang/include/clang/Lex/PreprocessorLexer.h b/tools/clang/include/clang/Lex/PreprocessorLexer.h index af66ec508f..6d6cf05a96 100644 --- a/tools/clang/include/clang/Lex/PreprocessorLexer.h +++ b/tools/clang/include/clang/Lex/PreprocessorLexer.h @@ -1,17 +1,16 @@ //===--- PreprocessorLexer.h - C Language Family Lexer ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PreprocessorLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the PreprocessorLexer interface. // +/// \file +/// \brief Defines the PreprocessorLexer interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PREPROCESSORLEXER_H #define LLVM_CLANG_LEX_PREPROCESSORLEXER_H diff --git a/tools/clang/include/clang/Lex/PreprocessorOptions.h b/tools/clang/include/clang/Lex/PreprocessorOptions.h index 90be967102..963d95d7f1 100644 --- a/tools/clang/include/clang/Lex/PreprocessorOptions.h +++ b/tools/clang/include/clang/Lex/PreprocessorOptions.h @@ -1,12 +1,11 @@ //===--- PreprocessorOptions.h ----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PreprocessorOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_PREPROCESSOROPTIONS_H_ #define LLVM_CLANG_LEX_PREPROCESSOROPTIONS_H_ diff --git a/tools/clang/include/clang/Lex/ScratchBuffer.h b/tools/clang/include/clang/Lex/ScratchBuffer.h index e7beb11889..a3d6096821 100644 --- a/tools/clang/include/clang/Lex/ScratchBuffer.h +++ b/tools/clang/include/clang/Lex/ScratchBuffer.h @@ -1,14 +1,15 @@ //===--- ScratchBuffer.h - Scratch space for forming tokens -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScratchBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ScratchBuffer interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ScratchBuffer interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_SCRATCHBUFFER_H #define LLVM_CLANG_LEX_SCRATCHBUFFER_H diff --git a/tools/clang/include/clang/Lex/Token.h b/tools/clang/include/clang/Lex/Token.h index 981a0df958..6d8d94457c 100644 --- a/tools/clang/include/clang/Lex/Token.h +++ b/tools/clang/include/clang/Lex/Token.h @@ -1,14 +1,15 @@ //===--- Token.h - Token interface ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Token.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Token interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Token interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_TOKEN_H #define LLVM_CLANG_LEX_TOKEN_H diff --git a/tools/clang/include/clang/Lex/TokenConcatenation.h b/tools/clang/include/clang/Lex/TokenConcatenation.h index f3d9dc0741..a2d98b0d47 100644 --- a/tools/clang/include/clang/Lex/TokenConcatenation.h +++ b/tools/clang/include/clang/Lex/TokenConcatenation.h @@ -1,14 +1,15 @@ //===--- TokenConcatenation.h - Token Concatenation Avoidance ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenConcatenation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TokenConcatenation class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TokenConcatenation class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_TOKENCONCATENATION_H #define LLVM_CLANG_LEX_TOKENCONCATENATION_H diff --git a/tools/clang/include/clang/Lex/TokenLexer.h b/tools/clang/include/clang/Lex/TokenLexer.h index 33cf9d2a93..31197367c4 100644 --- a/tools/clang/include/clang/Lex/TokenLexer.h +++ b/tools/clang/include/clang/Lex/TokenLexer.h @@ -1,14 +1,15 @@ //===--- TokenLexer.h - Lex from a token buffer -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenLexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TokenLexer interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TokenLexer interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LEX_TOKENLEXER_H #define LLVM_CLANG_LEX_TOKENLEXER_H diff --git a/tools/clang/include/clang/Parse/CMakeLists.txt b/tools/clang/include/clang/Parse/CMakeLists.txt index c1a844ec66..ec75f7b96b 100644 --- a/tools/clang/include/clang/Parse/CMakeLists.txt +++ b/tools/clang/include/clang/Parse/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. clang_tablegen(AttrParserStringSwitches.inc -gen-clang-attr-parser-string-switches -I ${CMAKE_CURRENT_SOURCE_DIR}/../../ SOURCE ../Basic/Attr.td diff --git a/tools/clang/include/clang/Parse/ParseAST.h b/tools/clang/include/clang/Parse/ParseAST.h index e360a89bf8..21f9701c3e 100644 --- a/tools/clang/include/clang/Parse/ParseAST.h +++ b/tools/clang/include/clang/Parse/ParseAST.h @@ -1,14 +1,15 @@ //===--- ParseAST.h - Define the ParseAST method ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseAST.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the clang::ParseAST method. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the clang::ParseAST method. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_PARSE_PARSEAST_H #define LLVM_CLANG_PARSE_PARSEAST_H diff --git a/tools/clang/include/clang/Parse/ParseDiagnostic.h b/tools/clang/include/clang/Parse/ParseDiagnostic.h index 268b266719..f3a7f3b7a8 100644 --- a/tools/clang/include/clang/Parse/ParseDiagnostic.h +++ b/tools/clang/include/clang/Parse/ParseDiagnostic.h @@ -1,12 +1,11 @@ //===--- DiagnosticParse.h - Diagnostics for libparse -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_PARSE_PARSEDIAGNOSTIC_H #define LLVM_CLANG_PARSE_PARSEDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Parse/Parser.h b/tools/clang/include/clang/Parse/Parser.h index a9f4e066ca..4173adc8ad 100644 --- a/tools/clang/include/clang/Parse/Parser.h +++ b/tools/clang/include/clang/Parse/Parser.h @@ -1,14 +1,15 @@ //===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Parser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Parser interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Parser interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_PARSE_PARSER_H #define LLVM_CLANG_PARSE_PARSER_H diff --git a/tools/clang/include/clang/Rewrite/Core/DeltaTree.h b/tools/clang/include/clang/Rewrite/Core/DeltaTree.h index 03f0f421af..fbffb38e37 100644 --- a/tools/clang/include/clang/Rewrite/Core/DeltaTree.h +++ b/tools/clang/include/clang/Rewrite/Core/DeltaTree.h @@ -1,14 +1,15 @@ //===--- DeltaTree.h - B-Tree for Rewrite Delta tracking --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeltaTree.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DeltaTree class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DeltaTree class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_CORE_DELTATREE_H #define LLVM_CLANG_REWRITE_CORE_DELTATREE_H diff --git a/tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h b/tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h index 92356f1297..dafdf51ce6 100644 --- a/tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h +++ b/tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h @@ -1,15 +1,16 @@ //==- HTMLRewrite.h - Translate source code into prettified HTML ---*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// HTMLRewrite.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a set of functions used for translating source code // -// into beautified HTML. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a set of functions used for translating source code +// into beautified HTML. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H #define LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H diff --git a/tools/clang/include/clang/Rewrite/Core/RewriteBuffer.h b/tools/clang/include/clang/Rewrite/Core/RewriteBuffer.h index 705a6f2eeb..d69c69b81e 100644 --- a/tools/clang/include/clang/Rewrite/Core/RewriteBuffer.h +++ b/tools/clang/include/clang/Rewrite/Core/RewriteBuffer.h @@ -1,12 +1,11 @@ //===--- RewriteBuffer.h - Buffer rewriting interface -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteBuffer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_CORE_REWRITEBUFFER_H #define LLVM_CLANG_REWRITE_CORE_REWRITEBUFFER_H diff --git a/tools/clang/include/clang/Rewrite/Core/RewriteRope.h b/tools/clang/include/clang/Rewrite/Core/RewriteRope.h index ab636a8eb3..5002554485 100644 --- a/tools/clang/include/clang/Rewrite/Core/RewriteRope.h +++ b/tools/clang/include/clang/Rewrite/Core/RewriteRope.h @@ -1,14 +1,15 @@ //===--- RewriteRope.h - Rope specialized for rewriter ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteRope.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RewriteRope class, which is a powerful string class.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RewriteRope class, which is a powerful string class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_CORE_REWRITEROPE_H #define LLVM_CLANG_REWRITE_CORE_REWRITEROPE_H diff --git a/tools/clang/include/clang/Rewrite/Core/Rewriter.h b/tools/clang/include/clang/Rewrite/Core/Rewriter.h index 6b7becbe6a..800372ea55 100644 --- a/tools/clang/include/clang/Rewrite/Core/Rewriter.h +++ b/tools/clang/include/clang/Rewrite/Core/Rewriter.h @@ -1,15 +1,16 @@ //===--- Rewriter.h - Code rewriting interface ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Rewriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Rewriter class, which is used for code // -// transformations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Rewriter class, which is used for code +// transformations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_CORE_REWRITER_H #define LLVM_CLANG_REWRITE_CORE_REWRITER_H diff --git a/tools/clang/include/clang/Rewrite/Core/TokenRewriter.h b/tools/clang/include/clang/Rewrite/Core/TokenRewriter.h index 432adda35a..0f71e81c31 100644 --- a/tools/clang/include/clang/Rewrite/Core/TokenRewriter.h +++ b/tools/clang/include/clang/Rewrite/Core/TokenRewriter.h @@ -1,15 +1,16 @@ //===--- TokenRewriter.h - Token-based Rewriter -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenRewriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TokenRewriter class, which is used for code // -// transformations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TokenRewriter class, which is used for code +// transformations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_CORE_TOKENREWRITER_H #define LLVM_CLANG_REWRITE_CORE_TOKENREWRITER_H diff --git a/tools/clang/include/clang/Rewrite/Frontend/ASTConsumers.h b/tools/clang/include/clang/Rewrite/Frontend/ASTConsumers.h index 9b716e2dc7..c9df889504 100644 --- a/tools/clang/include/clang/Rewrite/Frontend/ASTConsumers.h +++ b/tools/clang/include/clang/Rewrite/Frontend/ASTConsumers.h @@ -1,14 +1,15 @@ //===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTConsumers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// AST Consumers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// AST Consumers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H #define LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H diff --git a/tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h b/tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h index dae41b5c3d..3b1b31e0cd 100644 --- a/tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h +++ b/tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h @@ -1,16 +1,17 @@ //===--- FixItRewriter.h - Fix-It Rewriter Diagnostic Client ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FixItRewriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a diagnostic client adaptor that performs rewrites as // -// suggested by code modification hints attached to diagnostics. It // -// then forwards any diagnostics to the adapted diagnostic client. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a diagnostic client adaptor that performs rewrites as +// suggested by code modification hints attached to diagnostics. It +// then forwards any diagnostics to the adapted diagnostic client. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_FRONTEND_FIXITREWRITER_H #define LLVM_CLANG_REWRITE_FRONTEND_FIXITREWRITER_H diff --git a/tools/clang/include/clang/Rewrite/Frontend/FrontendActions.h b/tools/clang/include/clang/Rewrite/Frontend/FrontendActions.h index 622e25cac1..d84c43fb4a 100644 --- a/tools/clang/include/clang/Rewrite/Frontend/FrontendActions.h +++ b/tools/clang/include/clang/Rewrite/Frontend/FrontendActions.h @@ -1,11 +1,11 @@ //===-- FrontendActions.h - Useful Frontend Actions -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendActions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_FRONTEND_FRONTENDACTIONS_H #define LLVM_CLANG_REWRITE_FRONTEND_FRONTENDACTIONS_H diff --git a/tools/clang/include/clang/Rewrite/Frontend/Rewriters.h b/tools/clang/include/clang/Rewrite/Frontend/Rewriters.h index d29dbbccf6..3ad76dff82 100644 --- a/tools/clang/include/clang/Rewrite/Frontend/Rewriters.h +++ b/tools/clang/include/clang/Rewrite/Frontend/Rewriters.h @@ -1,14 +1,15 @@ //===--- Rewriters.h - Rewriter implementations -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Rewriters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header contains miscellaneous utilities for various front-end actions.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains miscellaneous utilities for various front-end actions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H #define LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H diff --git a/tools/clang/include/clang/Sema/AnalysisBasedWarnings.h b/tools/clang/include/clang/Sema/AnalysisBasedWarnings.h index 10c107c860..64dd2d36be 100644 --- a/tools/clang/include/clang/Sema/AnalysisBasedWarnings.h +++ b/tools/clang/include/clang/Sema/AnalysisBasedWarnings.h @@ -1,15 +1,15 @@ //=- AnalysisBasedWarnings.h - Sema warnings based on libAnalysis -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisBasedWarnings.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines AnalysisBasedWarnings, a worker object used by Sema // -// that issues warnings based on dataflow-analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines AnalysisBasedWarnings, a worker object used by Sema +// that issues warnings based on dataflow-analysis. +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_ANALYSISBASEDWARNINGS_H #define LLVM_CLANG_SEMA_ANALYSISBASEDWARNINGS_H diff --git a/tools/clang/include/clang/Sema/AttributeList.h b/tools/clang/include/clang/Sema/AttributeList.h index 8f56b52325..d31f82b3bf 100644 --- a/tools/clang/include/clang/Sema/AttributeList.h +++ b/tools/clang/include/clang/Sema/AttributeList.h @@ -1,15 +1,16 @@ //===--- AttributeList.h - Parsed attribute sets ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttributeList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AttributeList class, which is used to collect // -// parsed attributes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AttributeList class, which is used to collect +// parsed attributes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_ATTRIBUTELIST_H #define LLVM_CLANG_SEMA_ATTRIBUTELIST_H diff --git a/tools/clang/include/clang/Sema/CMakeLists.txt b/tools/clang/include/clang/Sema/CMakeLists.txt index 9f2a3c80c9..5a48b901d2 100644 --- a/tools/clang/include/clang/Sema/CMakeLists.txt +++ b/tools/clang/include/clang/Sema/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. clang_tablegen(AttrTemplateInstantiate.inc -gen-clang-attr-template-instantiate -I ${CMAKE_CURRENT_SOURCE_DIR}/../../ SOURCE ../Basic/Attr.td diff --git a/tools/clang/include/clang/Sema/CXXFieldCollector.h b/tools/clang/include/clang/Sema/CXXFieldCollector.h index eae54af9eb..6685751d1e 100644 --- a/tools/clang/include/clang/Sema/CXXFieldCollector.h +++ b/tools/clang/include/clang/Sema/CXXFieldCollector.h @@ -1,15 +1,16 @@ //===- CXXFieldCollector.h - Utility class for C++ class semantic analysis ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXXFieldCollector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides CXXFieldCollector that is used during parsing & semantic// -// analysis of C++ classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides CXXFieldCollector that is used during parsing & semantic +// analysis of C++ classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_CXXFIELDCOLLECTOR_H #define LLVM_CLANG_SEMA_CXXFIELDCOLLECTOR_H diff --git a/tools/clang/include/clang/Sema/CodeCompleteConsumer.h b/tools/clang/include/clang/Sema/CodeCompleteConsumer.h index c2eabc2b52..97022738d0 100644 --- a/tools/clang/include/clang/Sema/CodeCompleteConsumer.h +++ b/tools/clang/include/clang/Sema/CodeCompleteConsumer.h @@ -1,14 +1,15 @@ //===---- CodeCompleteConsumer.h - Code Completion Interface ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeCompleteConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CodeCompleteConsumer class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CodeCompleteConsumer class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_CODECOMPLETECONSUMER_H #define LLVM_CLANG_SEMA_CODECOMPLETECONSUMER_H diff --git a/tools/clang/include/clang/Sema/CodeCompleteOptions.h b/tools/clang/include/clang/Sema/CodeCompleteOptions.h index 86d506cafb..e43496f55b 100644 --- a/tools/clang/include/clang/Sema/CodeCompleteOptions.h +++ b/tools/clang/include/clang/Sema/CodeCompleteOptions.h @@ -1,12 +1,11 @@ //===---- CodeCompleteOptions.h - Code Completion Options -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeCompleteOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_CODECOMPLETEOPTIONS_H #define LLVM_CLANG_SEMA_CODECOMPLETEOPTIONS_H diff --git a/tools/clang/include/clang/Sema/DeclSpec.h b/tools/clang/include/clang/Sema/DeclSpec.h index 717598ae67..aa63a1b07b 100644 --- a/tools/clang/include/clang/Sema/DeclSpec.h +++ b/tools/clang/include/clang/Sema/DeclSpec.h @@ -1,25 +1,24 @@ //===--- DeclSpec.h - Parsed declaration specifiers -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclSpec.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file defines the classes used to store parsed information about// -/// declaration-specifiers and declarators. // +/// \file +/// \brief This file defines the classes used to store parsed information about +/// declaration-specifiers and declarators. /// -/// \verbatim // -/// static const int volatile x, *y, *(*(*z)[10])(const void *x); // -/// ------------------------- - -- --------------------------- // -/// declaration-specifiers \ | / // -/// declarators // -/// \endverbatim // +/// \verbatim +/// static const int volatile x, *y, *(*(*z)[10])(const void *x); +/// ------------------------- - -- --------------------------- +/// declaration-specifiers \ | / +/// declarators +/// \endverbatim /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_DECLSPEC_H #define LLVM_CLANG_SEMA_DECLSPEC_H diff --git a/tools/clang/include/clang/Sema/DelayedDiagnostic.h b/tools/clang/include/clang/Sema/DelayedDiagnostic.h index 36ffff59f9..155b3aa72d 100644 --- a/tools/clang/include/clang/Sema/DelayedDiagnostic.h +++ b/tools/clang/include/clang/Sema/DelayedDiagnostic.h @@ -1,24 +1,23 @@ //===--- DelayedDiagnostic.h - Delayed declarator diagnostics ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DelayedDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines the classes clang::DelayedDiagnostic and // -/// clang::AccessedEntity. // +/// \file +/// \brief Defines the classes clang::DelayedDiagnostic and +/// clang::AccessedEntity. /// -/// DelayedDiangostic is used to record diagnostics that are being // -/// conditionally produced during declarator parsing. Certain kinds of // -/// diagnostics -- notably deprecation and access control -- are suppressed // -/// based on semantic properties of the parsed declaration that aren't known // -/// until it is fully parsed. // +/// DelayedDiangostic is used to record diagnostics that are being +/// conditionally produced during declarator parsing. Certain kinds of +/// diagnostics -- notably deprecation and access control -- are suppressed +/// based on semantic properties of the parsed declaration that aren't known +/// until it is fully parsed. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_DELAYEDDIAGNOSTIC_H #define LLVM_CLANG_SEMA_DELAYEDDIAGNOSTIC_H diff --git a/tools/clang/include/clang/Sema/Designator.h b/tools/clang/include/clang/Sema/Designator.h index 642322d8e5..55603fe2e2 100644 --- a/tools/clang/include/clang/Sema/Designator.h +++ b/tools/clang/include/clang/Sema/Designator.h @@ -1,15 +1,16 @@ //===--- Designator.h - Initialization Designator ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Designator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines interfaces used to represent designators (a la // -// C99 designated initializers) during parsing. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines interfaces used to represent designators (a la +// C99 designated initializers) during parsing. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_DESIGNATOR_H #define LLVM_CLANG_SEMA_DESIGNATOR_H diff --git a/tools/clang/include/clang/Sema/ExternalSemaSource.h b/tools/clang/include/clang/Sema/ExternalSemaSource.h index 0a61247d61..91578e2440 100644 --- a/tools/clang/include/clang/Sema/ExternalSemaSource.h +++ b/tools/clang/include/clang/Sema/ExternalSemaSource.h @@ -1,14 +1,15 @@ //===--- ExternalSemaSource.h - External Sema Interface ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalSemaSource.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ExternalSemaSource interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ExternalSemaSource interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_EXTERNALSEMASOURCE_H #define LLVM_CLANG_SEMA_EXTERNALSEMASOURCE_H diff --git a/tools/clang/include/clang/Sema/IdentifierResolver.h b/tools/clang/include/clang/Sema/IdentifierResolver.h index 3265411bfd..a07834f956 100644 --- a/tools/clang/include/clang/Sema/IdentifierResolver.h +++ b/tools/clang/include/clang/Sema/IdentifierResolver.h @@ -1,15 +1,16 @@ //===- IdentifierResolver.h - Lexical Scope Name lookup ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IdentifierResolver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the IdentifierResolver class, which is used for lexical // -// scoped lookup, based on declaration names. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the IdentifierResolver class, which is used for lexical +// scoped lookup, based on declaration names. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_IDENTIFIERRESOLVER_H #define LLVM_CLANG_SEMA_IDENTIFIERRESOLVER_H diff --git a/tools/clang/include/clang/Sema/Initialization.h b/tools/clang/include/clang/Sema/Initialization.h index b5b8fcf4a2..3451b001a9 100644 --- a/tools/clang/include/clang/Sema/Initialization.h +++ b/tools/clang/include/clang/Sema/Initialization.h @@ -1,14 +1,15 @@ //===--- Initialization.h - Semantic Analysis for Initializers --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Initialization.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides supporting data types for initialization of objects. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides supporting data types for initialization of objects. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_INITIALIZATION_H #define LLVM_CLANG_SEMA_INITIALIZATION_H diff --git a/tools/clang/include/clang/Sema/LocInfoType.h b/tools/clang/include/clang/Sema/LocInfoType.h index d586a4f8dc..63dfa72b8f 100644 --- a/tools/clang/include/clang/Sema/LocInfoType.h +++ b/tools/clang/include/clang/Sema/LocInfoType.h @@ -1,15 +1,16 @@ //===--- LocInfoType.h - Parsed Type with Location Information---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LocInfoType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LocInfoType class, which holds a type and its // -// source-location information. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LocInfoType class, which holds a type and its +// source-location information. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_LOCINFOTYPE_H #define LLVM_CLANG_SEMA_LOCINFOTYPE_H diff --git a/tools/clang/include/clang/Sema/Lookup.h b/tools/clang/include/clang/Sema/Lookup.h index 9c46bbe73d..5bfee8b0d0 100644 --- a/tools/clang/include/clang/Sema/Lookup.h +++ b/tools/clang/include/clang/Sema/Lookup.h @@ -1,15 +1,16 @@ //===--- Lookup.h - Classes for name lookup ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Lookup.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LookupResult class, which is integral to // -// Sema's name-lookup subsystem. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LookupResult class, which is integral to +// Sema's name-lookup subsystem. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_LOOKUP_H #define LLVM_CLANG_SEMA_LOOKUP_H diff --git a/tools/clang/include/clang/Sema/LoopHint.h b/tools/clang/include/clang/Sema/LoopHint.h index 04b5b34e56..c8b2ee845e 100644 --- a/tools/clang/include/clang/Sema/LoopHint.h +++ b/tools/clang/include/clang/Sema/LoopHint.h @@ -1,12 +1,11 @@ //===--- LoopHint.h - Types for LoopHint ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LoopHint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_LOOPHINT_H #define LLVM_CLANG_SEMA_LOOPHINT_H diff --git a/tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h b/tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h index b55fe655d7..af7083a82d 100644 --- a/tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h +++ b/tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h @@ -1,14 +1,15 @@ //===--- MultiplexExternalSemaSource.h - External Sema Interface-*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MultiplexExternalSemaSource.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ExternalSemaSource interface, dispatching to all clients// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ExternalSemaSource interface, dispatching to all clients +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_MULTIPLEXEXTERNALSEMASOURCE_H #define LLVM_CLANG_SEMA_MULTIPLEXEXTERNALSEMASOURCE_H diff --git a/tools/clang/include/clang/Sema/ObjCMethodList.h b/tools/clang/include/clang/Sema/ObjCMethodList.h index 08c60056f9..b618e38f88 100644 --- a/tools/clang/include/clang/Sema/ObjCMethodList.h +++ b/tools/clang/include/clang/Sema/ObjCMethodList.h @@ -1,14 +1,15 @@ //===--- ObjCMethodList.h - A singly linked list of methods -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCMethodList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ObjCMethodList, a singly-linked list of methods. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ObjCMethodList, a singly-linked list of methods. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_OBJCMETHODLIST_H #define LLVM_CLANG_SEMA_OBJCMETHODLIST_H diff --git a/tools/clang/include/clang/Sema/Overload.h b/tools/clang/include/clang/Sema/Overload.h index b6db831e57..e92f2ab1b5 100644 --- a/tools/clang/include/clang/Sema/Overload.h +++ b/tools/clang/include/clang/Sema/Overload.h @@ -1,15 +1,16 @@ //===--- Overload.h - C++ Overloading ---------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Overload.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the data structures and types used in C++ // -// overload resolution. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the data structures and types used in C++ +// overload resolution. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_OVERLOAD_H #define LLVM_CLANG_SEMA_OVERLOAD_H diff --git a/tools/clang/include/clang/Sema/Ownership.h b/tools/clang/include/clang/Sema/Ownership.h index ddc5a6cbe1..d6891e11a8 100644 --- a/tools/clang/include/clang/Sema/Ownership.h +++ b/tools/clang/include/clang/Sema/Ownership.h @@ -1,12 +1,13 @@ //===--- Ownership.h - Parser ownership helpers -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Ownership.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains classes for managing ownership of Stmt and Expr nodes.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains classes for managing ownership of Stmt and Expr nodes. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/Sema/ParsedTemplate.h b/tools/clang/include/clang/Sema/ParsedTemplate.h index 90ded01d12..b36425f1be 100644 --- a/tools/clang/include/clang/Sema/ParsedTemplate.h +++ b/tools/clang/include/clang/Sema/ParsedTemplate.h @@ -1,15 +1,16 @@ //===--- ParsedTemplate.h - Template Parsing Data Types -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParsedTemplate.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides data structures that store the parsed representation of// -// templates. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides data structures that store the parsed representation of +// templates. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_PARSEDTEMPLATE_H #define LLVM_CLANG_SEMA_PARSEDTEMPLATE_H diff --git a/tools/clang/include/clang/Sema/PrettyDeclStackTrace.h b/tools/clang/include/clang/Sema/PrettyDeclStackTrace.h index a547a30d36..ca22e640de 100644 --- a/tools/clang/include/clang/Sema/PrettyDeclStackTrace.h +++ b/tools/clang/include/clang/Sema/PrettyDeclStackTrace.h @@ -1,16 +1,17 @@ //===- PrettyDeclStackTrace.h - Stack trace for decl processing -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrettyDeclStackTrace.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines an llvm::PrettyStackTraceEntry object for showing // -// that a particular declaration was being processed when a crash // -// occurred. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines an llvm::PrettyStackTraceEntry object for showing +// that a particular declaration was being processed when a crash +// occurred. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_PRETTYDECLSTACKTRACE_H #define LLVM_CLANG_SEMA_PRETTYDECLSTACKTRACE_H diff --git a/tools/clang/include/clang/Sema/Scope.h b/tools/clang/include/clang/Sema/Scope.h index 47c0bde218..545b38566c 100644 --- a/tools/clang/include/clang/Sema/Scope.h +++ b/tools/clang/include/clang/Sema/Scope.h @@ -1,14 +1,15 @@ //===--- Scope.h - Scope interface ------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Scope.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Scope interface. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Scope interface. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SCOPE_H #define LLVM_CLANG_SEMA_SCOPE_H diff --git a/tools/clang/include/clang/Sema/ScopeInfo.h b/tools/clang/include/clang/Sema/ScopeInfo.h index ba3fa231ca..15ee8a4ba7 100644 --- a/tools/clang/include/clang/Sema/ScopeInfo.h +++ b/tools/clang/include/clang/Sema/ScopeInfo.h @@ -1,15 +1,16 @@ //===--- ScopeInfo.h - Information about a semantic context -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScopeInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines FunctionScopeInfo and its subclasses, which contain // -// information about a single function, block, lambda, or method body. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines FunctionScopeInfo and its subclasses, which contain +// information about a single function, block, lambda, or method body. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SCOPEINFO_H #define LLVM_CLANG_SEMA_SCOPEINFO_H diff --git a/tools/clang/include/clang/Sema/Sema.h b/tools/clang/include/clang/Sema/Sema.h index fdb220a1de..0eff3edbdd 100644 --- a/tools/clang/include/clang/Sema/Sema.h +++ b/tools/clang/include/clang/Sema/Sema.h @@ -1,15 +1,16 @@ //===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Sema.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Sema class, which performs semantic analysis and // -// builds ASTs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Sema class, which performs semantic analysis and +// builds ASTs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SEMA_H #define LLVM_CLANG_SEMA_SEMA_H diff --git a/tools/clang/include/clang/Sema/SemaConsumer.h b/tools/clang/include/clang/Sema/SemaConsumer.h index c4aa470d30..676646afbd 100644 --- a/tools/clang/include/clang/Sema/SemaConsumer.h +++ b/tools/clang/include/clang/Sema/SemaConsumer.h @@ -1,16 +1,17 @@ //===--- SemaConsumer.h - Abstract interface for AST semantics --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the SemaConsumer class, a subclass of // -// ASTConsumer that is used by AST clients that also require // -// additional semantic analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the SemaConsumer class, a subclass of +// ASTConsumer that is used by AST clients that also require +// additional semantic analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SEMACONSUMER_H #define LLVM_CLANG_SEMA_SEMACONSUMER_H diff --git a/tools/clang/include/clang/Sema/SemaDiagnostic.h b/tools/clang/include/clang/Sema/SemaDiagnostic.h index b7ff4fda2d..7740d5e29c 100644 --- a/tools/clang/include/clang/Sema/SemaDiagnostic.h +++ b/tools/clang/include/clang/Sema/SemaDiagnostic.h @@ -1,12 +1,11 @@ //===--- DiagnosticSema.h - Diagnostics for libsema -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SEMADIAGNOSTIC_H #define LLVM_CLANG_SEMA_SEMADIAGNOSTIC_H diff --git a/tools/clang/include/clang/Sema/SemaFixItUtils.h b/tools/clang/include/clang/Sema/SemaFixItUtils.h index 8c9b66ce45..343ccfb3d6 100644 --- a/tools/clang/include/clang/Sema/SemaFixItUtils.h +++ b/tools/clang/include/clang/Sema/SemaFixItUtils.h @@ -1,14 +1,15 @@ //===--- SemaFixItUtils.h - Sema FixIts -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaFixItUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines helper classes for generation of Sema FixItHints. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines helper classes for generation of Sema FixItHints. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SEMAFIXITUTILS_H #define LLVM_CLANG_SEMA_SEMAFIXITUTILS_H diff --git a/tools/clang/include/clang/Sema/SemaInternal.h b/tools/clang/include/clang/Sema/SemaInternal.h index 8f2e3a5648..60c6598287 100644 --- a/tools/clang/include/clang/Sema/SemaInternal.h +++ b/tools/clang/include/clang/Sema/SemaInternal.h @@ -1,15 +1,16 @@ //===--- SemaInternal.h - Internal Sema Interfaces --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaInternal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides common API and #includes for the internal // -// implementation of Sema. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides common API and #includes for the internal +// implementation of Sema. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SEMAINTERNAL_H #define LLVM_CLANG_SEMA_SEMAINTERNAL_H diff --git a/tools/clang/include/clang/Sema/SemaLambda.h b/tools/clang/include/clang/Sema/SemaLambda.h index 1cb308e9bc..d043e2c459 100644 --- a/tools/clang/include/clang/Sema/SemaLambda.h +++ b/tools/clang/include/clang/Sema/SemaLambda.h @@ -1,18 +1,17 @@ //===--- SemaLambda.h - Lambda Helper Functions --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaLambda.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file provides some common utility functions for processing // -/// Lambdas. // +/// \file +/// \brief This file provides some common utility functions for processing +/// Lambdas. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_SEMALAMBDA_H #define LLVM_CLANG_SEMA_SEMALAMBDA_H diff --git a/tools/clang/include/clang/Sema/Template.h b/tools/clang/include/clang/Sema/Template.h index 288915d454..57c8b36243 100644 --- a/tools/clang/include/clang/Sema/Template.h +++ b/tools/clang/include/clang/Sema/Template.h @@ -1,14 +1,14 @@ //===------- SemaTemplate.h - C++ Templates ---------------------*- C++ -*-===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// Template.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides types used in the semantic analysis of C++ templates. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file provides types used in the semantic analysis of C++ templates. +// +//===----------------------------------------------------------------------===/ #ifndef LLVM_CLANG_SEMA_TEMPLATE_H #define LLVM_CLANG_SEMA_TEMPLATE_H diff --git a/tools/clang/include/clang/Sema/TemplateDeduction.h b/tools/clang/include/clang/Sema/TemplateDeduction.h index ec4ca8f2e7..bbdd4fec2d 100644 --- a/tools/clang/include/clang/Sema/TemplateDeduction.h +++ b/tools/clang/include/clang/Sema/TemplateDeduction.h @@ -1,15 +1,15 @@ //===- TemplateDeduction.h - C++ template argument deduction ----*- C++ -*-===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// TemplateDeduction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides types used with Sema's template argument deduction // -// routines. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file provides types used with Sema's template argument deduction +// routines. +// +//===----------------------------------------------------------------------===/ #ifndef LLVM_CLANG_SEMA_TEMPLATEDEDUCTION_H #define LLVM_CLANG_SEMA_TEMPLATEDEDUCTION_H diff --git a/tools/clang/include/clang/Sema/TypoCorrection.h b/tools/clang/include/clang/Sema/TypoCorrection.h index c60d3e9019..958aab0fce 100644 --- a/tools/clang/include/clang/Sema/TypoCorrection.h +++ b/tools/clang/include/clang/Sema/TypoCorrection.h @@ -1,15 +1,16 @@ //===--- TypoCorrection.h - Class for typo correction results ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypoCorrection.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypoCorrection class, which stores the results of // -// Sema's typo correction (Sema::CorrectTypo). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypoCorrection class, which stores the results of +// Sema's typo correction (Sema::CorrectTypo). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_TYPOCORRECTION_H #define LLVM_CLANG_SEMA_TYPOCORRECTION_H diff --git a/tools/clang/include/clang/Sema/Weak.h b/tools/clang/include/clang/Sema/Weak.h index 428303d79e..9c7212e0c8 100644 --- a/tools/clang/include/clang/Sema/Weak.h +++ b/tools/clang/include/clang/Sema/Weak.h @@ -1,15 +1,16 @@ //===-- UnresolvedSet.h - Unresolved sets of declarations ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Weak.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the WeakInfo class, which is used to store // -// information about the target of a #pragma weak directive. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the WeakInfo class, which is used to store +// information about the target of a #pragma weak directive. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SEMA_WEAK_H #define LLVM_CLANG_SEMA_WEAK_H diff --git a/tools/clang/include/clang/Serialization/ASTBitCodes.h b/tools/clang/include/clang/Serialization/ASTBitCodes.h index 38598ca78e..b80b94e8d3 100644 --- a/tools/clang/include/clang/Serialization/ASTBitCodes.h +++ b/tools/clang/include/clang/Serialization/ASTBitCodes.h @@ -1,18 +1,19 @@ //===- ASTBitCodes.h - Enum values for the PCH bitcode format ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTBitCodes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines Bitcode enum values for Clang serialized AST files. // // -// The enum values defined in this file should be considered permanent. If // -// new features are added, they should have values added at the end of the // -// respective lists. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines Bitcode enum values for Clang serialized AST files. +// +// The enum values defined in this file should be considered permanent. If +// new features are added, they should have values added at the end of the +// respective lists. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_ASTBITCODES_H #define LLVM_CLANG_SERIALIZATION_ASTBITCODES_H diff --git a/tools/clang/include/clang/Serialization/ASTDeserializationListener.h b/tools/clang/include/clang/Serialization/ASTDeserializationListener.h index 4b99c4dedd..4b10c39d8f 100644 --- a/tools/clang/include/clang/Serialization/ASTDeserializationListener.h +++ b/tools/clang/include/clang/Serialization/ASTDeserializationListener.h @@ -1,15 +1,16 @@ //===- ASTDeserializationListener.h - Decl/Type PCH Read Events -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTDeserializationListener.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTDeserializationListener class, which is notified// -// by the ASTReader whenever a type or declaration is deserialized. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTDeserializationListener class, which is notified +// by the ASTReader whenever a type or declaration is deserialized. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_ASTDESERIALIZATIONLISTENER_H #define LLVM_CLANG_SERIALIZATION_ASTDESERIALIZATIONLISTENER_H diff --git a/tools/clang/include/clang/Serialization/ASTReader.h b/tools/clang/include/clang/Serialization/ASTReader.h index 7acf1e06b6..840655ea43 100644 --- a/tools/clang/include/clang/Serialization/ASTReader.h +++ b/tools/clang/include/clang/Serialization/ASTReader.h @@ -1,14 +1,15 @@ //===--- ASTReader.h - AST File Reader --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTReader.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTReader class, which reads AST files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTReader class, which reads AST files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_ASTREADER_H #define LLVM_CLANG_SERIALIZATION_ASTREADER_H diff --git a/tools/clang/include/clang/Serialization/ASTWriter.h b/tools/clang/include/clang/Serialization/ASTWriter.h index 4a0dcd3541..e830fdcf8f 100644 --- a/tools/clang/include/clang/Serialization/ASTWriter.h +++ b/tools/clang/include/clang/Serialization/ASTWriter.h @@ -1,15 +1,16 @@ //===--- ASTWriter.h - AST File Writer --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTWriter class, which writes an AST file // -// containing a serialized representation of a translation unit. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTWriter class, which writes an AST file +// containing a serialized representation of a translation unit. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_ASTWRITER_H #define LLVM_CLANG_SERIALIZATION_ASTWRITER_H diff --git a/tools/clang/include/clang/Serialization/CMakeLists.txt b/tools/clang/include/clang/Serialization/CMakeLists.txt index 29e07f2135..d91513da99 100644 --- a/tools/clang/include/clang/Serialization/CMakeLists.txt +++ b/tools/clang/include/clang/Serialization/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. clang_tablegen(AttrPCHRead.inc -gen-clang-attr-pch-read -I ${CMAKE_CURRENT_SOURCE_DIR}/../../ SOURCE ../Basic/Attr.td diff --git a/tools/clang/include/clang/Serialization/ContinuousRangeMap.h b/tools/clang/include/clang/Serialization/ContinuousRangeMap.h index d693272d89..244b01b22a 100644 --- a/tools/clang/include/clang/Serialization/ContinuousRangeMap.h +++ b/tools/clang/include/clang/Serialization/ContinuousRangeMap.h @@ -1,15 +1,16 @@ //===--- ContinuousRangeMap.h - Map with int range as key -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ContinuousRangeMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ContinuousRangeMap class, which is a highly // -// specialized container used by serialization. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ContinuousRangeMap class, which is a highly +// specialized container used by serialization. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_CONTINUOUSRANGEMAP_H #define LLVM_CLANG_SERIALIZATION_CONTINUOUSRANGEMAP_H diff --git a/tools/clang/include/clang/Serialization/GlobalModuleIndex.h b/tools/clang/include/clang/Serialization/GlobalModuleIndex.h index 4032c4b45b..ba4f7e216a 100644 --- a/tools/clang/include/clang/Serialization/GlobalModuleIndex.h +++ b/tools/clang/include/clang/Serialization/GlobalModuleIndex.h @@ -1,17 +1,18 @@ //===--- GlobalModuleIndex.h - Global Module Index --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalModuleIndex.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the GlobalModuleIndex class, which manages a global index// -// containing all of the identifiers known to the various modules within a given// -// subdirectory of the module cache. It is used to improve the performance of// -// queries such as "do any modules know about this identifier?" // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the GlobalModuleIndex class, which manages a global index +// containing all of the identifiers known to the various modules within a given +// subdirectory of the module cache. It is used to improve the performance of +// queries such as "do any modules know about this identifier?" +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_GLOBALMODULEINDEX_H #define LLVM_CLANG_SERIALIZATION_GLOBALMODULEINDEX_H diff --git a/tools/clang/include/clang/Serialization/Module.h b/tools/clang/include/clang/Serialization/Module.h index 74e40b0a61..c98ced41aa 100644 --- a/tools/clang/include/clang/Serialization/Module.h +++ b/tools/clang/include/clang/Serialization/Module.h @@ -1,15 +1,16 @@ //===--- Module.h - Module description --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Module.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Module class, which describes a module that has // -// been loaded from an AST file. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Module class, which describes a module that has +// been loaded from an AST file. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_MODULE_H #define LLVM_CLANG_SERIALIZATION_MODULE_H diff --git a/tools/clang/include/clang/Serialization/ModuleManager.h b/tools/clang/include/clang/Serialization/ModuleManager.h index 71a6f69e5e..ab39aefa94 100644 --- a/tools/clang/include/clang/Serialization/ModuleManager.h +++ b/tools/clang/include/clang/Serialization/ModuleManager.h @@ -1,15 +1,16 @@ //===--- ModuleManager.cpp - Module Manager ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ModuleManager class, which manages a set of loaded // -// modules for the ASTReader. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ModuleManager class, which manages a set of loaded +// modules for the ASTReader. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_MODULEMANAGER_H #define LLVM_CLANG_SERIALIZATION_MODULEMANAGER_H diff --git a/tools/clang/include/clang/Serialization/SerializationDiagnostic.h b/tools/clang/include/clang/Serialization/SerializationDiagnostic.h index f9190eb839..d50422aa46 100644 --- a/tools/clang/include/clang/Serialization/SerializationDiagnostic.h +++ b/tools/clang/include/clang/Serialization/SerializationDiagnostic.h @@ -1,12 +1,11 @@ //===--- SerializationDiagnostic.h - Serialization Diagnostics -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SerializationDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_SERIALIZATIONDIAGNOSTIC_H #define LLVM_CLANG_SERIALIZATION_SERIALIZATIONDIAGNOSTIC_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Checkers/CheckerBase.td b/tools/clang/include/clang/StaticAnalyzer/Checkers/CheckerBase.td index cfc5192035..11f1e5d4bd 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Checkers/CheckerBase.td +++ b/tools/clang/include/clang/StaticAnalyzer/Checkers/CheckerBase.td @@ -1,14 +1,15 @@ //===--- CheckerBase.td - Checker TableGen classes ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerBase.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TableGen core definitions for checkers // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TableGen core definitions for checkers +// +//===----------------------------------------------------------------------===// class CheckerGroup { string GroupName = name; diff --git a/tools/clang/include/clang/StaticAnalyzer/Checkers/ClangCheckers.h b/tools/clang/include/clang/StaticAnalyzer/Checkers/ClangCheckers.h index 6eec7f86de..cf0a30a73d 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Checkers/ClangCheckers.h +++ b/tools/clang/include/clang/StaticAnalyzer/Checkers/ClangCheckers.h @@ -1,12 +1,11 @@ //===--- ClangCheckers.h - Provides builtin checkers ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangCheckers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CHECKERS_CLANGCHECKERS_H #define LLVM_CLANG_STATICANALYZER_CHECKERS_CLANGCHECKERS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Checkers/LocalCheckers.h b/tools/clang/include/clang/StaticAnalyzer/Checkers/LocalCheckers.h index ad52f4734a..463f04a65a 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Checkers/LocalCheckers.h +++ b/tools/clang/include/clang/StaticAnalyzer/Checkers/LocalCheckers.h @@ -1,15 +1,16 @@ //==- LocalCheckers.h - Intra-Procedural+Flow-Sensitive Checkers -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// LocalCheckers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface to call a set of intra-procedural (local)// -// checkers that use flow/path-sensitive analyses to find bugs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface to call a set of intra-procedural (local) +// checkers that use flow/path-sensitive analyses to find bugs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CHECKERS_LOCALCHECKERS_H #define LLVM_CLANG_STATICANALYZER_CHECKERS_LOCALCHECKERS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h b/tools/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h index c88f75e98c..5850656916 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h +++ b/tools/clang/include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h @@ -1,19 +1,20 @@ //==-- ObjCRetainCount.h - Retain count summaries for Cocoa -------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCRetainCount.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the core data structures for retain count "summaries" // -// for Objective-C and Core Foundation APIs. These summaries are used // -// by the static analyzer to summarize the retain/release effects of // -// function and method calls. This drives a path-sensitive typestate // -// analysis in the static analyzer, but can also potentially be used by // -// other clients. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the core data structures for retain count "summaries" +// for Objective-C and Core Foundation APIs. These summaries are used +// by the static analyzer to summarize the retain/release effects of +// function and method calls. This drives a path-sensitive typestate +// analysis in the static analyzer, but can also potentially be used by +// other clients. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CHECKERS_OBJCRETAINCOUNT_H #define LLVM_CLANG_STATICANALYZER_CHECKERS_OBJCRETAINCOUNT_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/Analyses.def b/tools/clang/include/clang/StaticAnalyzer/Core/Analyses.def index 66c081f906..3355f4b694 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/Analyses.def +++ b/tools/clang/include/clang/StaticAnalyzer/Core/Analyses.def @@ -1,14 +1,15 @@ //===-- Analyses.def - Metadata about Static Analyses -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Analyses.def // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the set of static analyses used by AnalysisConsumer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the set of static analyses used by AnalysisConsumer. +// +//===----------------------------------------------------------------------===// #ifndef ANALYSIS_STORE #define ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN) diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index f4cd809e63..f02e48a441 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -1,15 +1,16 @@ //===--- AnalyzerOptions.h - Analysis Engine Options ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalyzerOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines various options for the static analyzer that are set // -// by the frontend and are consulted throughout the analyzer. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines various options for the static analyzer that are set +// by the frontend and are consulted throughout the analyzer. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_ANALYZEROPTIONS_H #define LLVM_CLANG_STATICANALYZER_CORE_ANALYZEROPTIONS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h index cc7119f8f6..5f6c580e08 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h @@ -1,13 +1,14 @@ //===--- BugReporter.h - Generate PathDiagnostics --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BugReporter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BugReporter, a utility class for generating // -// PathDiagnostics for analyses based on ProgramState. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BugReporter, a utility class for generating +// PathDiagnostics for analyses based on ProgramState. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h index 9c4f1c6275..83b05ecc52 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h @@ -1,15 +1,16 @@ //===--- BugReporterVisitor.h - Generate PathDiagnostics -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BugReporterVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares BugReporterVisitors, which are used to generate enhanced// -// diagnostic traces. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares BugReporterVisitors, which are used to generate enhanced +// diagnostic traces. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGREPORTERVISITOR_H #define LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGREPORTERVISITOR_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h index 00ded5fba7..16226e94df 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h @@ -1,14 +1,15 @@ //===--- BugType.h - Bug Information Desciption ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BugType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BugType, a class representing a bug type. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BugType, a class representing a bug type. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGTYPE_H #define LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_BUGTYPE_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h index bbc678cc50..8df2bc331b 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h @@ -1,12 +1,11 @@ //=--- CommonBugCategories.h - Provides common issue categories -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommonBugCategories.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_COMMONBUGCATEGORIES_H #define LLVM_CLANG_STATICANALYZER_CORE_BUGREPORTER_COMMONBUGCATEGORIES_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index 984a6d448a..012b6fdfe3 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -1,12 +1,13 @@ //===--- PathDiagnostic.h - Path-Specific Diagnostic Handling ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PathDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PathDiagnostic-related interfaces. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PathDiagnostic-related interfaces. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/Checker.h b/tools/clang/include/clang/StaticAnalyzer/Core/Checker.h index 74be29fe3b..099d76311f 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/Checker.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/Checker.h @@ -1,14 +1,15 @@ //== Checker.h - Registration mechanism for checkers -------------*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// Checker.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines Checker, used to create and register checkers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines Checker, used to create and register checkers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKER_H #define LLVM_CLANG_STATICANALYZER_CORE_CHECKER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h b/tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h index b9fc820da1..733ccefb7a 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h @@ -1,12 +1,13 @@ //===--- CheckerManager.h - Static Analyzer Checker Manager -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines the Static Analyzer Checker Manager. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines the Static Analyzer Checker Manager. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h b/tools/clang/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h index 8769629a7d..e981871ae4 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h @@ -1,12 +1,11 @@ //===--- CheckerOptInfo.h - Specifies which checkers to use -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerOptInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H #define LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h b/tools/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h index 485b28e487..c9724c08da 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h @@ -1,12 +1,11 @@ //===--- CheckerRegistry.h - Maintains all available checkers ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKERREGISTRY_H #define LLVM_CLANG_STATICANALYZER_CORE_CHECKERREGISTRY_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h index ae73811992..ce512fd301 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h @@ -1,14 +1,15 @@ //===--- PathDiagnosticClients.h - Path Diagnostic Clients ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PathDiagnosticConsumers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface to create different path diagostic clients.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface to create different path diagostic clients. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHDIAGNOSTICCONSUMERS_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHDIAGNOSTICCONSUMERS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h index adc3a003d3..cc8a9b8ef0 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h @@ -1,12 +1,11 @@ //== APSIntType.h - Simple record of the type of APSInts --------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// APSIntType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_APSINTTYPE_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_APSINTTYPE_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h index 8f96410861..3e0913ec4e 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h @@ -1,15 +1,16 @@ //== AnalysisManager.h - Path sensitive analysis data manager ------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AnalysisManager class that manages the data and policy// -// for path sensitive analysis. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AnalysisManager class that manages the data and policy +// for path sensitive analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_ANALYSISMANAGER_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_ANALYSISMANAGER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h index b1b8f246c7..5b007f1531 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h @@ -1,16 +1,17 @@ //=== BasicValueFactory.h - Basic values for Path Sens analysis --*- C++ -*---// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicValueFactory.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BasicValueFactory, a class that manages the lifetime // -// of APSInt objects and symbolic constraints used by ExprEngine // -// and related classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BasicValueFactory, a class that manages the lifetime +// of APSInt objects and symbolic constraints used by ExprEngine +// and related classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_BASICVALUEFACTORY_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_BASICVALUEFACTORY_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h index 0c332f3836..1d779e6cb6 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h @@ -1,16 +1,17 @@ //==- BlockCounter.h - ADT for counting block visits ---------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockCounter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BlockCounter, an abstract data type used to count // -// the number of times a given block has been visited along a path // -// analyzed by CoreEngine. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BlockCounter, an abstract data type used to count +// the number of times a given block has been visited along a path +// analyzed by CoreEngine. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_BLOCKCOUNTER_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_BLOCKCOUNTER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index 98e984b1e2..63b8631665 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -1,16 +1,17 @@ //===- CallEvent.h - Wrapper for all function and method calls ----*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallEvent.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file This file defines CallEvent and its subclasses, which represent path-// -/// sensitive instances of different kinds of function and method calls // -/// (C, C++, and Objective-C). // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// \file This file defines CallEvent and its subclasses, which represent path- +/// sensitive instances of different kinds of function and method calls +/// (C, C++, and Objective-C). +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CALLEVENT_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CALLEVENT_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h index c6cca2ebe5..a4ff133b4b 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h @@ -1,15 +1,16 @@ //== CheckerContext.h - Context info for path-sensitive checkers--*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines CheckerContext that provides contextual info for // -// path-sensitive checkers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines CheckerContext that provides contextual info for +// path-sensitive checkers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CHECKERCONTEXT_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CHECKERCONTEXT_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h index 6fe65c0442..e7ec1f497b 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h @@ -1,14 +1,15 @@ //== CheckerHelpers.h - Helper functions for checkers ------------*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerHelpers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines CheckerVisitor. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines CheckerVisitor. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CHECKERHELPERS_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CHECKERHELPERS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h index 6d37f01195..f8760964b7 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h @@ -1,14 +1,15 @@ //== ConstraintManager.h - Constraints on symbolic values.-------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstraintManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the interface to manage constraints on symbolic values.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the interface to manage constraints on symbolic values. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CONSTRAINTMANAGER_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_CONSTRAINTMANAGER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h index 582b1a3670..745520a6ea 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h @@ -1,13 +1,14 @@ //==- CoreEngine.h - Path-Sensitive Dataflow Engine ----------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoreEngine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a generic engine for intraprocedural, path-sensitive, // -// dataflow analysis via graph reachability. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a generic engine for intraprocedural, path-sensitive, +// dataflow analysis via graph reachability. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h index 7b5c025add..e13c6410c7 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h @@ -1,12 +1,11 @@ //== DynamicTypeInfo.h - Runtime type information ----------------*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// DynamicTypeInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICTYPEINFO_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICTYPEINFO_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h index 42197fc908..cc3779d743 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h @@ -1,14 +1,15 @@ //== Environment.h - Map from Stmt* to Locations/Values ---------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Environment.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the Environment and EnvironmentManager classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the Environment and EnvironmentManager classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_ENVIRONMENT_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_ENVIRONMENT_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index a3f861489b..6c5de7ef07 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h @@ -1,17 +1,18 @@ //=-- ExplodedGraph.h - Local, Path-Sens. "Exploded Graph" -*- C++ -*-------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExplodedGraph.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the template classes ExplodedNode and ExplodedGraph, // -// which represent a path-sensitive, intra-procedural "exploded graph." // -// See "Precise interprocedural dataflow analysis via graph reachability" // -// by Reps, Horwitz, and Sagiv // -// (http://portal.acm.org/citation.cfm?id=199462) for the definition of an // -// exploded graph. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the template classes ExplodedNode and ExplodedGraph, +// which represent a path-sensitive, intra-procedural "exploded graph." +// See "Precise interprocedural dataflow analysis via graph reachability" +// by Reps, Horwitz, and Sagiv +// (http://portal.acm.org/citation.cfm?id=199462) for the definition of an +// exploded graph. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h index 2817eab4cf..d8f1c34fef 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h @@ -1,16 +1,17 @@ //===-- ExprEngine.h - Path-Sensitive Expression-Level Dataflow ---*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprEngine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a meta-engine for path-sensitive dataflow analysis that// -// is built on CoreEngine, but provides the boilerplate to execute transfer // -// functions and build the ExplodedGraph at the expression level. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a meta-engine for path-sensitive dataflow analysis that +// is built on CoreEngine, but provides the boilerplate to execute transfer +// functions and build the ExplodedGraph at the expression level. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_EXPRENGINE_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_EXPRENGINE_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h index 4ec675ddac..faa3500045 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h @@ -1,14 +1,15 @@ //== FunctionSummary.h - Stores summaries of functions. ------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionSummary.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a summary of a function gathered/used by static analysis.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a summary of a function gathered/used by static analysis. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_FUNCTIONSUMMARY_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_FUNCTIONSUMMARY_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h index 88d362ff9f..edf591e501 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h @@ -1,14 +1,15 @@ //== MemRegion.h - Abstract memory regions for static analysis --*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemRegion.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines MemRegion and its subclasses. MemRegion defines a // -// partially-typed abstraction of memory useful for path-sensitive dataflow // -// analyses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines MemRegion and its subclasses. MemRegion defines a +// partially-typed abstraction of memory useful for path-sensitive dataflow +// analyses. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h index 04527facdc..1429a59f23 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h @@ -1,12 +1,13 @@ //== ProgramState.h - Path-sensitive "State" for tracking values -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramState.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the state of the program along the analysisa path. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the state of the program along the analysisa path. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h index eefbe5ecb1..6b4da7db24 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h @@ -1,17 +1,18 @@ -//= ProgramStateTrait.h - Partial implementations of ProgramStateTrait -*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramStateTrait.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines partial implementations of template specializations of // -// the class ProgramStateTrait<>. ProgramStateTrait<> is used by ProgramState // -// to implement set/get methods for manipulating a ProgramState's // -// generic data map. // +//ProgramStateTrait.h - Partial implementations of ProgramStateTrait -*- C++ -*- // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines partial implementations of template specializations of +// the class ProgramStateTrait<>. ProgramStateTrait<> is used by ProgramState +// to implement set/get methods for manipulating a ProgramState's +// generic data map. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_PROGRAMSTATETRAIT_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h index 21fd64e3a3..415bb7713d 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState_Fwd.h @@ -1,12 +1,11 @@ //== ProgramState_Fwd.h - Incomplete declarations of ProgramState -*- C++ -*--=/ -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramState_Fwd.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_PROGRAMSTATE_FWD_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_PROGRAMSTATE_FWD_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h index 0098c33e87..a68d3410a8 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h @@ -1,15 +1,16 @@ -//= SValBuilder.h - Construction of SVals from evaluating expressions -*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// SValBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SValBuilder, a class that defines the interface for // -// "symbolical evaluators" which construct an SVal from an expression. // +// SValBuilder.h - Construction of SVals from evaluating expressions -*- C++ -*- // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SValBuilder, a class that defines the interface for +// "symbolical evaluators" which construct an SVal from an expression. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALBUILDER_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALBUILDER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h index ca62faebc6..642e11af0e 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h @@ -1,15 +1,16 @@ //== SVals.h - Abstract Values for Static Analysis ---------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SVals.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SVal, Loc, and NonLoc, classes that represent // -// abstract r-values for use with path-sensitive value tracking. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SVal, Loc, and NonLoc, classes that represent +// abstract r-values for use with path-sensitive value tracking. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALS_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h index e5378df01e..a03b6306a0 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h @@ -1,14 +1,15 @@ //== Store.h - Interface for maps from Locations to Values ------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Store.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the types Store and StoreManager. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the types Store and StoreManager. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_STORE_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_STORE_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h index c7ca2d3c25..958c8c377e 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h @@ -1,14 +1,15 @@ //== StoreRef.h - Smart pointer for store objects ---------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// StoreRef.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the type StoreRef. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the type StoreRef. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_STOREREF_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_STOREREF_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h index 3748a950e3..741ba0e2f2 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h @@ -1,14 +1,15 @@ //== SubEngine.h - Interface of the subengine of CoreEngine --------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// SubEngine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface of a subengine of the CoreEngine. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface of a subengine of the CoreEngine. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SUBENGINE_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SUBENGINE_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h index db8a127c6f..ed87851598 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h @@ -1,15 +1,16 @@ //== SummaryManager.h - Generic handling of function summaries --*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SummaryManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SummaryManager and related classes, which provides // -// a generic mechanism for managing function summaries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SummaryManager and related classes, which provides +// a generic mechanism for managing function summaries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_GR_SUMMARY #define LLVM_CLANG_GR_SUMMARY diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h index 80ae3d807b..1ca96a2231 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h @@ -1,15 +1,16 @@ //== SymbolManager.h - Management of Symbolic Values ------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SymbolManager, a class that manages symbolic values // -// created for use by ExprEngine and related classes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SymbolManager, a class that manages symbolic values +// created for use by ExprEngine and related classes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SYMBOLMANAGER_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SYMBOLMANAGER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h index d3ab4fd81a..d39b5017d3 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h @@ -1,14 +1,15 @@ //== TaintManager.h - Managing taint --------------------------- -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// TaintManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides APIs for adding, removing, querying symbol taint. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides APIs for adding, removing, querying symbol taint. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_TAINTMANAGER_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_TAINTMANAGER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h index 167e322aa7..0c56e7d8ea 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h @@ -1,15 +1,16 @@ //== TaintTag.h - Path-sensitive "State" for tracking values -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// TaintTag.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines a set of taint tags. Several tags are used to differentiate kinds // -// of taint. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines a set of taint tags. Several tags are used to differentiate kinds +// of taint. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_TAINTTAG_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_TAINTTAG_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h index b04a4926e9..4f1a60e675 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h +++ b/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h @@ -1,15 +1,16 @@ //==- WorkList.h - Worklist class used by CoreEngine ---------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// WorkList.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines WorkList, a pure virtual class that represents an opaque// -// worklist used by CoreEngine to explore the reachability state space. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines WorkList, a pure virtual class that represents an opaque +// worklist used by CoreEngine to explore the reachability state space. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_WORKLIST_H #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_WORKLIST_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h b/tools/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h index 3e926e1c58..37ea05fb99 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h +++ b/tools/clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h @@ -1,15 +1,16 @@ //===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header contains the functions necessary for a front-end to run various// -// analyses. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header contains the functions necessary for a front-end to run various +// analyses. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_ANALYSISCONSUMER_H #define LLVM_CLANG_STATICANALYZER_FRONTEND_ANALYSISCONSUMER_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h b/tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h index b278fdb057..2985b7c117 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h +++ b/tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h @@ -1,12 +1,11 @@ //===-- CheckerRegistration.h - Checker Registration Function ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerRegistration.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H #define LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h b/tools/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h index 7b42eefabd..335913fdce 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h +++ b/tools/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h @@ -1,11 +1,11 @@ //===-- FrontendActions.h - Useful Frontend Actions -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendActions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_FRONTENDACTIONS_H #define LLVM_CLANG_STATICANALYZER_FRONTEND_FRONTENDACTIONS_H diff --git a/tools/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h b/tools/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h index 4b1d0b8ecd..24f8042587 100644 --- a/tools/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h +++ b/tools/clang/include/clang/StaticAnalyzer/Frontend/ModelConsumer.h @@ -1,18 +1,17 @@ //===-- ModelConsumer.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModelConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements clang::ento::ModelConsumer which is an // -/// ASTConsumer for model files. // +/// \file +/// \brief This file implements clang::ento::ModelConsumer which is an +/// ASTConsumer for model files. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_GR_MODELCONSUMER_H #define LLVM_CLANG_GR_MODELCONSUMER_H diff --git a/tools/clang/include/clang/Tooling/ArgumentsAdjusters.h b/tools/clang/include/clang/Tooling/ArgumentsAdjusters.h index 9baa19439f..a92e021420 100644 --- a/tools/clang/include/clang/Tooling/ArgumentsAdjusters.h +++ b/tools/clang/include/clang/Tooling/ArgumentsAdjusters.h @@ -1,17 +1,18 @@ //===--- ArgumentsAdjusters.h - Command line arguments adjuster -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArgumentsAdjusters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares typedef ArgumentsAdjuster and functions to create several// -// useful argument adjusters. // -// ArgumentsAdjusters modify command line arguments obtained from a compilation// -// database before they are used to run a frontend action. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares typedef ArgumentsAdjuster and functions to create several +// useful argument adjusters. +// ArgumentsAdjusters modify command line arguments obtained from a compilation +// database before they are used to run a frontend action. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_ARGUMENTSADJUSTERS_H #define LLVM_CLANG_TOOLING_ARGUMENTSADJUSTERS_H diff --git a/tools/clang/include/clang/Tooling/CommonOptionsParser.h b/tools/clang/include/clang/Tooling/CommonOptionsParser.h index ee1ab75e70..c23dc9211d 100644 --- a/tools/clang/include/clang/Tooling/CommonOptionsParser.h +++ b/tools/clang/include/clang/Tooling/CommonOptionsParser.h @@ -1,27 +1,28 @@ //===- CommonOptionsParser.h - common options for clang tools -*- C++ -*-=====// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommonOptionsParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CommonOptionsParser class used to parse common // -// command-line options for clang tools, so that they can be run as separate// -// command-line applications with a consistent common interface for handling// -// compilation database and input files. // // -// It provides a common subset of command-line options, common algorithm // -// for locating a compilation database and source files, and help messages // -// for the basic command-line interface. // +// The LLVM Compiler Infrastructure // -// It creates a CompilationDatabase and reads common command-line options. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// This class uses the Clang Tooling infrastructure, see // -// http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html // -// for details on setting it up with LLVM source tree. // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file implements the CommonOptionsParser class used to parse common +// command-line options for clang tools, so that they can be run as separate +// command-line applications with a consistent common interface for handling +// compilation database and input files. +// +// It provides a common subset of command-line options, common algorithm +// for locating a compilation database and source files, and help messages +// for the basic command-line interface. +// +// It creates a CompilationDatabase and reads common command-line options. +// +// This class uses the Clang Tooling infrastructure, see +// http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html +// for details on setting it up with LLVM source tree. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_COMMONOPTIONSPARSER_H #define LLVM_CLANG_TOOLING_COMMONOPTIONSPARSER_H diff --git a/tools/clang/include/clang/Tooling/CompilationDatabase.h b/tools/clang/include/clang/Tooling/CompilationDatabase.h index 543748336a..e5b95af3ae 100644 --- a/tools/clang/include/clang/Tooling/CompilationDatabase.h +++ b/tools/clang/include/clang/Tooling/CompilationDatabase.h @@ -1,28 +1,29 @@ //===--- CompilationDatabase.h - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilationDatabase.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides an interface and multiple implementations for // -// CompilationDatabases. // // -// While C++ refactoring and analysis tools are not compilers, and thus // -// don't run as part of the build system, they need the exact information // -// of a build in order to be able to correctly understand the C++ code of // -// the project. This information is provided via the CompilationDatabase // -// interface. // +// The LLVM Compiler Infrastructure // -// To create a CompilationDatabase from a build directory one can call // -// CompilationDatabase::loadFromDirectory(), which deduces the correct // -// compilation database from the root of the build tree. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// See the concrete subclasses of CompilationDatabase for currently supported// -// formats. // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// This file provides an interface and multiple implementations for +// CompilationDatabases. +// +// While C++ refactoring and analysis tools are not compilers, and thus +// don't run as part of the build system, they need the exact information +// of a build in order to be able to correctly understand the C++ code of +// the project. This information is provided via the CompilationDatabase +// interface. +// +// To create a CompilationDatabase from a build directory one can call +// CompilationDatabase::loadFromDirectory(), which deduces the correct +// compilation database from the root of the build tree. +// +// See the concrete subclasses of CompilationDatabase for currently supported +// formats. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_COMPILATIONDATABASE_H #define LLVM_CLANG_TOOLING_COMPILATIONDATABASE_H diff --git a/tools/clang/include/clang/Tooling/CompilationDatabasePluginRegistry.h b/tools/clang/include/clang/Tooling/CompilationDatabasePluginRegistry.h index 2eb3d2d681..7323ec8974 100644 --- a/tools/clang/include/clang/Tooling/CompilationDatabasePluginRegistry.h +++ b/tools/clang/include/clang/Tooling/CompilationDatabasePluginRegistry.h @@ -1,12 +1,11 @@ //===--- CompilationDatabasePluginRegistry.h - ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilationDatabasePluginRegistry.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_COMPILATIONDATABASEPLUGINREGISTRY_H #define LLVM_CLANG_TOOLING_COMPILATIONDATABASEPLUGINREGISTRY_H diff --git a/tools/clang/include/clang/Tooling/Core/Replacement.h b/tools/clang/include/clang/Tooling/Core/Replacement.h index 7377859cc9..f189e12501 100644 --- a/tools/clang/include/clang/Tooling/Core/Replacement.h +++ b/tools/clang/include/clang/Tooling/Core/Replacement.h @@ -1,19 +1,20 @@ //===--- Replacement.h - Framework for clang refactoring tools --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Replacement.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Classes supporting refactorings that span multiple translation units. // -// While single translation unit refactorings are supported via the Rewriter,// -// when refactoring multiple translation units changes must be stored in a // -// SourceManager independent form, duplicate changes need to be removed, and// -// all changes must be applied at once at the end of the refactoring so that// -// the code is always parseable. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Classes supporting refactorings that span multiple translation units. +// While single translation unit refactorings are supported via the Rewriter, +// when refactoring multiple translation units changes must be stored in a +// SourceManager independent form, duplicate changes need to be removed, and +// all changes must be applied at once at the end of the refactoring so that +// the code is always parseable. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_CORE_REPLACEMENT_H #define LLVM_CLANG_TOOLING_CORE_REPLACEMENT_H diff --git a/tools/clang/include/clang/Tooling/FileMatchTrie.h b/tools/clang/include/clang/Tooling/FileMatchTrie.h index 39d8eff6b5..745c164506 100644 --- a/tools/clang/include/clang/Tooling/FileMatchTrie.h +++ b/tools/clang/include/clang/Tooling/FileMatchTrie.h @@ -1,15 +1,16 @@ //===--- FileMatchTrie.h - --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileMatchTrie.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a match trie to find the matching file in a compilation// -// database based on a given path in the presence of symlinks. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a match trie to find the matching file in a compilation +// database based on a given path in the presence of symlinks. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_FILEMATCHTRIE_H #define LLVM_CLANG_TOOLING_FILEMATCHTRIE_H diff --git a/tools/clang/include/clang/Tooling/JSONCompilationDatabase.h b/tools/clang/include/clang/Tooling/JSONCompilationDatabase.h index 636be8d518..b4edc31652 100644 --- a/tools/clang/include/clang/Tooling/JSONCompilationDatabase.h +++ b/tools/clang/include/clang/Tooling/JSONCompilationDatabase.h @@ -1,15 +1,16 @@ //===--- JSONCompilationDatabase.h - ----------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// JSONCompilationDatabase.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The JSONCompilationDatabase finds compilation databases supplied as a file// -// 'compile_commands.json'. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The JSONCompilationDatabase finds compilation databases supplied as a file +// 'compile_commands.json'. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_JSONCOMPILATIONDATABASE_H #define LLVM_CLANG_TOOLING_JSONCOMPILATIONDATABASE_H diff --git a/tools/clang/include/clang/Tooling/Refactoring.h b/tools/clang/include/clang/Tooling/Refactoring.h index f98bbc38c0..54deff6e36 100644 --- a/tools/clang/include/clang/Tooling/Refactoring.h +++ b/tools/clang/include/clang/Tooling/Refactoring.h @@ -1,19 +1,20 @@ //===--- Refactoring.h - Framework for clang refactoring tools --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Refactoring.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Interfaces supporting refactorings that span multiple translation units. // -// While single translation unit refactorings are supported via the Rewriter,// -// when refactoring multiple translation units changes must be stored in a // -// SourceManager independent form, duplicate changes need to be removed, and// -// all changes must be applied at once at the end of the refactoring so that// -// the code is always parseable. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Interfaces supporting refactorings that span multiple translation units. +// While single translation unit refactorings are supported via the Rewriter, +// when refactoring multiple translation units changes must be stored in a +// SourceManager independent form, duplicate changes need to be removed, and +// all changes must be applied at once at the end of the refactoring so that +// the code is always parseable. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_REFACTORING_H #define LLVM_CLANG_TOOLING_REFACTORING_H diff --git a/tools/clang/include/clang/Tooling/RefactoringCallbacks.h b/tools/clang/include/clang/Tooling/RefactoringCallbacks.h index 09fe5c4471..6ef9ea11f0 100644 --- a/tools/clang/include/clang/Tooling/RefactoringCallbacks.h +++ b/tools/clang/include/clang/Tooling/RefactoringCallbacks.h @@ -1,29 +1,30 @@ //===--- RefactoringCallbacks.h - Structural query framework ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RefactoringCallbacks.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Provides callbacks to make common kinds of refactorings easy. // // -// The general idea is to construct a matcher expression that describes a // -// subtree match on the AST and then replace the corresponding source code // -// either by some specific text or some other AST node. // +// The LLVM Compiler Infrastructure // -// Example: // -// int main(int argc, char **argv) { // -// ClangTool Tool(argc, argv); // -// MatchFinder Finder; // -// ReplaceStmtWithText Callback("integer", "42"); // -// Finder.AddMatcher(id("integer", expression(integerLiteral())), Callback);// -// return Tool.run(newFrontendActionFactory(&Finder)); // -// } // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// This will replace all integer literals with "42". // +//===----------------------------------------------------------------------===// // -/////////////////////////////////////////////////////////////////////////////// +// Provides callbacks to make common kinds of refactorings easy. +// +// The general idea is to construct a matcher expression that describes a +// subtree match on the AST and then replace the corresponding source code +// either by some specific text or some other AST node. +// +// Example: +// int main(int argc, char **argv) { +// ClangTool Tool(argc, argv); +// MatchFinder Finder; +// ReplaceStmtWithText Callback("integer", "42"); +// Finder.AddMatcher(id("integer", expression(integerLiteral())), Callback); +// return Tool.run(newFrontendActionFactory(&Finder)); +// } +// +// This will replace all integer literals with "42". +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_REFACTORINGCALLBACKS_H #define LLVM_CLANG_TOOLING_REFACTORINGCALLBACKS_H diff --git a/tools/clang/include/clang/Tooling/ReplacementsYaml.h b/tools/clang/include/clang/Tooling/ReplacementsYaml.h index cbf3b7845b..4a7666d2c5 100644 --- a/tools/clang/include/clang/Tooling/ReplacementsYaml.h +++ b/tools/clang/include/clang/Tooling/ReplacementsYaml.h @@ -1,18 +1,17 @@ //===-- ReplacementsYaml.h -- Serialiazation for Replacements ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReplacementsYaml.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file defines the structure of a YAML document for serializing// -/// replacements. // +/// \file +/// \brief This file defines the structure of a YAML document for serializing +/// replacements. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H #define LLVM_CLANG_TOOLING_REPLACEMENTSYAML_H diff --git a/tools/clang/include/clang/Tooling/Tooling.h b/tools/clang/include/clang/Tooling/Tooling.h index 27155674c2..92e9065c6a 100644 --- a/tools/clang/include/clang/Tooling/Tooling.h +++ b/tools/clang/include/clang/Tooling/Tooling.h @@ -1,30 +1,31 @@ //===--- Tooling.h - Framework for standalone Clang tools -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Tooling.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements functions to run clang tools standalone instead // -// of running them as a plugin. // // -// A ClangTool is initialized with a CompilationDatabase and a set of files // -// to run over. The tool will then run a user-specified FrontendAction over // -// all TUs in which the given files are compiled. // +// The LLVM Compiler Infrastructure // -// It is also possible to run a FrontendAction over a snippet of code by // -// calling runToolOnCode, which is useful for unit testing. // +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // -// Applications that need more fine grained control over how to run // -// multiple FrontendActions over code can use ToolInvocation. // +//===----------------------------------------------------------------------===// // -// Example tools: // -// - running clang -fsyntax-only over source code from an editor to get // -// fast syntax checks // -// - running match/replace tools over C++ code // +// This file implements functions to run clang tools standalone instead +// of running them as a plugin. // -/////////////////////////////////////////////////////////////////////////////// +// A ClangTool is initialized with a CompilationDatabase and a set of files +// to run over. The tool will then run a user-specified FrontendAction over +// all TUs in which the given files are compiled. +// +// It is also possible to run a FrontendAction over a snippet of code by +// calling runToolOnCode, which is useful for unit testing. +// +// Applications that need more fine grained control over how to run +// multiple FrontendActions over code can use ToolInvocation. +// +// Example tools: +// - running clang -fsyntax-only over source code from an editor to get +// fast syntax checks +// - running match/replace tools over C++ code +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLING_TOOLING_H #define LLVM_CLANG_TOOLING_TOOLING_H diff --git a/tools/clang/lib/ARCMigrate/ARCMT.cpp b/tools/clang/lib/ARCMigrate/ARCMT.cpp index 45cc52afe0..e328842185 100644 --- a/tools/clang/lib/ARCMigrate/ARCMT.cpp +++ b/tools/clang/lib/ARCMigrate/ARCMT.cpp @@ -1,12 +1,11 @@ //===--- ARCMT.cpp - Migration to ARC mode --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCMT.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Internals.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/ARCMigrate/ARCMTActions.cpp b/tools/clang/lib/ARCMigrate/ARCMTActions.cpp index 45f8a0671d..39a922f426 100644 --- a/tools/clang/lib/ARCMigrate/ARCMTActions.cpp +++ b/tools/clang/lib/ARCMigrate/ARCMTActions.cpp @@ -1,12 +1,11 @@ //===--- ARCMTActions.cpp - ARC Migrate Tool Frontend Actions ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCMTActions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/ARCMigrate/ARCMTActions.h" #include "clang/ARCMigrate/ARCMT.h" diff --git a/tools/clang/lib/ARCMigrate/CMakeLists.txt b/tools/clang/lib/ARCMigrate/CMakeLists.txt index d4e7cb32cf..b716a20fe6 100644 --- a/tools/clang/lib/ARCMigrate/CMakeLists.txt +++ b/tools/clang/lib/ARCMigrate/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/lib/ARCMigrate/FileRemapper.cpp b/tools/clang/lib/ARCMigrate/FileRemapper.cpp index bccad2a3bb..72a55da5d5 100644 --- a/tools/clang/lib/ARCMigrate/FileRemapper.cpp +++ b/tools/clang/lib/ARCMigrate/FileRemapper.cpp @@ -1,12 +1,11 @@ //===--- FileRemapper.cpp - File Remapping Helper -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileRemapper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/ARCMigrate/FileRemapper.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/ARCMigrate/Internals.h b/tools/clang/lib/ARCMigrate/Internals.h index d136d69feb..4f153b1ad2 100644 --- a/tools/clang/lib/ARCMigrate/Internals.h +++ b/tools/clang/lib/ARCMigrate/Internals.h @@ -1,12 +1,11 @@ //===-- Internals.h - Implementation Details---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Internals.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_ARCMIGRATE_INTERNALS_H #define LLVM_CLANG_LIB_ARCMIGRATE_INTERNALS_H diff --git a/tools/clang/lib/ARCMigrate/ObjCMT.cpp b/tools/clang/lib/ARCMigrate/ObjCMT.cpp index 60bd43b472..b61a421ce4 100644 --- a/tools/clang/lib/ARCMigrate/ObjCMT.cpp +++ b/tools/clang/lib/ARCMigrate/ObjCMT.cpp @@ -1,12 +1,11 @@ //===--- ObjCMT.cpp - ObjC Migrate Tool -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCMT.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "clang/ARCMigrate/ARCMT.h" diff --git a/tools/clang/lib/ARCMigrate/PlistReporter.cpp b/tools/clang/lib/ARCMigrate/PlistReporter.cpp index 1134ca59e9..9a51690c0c 100644 --- a/tools/clang/lib/ARCMigrate/PlistReporter.cpp +++ b/tools/clang/lib/ARCMigrate/PlistReporter.cpp @@ -1,12 +1,11 @@ //===--- PlistReporter.cpp - ARC Migrate Tool Plist Reporter ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PlistReporter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Internals.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/ARCMigrate/TransAPIUses.cpp b/tools/clang/lib/ARCMigrate/TransAPIUses.cpp index 673a32185b..40c8a070f8 100644 --- a/tools/clang/lib/ARCMigrate/TransAPIUses.cpp +++ b/tools/clang/lib/ARCMigrate/TransAPIUses.cpp @@ -1,20 +1,21 @@ //===--- TransAPIUses.cpp - Transformations to ARC mode -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransAPIUses.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// checkAPIUses: // -// // -// Emits error/fix with some API uses that are obsolete or not safe in ARC mode:// -// // -// - NSInvocation's [get/set]ReturnValue and [get/set]Argument are only safe // -// with __unsafe_unretained objects. // -// - Calling -zone gets replaced with 'nil'. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// checkAPIUses: +// +// Emits error/fix with some API uses that are obsolete or not safe in ARC mode: +// +// - NSInvocation's [get/set]ReturnValue and [get/set]Argument are only safe +// with __unsafe_unretained objects. +// - Calling -zone gets replaced with 'nil'. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransARCAssign.cpp b/tools/clang/lib/ARCMigrate/TransARCAssign.cpp index d1558b2c06..80bfd22d62 100644 --- a/tools/clang/lib/ARCMigrate/TransARCAssign.cpp +++ b/tools/clang/lib/ARCMigrate/TransARCAssign.cpp @@ -1,24 +1,25 @@ //===--- TransARCAssign.cpp - Transformations to ARC mode -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransARCAssign.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// makeAssignARCSafe: // -// // -// Add '__strong' where appropriate. // -// // -// for (id x in collection) { // -// x = 0; // -// } // -// ----> // -// for (__strong id x in collection) { // -// x = 0; // -// } // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// makeAssignARCSafe: +// +// Add '__strong' where appropriate. +// +// for (id x in collection) { +// x = 0; +// } +// ----> +// for (__strong id x in collection) { +// x = 0; +// } +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp b/tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp index 5fe856b840..a8a99fa712 100644 --- a/tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp +++ b/tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp @@ -1,30 +1,31 @@ //===--- TransAutoreleasePool.cpp - Transformations to ARC mode -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransAutoreleasePool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// rewriteAutoreleasePool: // -// // -// Calls to NSAutoreleasePools will be rewritten as an @autorelease scope. // -// // -// NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // -// ... // -// [pool release]; // -// ----> // -// @autorelease { // -// ... // -// } // -// // -// An NSAutoreleasePool will not be touched if: // -// - There is not a corresponding -release/-drain in the same scope // -// - Not all references of the NSAutoreleasePool variable can be removed // -// - There is a variable that is declared inside the intended @autorelease scope// -// which is also used outside it. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// rewriteAutoreleasePool: +// +// Calls to NSAutoreleasePools will be rewritten as an @autorelease scope. +// +// NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; +// ... +// [pool release]; +// ----> +// @autorelease { +// ... +// } +// +// An NSAutoreleasePool will not be touched if: +// - There is not a corresponding -release/-drain in the same scope +// - Not all references of the NSAutoreleasePool variable can be removed +// - There is a variable that is declared inside the intended @autorelease scope +// which is also used outside it. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp b/tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp index 877a2669fb..fac6a84c45 100644 --- a/tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp +++ b/tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp @@ -1,28 +1,29 @@ //===--- TransBlockObjCVariable.cpp - Transformations to ARC mode ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransBlockObjCVariable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// rewriteBlockObjCVariable: // -// // -// Adding __block to an obj-c variable could be either because the variable // -// is used for output storage or the user wanted to break a retain cycle. // -// This transformation checks whether a reference of the variable for the block// -// is actually needed (it is assigned to or its address is taken) or not. // -// If the reference is not needed it will assume __block was added to break a// -// cycle so it will remove '__block' and add __weak/__unsafe_unretained. // -// e.g // -// // -// __block Foo *x; // -// bar(^ { [x cake]; }); // -// ----> // -// __weak Foo *x; // -// bar(^ { [x cake]; }); // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// rewriteBlockObjCVariable: +// +// Adding __block to an obj-c variable could be either because the variable +// is used for output storage or the user wanted to break a retain cycle. +// This transformation checks whether a reference of the variable for the block +// is actually needed (it is assigned to or its address is taken) or not. +// If the reference is not needed it will assume __block was added to break a +// cycle so it will remove '__block' and add __weak/__unsafe_unretained. +// e.g +// +// __block Foo *x; +// bar(^ { [x cake]; }); +// ----> +// __weak Foo *x; +// bar(^ { [x cake]; }); +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp b/tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp index 4eb0f671eb..9689f40760 100644 --- a/tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp +++ b/tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp @@ -1,22 +1,23 @@ //===--- TransEmptyStatements.cpp - Transformations to ARC mode -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransEmptyStatementsAndDealloc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// removeEmptyStatementsAndDealloc: // -// // -// Removes empty statements that are leftovers from previous transformations.// -// e.g for // -// // -// [x retain]; // -// // -// removeRetainReleaseDealloc will leave an empty ";" that removeEmptyStatements// -// will remove. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// removeEmptyStatementsAndDealloc: +// +// Removes empty statements that are leftovers from previous transformations. +// e.g for +// +// [x retain]; +// +// removeRetainReleaseDealloc will leave an empty ";" that removeEmptyStatements +// will remove. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransGCAttrs.cpp b/tools/clang/lib/ARCMigrate/TransGCAttrs.cpp index 7c99b7ee7a..10fce19b6f 100644 --- a/tools/clang/lib/ARCMigrate/TransGCAttrs.cpp +++ b/tools/clang/lib/ARCMigrate/TransGCAttrs.cpp @@ -1,12 +1,11 @@ //===--- TransGCAttrs.cpp - Transformations to ARC mode --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransGCAttrs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransGCCalls.cpp b/tools/clang/lib/ARCMigrate/TransGCCalls.cpp index e1255e53e2..3a236d34cd 100644 --- a/tools/clang/lib/ARCMigrate/TransGCCalls.cpp +++ b/tools/clang/lib/ARCMigrate/TransGCCalls.cpp @@ -1,12 +1,11 @@ //===--- TransGCCalls.cpp - Transformations to ARC mode -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransGCCalls.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransProperties.cpp b/tools/clang/lib/ARCMigrate/TransProperties.cpp index 8170f2ad56..ab128844b4 100644 --- a/tools/clang/lib/ARCMigrate/TransProperties.cpp +++ b/tools/clang/lib/ARCMigrate/TransProperties.cpp @@ -1,33 +1,34 @@ //===--- TransProperties.cpp - Transformations to ARC mode ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransProperties.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// rewriteProperties: // -// // -// - Adds strong/weak/unsafe_unretained ownership specifier to properties that// -// are missing one. // -// - Migrates properties from (retain) to (strong) and (assign) to // -// (unsafe_unretained/weak). // -// - If a property is synthesized, adds the ownership specifier in the ivar // -// backing the property. // -// // -// @interface Foo : NSObject { // -// NSObject *x; // -// } // -// @property (assign) id x; // -// @end // -// ----> // -// @interface Foo : NSObject { // -// NSObject *__weak x; // -// } // -// @property (weak) id x; // -// @end // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// rewriteProperties: +// +// - Adds strong/weak/unsafe_unretained ownership specifier to properties that +// are missing one. +// - Migrates properties from (retain) to (strong) and (assign) to +// (unsafe_unretained/weak). +// - If a property is synthesized, adds the ownership specifier in the ivar +// backing the property. +// +// @interface Foo : NSObject { +// NSObject *x; +// } +// @property (assign) id x; +// @end +// ----> +// @interface Foo : NSObject { +// NSObject *__weak x; +// } +// @property (weak) id x; +// @end +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransProtectedScope.cpp b/tools/clang/lib/ARCMigrate/TransProtectedScope.cpp index 26fdc06e71..0fcbcbedfe 100644 --- a/tools/clang/lib/ARCMigrate/TransProtectedScope.cpp +++ b/tools/clang/lib/ARCMigrate/TransProtectedScope.cpp @@ -1,15 +1,16 @@ //===--- TransProtectedScope.cpp - Transformations to ARC mode ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransProtectedScope.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Adds brackets in case statements that "contain" initialization of retaining// -// variable, thus emitting the "switch case is in protected scope" error. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Adds brackets in case statements that "contain" initialization of retaining +// variable, thus emitting the "switch case is in protected scope" error. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp b/tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp index 892ac80f15..7db1a1c378 100644 --- a/tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp +++ b/tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp @@ -1,20 +1,21 @@ //===--- TransRetainReleaseDealloc.cpp - Transformations to ARC mode ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransRetainReleaseDealloc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// removeRetainReleaseDealloc: // -// // -// Removes retain/release/autorelease/dealloc messages. // -// // -// return [[foo retain] autorelease]; // -// ----> // -// return foo; // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// removeRetainReleaseDealloc: +// +// Removes retain/release/autorelease/dealloc messages. +// +// return [[foo retain] autorelease]; +// ----> +// return foo; +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp b/tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp index cefc47492d..7ca49558a7 100644 --- a/tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp +++ b/tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp @@ -1,43 +1,44 @@ //===--- TransUnbridgedCasts.cpp - Transformations to ARC mode ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransUnbridgedCasts.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// rewriteUnbridgedCasts: // -// // -// A cast of non-objc pointer to an objc one is checked. If the non-objc pointer// -// is from a file-level variable, __bridge cast is used to convert it. // -// For the result of a function call that we know is +1/+0, // -// __bridge/CFBridgingRelease is used. // -// // -// NSString *str = (NSString *)kUTTypePlainText; // -// str = b ? kUTTypeRTF : kUTTypePlainText; // -// NSString *_uuidString = (NSString *)CFUUIDCreateString(kCFAllocatorDefault,// -// _uuid); // -// ----> // -// NSString *str = (__bridge NSString *)kUTTypePlainText; // -// str = (__bridge NSString *)(b ? kUTTypeRTF : kUTTypePlainText); // -// NSString *_uuidString = (NSString *) // -// CFBridgingRelease(CFUUIDCreateString(kCFAllocatorDefault, _uuid));// -// // -// For a C pointer to ObjC, for casting 'self', __bridge is used. // -// // -// CFStringRef str = (CFStringRef)self; // -// ----> // -// CFStringRef str = (__bridge CFStringRef)self; // -// // -// Uses of Block_copy/Block_release macros are rewritten: // -// // -// c = Block_copy(b); // -// Block_release(c); // -// ----> // -// c = [b copy]; // -// // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// rewriteUnbridgedCasts: +// +// A cast of non-objc pointer to an objc one is checked. If the non-objc pointer +// is from a file-level variable, __bridge cast is used to convert it. +// For the result of a function call that we know is +1/+0, +// __bridge/CFBridgingRelease is used. +// +// NSString *str = (NSString *)kUTTypePlainText; +// str = b ? kUTTypeRTF : kUTTypePlainText; +// NSString *_uuidString = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, +// _uuid); +// ----> +// NSString *str = (__bridge NSString *)kUTTypePlainText; +// str = (__bridge NSString *)(b ? kUTTypeRTF : kUTTypePlainText); +// NSString *_uuidString = (NSString *) +// CFBridgingRelease(CFUUIDCreateString(kCFAllocatorDefault, _uuid)); +// +// For a C pointer to ObjC, for casting 'self', __bridge is used. +// +// CFStringRef str = (CFStringRef)self; +// ----> +// CFStringRef str = (__bridge CFStringRef)self; +// +// Uses of Block_copy/Block_release macros are rewritten: +// +// c = Block_copy(b); +// Block_release(c); +// ----> +// c = [b copy]; +// +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp b/tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp index f10363e686..70370ecc4e 100644 --- a/tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp +++ b/tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp @@ -1,23 +1,24 @@ //===--- TransUnusedInitDelegate.cpp - Transformations to ARC mode --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransUnusedInitDelegate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Transformations: // -// // -// rewriteUnusedInitDelegate: // -// // -// Rewrites an unused result of calling a delegate initialization, to assigning// -// the result to self. // -// e.g // -// [self init]; // -// ----> // -// self = [self init]; // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Transformations: +//===----------------------------------------------------------------------===// +// +// rewriteUnusedInitDelegate: +// +// Rewrites an unused result of calling a delegate initialization, to assigning +// the result to self. +// e.g +// [self init]; +// ----> +// self = [self init]; +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp b/tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp index fa18a6a04d..76ce0ec90d 100644 --- a/tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp +++ b/tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp @@ -1,16 +1,17 @@ //===--- TransZeroOutPropsInDealloc.cpp - Transformations to ARC mode -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransZeroOutPropsInDealloc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// removeZeroOutPropsInDealloc: // -// // -// Removes zero'ing out "strong" @synthesized properties in a -dealloc method.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// removeZeroOutPropsInDealloc: +// +// Removes zero'ing out "strong" @synthesized properties in a -dealloc method. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/TransformActions.cpp b/tools/clang/lib/ARCMigrate/TransformActions.cpp index 092a417c03..9fb2f1d3ee 100644 --- a/tools/clang/lib/ARCMigrate/TransformActions.cpp +++ b/tools/clang/lib/ARCMigrate/TransformActions.cpp @@ -1,12 +1,11 @@ //===--- ARCMT.cpp - Migration to ARC mode --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TransformActions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Internals.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/ARCMigrate/Transforms.cpp b/tools/clang/lib/ARCMigrate/Transforms.cpp index 4b6b8c86aa..56d3af7233 100644 --- a/tools/clang/lib/ARCMigrate/Transforms.cpp +++ b/tools/clang/lib/ARCMigrate/Transforms.cpp @@ -1,12 +1,11 @@ //===--- Transforms.cpp - Transformations to ARC mode ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Transforms.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" diff --git a/tools/clang/lib/ARCMigrate/Transforms.h b/tools/clang/lib/ARCMigrate/Transforms.h index 70cf57a05c..d218d73eea 100644 --- a/tools/clang/lib/ARCMigrate/Transforms.h +++ b/tools/clang/lib/ARCMigrate/Transforms.h @@ -1,11 +1,11 @@ //===-- Transforms.h - Transformations to ARC mode --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Transforms.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_ARCMIGRATE_TRANSFORMS_H #define LLVM_CLANG_LIB_ARCMIGRATE_TRANSFORMS_H diff --git a/tools/clang/lib/AST/APValue.cpp b/tools/clang/lib/AST/APValue.cpp index e719e5440d..91f1e20d73 100644 --- a/tools/clang/lib/AST/APValue.cpp +++ b/tools/clang/lib/AST/APValue.cpp @@ -1,14 +1,15 @@ //===--- APValue.cpp - Union class for APFloat/APSInt/Complex -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APValue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the APValue class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the APValue class. +// +//===----------------------------------------------------------------------===// #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ASTConsumer.cpp b/tools/clang/lib/AST/ASTConsumer.cpp index 89938f0e17..cff82e9b10 100644 --- a/tools/clang/lib/AST/ASTConsumer.cpp +++ b/tools/clang/lib/AST/ASTConsumer.cpp @@ -1,14 +1,15 @@ //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTConsumer class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTConsumer class. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "llvm/Bitcode/BitstreamReader.h" diff --git a/tools/clang/lib/AST/ASTContext.cpp b/tools/clang/lib/AST/ASTContext.cpp index b8a3e45cf3..caefc5e3a8 100644 --- a/tools/clang/lib/AST/ASTContext.cpp +++ b/tools/clang/lib/AST/ASTContext.cpp @@ -1,14 +1,15 @@ //===--- ASTContext.cpp - Context to hold long-lived AST nodes ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ASTContext interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ASTContext interface. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "CXXABI.h" diff --git a/tools/clang/lib/AST/ASTDiagnostic.cpp b/tools/clang/lib/AST/ASTDiagnostic.cpp index aca9350b0c..2066f82040 100644 --- a/tools/clang/lib/AST/ASTDiagnostic.cpp +++ b/tools/clang/lib/AST/ASTDiagnostic.cpp @@ -1,13 +1,15 @@ //===--- ASTDiagnostic.cpp - Diagnostic Printing Hooks for AST Nodes ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a diagnostic formatting hook for AST elements. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a diagnostic formatting hook for AST elements. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTDiagnostic.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ASTDumper.cpp b/tools/clang/lib/AST/ASTDumper.cpp index 1ea0480a06..934635afb6 100644 --- a/tools/clang/lib/AST/ASTDumper.cpp +++ b/tools/clang/lib/AST/ASTDumper.cpp @@ -1,15 +1,16 @@ //===--- ASTDumper.cpp - Dumping implementation for ASTs ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AST dump methods, which dump out the // -// AST in a form that exposes type details and other fields. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AST dump methods, which dump out the +// AST in a form that exposes type details and other fields. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/AST/ASTImporter.cpp b/tools/clang/lib/AST/ASTImporter.cpp index 02f901b231..9b1671c0f0 100644 --- a/tools/clang/lib/AST/ASTImporter.cpp +++ b/tools/clang/lib/AST/ASTImporter.cpp @@ -1,14 +1,16 @@ //===--- ASTImporter.cpp - Importing ASTs from other Contexts ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTImporter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTImporter class which imports AST nodes from one // -// context into another context. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTImporter class which imports AST nodes from one +// context into another context. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTImporter.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ASTTypeTraits.cpp b/tools/clang/lib/AST/ASTTypeTraits.cpp index fda723d9b7..ec0671ceb1 100644 --- a/tools/clang/lib/AST/ASTTypeTraits.cpp +++ b/tools/clang/lib/AST/ASTTypeTraits.cpp @@ -1,16 +1,17 @@ //===--- ASTTypeTraits.cpp --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTTypeTraits.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Provides a dynamic type identifier and a dynamically typed node container// -// that can be used to store an AST base node at runtime in the same storage in// -// a type safe way. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Provides a dynamic type identifier and a dynamically typed node container +// that can be used to store an AST base node at runtime in the same storage in +// a type safe way. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTTypeTraits.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/AttrImpl.cpp b/tools/clang/lib/AST/AttrImpl.cpp index de73615895..cb60870013 100644 --- a/tools/clang/lib/AST/AttrImpl.cpp +++ b/tools/clang/lib/AST/AttrImpl.cpp @@ -1,14 +1,15 @@ //===--- AttrImpl.cpp - Classes for representing attributes -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttrImpl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains out-of-line methods for Attr classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains out-of-line methods for Attr classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Attr.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/CMakeLists.txt b/tools/clang/lib/AST/CMakeLists.txt index 91c7c48774..78e22f8983 100644 --- a/tools/clang/lib/AST/CMakeLists.txt +++ b/tools/clang/lib/AST/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) set (HLSL_IGNORE_SOURCES diff --git a/tools/clang/lib/AST/CXXABI.h b/tools/clang/lib/AST/CXXABI.h index f97fef0609..dad226474f 100644 --- a/tools/clang/lib/AST/CXXABI.h +++ b/tools/clang/lib/AST/CXXABI.h @@ -1,15 +1,16 @@ //===----- CXXABI.h - Interface to C++ ABIs ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXXABI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for C++ AST support. Concrete // -// subclasses of this implement AST support for specific C++ ABIs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for C++ AST support. Concrete +// subclasses of this implement AST support for specific C++ ABIs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_AST_CXXABI_H #define LLVM_CLANG_LIB_AST_CXXABI_H diff --git a/tools/clang/lib/AST/CXXInheritance.cpp b/tools/clang/lib/AST/CXXInheritance.cpp index 35e1e0b758..be67e48a31 100644 --- a/tools/clang/lib/AST/CXXInheritance.cpp +++ b/tools/clang/lib/AST/CXXInheritance.cpp @@ -1,13 +1,15 @@ //===------ CXXInheritance.cpp - C++ Inheritance ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXXInheritance.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides routines that help analyzing C++ inheritance hierarchies.// -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides routines that help analyzing C++ inheritance hierarchies. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CXXInheritance.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/Comment.cpp b/tools/clang/lib/AST/Comment.cpp index d7dbc58996..d05c5de543 100644 --- a/tools/clang/lib/AST/Comment.cpp +++ b/tools/clang/lib/AST/Comment.cpp @@ -1,12 +1,11 @@ //===--- Comment.cpp - Comment AST node implementation --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Comment.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Comment.h" diff --git a/tools/clang/lib/AST/CommentBriefParser.cpp b/tools/clang/lib/AST/CommentBriefParser.cpp index 1be079c819..090b9211d4 100644 --- a/tools/clang/lib/AST/CommentBriefParser.cpp +++ b/tools/clang/lib/AST/CommentBriefParser.cpp @@ -1,12 +1,11 @@ //===--- CommentBriefParser.cpp - Dumb comment parser ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentBriefParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CommentBriefParser.h" #include "clang/AST/CommentCommandTraits.h" diff --git a/tools/clang/lib/AST/CommentCommandTraits.cpp b/tools/clang/lib/AST/CommentCommandTraits.cpp index e80bea3894..7378a7c3ac 100644 --- a/tools/clang/lib/AST/CommentCommandTraits.cpp +++ b/tools/clang/lib/AST/CommentCommandTraits.cpp @@ -1,12 +1,11 @@ //===--- CommentCommandTraits.cpp - Comment command properties --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentCommandTraits.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CommentCommandTraits.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/lib/AST/CommentLexer.cpp b/tools/clang/lib/AST/CommentLexer.cpp index 8a9e454d92..1f385ebc94 100644 --- a/tools/clang/lib/AST/CommentLexer.cpp +++ b/tools/clang/lib/AST/CommentLexer.cpp @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentCommandTraits.h" diff --git a/tools/clang/lib/AST/CommentParser.cpp b/tools/clang/lib/AST/CommentParser.cpp index 72377480fd..cb37ec35f4 100644 --- a/tools/clang/lib/AST/CommentParser.cpp +++ b/tools/clang/lib/AST/CommentParser.cpp @@ -1,12 +1,11 @@ //===--- CommentParser.cpp - Doxygen comment parser -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CommentParser.h" #include "clang/AST/CommentCommandTraits.h" diff --git a/tools/clang/lib/AST/CommentSema.cpp b/tools/clang/lib/AST/CommentSema.cpp index 6c31f30282..12823c37df 100644 --- a/tools/clang/lib/AST/CommentSema.cpp +++ b/tools/clang/lib/AST/CommentSema.cpp @@ -1,12 +1,11 @@ //===--- CommentSema.cpp - Doxygen comment semantic analysis --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentSema.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CommentSema.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/AST/Decl.cpp b/tools/clang/lib/AST/Decl.cpp index 61d6d3d519..26a26d5e01 100644 --- a/tools/clang/lib/AST/Decl.cpp +++ b/tools/clang/lib/AST/Decl.cpp @@ -1,14 +1,15 @@ //===--- Decl.cpp - Declaration AST Node Implementation -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Decl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Decl subclasses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Decl subclasses. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Decl.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/DeclBase.cpp b/tools/clang/lib/AST/DeclBase.cpp index cbc32796f1..fa8d7edb14 100644 --- a/tools/clang/lib/AST/DeclBase.cpp +++ b/tools/clang/lib/AST/DeclBase.cpp @@ -1,14 +1,15 @@ //===--- DeclBase.cpp - Declaration AST Node Implementation ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclBase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Decl and DeclContext classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Decl and DeclContext classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/DeclBase.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/DeclCXX.cpp b/tools/clang/lib/AST/DeclCXX.cpp index 7910ae27ee..5624f35391 100644 --- a/tools/clang/lib/AST/DeclCXX.cpp +++ b/tools/clang/lib/AST/DeclCXX.cpp @@ -1,13 +1,15 @@ //===--- DeclCXX.cpp - C++ Declaration AST Node Implementation ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the C++ related Decl classes. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the C++ related Decl classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/DeclCXX.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/DeclFriend.cpp b/tools/clang/lib/AST/DeclFriend.cpp index 4827ed5c76..a996cab093 100644 --- a/tools/clang/lib/AST/DeclFriend.cpp +++ b/tools/clang/lib/AST/DeclFriend.cpp @@ -1,15 +1,16 @@ //===--- DeclFriend.cpp - C++ Friend Declaration AST Node Implementation --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclFriend.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the AST classes related to C++ friend // -// declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the AST classes related to C++ friend +// declarations. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/DeclFriend.h" diff --git a/tools/clang/lib/AST/DeclGroup.cpp b/tools/clang/lib/AST/DeclGroup.cpp index 00a26e83e2..512837fdf3 100644 --- a/tools/clang/lib/AST/DeclGroup.cpp +++ b/tools/clang/lib/AST/DeclGroup.cpp @@ -1,14 +1,15 @@ //===--- DeclGroup.cpp - Classes for representing groups of Decls -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclGroup.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DeclGroup and DeclGroupRef classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DeclGroup and DeclGroupRef classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/DeclGroup.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/DeclObjC.cpp b/tools/clang/lib/AST/DeclObjC.cpp index a6fcbc83e9..280c412ae8 100644 --- a/tools/clang/lib/AST/DeclObjC.cpp +++ b/tools/clang/lib/AST/DeclObjC.cpp @@ -1,14 +1,15 @@ //===--- DeclObjC.cpp - ObjC Declaration AST Node Implementation ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Objective-C related Decl classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Objective-C related Decl classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/DeclObjC.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/DeclOpenMP.cpp b/tools/clang/lib/AST/DeclOpenMP.cpp index 7643cee439..5f8b42b3f9 100644 --- a/tools/clang/lib/AST/DeclOpenMP.cpp +++ b/tools/clang/lib/AST/DeclOpenMP.cpp @@ -1,16 +1,15 @@ //===--- DeclOpenMP.cpp - Declaration OpenMP AST Node Implementation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclOpenMP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file implements OMPThreadPrivateDecl class. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file implements OMPThreadPrivateDecl class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/AST/DeclPrinter.cpp b/tools/clang/lib/AST/DeclPrinter.cpp index 3e4d478bdb..934ce3ba78 100644 --- a/tools/clang/lib/AST/DeclPrinter.cpp +++ b/tools/clang/lib/AST/DeclPrinter.cpp @@ -1,14 +1,16 @@ //===--- DeclPrinter.cpp - Printing implementation for Decl ASTs ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Decl::print method, which pretty prints the // -// AST back out to C/Objective-C/C++/Objective-C++ code. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Decl::print method, which pretty prints the +// AST back out to C/Objective-C/C++/Objective-C++ code. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/AST/DeclTemplate.cpp b/tools/clang/lib/AST/DeclTemplate.cpp index 7573485cc5..cde497b012 100644 --- a/tools/clang/lib/AST/DeclTemplate.cpp +++ b/tools/clang/lib/AST/DeclTemplate.cpp @@ -1,14 +1,15 @@ //===--- DeclTemplate.cpp - Template Declaration AST Node Implementation --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclTemplate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the C++ related Decl classes for templates. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the C++ related Decl classes for templates. +// +//===----------------------------------------------------------------------===// #include "clang/AST/DeclTemplate.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/DeclarationName.cpp b/tools/clang/lib/AST/DeclarationName.cpp index a6fc43361d..b2928b14ff 100644 --- a/tools/clang/lib/AST/DeclarationName.cpp +++ b/tools/clang/lib/AST/DeclarationName.cpp @@ -1,14 +1,16 @@ //===-- DeclarationName.cpp - Declaration names implementation --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclarationName.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the DeclarationName and DeclarationNameTable // -// classes. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DeclarationName and DeclarationNameTable +// classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/AST/Expr.cpp b/tools/clang/lib/AST/Expr.cpp index 2ad7e15d26..21bbfacbca 100644 --- a/tools/clang/lib/AST/Expr.cpp +++ b/tools/clang/lib/AST/Expr.cpp @@ -1,14 +1,15 @@ //===--- Expr.cpp - Expression AST Node Implementation --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Expr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Expr class and subclasses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Expr class and subclasses. +// +//===----------------------------------------------------------------------===// #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ExprCXX.cpp b/tools/clang/lib/AST/ExprCXX.cpp index b43a9443ef..d6f2ce63a0 100644 --- a/tools/clang/lib/AST/ExprCXX.cpp +++ b/tools/clang/lib/AST/ExprCXX.cpp @@ -1,14 +1,15 @@ //===--- ExprCXX.cpp - (C++) Expression AST Node Implementation -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the subclesses of Expr class declared in ExprCXX.h // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the subclesses of Expr class declared in ExprCXX.h +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/AST/ExprClassification.cpp b/tools/clang/lib/AST/ExprClassification.cpp index 8c862862cf..ca492d04a8 100644 --- a/tools/clang/lib/AST/ExprClassification.cpp +++ b/tools/clang/lib/AST/ExprClassification.cpp @@ -1,14 +1,15 @@ //===--- ExprClassification.cpp - Expression AST Node Implementation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprClassification.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Expr::classify. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Expr::classify. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Expr.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ExprConstant.cpp b/tools/clang/lib/AST/ExprConstant.cpp index e836b0279a..186f44319f 100644 --- a/tools/clang/lib/AST/ExprConstant.cpp +++ b/tools/clang/lib/AST/ExprConstant.cpp @@ -1,36 +1,37 @@ //===--- ExprConstant.cpp - Expression Constant Evaluator -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprConstant.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Expr constant evaluator. // -// // -// Constant expression evaluation produces four main results: // -// // -// * A success/failure flag indicating whether constant folding was successful.// -// This is the 'bool' return value used by most of the code in this file. A// -// 'false' return value indicates that constant folding has failed, and any// -// appropriate diagnostic has already been produced. // -// // -// * An evaluated result, valid only if constant folding has not failed. // -// // -// * A flag indicating if evaluation encountered (unevaluated) side-effects.// -// These arise in cases such as (sideEffect(), 0) and (sideEffect() || 1),// -// where it is possible to determine the evaluated result regardless. // -// // -// * A set of notes indicating why the evaluation was not a constant expression// -// (under the C++11 / C++1y rules only, at the moment), or, if folding failed// -// too, why the expression could not be folded. // -// // -// If we are checking for a potential constant expression, failure to constant// -// fold a potential constant sub-expression will be indicated by a 'false' // -// return value (the expression could not be folded) and no diagnostic (the // -// expression is not necessarily non-constant). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Expr constant evaluator. +// +// Constant expression evaluation produces four main results: +// +// * A success/failure flag indicating whether constant folding was successful. +// This is the 'bool' return value used by most of the code in this file. A +// 'false' return value indicates that constant folding has failed, and any +// appropriate diagnostic has already been produced. +// +// * An evaluated result, valid only if constant folding has not failed. +// +// * A flag indicating if evaluation encountered (unevaluated) side-effects. +// These arise in cases such as (sideEffect(), 0) and (sideEffect() || 1), +// where it is possible to determine the evaluated result regardless. +// +// * A set of notes indicating why the evaluation was not a constant expression +// (under the C++11 / C++1y rules only, at the moment), or, if folding failed +// too, why the expression could not be folded. +// +// If we are checking for a potential constant expression, failure to constant +// fold a potential constant sub-expression will be indicated by a 'false' +// return value (the expression could not be folded) and no diagnostic (the +// expression is not necessarily non-constant). +// +//===----------------------------------------------------------------------===// #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ExternalASTSource.cpp b/tools/clang/lib/AST/ExternalASTSource.cpp index ad800994fc..1c82c35513 100644 --- a/tools/clang/lib/AST/ExternalASTSource.cpp +++ b/tools/clang/lib/AST/ExternalASTSource.cpp @@ -1,16 +1,17 @@ //===- ExternalASTSource.cpp - Abstract External AST Interface --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalASTSource.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides the default implementation of the ExternalASTSource // -// interface, which enables construction of AST nodes from some external // -// source. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the default implementation of the ExternalASTSource +// interface, which enables construction of AST nodes from some external +// source. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ExternalASTSource.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/InheritViz.cpp b/tools/clang/lib/AST/InheritViz.cpp index 0edbde7976..0b82da133f 100644 --- a/tools/clang/lib/AST/InheritViz.cpp +++ b/tools/clang/lib/AST/InheritViz.cpp @@ -1,16 +1,17 @@ //===- InheritViz.cpp - Graphviz visualization for inheritance --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InheritViz.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements CXXRecordDecl::viewInheritance, which // -// generates a GraphViz DOT file that depicts the class inheritance // -// diagram and then calls Graphviz/dot+gv on it. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements CXXRecordDecl::viewInheritance, which +// generates a GraphViz DOT file that depicts the class inheritance +// diagram and then calls Graphviz/dot+gv on it. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/AST/ItaniumCXXABI.cpp b/tools/clang/lib/AST/ItaniumCXXABI.cpp index be47c4a509..89ec2cadf3 100644 --- a/tools/clang/lib/AST/ItaniumCXXABI.cpp +++ b/tools/clang/lib/AST/ItaniumCXXABI.cpp @@ -1,20 +1,21 @@ //===------- ItaniumCXXABI.cpp - AST support for the Itanium C++ ABI ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ItaniumCXXABI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides C++ AST support targeting the Itanium C++ ABI, which is // -// documented at: // -// http://www.codesourcery.com/public/cxx-abi/abi.html // -// http://www.codesourcery.com/public/cxx-abi/abi-eh.html // -// // -// It also supports the closely-related ARM C++ ABI, documented at: // -// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041c/IHI0041C_cppabi.pdf// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides C++ AST support targeting the Itanium C++ ABI, which is +// documented at: +// http://www.codesourcery.com/public/cxx-abi/abi.html +// http://www.codesourcery.com/public/cxx-abi/abi-eh.html +// +// It also supports the closely-related ARM C++ ABI, documented at: +// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041c/IHI0041C_cppabi.pdf +// +//===----------------------------------------------------------------------===// #include "CXXABI.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ItaniumMangle.cpp b/tools/clang/lib/AST/ItaniumMangle.cpp index 837474b560..bd70dbd7d8 100644 --- a/tools/clang/lib/AST/ItaniumMangle.cpp +++ b/tools/clang/lib/AST/ItaniumMangle.cpp @@ -1,17 +1,19 @@ //===--- ItaniumMangle.cpp - Itanium C++ Name Mangling ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ItaniumMangle.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements C++ name mangling according to the Itanium C++ ABI, // -// which is used in GCC 3.2 and newer (and many compilers that are // -// ABI-compatible with GCC): // -// // -// http://mentorembedded.github.io/cxx-abi/abi.html#mangling // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements C++ name mangling according to the Itanium C++ ABI, +// which is used in GCC 3.2 and newer (and many compilers that are +// ABI-compatible with GCC): +// +// http://mentorembedded.github.io/cxx-abi/abi.html#mangling +// +//===----------------------------------------------------------------------===// #include "clang/AST/Mangle.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/Mangle.cpp b/tools/clang/lib/AST/Mangle.cpp index c0f66b0f84..c79cb272bd 100644 --- a/tools/clang/lib/AST/Mangle.cpp +++ b/tools/clang/lib/AST/Mangle.cpp @@ -1,13 +1,15 @@ //===--- Mangle.cpp - Mangle C++ Names --------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Mangle.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements generic name mangling support for blocks and Objective-C. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements generic name mangling support for blocks and Objective-C. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Attr.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/MicrosoftCXXABI.cpp b/tools/clang/lib/AST/MicrosoftCXXABI.cpp index 9e67954e20..aba6796256 100644 --- a/tools/clang/lib/AST/MicrosoftCXXABI.cpp +++ b/tools/clang/lib/AST/MicrosoftCXXABI.cpp @@ -1,15 +1,16 @@ //===------- MicrosoftCXXABI.cpp - AST support for the Microsoft C++ ABI --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MicrosoftCXXABI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides C++ AST support targeting the Microsoft Visual C++ // -// ABI. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides C++ AST support targeting the Microsoft Visual C++ +// ABI. +// +//===----------------------------------------------------------------------===// #include "CXXABI.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/MicrosoftMangle.cpp b/tools/clang/lib/AST/MicrosoftMangle.cpp index 2965814b51..b6a690a7b9 100644 --- a/tools/clang/lib/AST/MicrosoftMangle.cpp +++ b/tools/clang/lib/AST/MicrosoftMangle.cpp @@ -1,14 +1,15 @@ //===--- MicrosoftMangle.cpp - Microsoft Visual C++ Name Mangling ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MicrosoftMangle.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides C++ name mangling targeting the Microsoft Visual C++ ABI. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides C++ name mangling targeting the Microsoft Visual C++ ABI. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Mangle.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/NSAPI.cpp b/tools/clang/lib/AST/NSAPI.cpp index 5bf31ac9fb..c9264d59aa 100644 --- a/tools/clang/lib/AST/NSAPI.cpp +++ b/tools/clang/lib/AST/NSAPI.cpp @@ -1,12 +1,11 @@ //===--- NSAPI.cpp - NSFoundation APIs ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NSAPI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/NSAPI.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/NestedNameSpecifier.cpp b/tools/clang/lib/AST/NestedNameSpecifier.cpp index f7621b8de9..d1ba449163 100644 --- a/tools/clang/lib/AST/NestedNameSpecifier.cpp +++ b/tools/clang/lib/AST/NestedNameSpecifier.cpp @@ -1,14 +1,16 @@ //===--- NestedNameSpecifier.cpp - C++ nested name specifiers -----*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// NestedNameSpecifier.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the NestedNameSpecifier class, which represents // -// a C++ nested-name-specifier. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the NestedNameSpecifier class, which represents +// a C++ nested-name-specifier. +// +//===----------------------------------------------------------------------===// #include "clang/AST/NestedNameSpecifier.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/ParentMap.cpp b/tools/clang/lib/AST/ParentMap.cpp index 293793d9e1..d7d5f9c692 100644 --- a/tools/clang/lib/AST/ParentMap.cpp +++ b/tools/clang/lib/AST/ParentMap.cpp @@ -1,14 +1,15 @@ //===--- ParentMap.cpp - Mappings from Stmts to their Parents ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParentMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ParentMap class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ParentMap class. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ParentMap.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/AST/RawCommentList.cpp b/tools/clang/lib/AST/RawCommentList.cpp index 2ef08498cb..24b129a5c5 100644 --- a/tools/clang/lib/AST/RawCommentList.cpp +++ b/tools/clang/lib/AST/RawCommentList.cpp @@ -1,12 +1,11 @@ //===--- RawCommentList.cpp - Processing raw comments -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RawCommentList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/RawCommentList.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/RecordLayout.cpp b/tools/clang/lib/AST/RecordLayout.cpp index 23bcf375f4..b2c244e379 100644 --- a/tools/clang/lib/AST/RecordLayout.cpp +++ b/tools/clang/lib/AST/RecordLayout.cpp @@ -1,14 +1,15 @@ //===-- RecordLayout.cpp - Layout information for a struct/union -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecordLayout.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the RecordLayout interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the RecordLayout interface. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/RecordLayout.h" diff --git a/tools/clang/lib/AST/RecordLayoutBuilder.cpp b/tools/clang/lib/AST/RecordLayoutBuilder.cpp index 0b91736b02..de7bcb826e 100644 --- a/tools/clang/lib/AST/RecordLayoutBuilder.cpp +++ b/tools/clang/lib/AST/RecordLayoutBuilder.cpp @@ -1,12 +1,11 @@ //=== RecordLayoutBuilder.cpp - Helper class for building record layouts ---==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecordLayoutBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/RecordLayout.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/SelectorLocationsKind.cpp b/tools/clang/lib/AST/SelectorLocationsKind.cpp index cd85b43b02..671207a7f2 100644 --- a/tools/clang/lib/AST/SelectorLocationsKind.cpp +++ b/tools/clang/lib/AST/SelectorLocationsKind.cpp @@ -1,15 +1,16 @@ //===--- SelectorLocationsKind.cpp - Kind of selector locations -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectorLocationsKind.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Describes whether the identifier locations for a selector are "standard" // -// or not. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Describes whether the identifier locations for a selector are "standard" +// or not. +// +//===----------------------------------------------------------------------===// #include "clang/AST/SelectorLocationsKind.h" #include "clang/AST/Expr.h" diff --git a/tools/clang/lib/AST/Stmt.cpp b/tools/clang/lib/AST/Stmt.cpp index 8d2df26544..e6292b4953 100644 --- a/tools/clang/lib/AST/Stmt.cpp +++ b/tools/clang/lib/AST/Stmt.cpp @@ -1,14 +1,15 @@ //===--- Stmt.cpp - Statement AST Node Implementation ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Stmt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Stmt class and statement subclasses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Stmt class and statement subclasses. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/ASTDiagnostic.h" diff --git a/tools/clang/lib/AST/StmtIterator.cpp b/tools/clang/lib/AST/StmtIterator.cpp index 70fdd70178..732756fbec 100644 --- a/tools/clang/lib/AST/StmtIterator.cpp +++ b/tools/clang/lib/AST/StmtIterator.cpp @@ -1,14 +1,15 @@ //===--- StmtIterator.cpp - Iterators for Statements ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtIterator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines internal methods for StmtIterator. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines internal methods for StmtIterator. +// +//===----------------------------------------------------------------------===// #include "clang/AST/StmtIterator.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/AST/StmtPrinter.cpp b/tools/clang/lib/AST/StmtPrinter.cpp index 855bc315e7..9f4852d635 100644 --- a/tools/clang/lib/AST/StmtPrinter.cpp +++ b/tools/clang/lib/AST/StmtPrinter.cpp @@ -1,15 +1,16 @@ //===--- StmtPrinter.cpp - Printing implementation for Stmt ASTs ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Stmt::dumpPretty/Stmt::printPretty methods, which// -// pretty print the AST back out to C code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Stmt::dumpPretty/Stmt::printPretty methods, which +// pretty print the AST back out to C code. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/AST/StmtProfile.cpp b/tools/clang/lib/AST/StmtProfile.cpp index 20cee6ba4e..f5331d6db5 100644 --- a/tools/clang/lib/AST/StmtProfile.cpp +++ b/tools/clang/lib/AST/StmtProfile.cpp @@ -1,14 +1,16 @@ //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtProfile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Stmt::Profile method, which builds a unique bit // -// representation that identifies a statement/expression. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Stmt::Profile method, which builds a unique bit +// representation that identifies a statement/expression. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/AST/StmtViz.cpp b/tools/clang/lib/AST/StmtViz.cpp index 59573e16cc..8be287e7cb 100644 --- a/tools/clang/lib/AST/StmtViz.cpp +++ b/tools/clang/lib/AST/StmtViz.cpp @@ -1,15 +1,16 @@ //===--- StmtViz.cpp - Graphviz visualization for Stmt ASTs -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtViz.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Stmt::viewAST, which generates a Graphviz DOT file // -// that depicts the AST and then calls Graphviz/dot+gv on it. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Stmt::viewAST, which generates a Graphviz DOT file +// that depicts the AST and then calls Graphviz/dot+gv on it. +// +//===----------------------------------------------------------------------===// #include "clang/AST/StmtGraphTraits.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/AST/TemplateBase.cpp b/tools/clang/lib/AST/TemplateBase.cpp index be2b9425d0..5deb1166a0 100644 --- a/tools/clang/lib/AST/TemplateBase.cpp +++ b/tools/clang/lib/AST/TemplateBase.cpp @@ -1,15 +1,16 @@ //===--- TemplateBase.cpp - Common template AST class implementation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TemplateBase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements common classes used throughout C++ template // -// representations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements common classes used throughout C++ template +// representations. +// +//===----------------------------------------------------------------------===// #include "clang/AST/TemplateBase.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/TemplateName.cpp b/tools/clang/lib/AST/TemplateName.cpp index 15f2f7840c..f50acb28a1 100644 --- a/tools/clang/lib/AST/TemplateName.cpp +++ b/tools/clang/lib/AST/TemplateName.cpp @@ -1,14 +1,15 @@ //===--- TemplateName.cpp - C++ Template Name Representation---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TemplateName.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TemplateName interface and subclasses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TemplateName interface and subclasses. +// +//===----------------------------------------------------------------------===// #include "clang/AST/TemplateName.h" #include "clang/AST/DeclTemplate.h" diff --git a/tools/clang/lib/AST/Type.cpp b/tools/clang/lib/AST/Type.cpp index 2bfa5956dc..1b5b29b9d2 100644 --- a/tools/clang/lib/AST/Type.cpp +++ b/tools/clang/lib/AST/Type.cpp @@ -1,14 +1,15 @@ //===--- Type.cpp - Type representation and manipulation ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Type.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements type-related functionality. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements type-related functionality. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/AST/TypeLoc.cpp b/tools/clang/lib/AST/TypeLoc.cpp index a5d1ed5bf7..e5f6315e0e 100644 --- a/tools/clang/lib/AST/TypeLoc.cpp +++ b/tools/clang/lib/AST/TypeLoc.cpp @@ -1,14 +1,15 @@ //===--- TypeLoc.cpp - Type Source Info Wrapper -----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeLoc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the TypeLoc subclasses implementations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the TypeLoc subclasses implementations. +// +//===----------------------------------------------------------------------===// #include "clang/AST/TypeLoc.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/TypePrinter.cpp b/tools/clang/lib/AST/TypePrinter.cpp index b2a81a31ee..c3e0ff2f60 100644 --- a/tools/clang/lib/AST/TypePrinter.cpp +++ b/tools/clang/lib/AST/TypePrinter.cpp @@ -1,14 +1,15 @@ //===--- TypePrinter.cpp - Pretty-Print Clang Types -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypePrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to print types from Clang's type system. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to print types from Clang's type system. +// +//===----------------------------------------------------------------------===// #include "clang/AST/PrettyPrinter.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/VTTBuilder.cpp b/tools/clang/lib/AST/VTTBuilder.cpp index 6246faeb19..53461ebbb8 100644 --- a/tools/clang/lib/AST/VTTBuilder.cpp +++ b/tools/clang/lib/AST/VTTBuilder.cpp @@ -1,15 +1,16 @@ //===--- VTTBuilder.cpp - C++ VTT layout builder --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VTTBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with generation of the layout of virtual table // -// tables (VTT). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with generation of the layout of virtual table +// tables (VTT). +// +//===----------------------------------------------------------------------===// #include "clang/AST/VTTBuilder.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/AST/VTableBuilder.cpp b/tools/clang/lib/AST/VTableBuilder.cpp index 914348edc8..ca5f0aad00 100644 --- a/tools/clang/lib/AST/VTableBuilder.cpp +++ b/tools/clang/lib/AST/VTableBuilder.cpp @@ -1,14 +1,15 @@ //===--- VTableBuilder.cpp - C++ vtable layout builder --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VTableBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with generation of the layout of virtual tables.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with generation of the layout of virtual tables. +// +//===----------------------------------------------------------------------===// #include "clang/AST/VTableBuilder.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp b/tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp index ff04c5bae3..e3b666ef42 100644 --- a/tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp +++ b/tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp @@ -1,19 +1,20 @@ //===--- ASTMatchFinder.cpp - Structural query framework ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchFinder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements an algorithm to efficiently search for matches on AST nodes. // -// Uses memoization to support recursive matches like HasDescendant. // -// // -// The general idea is to visit all AST nodes with a RecursiveASTVisitor, // -// calling the Matches(...) method of each matcher we are running on each // -// AST node. The matcher can recurse via the ASTMatchFinder interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements an algorithm to efficiently search for matches on AST nodes. +// Uses memoization to support recursive matches like HasDescendant. +// +// The general idea is to visit all AST nodes with a RecursiveASTVisitor, +// calling the Matches(...) method of each matcher we are running on each +// AST node. The matcher can recurse via the ASTMatchFinder interface. +// +//===----------------------------------------------------------------------===// #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp b/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp index 55cf5a52eb..069fcba474 100644 --- a/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp +++ b/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp @@ -1,14 +1,15 @@ //===--- ASTMatchersInternal.cpp - Structural query framework -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchersInternal.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements the base layer of the matcher framework. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements the base layer of the matcher framework. +// +//===----------------------------------------------------------------------===// #include "clang/ASTMatchers/ASTMatchers.h" #include "clang/ASTMatchers/ASTMatchersInternal.h" diff --git a/tools/clang/lib/ASTMatchers/CMakeLists.txt b/tools/clang/lib/ASTMatchers/CMakeLists.txt index 12f0b6314c..03480c7caa 100644 --- a/tools/clang/lib/ASTMatchers/CMakeLists.txt +++ b/tools/clang/lib/ASTMatchers/CMakeLists.txt @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. -# add_subdirectory(Dynamic) # HLSL Change - no need to build this set(LLVM_LINK_COMPONENTS support) diff --git a/tools/clang/lib/ASTMatchers/Dynamic/CMakeLists.txt b/tools/clang/lib/ASTMatchers/Dynamic/CMakeLists.txt index f7d4c8b23c..df40a68654 100644 --- a/tools/clang/lib/ASTMatchers/Dynamic/CMakeLists.txt +++ b/tools/clang/lib/ASTMatchers/Dynamic/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_clang_library(clangDynamicASTMatchers diff --git a/tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp b/tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp index 95352240cc..72f127185e 100644 --- a/tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp +++ b/tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp @@ -1,12 +1,11 @@ //===--- Diagnostics.cpp - Helper class for error diagnostics -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Diagnostics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/ASTMatchers/Dynamic/Diagnostics.h" diff --git a/tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h b/tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h index 00adfa3c58..36a6415ae8 100644 --- a/tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h +++ b/tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h @@ -1,22 +1,21 @@ //===--- Marshallers.h - Generic matcher function marshallers -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Marshallers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Functions templates and classes to wrap matcher construct functions.// +/// \file +/// \brief Functions templates and classes to wrap matcher construct functions. /// -/// A collection of template function and classes that provide a generic // -/// marshalling layer on top of matcher construct functions. // -/// These are used by the registry to export all marshaller constructors with// -/// the same generic interface. // +/// A collection of template function and classes that provide a generic +/// marshalling layer on top of matcher construct functions. +/// These are used by the registry to export all marshaller constructors with +/// the same generic interface. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_ASTMATCHERS_DYNAMIC_MARSHALLERS_H #define LLVM_CLANG_LIB_ASTMATCHERS_DYNAMIC_MARSHALLERS_H diff --git a/tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp b/tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp index 59863d0529..96a78cd9f8 100644 --- a/tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp +++ b/tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp @@ -1,17 +1,16 @@ //===--- Parser.cpp - Matcher expression parser -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Parser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Recursive parser implementation for the matcher expression grammar.// +/// \file +/// \brief Recursive parser implementation for the matcher expression grammar. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/ASTMatchers/Dynamic/Parser.h" #include "clang/ASTMatchers/Dynamic/Registry.h" diff --git a/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp b/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp index d6c23efbcf..72713dda03 100644 --- a/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp +++ b/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp @@ -1,12 +1,16 @@ //===--- Registry.cpp - Matcher registry -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Registry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===------------------------------------------------------------===// +/// +/// \file +/// \brief Registry map populated at static initialization time. +/// +//===------------------------------------------------------------===// #include "clang/ASTMatchers/Dynamic/Registry.h" #include "Marshallers.h" diff --git a/tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp b/tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp index 47e8a40142..9d8be47005 100644 --- a/tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp +++ b/tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp @@ -1,17 +1,16 @@ //===--- VariantValue.cpp - Polymorphic value type -*- C++ -*-===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// VariantValue.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Polymorphic value type. // +/// \file +/// \brief Polymorphic value type. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/ASTMatchers/Dynamic/VariantValue.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/lib/Analysis/AnalysisDeclContext.cpp b/tools/clang/lib/Analysis/AnalysisDeclContext.cpp index 140242d707..d7fb7e95d7 100644 --- a/tools/clang/lib/Analysis/AnalysisDeclContext.cpp +++ b/tools/clang/lib/Analysis/AnalysisDeclContext.cpp @@ -1,15 +1,16 @@ //== AnalysisDeclContext.cpp - Analysis context for Path Sens analysis -*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisDeclContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines AnalysisDeclContext, a class that manages the analysis context// -// data for path sensitive analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines AnalysisDeclContext, a class that manages the analysis context +// data for path sensitive analysis. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/AnalysisContext.h" #include "BodyFarm.h" diff --git a/tools/clang/lib/Analysis/BodyFarm.cpp b/tools/clang/lib/Analysis/BodyFarm.cpp index 82480173e7..7d1b235752 100644 --- a/tools/clang/lib/Analysis/BodyFarm.cpp +++ b/tools/clang/lib/Analysis/BodyFarm.cpp @@ -1,15 +1,16 @@ //== BodyFarm.cpp - Factory for conjuring up fake bodies ----------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// BodyFarm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// BodyFarm is a factory for creating faux implementations for functions/methods// -// for analysis purposes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// BodyFarm is a factory for creating faux implementations for functions/methods +// for analysis purposes. +// +//===----------------------------------------------------------------------===// #include "BodyFarm.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Analysis/BodyFarm.h b/tools/clang/lib/Analysis/BodyFarm.h index efa1aa3795..9137943723 100644 --- a/tools/clang/lib/Analysis/BodyFarm.h +++ b/tools/clang/lib/Analysis/BodyFarm.h @@ -1,15 +1,16 @@ //== BodyFarm.h - Factory for conjuring up fake bodies -------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// BodyFarm.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// BodyFarm is a factory for creating faux implementations for functions/methods// -// for analysis purposes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// BodyFarm is a factory for creating faux implementations for functions/methods +// for analysis purposes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_ANALYSIS_BODYFARM_H #define LLVM_CLANG_LIB_ANALYSIS_BODYFARM_H diff --git a/tools/clang/lib/Analysis/CFG.cpp b/tools/clang/lib/Analysis/CFG.cpp index d9a4a953c5..20a0ac0a41 100644 --- a/tools/clang/lib/Analysis/CFG.cpp +++ b/tools/clang/lib/Analysis/CFG.cpp @@ -1,15 +1,3 @@ -//===--- CFG.cpp - Classes for representing and building CFGs----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFG.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CFG and CFGBuilder classes for representing and // -// building Control-Flow Graphs (CFGs) from ASTs. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "clang/Analysis/CFG.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Analysis/CFGReachabilityAnalysis.cpp b/tools/clang/lib/Analysis/CFGReachabilityAnalysis.cpp index dd7f0cff05..4ae135f1ea 100644 --- a/tools/clang/lib/Analysis/CFGReachabilityAnalysis.cpp +++ b/tools/clang/lib/Analysis/CFGReachabilityAnalysis.cpp @@ -1,16 +1,17 @@ //==- CFGReachabilityAnalysis.cpp - Basic reachability analysis --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGReachabilityAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a flow-sensitive, (mostly) path-insensitive reachability// -// analysis based on Clang's CFGs. Clients can query if a given basic block // -// is reachable within the CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a flow-sensitive, (mostly) path-insensitive reachability +// analysis based on Clang's CFGs. Clients can query if a given basic block +// is reachable within the CFG. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallVector.h" #include "clang/Analysis/Analyses/CFGReachabilityAnalysis.h" diff --git a/tools/clang/lib/Analysis/CFGStmtMap.cpp b/tools/clang/lib/Analysis/CFGStmtMap.cpp index 5c7a86d694..19b80191f7 100644 --- a/tools/clang/lib/Analysis/CFGStmtMap.cpp +++ b/tools/clang/lib/Analysis/CFGStmtMap.cpp @@ -1,15 +1,16 @@ //===--- CFGStmtMap.h - Map from Stmt* to CFGBlock* -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGStmtMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the CFGStmtMap class, which defines a mapping from // -// Stmt* to CFGBlock* // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the CFGStmtMap class, which defines a mapping from +// Stmt* to CFGBlock* +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseMap.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/Analysis/CMakeLists.txt b/tools/clang/lib/Analysis/CMakeLists.txt index 0a34c58411..70c1f29758 100644 --- a/tools/clang/lib/Analysis/CMakeLists.txt +++ b/tools/clang/lib/Analysis/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/lib/Analysis/CallGraph.cpp b/tools/clang/lib/Analysis/CallGraph.cpp index dc363e4583..9ebc893743 100644 --- a/tools/clang/lib/Analysis/CallGraph.cpp +++ b/tools/clang/lib/Analysis/CallGraph.cpp @@ -1,13 +1,15 @@ //== CallGraph.cpp - AST-based Call graph ----------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraph.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AST-based CallGraph. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AST-based CallGraph. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/CallGraph.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Analysis/CocoaConventions.cpp b/tools/clang/lib/Analysis/CocoaConventions.cpp index 4932c31d2e..be1262dc99 100644 --- a/tools/clang/lib/Analysis/CocoaConventions.cpp +++ b/tools/clang/lib/Analysis/CocoaConventions.cpp @@ -1,14 +1,15 @@ //===- CocoaConventions.h - Special handling of Cocoa conventions -*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// CocoaConventions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements cocoa naming convention analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements cocoa naming convention analysis. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/DomainSpecific/CocoaConventions.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/Analysis/CodeInjector.cpp b/tools/clang/lib/Analysis/CodeInjector.cpp index 6c10970de8..76bf364444 100644 --- a/tools/clang/lib/Analysis/CodeInjector.cpp +++ b/tools/clang/lib/Analysis/CodeInjector.cpp @@ -1,12 +1,11 @@ //===-- CodeInjector.cpp ----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeInjector.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/CodeInjector.h" diff --git a/tools/clang/lib/Analysis/Consumed.cpp b/tools/clang/lib/Analysis/Consumed.cpp index 9b87733e1f..fa985ee02e 100644 --- a/tools/clang/lib/Analysis/Consumed.cpp +++ b/tools/clang/lib/Analysis/Consumed.cpp @@ -1,15 +1,16 @@ //===- Consumed.cpp --------------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Consumed.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A intra-procedural analysis for checking consumed properties. This is based,// -// in part, on research on linear types. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A intra-procedural analysis for checking consumed properties. This is based, +// in part, on research on linear types. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/Analysis/Dominators.cpp b/tools/clang/lib/Analysis/Dominators.cpp index d94c8ee58c..0e02c6d717 100644 --- a/tools/clang/lib/Analysis/Dominators.cpp +++ b/tools/clang/lib/Analysis/Dominators.cpp @@ -1,12 +1,11 @@ //=- Dominators.cpp - Implementation of dominators tree for Clang CFG C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// Dominators.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/Dominators.h" diff --git a/tools/clang/lib/Analysis/FormatString.cpp b/tools/clang/lib/Analysis/FormatString.cpp index d9da630927..0948bc0b08 100644 --- a/tools/clang/lib/Analysis/FormatString.cpp +++ b/tools/clang/lib/Analysis/FormatString.cpp @@ -1,15 +1,16 @@ -//= FormatString.cpp - Common stuff for handling printf/scanf formats -*- C++ -*- -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatString.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Shared details for processing format strings of printf and scanf // -// (and friends). // -// // -/////////////////////////////////////////////////////////////////////////////// +// FormatString.cpp - Common stuff for handling printf/scanf formats -*- C++ -*- +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Shared details for processing format strings of printf and scanf +// (and friends). +// +//===----------------------------------------------------------------------===// #include "FormatStringParsing.h" #include "clang/Basic/LangOptions.h" diff --git a/tools/clang/lib/Analysis/FormatStringParsing.h b/tools/clang/lib/Analysis/FormatStringParsing.h index 05e0f8afab..ab690c4b1b 100644 --- a/tools/clang/lib/Analysis/FormatStringParsing.h +++ b/tools/clang/lib/Analysis/FormatStringParsing.h @@ -1,12 +1,3 @@ -//===- FormatStringParsing.h ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatStringParsing.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #ifndef LLVM_CLANG_LIB_ANALYSIS_FORMATSTRINGPARSING_H #define LLVM_CLANG_LIB_ANALYSIS_FORMATSTRINGPARSING_H diff --git a/tools/clang/lib/Analysis/LiveVariables.cpp b/tools/clang/lib/Analysis/LiveVariables.cpp index a36d2bc126..5e0a9a0d73 100644 --- a/tools/clang/lib/Analysis/LiveVariables.cpp +++ b/tools/clang/lib/Analysis/LiveVariables.cpp @@ -1,14 +1,15 @@ //=- LiveVariables.cpp - Live Variable Analysis for Source CFGs ----------*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiveVariables.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements Live Variables analysis for source-level CFGs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements Live Variables analysis for source-level CFGs. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/LiveVariables.h" #include "clang/AST/Stmt.h" diff --git a/tools/clang/lib/Analysis/ObjCNoReturn.cpp b/tools/clang/lib/Analysis/ObjCNoReturn.cpp index 0b6ac7f47e..52d844bf9d 100644 --- a/tools/clang/lib/Analysis/ObjCNoReturn.cpp +++ b/tools/clang/lib/Analysis/ObjCNoReturn.cpp @@ -1,15 +1,16 @@ //= ObjCNoReturn.cpp - Handling of Cocoa APIs known not to return --*- C++ -*--- -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCNoReturn.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements special handling of recognizing ObjC API hooks that // -// do not return but aren't marked as such in API headers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements special handling of recognizing ObjC API hooks that +// do not return but aren't marked as such in API headers. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/ExprObjC.h" diff --git a/tools/clang/lib/Analysis/PostOrderCFGView.cpp b/tools/clang/lib/Analysis/PostOrderCFGView.cpp index 0617025137..5a3c8182a1 100644 --- a/tools/clang/lib/Analysis/PostOrderCFGView.cpp +++ b/tools/clang/lib/Analysis/PostOrderCFGView.cpp @@ -1,14 +1,15 @@ //===- PostOrderCFGView.cpp - Post order view of CFG blocks -------*- C++ --*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostOrderCFGView.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements post order view of the blocks in a CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements post order view of the blocks in a CFG. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/PostOrderCFGView.h" diff --git a/tools/clang/lib/Analysis/PrintfFormatString.cpp b/tools/clang/lib/Analysis/PrintfFormatString.cpp index 209b9ab268..f0976bce97 100644 --- a/tools/clang/lib/Analysis/PrintfFormatString.cpp +++ b/tools/clang/lib/Analysis/PrintfFormatString.cpp @@ -1,15 +1,16 @@ //== PrintfFormatString.cpp - Analysis of printf format strings --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrintfFormatString.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Handling of format string in printf and friends. The structure of format // -// strings for fprintf() are described in C99 7.19.6.1. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Handling of format string in printf and friends. The structure of format +// strings for fprintf() are described in C99 7.19.6.1. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/FormatString.h" #include "FormatStringParsing.h" diff --git a/tools/clang/lib/Analysis/ProgramPoint.cpp b/tools/clang/lib/Analysis/ProgramPoint.cpp index e6e9051437..26b59bb71d 100644 --- a/tools/clang/lib/Analysis/ProgramPoint.cpp +++ b/tools/clang/lib/Analysis/ProgramPoint.cpp @@ -1,15 +1,16 @@ //==- ProgramPoint.cpp - Program Points for Path-Sensitive Analysis -*- C++ -*-/ -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramPoint.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the interface ProgramPoint, which identifies a // -// distinct location in a function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface ProgramPoint, which identifies a +// distinct location in a function. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/ProgramPoint.h" diff --git a/tools/clang/lib/Analysis/PseudoConstantAnalysis.cpp b/tools/clang/lib/Analysis/PseudoConstantAnalysis.cpp index 1f27c47ac3..5b917a7a27 100644 --- a/tools/clang/lib/Analysis/PseudoConstantAnalysis.cpp +++ b/tools/clang/lib/Analysis/PseudoConstantAnalysis.cpp @@ -1,16 +1,17 @@ //== PseudoConstantAnalysis.cpp - Find Pseudoconstants in the AST-*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// PseudoConstantAnalysis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file tracks the usage of variables in a Decl body to see if they are // -// never written to, implying that they constant. This is useful in static // -// analysis to see if a developer might have intended a variable to be const.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file tracks the usage of variables in a Decl body to see if they are +// never written to, implying that they constant. This is useful in static +// analysis to see if a developer might have intended a variable to be const. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/PseudoConstantAnalysis.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/Analysis/ReachableCode.cpp b/tools/clang/lib/Analysis/ReachableCode.cpp index e59e49209e..f094d075af 100644 --- a/tools/clang/lib/Analysis/ReachableCode.cpp +++ b/tools/clang/lib/Analysis/ReachableCode.cpp @@ -1,15 +1,16 @@ //=- ReachableCodePathInsensitive.cpp ---------------------------*- C++ --*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReachableCode.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a flow-sensitive, path-insensitive analysis of // -// determining reachable blocks within a CFG. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a flow-sensitive, path-insensitive analysis of +// determining reachable blocks within a CFG. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/ReachableCode.h" #include "clang/AST/Expr.h" diff --git a/tools/clang/lib/Analysis/ScanfFormatString.cpp b/tools/clang/lib/Analysis/ScanfFormatString.cpp index 0953e76def..d484d8e828 100644 --- a/tools/clang/lib/Analysis/ScanfFormatString.cpp +++ b/tools/clang/lib/Analysis/ScanfFormatString.cpp @@ -1,15 +1,16 @@ //= ScanfFormatString.cpp - Analysis of printf format strings --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScanfFormatString.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Handling of format string in scanf and friends. The structure of format // -// strings for fscanf() are described in C99 7.19.6.2. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Handling of format string in scanf and friends. The structure of format +// strings for fscanf() are described in C99 7.19.6.2. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/FormatString.h" #include "FormatStringParsing.h" diff --git a/tools/clang/lib/Analysis/ThreadSafety.cpp b/tools/clang/lib/Analysis/ThreadSafety.cpp index 4dcca65365..e2c6ab5d94 100644 --- a/tools/clang/lib/Analysis/ThreadSafety.cpp +++ b/tools/clang/lib/Analysis/ThreadSafety.cpp @@ -1,18 +1,19 @@ //===- ThreadSafety.cpp ----------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafety.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// A intra-procedural analysis for thread safety (e.g. deadlocks and race // -// conditions), based off of an annotation system. // -// // -// See http://clang.llvm.org/docs/ThreadSafetyAnalysis.html // -// for more information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A intra-procedural analysis for thread safety (e.g. deadlocks and race +// conditions), based off of an annotation system. +// +// See http://clang.llvm.org/docs/ThreadSafetyAnalysis.html +// for more information. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Attr.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/Analysis/ThreadSafetyCommon.cpp b/tools/clang/lib/Analysis/ThreadSafetyCommon.cpp index 12f369821f..d4b1ce26d4 100644 --- a/tools/clang/lib/Analysis/ThreadSafetyCommon.cpp +++ b/tools/clang/lib/Analysis/ThreadSafetyCommon.cpp @@ -1,14 +1,15 @@ //===- ThreadSafetyCommon.cpp ----------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyCommon.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the interfaces declared in ThreadSafetyCommon.h // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the interfaces declared in ThreadSafetyCommon.h +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/ThreadSafetyCommon.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/Analysis/ThreadSafetyLogical.cpp b/tools/clang/lib/Analysis/ThreadSafetyLogical.cpp index 40a3e3f51b..facfa11a39 100644 --- a/tools/clang/lib/Analysis/ThreadSafetyLogical.cpp +++ b/tools/clang/lib/Analysis/ThreadSafetyLogical.cpp @@ -1,15 +1,14 @@ //===- ThreadSafetyLogical.cpp ---------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyLogical.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a representation for logical expressions with SExpr leaves// -// that are used as part of fact-checking capability expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file defines a representation for logical expressions with SExpr leaves +// that are used as part of fact-checking capability expressions. +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/ThreadSafetyLogical.h" diff --git a/tools/clang/lib/Analysis/ThreadSafetyTIL.cpp b/tools/clang/lib/Analysis/ThreadSafetyTIL.cpp index 99161b8c28..2923f7e66a 100644 --- a/tools/clang/lib/Analysis/ThreadSafetyTIL.cpp +++ b/tools/clang/lib/Analysis/ThreadSafetyTIL.cpp @@ -1,12 +1,11 @@ //===- ThreadSafetyTIL.cpp -------------------------------------*- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadSafetyTIL.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT in the llvm repository for details. +// +//===----------------------------------------------------------------------===// #include "clang/Analysis/Analyses/ThreadSafetyTIL.h" #include "clang/Analysis/Analyses/ThreadSafetyTraverse.h" diff --git a/tools/clang/lib/Analysis/UninitializedValues.cpp b/tools/clang/lib/Analysis/UninitializedValues.cpp index 2f3522ef36..f2f791957a 100644 --- a/tools/clang/lib/Analysis/UninitializedValues.cpp +++ b/tools/clang/lib/Analysis/UninitializedValues.cpp @@ -1,14 +1,15 @@ //==- UninitializedValues.cpp - Find Uninitialized Values -------*- C++ --*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// UninitializedValues.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements uninitialized values analysis for source-level CFGs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements uninitialized values analysis for source-level CFGs. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/Basic/Attributes.cpp b/tools/clang/lib/Basic/Attributes.cpp index ac48aec4e1..6f3953edd9 100644 --- a/tools/clang/lib/Basic/Attributes.cpp +++ b/tools/clang/lib/Basic/Attributes.cpp @@ -1,12 +1,3 @@ -//===- Attributes.cpp -------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Attributes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "clang/Basic/Attributes.h" #include "clang/Basic/IdentifierTable.h" diff --git a/tools/clang/lib/Basic/Builtins.cpp b/tools/clang/lib/Basic/Builtins.cpp index 70ecd583d7..8efcac6d7f 100644 --- a/tools/clang/lib/Basic/Builtins.cpp +++ b/tools/clang/lib/Basic/Builtins.cpp @@ -1,14 +1,15 @@ //===--- Builtins.cpp - Builtin function implementation -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Builtins.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements various things for builtin functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements various things for builtin functions. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Builtins.h" #include "clang/Basic/IdentifierTable.h" diff --git a/tools/clang/lib/Basic/CMakeLists.txt b/tools/clang/lib/Basic/CMakeLists.txt index 3724aff453..ef28c872fb 100644 --- a/tools/clang/lib/Basic/CMakeLists.txt +++ b/tools/clang/lib/Basic/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core # MC # HLSL Change diff --git a/tools/clang/lib/Basic/CharInfo.cpp b/tools/clang/lib/Basic/CharInfo.cpp index 6879cdafb1..32b3277c92 100644 --- a/tools/clang/lib/Basic/CharInfo.cpp +++ b/tools/clang/lib/Basic/CharInfo.cpp @@ -1,12 +1,11 @@ //===--- CharInfo.cpp - Static Data for Classifying ASCII Characters ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CharInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Basic/Diagnostic.cpp b/tools/clang/lib/Basic/Diagnostic.cpp index 05ffea6a7c..cc7384f7e9 100644 --- a/tools/clang/lib/Basic/Diagnostic.cpp +++ b/tools/clang/lib/Basic/Diagnostic.cpp @@ -1,14 +1,15 @@ //===--- Diagnostic.cpp - C Language Family Diagnostic Handling -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Diagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Diagnostic-related interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Diagnostic-related interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/CharInfo.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/Basic/DiagnosticIDs.cpp b/tools/clang/lib/Basic/DiagnosticIDs.cpp index 09c6d20d6c..5ec38e2649 100644 --- a/tools/clang/lib/Basic/DiagnosticIDs.cpp +++ b/tools/clang/lib/Basic/DiagnosticIDs.cpp @@ -1,14 +1,15 @@ //===--- DiagnosticIDs.cpp - Diagnostic IDs Handling ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticIDs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Diagnostic IDs-related interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Diagnostic IDs-related interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/DiagnosticIDs.h" #include "clang/Basic/AllDiagnostics.h" diff --git a/tools/clang/lib/Basic/DiagnosticOptions.cpp b/tools/clang/lib/Basic/DiagnosticOptions.cpp index 7b724c928a..f54a0ef4ed 100644 --- a/tools/clang/lib/Basic/DiagnosticOptions.cpp +++ b/tools/clang/lib/Basic/DiagnosticOptions.cpp @@ -1,14 +1,15 @@ //===--- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the DiagnosticOptions related interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DiagnosticOptions related interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/DiagnosticOptions.h" #include "llvm/Support/raw_ostream.h" diff --git a/tools/clang/lib/Basic/FileManager.cpp b/tools/clang/lib/Basic/FileManager.cpp index 6511e1171f..1d49f27aa0 100644 --- a/tools/clang/lib/Basic/FileManager.cpp +++ b/tools/clang/lib/Basic/FileManager.cpp @@ -1,18 +1,21 @@ //===--- FileManager.cpp - File System Probing and Caching ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the FileManager interface. // -// // -// TODO: This should index all interesting directories with dirent calls. // -// getdirentries ? // -// opendir/readdir_r/closedir ? // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the FileManager interface. +// +//===----------------------------------------------------------------------===// +// +// TODO: This should index all interesting directories with dirent calls. +// getdirentries ? +// opendir/readdir_r/closedir ? +// +//===----------------------------------------------------------------------===// #include "clang/Basic/FileManager.h" #include "clang/Basic/FileSystemStatCache.h" diff --git a/tools/clang/lib/Basic/FileSystemStatCache.cpp b/tools/clang/lib/Basic/FileSystemStatCache.cpp index 13ac9aa876..187ea37e0c 100644 --- a/tools/clang/lib/Basic/FileSystemStatCache.cpp +++ b/tools/clang/lib/Basic/FileSystemStatCache.cpp @@ -1,14 +1,15 @@ //===--- FileSystemStatCache.cpp - Caching for 'stat' calls ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileSystemStatCache.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the FileSystemStatCache interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the FileSystemStatCache interface. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/FileSystemStatCache.h" #include "clang/Basic/VirtualFileSystem.h" diff --git a/tools/clang/lib/Basic/IdentifierTable.cpp b/tools/clang/lib/Basic/IdentifierTable.cpp index 9ecff1b222..b417f5c016 100644 --- a/tools/clang/lib/Basic/IdentifierTable.cpp +++ b/tools/clang/lib/Basic/IdentifierTable.cpp @@ -1,15 +1,16 @@ //===--- IdentifierTable.cpp - Hash table for identifier lookup -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IdentifierTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the IdentifierInfo, IdentifierVisitor, and // -// IdentifierTable interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the IdentifierInfo, IdentifierVisitor, and +// IdentifierTable interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/CharInfo.h" #include "clang/Basic/IdentifierTable.h" diff --git a/tools/clang/lib/Basic/LangOptions.cpp b/tools/clang/lib/Basic/LangOptions.cpp index f3284d0087..7049e16fb5 100644 --- a/tools/clang/lib/Basic/LangOptions.cpp +++ b/tools/clang/lib/Basic/LangOptions.cpp @@ -1,13 +1,15 @@ //===--- LangOptions.cpp - C Language Family Language Options ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LangOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the LangOptions class. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the LangOptions class. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/LangOptions.h" // // diff --git a/tools/clang/lib/Basic/Module.cpp b/tools/clang/lib/Basic/Module.cpp index dbd0e63f02..4314b41eb3 100644 --- a/tools/clang/lib/Basic/Module.cpp +++ b/tools/clang/lib/Basic/Module.cpp @@ -1,15 +1,16 @@ //===--- Module.cpp - Describe a module -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Module.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Module class, which describes a module in the source// -// code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Module class, which describes a module in the source +// code. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Module.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Basic/ObjCRuntime.cpp b/tools/clang/lib/Basic/ObjCRuntime.cpp index 2a0fb72773..d2a17aa75d 100644 --- a/tools/clang/lib/Basic/ObjCRuntime.cpp +++ b/tools/clang/lib/Basic/ObjCRuntime.cpp @@ -1,14 +1,16 @@ //===- ObjCRuntime.cpp - Objective-C Runtime Handling -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCRuntime.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ObjCRuntime class, which represents the // -// target Objective-C runtime. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ObjCRuntime class, which represents the +// target Objective-C runtime. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/ObjCRuntime.h" #include "llvm/Support/raw_ostream.h" diff --git a/tools/clang/lib/Basic/OpenMPKinds.cpp b/tools/clang/lib/Basic/OpenMPKinds.cpp index 1bc899a988..b7407f60e6 100644 --- a/tools/clang/lib/Basic/OpenMPKinds.cpp +++ b/tools/clang/lib/Basic/OpenMPKinds.cpp @@ -1,16 +1,15 @@ //===--- OpenMPKinds.cpp - Token Kinds Support ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OpenMPKinds.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file implements the OpenMP enum and support functions. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file implements the OpenMP enum and support functions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Basic/OpenMPKinds.h" #include "clang/Basic/IdentifierTable.h" diff --git a/tools/clang/lib/Basic/OperatorPrecedence.cpp b/tools/clang/lib/Basic/OperatorPrecedence.cpp index 75c3c60b21..87411a0984 100644 --- a/tools/clang/lib/Basic/OperatorPrecedence.cpp +++ b/tools/clang/lib/Basic/OperatorPrecedence.cpp @@ -1,15 +1,16 @@ //===--- OperatorPrecedence.cpp ---------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OperatorPrecedence.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines and computes precedence levels for binary/ternary operators.// +/// \file +/// \brief Defines and computes precedence levels for binary/ternary operators. /// +//===----------------------------------------------------------------------===// #include "clang/Basic/OperatorPrecedence.h" // // diff --git a/tools/clang/lib/Basic/SanitizerBlacklist.cpp b/tools/clang/lib/Basic/SanitizerBlacklist.cpp index 3ec2d10251..f7af740e52 100644 --- a/tools/clang/lib/Basic/SanitizerBlacklist.cpp +++ b/tools/clang/lib/Basic/SanitizerBlacklist.cpp @@ -1,14 +1,16 @@ //===--- SanitizerBlacklist.cpp - Blacklist for sanitizers ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerBlacklist.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// User-provided blacklist used to disable/alter instrumentation done in // -// sanitizers. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// User-provided blacklist used to disable/alter instrumentation done in +// sanitizers. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/SanitizerBlacklist.h" // // diff --git a/tools/clang/lib/Basic/Sanitizers.cpp b/tools/clang/lib/Basic/Sanitizers.cpp index 0a84c980b0..715e24bb8f 100644 --- a/tools/clang/lib/Basic/Sanitizers.cpp +++ b/tools/clang/lib/Basic/Sanitizers.cpp @@ -1,13 +1,15 @@ //===--- Sanitizers.cpp - C Language Family Language Options ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Sanitizers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the classes from Sanitizers.h // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the classes from Sanitizers.h +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Sanitizers.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/lib/Basic/SourceLocation.cpp b/tools/clang/lib/Basic/SourceLocation.cpp index 637dfe7d56..d254e8620a 100644 --- a/tools/clang/lib/Basic/SourceLocation.cpp +++ b/tools/clang/lib/Basic/SourceLocation.cpp @@ -1,14 +1,15 @@ //==--- SourceLocation.cpp - Compact identifier for Source Files -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceLocation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines accessor methods for the FullSourceLoc class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines accessor methods for the FullSourceLoc class. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/SourceLocation.h" #include "clang/Basic/PrettyStackTrace.h" diff --git a/tools/clang/lib/Basic/SourceManager.cpp b/tools/clang/lib/Basic/SourceManager.cpp index 3283998286..c0b045331d 100644 --- a/tools/clang/lib/Basic/SourceManager.cpp +++ b/tools/clang/lib/Basic/SourceManager.cpp @@ -1,14 +1,15 @@ //===--- SourceManager.cpp - Track and cache source files -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the SourceManager interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the SourceManager interface. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/SourceManager.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/Basic/TargetInfo.cpp b/tools/clang/lib/Basic/TargetInfo.cpp index ffb6de573c..dbd2f9ae99 100644 --- a/tools/clang/lib/Basic/TargetInfo.cpp +++ b/tools/clang/lib/Basic/TargetInfo.cpp @@ -1,14 +1,15 @@ //===--- TargetInfo.cpp - Information about Target machine ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TargetInfo and TargetInfoImpl interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TargetInfo and TargetInfoImpl interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/TargetInfo.h" #include "clang/Basic/AddressSpaces.h" diff --git a/tools/clang/lib/Basic/Targets.cpp b/tools/clang/lib/Basic/Targets.cpp index 3da141c8ec..daa781d38b 100644 --- a/tools/clang/lib/Basic/Targets.cpp +++ b/tools/clang/lib/Basic/Targets.cpp @@ -1,15 +1,16 @@ //===--- Targets.cpp - Implement -arch option and targets -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Targets.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements construction of a TargetInfo object from a // -// target triple. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements construction of a TargetInfo object from a +// target triple. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/TargetInfo.h" #include "clang/Basic/Builtins.h" diff --git a/tools/clang/lib/Basic/TokenKinds.cpp b/tools/clang/lib/Basic/TokenKinds.cpp index 2336743983..3b1f8fe34b 100644 --- a/tools/clang/lib/Basic/TokenKinds.cpp +++ b/tools/clang/lib/Basic/TokenKinds.cpp @@ -1,14 +1,15 @@ //===--- TokenKinds.cpp - Token Kinds Support -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenKinds.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TokenKind enum and support functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TokenKind enum and support functions. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/TokenKinds.h" #include "llvm/Support/ErrorHandling.h" diff --git a/tools/clang/lib/Basic/Version.cpp b/tools/clang/lib/Basic/Version.cpp index ce108fa892..725b7fe8c4 100644 --- a/tools/clang/lib/Basic/Version.cpp +++ b/tools/clang/lib/Basic/Version.cpp @@ -1,14 +1,15 @@ //===- Version.cpp - Clang Version Number -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Version.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines several version-related utility functions for Clang. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines several version-related utility functions for Clang. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Version.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/lib/Basic/VersionTuple.cpp b/tools/clang/lib/Basic/VersionTuple.cpp index 2a9bbd747f..4cfd78b13f 100644 --- a/tools/clang/lib/Basic/VersionTuple.cpp +++ b/tools/clang/lib/Basic/VersionTuple.cpp @@ -1,14 +1,16 @@ //===- VersionTuple.cpp - Version Number Handling ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VersionTuple.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the VersionTuple class, which represents a version in// -// the form major[.minor[.subminor]]. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the VersionTuple class, which represents a version in +// the form major[.minor[.subminor]]. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/VersionTuple.h" #include "llvm/Support/raw_ostream.h" diff --git a/tools/clang/lib/Basic/VirtualFileSystem.cpp b/tools/clang/lib/Basic/VirtualFileSystem.cpp index fefc111fcf..97ca7cb205 100644 --- a/tools/clang/lib/Basic/VirtualFileSystem.cpp +++ b/tools/clang/lib/Basic/VirtualFileSystem.cpp @@ -1,14 +1,13 @@ //===- VirtualFileSystem.cpp - Virtual File System Layer --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VirtualFileSystem.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the VirtualFileSystem interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file implements the VirtualFileSystem interface. +//===----------------------------------------------------------------------===// #include "clang/Basic/VirtualFileSystem.h" #include "llvm/ADT/DenseMap.h" diff --git a/tools/clang/lib/Basic/Warnings.cpp b/tools/clang/lib/Basic/Warnings.cpp index c28cb3b650..1b528d83f9 100644 --- a/tools/clang/lib/Basic/Warnings.cpp +++ b/tools/clang/lib/Basic/Warnings.cpp @@ -1,24 +1,27 @@ //===--- Warnings.cpp - C-Language Front-end ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Warnings.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Command line warning options handler. // -// // -// This file is responsible for handling all warning options. This includes // -// a number of -Wfoo options and their variants, which are driven by TableGen-// -// generated data, and the special cases -pedantic, -pedantic-errors, -w, // -// -Werror and -Wfatal-errors. // -// // -// Each warning option controls any number of actual warnings. // -// Given a warning option 'foo', the following are valid: // -// -Wfoo, -Wno-foo, -Werror=foo, -Wfatal-errors=foo // -// // -// Remark options are also handled here, analogously, except that they are much// -// simpler because a remark can't be promoted to an error. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Command line warning options handler. +// +//===----------------------------------------------------------------------===// +// +// This file is responsible for handling all warning options. This includes +// a number of -Wfoo options and their variants, which are driven by TableGen- +// generated data, and the special cases -pedantic, -pedantic-errors, -w, +// -Werror and -Wfatal-errors. +// +// Each warning option controls any number of actual warnings. +// Given a warning option 'foo', the following are valid: +// -Wfoo, -Wno-foo, -Werror=foo, -Wfatal-errors=foo +// +// Remark options are also handled here, analogously, except that they are much +// simpler because a remark can't be promoted to an error. #include "clang/Basic/AllDiagnostics.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/CMakeLists.txt b/tools/clang/lib/CMakeLists.txt index 9afd6e06ca..8fdf280b6c 100644 --- a/tools/clang/lib/CMakeLists.txt +++ b/tools/clang/lib/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(Headers) add_subdirectory(Basic) add_subdirectory(Lex) diff --git a/tools/clang/lib/CodeGen/ABIInfo.h b/tools/clang/lib/CodeGen/ABIInfo.h index e4af0e882c..cc8652e169 100644 --- a/tools/clang/lib/CodeGen/ABIInfo.h +++ b/tools/clang/lib/CodeGen/ABIInfo.h @@ -1,12 +1,11 @@ //===----- ABIInfo.h - ABI information access & encapsulation ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ABIInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_ABIINFO_H #define LLVM_CLANG_LIB_CODEGEN_ABIINFO_H diff --git a/tools/clang/lib/CodeGen/BackendUtil.cpp b/tools/clang/lib/CodeGen/BackendUtil.cpp index 11213f42c6..f661999ed9 100644 --- a/tools/clang/lib/CodeGen/BackendUtil.cpp +++ b/tools/clang/lib/CodeGen/BackendUtil.cpp @@ -1,12 +1,11 @@ //===--- BackendUtil.cpp - LLVM Backend Utilities -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BackendUtil.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/CodeGen/BackendUtil.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/CodeGen/CGAtomic.cpp b/tools/clang/lib/CodeGen/CGAtomic.cpp index 8e6cb474bd..9839617c0e 100644 --- a/tools/clang/lib/CodeGen/CGAtomic.cpp +++ b/tools/clang/lib/CodeGen/CGAtomic.cpp @@ -1,14 +1,15 @@ //===--- CGAtomic.cpp - Emit LLVM IR for atomic operations ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGAtomic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the code for emitting atomic operations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the code for emitting atomic operations. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCall.h" diff --git a/tools/clang/lib/CodeGen/CGBlocks.cpp b/tools/clang/lib/CodeGen/CGBlocks.cpp index bd8ac4e3e5..3fd344c389 100644 --- a/tools/clang/lib/CodeGen/CGBlocks.cpp +++ b/tools/clang/lib/CodeGen/CGBlocks.cpp @@ -1,14 +1,15 @@ //===--- CGBlocks.cpp - Emit LLVM Code for declarations -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGBlocks.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit blocks. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit blocks. +// +//===----------------------------------------------------------------------===// #include "CGBlocks.h" #include "CGDebugInfo.h" diff --git a/tools/clang/lib/CodeGen/CGBlocks.h b/tools/clang/lib/CodeGen/CGBlocks.h index 28118ece57..c4eed0d0e8 100644 --- a/tools/clang/lib/CodeGen/CGBlocks.h +++ b/tools/clang/lib/CodeGen/CGBlocks.h @@ -1,14 +1,15 @@ //===-- CGBlocks.h - state for LLVM CodeGen for blocks ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGBlocks.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the internal state used for llvm translation for block literals. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the internal state used for llvm translation for block literals. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGBLOCKS_H #define LLVM_CLANG_LIB_CODEGEN_CGBLOCKS_H diff --git a/tools/clang/lib/CodeGen/CGBuilder.h b/tools/clang/lib/CodeGen/CGBuilder.h index 659ba3cbbb..6610659131 100644 --- a/tools/clang/lib/CodeGen/CGBuilder.h +++ b/tools/clang/lib/CodeGen/CGBuilder.h @@ -1,12 +1,11 @@ //===-- CGBuilder.h - Choose IRBuilder implementation ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGBUILDER_H #define LLVM_CLANG_LIB_CODEGEN_CGBUILDER_H diff --git a/tools/clang/lib/CodeGen/CGBuiltin.cpp b/tools/clang/lib/CodeGen/CGBuiltin.cpp index b7aa7d85d1..a601590234 100644 --- a/tools/clang/lib/CodeGen/CGBuiltin.cpp +++ b/tools/clang/lib/CodeGen/CGBuiltin.cpp @@ -1,14 +1,15 @@ //===---- CGBuiltin.cpp - Emit LLVM Code for builtins ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGBuiltin.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Builtin calls as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Builtin calls as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGCUDANV.cpp b/tools/clang/lib/CodeGen/CGCUDANV.cpp index 66a922cfea..67d0ab7a82 100644 --- a/tools/clang/lib/CodeGen/CGCUDANV.cpp +++ b/tools/clang/lib/CodeGen/CGCUDANV.cpp @@ -1,15 +1,16 @@ //===----- CGCUDANV.cpp - Interface to NVIDIA CUDA Runtime ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCUDANV.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides a class for CUDA code generation targeting the NVIDIA CUDA // -// runtime library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides a class for CUDA code generation targeting the NVIDIA CUDA +// runtime library. +// +//===----------------------------------------------------------------------===// #include "CGCUDARuntime.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CGCUDARuntime.cpp b/tools/clang/lib/CodeGen/CGCUDARuntime.cpp index b4aa70b194..014a5dbd46 100644 --- a/tools/clang/lib/CodeGen/CGCUDARuntime.cpp +++ b/tools/clang/lib/CodeGen/CGCUDARuntime.cpp @@ -1,16 +1,17 @@ //===----- CGCUDARuntime.cpp - Interface to CUDA Runtimes -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCUDARuntime.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for CUDA code generation. Concrete // -// subclasses of this implement code generation for specific CUDA // -// runtime libraries. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for CUDA code generation. Concrete +// subclasses of this implement code generation for specific CUDA +// runtime libraries. +// +//===----------------------------------------------------------------------===// #include "CGCUDARuntime.h" #include "CGCall.h" diff --git a/tools/clang/lib/CodeGen/CGCUDARuntime.h b/tools/clang/lib/CodeGen/CGCUDARuntime.h index 9341699fa7..dcacf97032 100644 --- a/tools/clang/lib/CodeGen/CGCUDARuntime.h +++ b/tools/clang/lib/CodeGen/CGCUDARuntime.h @@ -1,16 +1,17 @@ //===----- CGCUDARuntime.h - Interface to CUDA Runtimes ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCUDARuntime.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for CUDA code generation. Concrete // -// subclasses of this implement code generation for specific CUDA // -// runtime libraries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for CUDA code generation. Concrete +// subclasses of this implement code generation for specific CUDA +// runtime libraries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGCUDARUNTIME_H #define LLVM_CLANG_LIB_CODEGEN_CGCUDARUNTIME_H diff --git a/tools/clang/lib/CodeGen/CGCXX.cpp b/tools/clang/lib/CodeGen/CGCXX.cpp index fc412e3c7c..8c55d59ecb 100644 --- a/tools/clang/lib/CodeGen/CGCXX.cpp +++ b/tools/clang/lib/CodeGen/CGCXX.cpp @@ -1,15 +1,15 @@ //===--- CGCXX.cpp - Emit LLVM Code for declarations ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with C++ code generation. // -// // -/////////////////////////////////////////////////////////////////////////////// -// We might split this into multiple files if it gets too unwieldy // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with C++ code generation. +// +//===----------------------------------------------------------------------===// #include "CodeGenModule.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGCXXABI.cpp b/tools/clang/lib/CodeGen/CGCXXABI.cpp index a1aa88b8cb..c1e59d40c1 100644 --- a/tools/clang/lib/CodeGen/CGCXXABI.cpp +++ b/tools/clang/lib/CodeGen/CGCXXABI.cpp @@ -1,15 +1,16 @@ //===----- CGCXXABI.cpp - Interface to C++ ABIs ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCXXABI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for C++ code generation. Concrete subclasses// -// of this implement code generation for specific C++ ABIs. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for C++ code generation. Concrete subclasses +// of this implement code generation for specific C++ ABIs. +// +//===----------------------------------------------------------------------===// #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGCXXABI.h b/tools/clang/lib/CodeGen/CGCXXABI.h index e2bbdbc6f4..436b96a615 100644 --- a/tools/clang/lib/CodeGen/CGCXXABI.h +++ b/tools/clang/lib/CodeGen/CGCXXABI.h @@ -1,15 +1,16 @@ //===----- CGCXXABI.h - Interface to C++ ABIs -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCXXABI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for C++ code generation. Concrete subclasses// -// of this implement code generation for specific C++ ABIs. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for C++ code generation. Concrete subclasses +// of this implement code generation for specific C++ ABIs. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGCXXABI_H #define LLVM_CLANG_LIB_CODEGEN_CGCXXABI_H diff --git a/tools/clang/lib/CodeGen/CGCall.cpp b/tools/clang/lib/CodeGen/CGCall.cpp index 44a1f1a631..cf4375c204 100644 --- a/tools/clang/lib/CodeGen/CGCall.cpp +++ b/tools/clang/lib/CodeGen/CGCall.cpp @@ -1,15 +1,16 @@ //===--- CGCall.cpp - Encapsulate calling convention details --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCall.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes wrap the information about a call or function // -// definition used to handle ABI compliancy. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes wrap the information about a call or function +// definition used to handle ABI compliancy. +// +//===----------------------------------------------------------------------===// #include "CGCall.h" #include "ABIInfo.h" diff --git a/tools/clang/lib/CodeGen/CGCall.h b/tools/clang/lib/CodeGen/CGCall.h index a01b8329b6..4524087358 100644 --- a/tools/clang/lib/CodeGen/CGCall.h +++ b/tools/clang/lib/CodeGen/CGCall.h @@ -1,15 +1,16 @@ //===----- CGCall.h - Encapsulate calling convention details ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCall.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes wrap the information about a call or function // -// definition used to handle ABI compliancy. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes wrap the information about a call or function +// definition used to handle ABI compliancy. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGCALL_H #define LLVM_CLANG_LIB_CODEGEN_CGCALL_H diff --git a/tools/clang/lib/CodeGen/CGClass.cpp b/tools/clang/lib/CodeGen/CGClass.cpp index c43dafb280..13da3cdb84 100644 --- a/tools/clang/lib/CodeGen/CGClass.cpp +++ b/tools/clang/lib/CodeGen/CGClass.cpp @@ -1,14 +1,15 @@ //===--- CGClass.cpp - Emit LLVM Code for C++ classes ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGClass.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with C++ code generation of classes // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with C++ code generation of classes +// +//===----------------------------------------------------------------------===// #include "CGBlocks.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGCleanup.cpp b/tools/clang/lib/CodeGen/CGCleanup.cpp index 2078f5a84d..18f06f0331 100644 --- a/tools/clang/lib/CodeGen/CGCleanup.cpp +++ b/tools/clang/lib/CodeGen/CGCleanup.cpp @@ -1,20 +1,21 @@ //===--- CGCleanup.cpp - Bookkeeping and code emission for cleanups -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCleanup.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains code dealing with the IR generation for cleanups // -// and related information. // -// // -// A "cleanup" is a piece of code which needs to be executed whenever // -// control transfers out of a particular scope. This can be // -// conditionalized to occur only on exceptional control flow, only on // -// normal control flow, or both. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains code dealing with the IR generation for cleanups +// and related information. +// +// A "cleanup" is a piece of code which needs to be executed whenever +// control transfers out of a particular scope. This can be +// conditionalized to occur only on exceptional control flow, only on +// normal control flow, or both. +// +//===----------------------------------------------------------------------===// #include "CGCleanup.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CGCleanup.h b/tools/clang/lib/CodeGen/CGCleanup.h index af176905d4..81c64123df 100644 --- a/tools/clang/lib/CodeGen/CGCleanup.h +++ b/tools/clang/lib/CodeGen/CGCleanup.h @@ -1,14 +1,15 @@ //===-- CGCleanup.h - Classes for cleanups IR generation --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGCleanup.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes support the generation of LLVM IR for cleanups. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes support the generation of LLVM IR for cleanups. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGCLEANUP_H #define LLVM_CLANG_LIB_CODEGEN_CGCLEANUP_H diff --git a/tools/clang/lib/CodeGen/CGDebugInfo.cpp b/tools/clang/lib/CodeGen/CGDebugInfo.cpp index ecf4a0868a..2bfb39d03a 100644 --- a/tools/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/tools/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1,14 +1,15 @@ //===--- CGDebugInfo.cpp - Emit Debug Information for a Module ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGDebugInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This coordinates the debug information generation while generating code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This coordinates the debug information generation while generating code. +// +//===----------------------------------------------------------------------===// #include "CGDebugInfo.h" #include "CGBlocks.h" diff --git a/tools/clang/lib/CodeGen/CGDebugInfo.h b/tools/clang/lib/CodeGen/CGDebugInfo.h index 1f8dff077b..82680a84d3 100644 --- a/tools/clang/lib/CodeGen/CGDebugInfo.h +++ b/tools/clang/lib/CodeGen/CGDebugInfo.h @@ -1,14 +1,15 @@ //===--- CGDebugInfo.h - DebugInfo for LLVM CodeGen -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGDebugInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the source-level debug info generator for llvm translation. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the source-level debug info generator for llvm translation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGDEBUGINFO_H #define LLVM_CLANG_LIB_CODEGEN_CGDEBUGINFO_H diff --git a/tools/clang/lib/CodeGen/CGDecl.cpp b/tools/clang/lib/CodeGen/CGDecl.cpp index b4a42fc78d..89d464a55e 100644 --- a/tools/clang/lib/CodeGen/CGDecl.cpp +++ b/tools/clang/lib/CodeGen/CGDecl.cpp @@ -1,14 +1,15 @@ //===--- CGDecl.cpp - Emit LLVM Code for declarations ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Decl nodes as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Decl nodes as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCleanup.h" diff --git a/tools/clang/lib/CodeGen/CGDeclCXX.cpp b/tools/clang/lib/CodeGen/CGDeclCXX.cpp index 0f0a10fbc4..4922e93ac5 100644 --- a/tools/clang/lib/CodeGen/CGDeclCXX.cpp +++ b/tools/clang/lib/CodeGen/CGDeclCXX.cpp @@ -1,14 +1,15 @@ //===--- CGDeclCXX.cpp - Emit LLVM Code for C++ declarations --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGDeclCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with code generation of C++ declarations // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with code generation of C++ declarations +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGException.cpp b/tools/clang/lib/CodeGen/CGException.cpp index 10a8f28c7d..d7001dfc0a 100644 --- a/tools/clang/lib/CodeGen/CGException.cpp +++ b/tools/clang/lib/CodeGen/CGException.cpp @@ -1,14 +1,15 @@ //===--- CGException.cpp - Emit LLVM Code for C++ exceptions --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGException.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with C++ exception related code generation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with C++ exception related code generation. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGExpr.cpp b/tools/clang/lib/CodeGen/CGExpr.cpp index ba7ab5adbf..a7bcdb944b 100644 --- a/tools/clang/lib/CodeGen/CGExpr.cpp +++ b/tools/clang/lib/CodeGen/CGExpr.cpp @@ -1,14 +1,15 @@ //===--- CGExpr.cpp - Emit LLVM Code from Expressions ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGExpr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Expr nodes as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Expr nodes as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGExprAgg.cpp b/tools/clang/lib/CodeGen/CGExprAgg.cpp index da351a7ab9..23ca9648f4 100644 --- a/tools/clang/lib/CodeGen/CGExprAgg.cpp +++ b/tools/clang/lib/CodeGen/CGExprAgg.cpp @@ -1,14 +1,15 @@ //===--- CGExprAgg.cpp - Emit LLVM Code from Aggregate Expressions --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGExprAgg.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Aggregate Expr nodes as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Aggregate Expr nodes as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGObjCRuntime.h" diff --git a/tools/clang/lib/CodeGen/CGExprCXX.cpp b/tools/clang/lib/CodeGen/CGExprCXX.cpp index d553f3d81b..5c01582109 100644 --- a/tools/clang/lib/CodeGen/CGExprCXX.cpp +++ b/tools/clang/lib/CodeGen/CGExprCXX.cpp @@ -1,14 +1,15 @@ //===--- CGExprCXX.cpp - Emit LLVM Code for C++ expressions ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGExprCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with code generation of C++ expressions // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with code generation of C++ expressions +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCUDARuntime.h" diff --git a/tools/clang/lib/CodeGen/CGExprComplex.cpp b/tools/clang/lib/CodeGen/CGExprComplex.cpp index ce2da7b49d..27d1c68996 100644 --- a/tools/clang/lib/CodeGen/CGExprComplex.cpp +++ b/tools/clang/lib/CodeGen/CGExprComplex.cpp @@ -1,14 +1,15 @@ //===--- CGExprComplex.cpp - Emit LLVM Code for Complex Exprs -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGExprComplex.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Expr nodes with complex types as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Expr nodes with complex types as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CodeGenModule.h" diff --git a/tools/clang/lib/CodeGen/CGExprConstant.cpp b/tools/clang/lib/CodeGen/CGExprConstant.cpp index 9d11bdafed..4689917880 100644 --- a/tools/clang/lib/CodeGen/CGExprConstant.cpp +++ b/tools/clang/lib/CodeGen/CGExprConstant.cpp @@ -1,14 +1,15 @@ //===--- CGExprConstant.cpp - Emit LLVM Code from Constant Expressions ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGExprConstant.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Constant Expr nodes as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Constant Expr nodes as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGExprScalar.cpp b/tools/clang/lib/CodeGen/CGExprScalar.cpp index 1f7f3ea3e7..1d98d769b0 100644 --- a/tools/clang/lib/CodeGen/CGExprScalar.cpp +++ b/tools/clang/lib/CodeGen/CGExprScalar.cpp @@ -1,14 +1,15 @@ //===--- CGExprScalar.cpp - Emit LLVM Code for Scalar Exprs ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGExprScalar.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Expr nodes with scalar LLVM types as LLVM code.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Expr nodes with scalar LLVM types as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGLoopInfo.cpp b/tools/clang/lib/CodeGen/CGLoopInfo.cpp index 3cfb98191b..300cca72bb 100644 --- a/tools/clang/lib/CodeGen/CGLoopInfo.cpp +++ b/tools/clang/lib/CodeGen/CGLoopInfo.cpp @@ -1,12 +1,11 @@ //===---- CGLoopInfo.cpp - LLVM CodeGen for loop metadata -*- C++ -*-------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGLoopInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "CGLoopInfo.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/CodeGen/CGLoopInfo.h b/tools/clang/lib/CodeGen/CGLoopInfo.h index ce3e213424..ae0c782421 100644 --- a/tools/clang/lib/CodeGen/CGLoopInfo.h +++ b/tools/clang/lib/CodeGen/CGLoopInfo.h @@ -1,15 +1,16 @@ //===---- CGLoopInfo.h - LLVM CodeGen for loop metadata -*- C++ -*---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGLoopInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the internal state used for llvm translation for loop statement // -// metadata. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the internal state used for llvm translation for loop statement +// metadata. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGLOOPINFO_H #define LLVM_CLANG_LIB_CODEGEN_CGLOOPINFO_H diff --git a/tools/clang/lib/CodeGen/CGObjC.cpp b/tools/clang/lib/CodeGen/CGObjC.cpp index 03d98464f9..8478d162e1 100644 --- a/tools/clang/lib/CodeGen/CGObjC.cpp +++ b/tools/clang/lib/CodeGen/CGObjC.cpp @@ -1,14 +1,15 @@ //===---- CGBuiltin.cpp - Emit LLVM Code for builtins ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Objective-C code as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Objective-C code as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CGDebugInfo.h" #include "CGObjCRuntime.h" diff --git a/tools/clang/lib/CodeGen/CGObjCGNU.cpp b/tools/clang/lib/CodeGen/CGObjCGNU.cpp index d0bb7b65aa..ebf4aa394c 100644 --- a/tools/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/tools/clang/lib/CodeGen/CGObjCGNU.cpp @@ -1,17 +1,18 @@ //===------- CGObjCGNU.cpp - Emit LLVM Code from ASTs for a Module --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGObjCGNU.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides Objective-C code generation targeting the GNU runtime. The // -// class in this file generates structures used by the GNU Objective-C runtime// -// library. These structures are defined in objc/objc.h and objc/objc-api.h in// -// the GNU runtime distribution. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides Objective-C code generation targeting the GNU runtime. The +// class in this file generates structures used by the GNU Objective-C runtime +// library. These structures are defined in objc/objc.h and objc/objc-api.h in +// the GNU runtime distribution. +// +//===----------------------------------------------------------------------===// #include "CGObjCRuntime.h" #include "CGCleanup.h" diff --git a/tools/clang/lib/CodeGen/CGObjCMac.cpp b/tools/clang/lib/CodeGen/CGObjCMac.cpp index 50f02ac345..186ba3e2d5 100644 --- a/tools/clang/lib/CodeGen/CGObjCMac.cpp +++ b/tools/clang/lib/CodeGen/CGObjCMac.cpp @@ -1,14 +1,15 @@ //===------- CGObjCMac.cpp - Interface to Apple Objective-C Runtime -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGObjCMac.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides Objective-C code generation targeting the Apple runtime. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides Objective-C code generation targeting the Apple runtime. +// +//===----------------------------------------------------------------------===// #include "CGObjCRuntime.h" #include "CGBlocks.h" diff --git a/tools/clang/lib/CodeGen/CGObjCRuntime.cpp b/tools/clang/lib/CodeGen/CGObjCRuntime.cpp index e05f5fe16d..91346dc47e 100644 --- a/tools/clang/lib/CodeGen/CGObjCRuntime.cpp +++ b/tools/clang/lib/CodeGen/CGObjCRuntime.cpp @@ -1,16 +1,17 @@ //==- CGObjCRuntime.cpp - Interface to Shared Objective-C Runtime Features ==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGObjCRuntime.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This abstract class defines the interface for Objective-C runtime-specific// -// code generation. It provides some concrete helper methods for functionality// -// shared between all (or most) of the Objective-C runtimes supported by clang.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This abstract class defines the interface for Objective-C runtime-specific +// code generation. It provides some concrete helper methods for functionality +// shared between all (or most) of the Objective-C runtimes supported by clang. +// +//===----------------------------------------------------------------------===// #include "CGObjCRuntime.h" #include "CGCleanup.h" diff --git a/tools/clang/lib/CodeGen/CGObjCRuntime.h b/tools/clang/lib/CodeGen/CGObjCRuntime.h index 3e79679845..4752546498 100644 --- a/tools/clang/lib/CodeGen/CGObjCRuntime.h +++ b/tools/clang/lib/CodeGen/CGObjCRuntime.h @@ -1,16 +1,17 @@ //===----- CGObjCRuntime.h - Interface to ObjC Runtimes ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGObjCRuntime.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for Objective-C code generation. Concrete// -// subclasses of this implement code generation for specific Objective-C // -// runtime libraries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for Objective-C code generation. Concrete +// subclasses of this implement code generation for specific Objective-C +// runtime libraries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGOBJCRUNTIME_H #define LLVM_CLANG_LIB_CODEGEN_CGOBJCRUNTIME_H diff --git a/tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp b/tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp index 462873ebf4..ab8d4376af 100644 --- a/tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp +++ b/tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp @@ -1,16 +1,17 @@ //===----- CGOpenCLRuntime.cpp - Interface to OpenCL Runtimes -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGOpenCLRuntime.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for OpenCL code generation. Concrete // -// subclasses of this implement code generation for specific OpenCL // -// runtime libraries. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for OpenCL code generation. Concrete +// subclasses of this implement code generation for specific OpenCL +// runtime libraries. +// +//===----------------------------------------------------------------------===// #include "CGOpenCLRuntime.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CGOpenCLRuntime.h b/tools/clang/lib/CodeGen/CGOpenCLRuntime.h index 6f97fa6963..0c50b92914 100644 --- a/tools/clang/lib/CodeGen/CGOpenCLRuntime.h +++ b/tools/clang/lib/CodeGen/CGOpenCLRuntime.h @@ -1,16 +1,17 @@ //===----- CGOpenCLRuntime.h - Interface to OpenCL Runtimes -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGOpenCLRuntime.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides an abstract class for OpenCL code generation. Concrete // -// subclasses of this implement code generation for specific OpenCL // -// runtime libraries. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for OpenCL code generation. Concrete +// subclasses of this implement code generation for specific OpenCL +// runtime libraries. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H #define LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H diff --git a/tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp index 0842efdc49..f42df6613e 100644 --- a/tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -1,14 +1,15 @@ //===----- CGOpenMPRuntime.cpp - Interface to OpenMP Runtimes -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGOpenMPRuntime.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides a class for OpenMP runtime code generation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides a class for OpenMP runtime code generation. +// +//===----------------------------------------------------------------------===// #include "CGOpenMPRuntime.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CGOpenMPRuntime.h b/tools/clang/lib/CodeGen/CGOpenMPRuntime.h index ee4249beb6..44bc8a139b 100644 --- a/tools/clang/lib/CodeGen/CGOpenMPRuntime.h +++ b/tools/clang/lib/CodeGen/CGOpenMPRuntime.h @@ -1,14 +1,15 @@ //===----- CGOpenMPRuntime.h - Interface to OpenMP Runtimes -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGOpenMPRuntime.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides a class for OpenMP runtime code generation. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides a class for OpenMP runtime code generation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIME_H #define LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIME_H diff --git a/tools/clang/lib/CodeGen/CGRecordLayout.h b/tools/clang/lib/CodeGen/CGRecordLayout.h index 40df04003a..d4ad33e334 100644 --- a/tools/clang/lib/CodeGen/CGRecordLayout.h +++ b/tools/clang/lib/CodeGen/CGRecordLayout.h @@ -1,12 +1,11 @@ //===--- CGRecordLayout.h - LLVM Record Layout Information ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGRecordLayout.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGRECORDLAYOUT_H #define LLVM_CLANG_LIB_CODEGEN_CGRECORDLAYOUT_H diff --git a/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp b/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp index 335afafa76..f91ecebd09 100644 --- a/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp +++ b/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp @@ -1,14 +1,15 @@ //===--- CGRecordLayoutBuilder.cpp - CGRecordLayout builder ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGRecordLayoutBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Builder implementation for CGRecordLayout objects. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Builder implementation for CGRecordLayout objects. +// +//===----------------------------------------------------------------------===// #include "CGRecordLayout.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGStmt.cpp b/tools/clang/lib/CodeGen/CGStmt.cpp index eb63fc1835..362e89d070 100644 --- a/tools/clang/lib/CodeGen/CGStmt.cpp +++ b/tools/clang/lib/CodeGen/CGStmt.cpp @@ -1,14 +1,15 @@ //===--- CGStmt.cpp - Emit LLVM Code from Statements ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGStmt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit Stmt nodes as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit Stmt nodes as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGDebugInfo.h" diff --git a/tools/clang/lib/CodeGen/CGStmtOpenMP.cpp b/tools/clang/lib/CodeGen/CGStmtOpenMP.cpp index 39d9a92c61..e5f507aa41 100644 --- a/tools/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/tools/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -1,14 +1,15 @@ //===--- CGStmtOpenMP.cpp - Emit LLVM Code from Statements ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGStmtOpenMP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code to emit OpenMP nodes as LLVM code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code to emit OpenMP nodes as LLVM code. +// +//===----------------------------------------------------------------------===// #include "CGOpenMPRuntime.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CGVTT.cpp b/tools/clang/lib/CodeGen/CGVTT.cpp index d1c1bdd31e..e3df5a4c05 100644 --- a/tools/clang/lib/CodeGen/CGVTT.cpp +++ b/tools/clang/lib/CodeGen/CGVTT.cpp @@ -1,14 +1,15 @@ //===--- CGVTT.cpp - Emit LLVM Code for C++ VTTs --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGVTT.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with C++ code generation of VTTs (vtable tables).// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with C++ code generation of VTTs (vtable tables). +// +//===----------------------------------------------------------------------===// #include "CodeGenModule.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGVTables.cpp b/tools/clang/lib/CodeGen/CGVTables.cpp index 62ca0f0062..1b7f1d7604 100644 --- a/tools/clang/lib/CodeGen/CGVTables.cpp +++ b/tools/clang/lib/CodeGen/CGVTables.cpp @@ -1,14 +1,15 @@ //===--- CGVTables.cpp - Emit LLVM Code for C++ vtables -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGVTables.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with C++ code generation of virtual tables. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with C++ code generation of virtual tables. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CGVTables.h b/tools/clang/lib/CodeGen/CGVTables.h index 73d9722352..e0195a22eb 100644 --- a/tools/clang/lib/CodeGen/CGVTables.h +++ b/tools/clang/lib/CodeGen/CGVTables.h @@ -1,14 +1,15 @@ //===--- CGVTables.h - Emit LLVM Code for C++ vtables -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGVTables.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This contains code dealing with C++ code generation of virtual tables. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This contains code dealing with C++ code generation of virtual tables. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGVTABLES_H #define LLVM_CLANG_LIB_CODEGEN_CGVTABLES_H diff --git a/tools/clang/lib/CodeGen/CGValue.h b/tools/clang/lib/CodeGen/CGValue.h index d0aa05d321..c47a8dc15f 100644 --- a/tools/clang/lib/CodeGen/CGValue.h +++ b/tools/clang/lib/CodeGen/CGValue.h @@ -1,15 +1,16 @@ //===-- CGValue.h - LLVM CodeGen wrappers for llvm::Value* ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CGValue.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes implement wrappers around llvm::Value in order to // -// fully represent the range of values for C L- and R- values. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes implement wrappers around llvm::Value in order to +// fully represent the range of values for C L- and R- values. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CGVALUE_H #define LLVM_CLANG_LIB_CODEGEN_CGVALUE_H diff --git a/tools/clang/lib/CodeGen/CMakeLists.txt b/tools/clang/lib/CodeGen/CMakeLists.txt index 5f33d57f59..52de0de78b 100644 --- a/tools/clang/lib/CodeGen/CMakeLists.txt +++ b/tools/clang/lib/CodeGen/CMakeLists.txt @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. -# HLSL Change - add ignored sources set(HLSL_IGNORE_SOURCES CGObjCGNU.cpp CGObjCMac.cpp CGObjCRuntime.cpp CGOpenCLRuntime.cpp CGOpenMPRuntime.cpp) set(LLVM_LINK_COMPONENTS diff --git a/tools/clang/lib/CodeGen/CodeGenABITypes.cpp b/tools/clang/lib/CodeGen/CodeGenABITypes.cpp index e26b10ba42..755e8aa628 100644 --- a/tools/clang/lib/CodeGen/CodeGenABITypes.cpp +++ b/tools/clang/lib/CodeGen/CodeGenABITypes.cpp @@ -1,19 +1,20 @@ //==--- CodeGenABITypes.cpp - Convert Clang types to LLVM types for ABI ----==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenABITypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// CodeGenABITypes is a simple interface for getting LLVM types for // -// the parameters and the return value of a function given the Clang // -// types. // -// // -// The class is implemented as a public wrapper around the private // -// CodeGenTypes class in lib/CodeGen. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// CodeGenABITypes is a simple interface for getting LLVM types for +// the parameters and the return value of a function given the Clang +// types. +// +// The class is implemented as a public wrapper around the private +// CodeGenTypes class in lib/CodeGen. +// +//===----------------------------------------------------------------------===// #include "clang/CodeGen/CodeGenABITypes.h" #include "CodeGenModule.h" diff --git a/tools/clang/lib/CodeGen/CodeGenAction.cpp b/tools/clang/lib/CodeGen/CodeGenAction.cpp index 7b1a7151b8..98a060f44f 100644 --- a/tools/clang/lib/CodeGen/CodeGenAction.cpp +++ b/tools/clang/lib/CodeGen/CodeGenAction.cpp @@ -1,12 +1,11 @@ //===--- CodeGenAction.cpp - LLVM Code Generation Frontend Action ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenAction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "CoverageMappingGen.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/CodeGen/CodeGenFunction.cpp b/tools/clang/lib/CodeGen/CodeGenFunction.cpp index c433b87e9a..5989f61608 100644 --- a/tools/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/tools/clang/lib/CodeGen/CodeGenFunction.cpp @@ -1,14 +1,15 @@ //===--- CodeGenFunction.cpp - Emit LLVM Code from ASTs for a Function ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenFunction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This coordinates the per-function state used while generating code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This coordinates the per-function state used while generating code. +// +//===----------------------------------------------------------------------===// #include "CodeGenFunction.h" #include "CGCleanup.h" diff --git a/tools/clang/lib/CodeGen/CodeGenFunction.h b/tools/clang/lib/CodeGen/CodeGenFunction.h index d9f0184ffc..c9fb305b6d 100644 --- a/tools/clang/lib/CodeGen/CodeGenFunction.h +++ b/tools/clang/lib/CodeGen/CodeGenFunction.h @@ -1,14 +1,15 @@ //===-- CodeGenFunction.h - Per-Function state for LLVM CodeGen -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenFunction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the internal per-function state used for llvm translation. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the internal per-function state used for llvm translation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CODEGENFUNCTION_H #define LLVM_CLANG_LIB_CODEGEN_CODEGENFUNCTION_H diff --git a/tools/clang/lib/CodeGen/CodeGenModule.cpp b/tools/clang/lib/CodeGen/CodeGenModule.cpp index bbb15c95f8..bc147699ba 100644 --- a/tools/clang/lib/CodeGen/CodeGenModule.cpp +++ b/tools/clang/lib/CodeGen/CodeGenModule.cpp @@ -1,14 +1,15 @@ //===--- CodeGenModule.cpp - Emit LLVM Code from ASTs for a Module --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenModule.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This coordinates the per-module state used while generating code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This coordinates the per-module state used while generating code. +// +//===----------------------------------------------------------------------===// #include "CodeGenModule.h" #include "CGCUDARuntime.h" diff --git a/tools/clang/lib/CodeGen/CodeGenModule.h b/tools/clang/lib/CodeGen/CodeGenModule.h index 2a6068e73f..eb0886f1b0 100644 --- a/tools/clang/lib/CodeGen/CodeGenModule.h +++ b/tools/clang/lib/CodeGen/CodeGenModule.h @@ -1,14 +1,15 @@ //===--- CodeGenModule.h - Per-Module state for LLVM CodeGen ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenModule.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the internal per-translation-unit state used for llvm translation.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the internal per-translation-unit state used for llvm translation. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CODEGENMODULE_H #define LLVM_CLANG_LIB_CODEGEN_CODEGENMODULE_H diff --git a/tools/clang/lib/CodeGen/CodeGenPGO.cpp b/tools/clang/lib/CodeGen/CodeGenPGO.cpp index 556a7d5872..8dffefc871 100644 --- a/tools/clang/lib/CodeGen/CodeGenPGO.cpp +++ b/tools/clang/lib/CodeGen/CodeGenPGO.cpp @@ -1,14 +1,15 @@ //===--- CodeGenPGO.cpp - PGO Instrumentation for LLVM CodeGen --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenPGO.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Instrumentation-based profile-guided optimization // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Instrumentation-based profile-guided optimization +// +//===----------------------------------------------------------------------===// #include "CodeGenPGO.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CodeGenPGO.h b/tools/clang/lib/CodeGen/CodeGenPGO.h index f557514a81..de6f369fb3 100644 --- a/tools/clang/lib/CodeGen/CodeGenPGO.h +++ b/tools/clang/lib/CodeGen/CodeGenPGO.h @@ -1,14 +1,15 @@ //===--- CodeGenPGO.h - PGO Instrumentation for LLVM CodeGen ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenPGO.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Instrumentation-based profile-guided optimization // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Instrumentation-based profile-guided optimization +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CODEGENPGO_H #define LLVM_CLANG_LIB_CODEGEN_CODEGENPGO_H diff --git a/tools/clang/lib/CodeGen/CodeGenTBAA.cpp b/tools/clang/lib/CodeGen/CodeGenTBAA.cpp index 10378b68f1..53ba02a813 100644 --- a/tools/clang/lib/CodeGen/CodeGenTBAA.cpp +++ b/tools/clang/lib/CodeGen/CodeGenTBAA.cpp @@ -1,18 +1,19 @@ //===--- CodeGenTypes.cpp - TBAA information for LLVM CodeGen -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenTBAA.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the code that manages TBAA information and defines the TBAA policy// -// for the optimizer to use. Relevant standards text includes: // -// // -// C99 6.5p7 // -// C++ [basic.lval] (p10 in n3126, p15 in some earlier versions) // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the code that manages TBAA information and defines the TBAA policy +// for the optimizer to use. Relevant standards text includes: +// +// C99 6.5p7 +// C++ [basic.lval] (p10 in n3126, p15 in some earlier versions) +// +//===----------------------------------------------------------------------===// #include "CodeGenTBAA.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/CodeGen/CodeGenTBAA.h b/tools/clang/lib/CodeGen/CodeGenTBAA.h index 75209f226c..632caddce9 100644 --- a/tools/clang/lib/CodeGen/CodeGenTBAA.h +++ b/tools/clang/lib/CodeGen/CodeGenTBAA.h @@ -1,15 +1,16 @@ //===--- CodeGenTBAA.h - TBAA information for LLVM CodeGen ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenTBAA.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the code that manages TBAA information and defines the TBAA policy// -// for the optimizer to use. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the code that manages TBAA information and defines the TBAA policy +// for the optimizer to use. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CODEGENTBAA_H #define LLVM_CLANG_LIB_CODEGEN_CODEGENTBAA_H diff --git a/tools/clang/lib/CodeGen/CodeGenTypes.cpp b/tools/clang/lib/CodeGen/CodeGenTypes.cpp index 6a8eafde11..f7a18e5939 100644 --- a/tools/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/tools/clang/lib/CodeGen/CodeGenTypes.cpp @@ -1,14 +1,15 @@ //===--- CodeGenTypes.cpp - Type translation for LLVM CodeGen -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenTypes.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the code that handles AST -> LLVM type lowering. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the code that handles AST -> LLVM type lowering. +// +//===----------------------------------------------------------------------===// #include "CodeGenTypes.h" #include "CGCXXABI.h" diff --git a/tools/clang/lib/CodeGen/CodeGenTypes.h b/tools/clang/lib/CodeGen/CodeGenTypes.h index 6bb1e128aa..1580e21d11 100644 --- a/tools/clang/lib/CodeGen/CodeGenTypes.h +++ b/tools/clang/lib/CodeGen/CodeGenTypes.h @@ -1,14 +1,15 @@ //===--- CodeGenTypes.h - Type translation for LLVM CodeGen -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenTypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the code that handles AST -> LLVM type lowering. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the code that handles AST -> LLVM type lowering. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_CODEGENTYPES_H #define LLVM_CLANG_LIB_CODEGEN_CODEGENTYPES_H diff --git a/tools/clang/lib/CodeGen/CoverageMappingGen.cpp b/tools/clang/lib/CodeGen/CoverageMappingGen.cpp index c37e5f4393..eca91590e6 100644 --- a/tools/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/tools/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -1,14 +1,15 @@ //===--- CoverageMappingGen.cpp - Coverage mapping generation ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Instrumentation-based code coverage mapping generator // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Instrumentation-based code coverage mapping generator +// +//===----------------------------------------------------------------------===// #include "CoverageMappingGen.h" #include "CodeGenFunction.h" diff --git a/tools/clang/lib/CodeGen/CoverageMappingGen.h b/tools/clang/lib/CodeGen/CoverageMappingGen.h index 7459dc3f82..0d1bf6d975 100644 --- a/tools/clang/lib/CodeGen/CoverageMappingGen.h +++ b/tools/clang/lib/CodeGen/CoverageMappingGen.h @@ -1,14 +1,15 @@ //===---- CoverageMappingGen.h - Coverage mapping generation ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingGen.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Instrumentation-based code coverage mapping generator // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Instrumentation-based code coverage mapping generator +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_COVERAGEMAPPINGGEN_H #define LLVM_CLANG_LIB_CODEGEN_COVERAGEMAPPINGGEN_H diff --git a/tools/clang/lib/CodeGen/EHScopeStack.h b/tools/clang/lib/CodeGen/EHScopeStack.h index c7b843ddc4..a7951888c8 100644 --- a/tools/clang/lib/CodeGen/EHScopeStack.h +++ b/tools/clang/lib/CodeGen/EHScopeStack.h @@ -1,16 +1,17 @@ //===-- EHScopeStack.h - Stack for cleanup IR generation --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EHScopeStack.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes should be the minimum interface required for other parts of // -// CodeGen to emit cleanups. The implementation is in CGCleanup.cpp and other// -// implemenentation details that are not widely needed are in CGCleanup.h. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes should be the minimum interface required for other parts of +// CodeGen to emit cleanups. The implementation is in CGCleanup.cpp and other +// implemenentation details that are not widely needed are in CGCleanup.h. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_EHSCOPESTACK_H #define LLVM_CLANG_LIB_CODEGEN_EHSCOPESTACK_H diff --git a/tools/clang/lib/CodeGen/ItaniumCXXABI.cpp b/tools/clang/lib/CodeGen/ItaniumCXXABI.cpp index 3d618c71af..ce67c19979 100644 --- a/tools/clang/lib/CodeGen/ItaniumCXXABI.cpp +++ b/tools/clang/lib/CodeGen/ItaniumCXXABI.cpp @@ -1,21 +1,22 @@ //===------- ItaniumCXXABI.cpp - Emit LLVM Code from ASTs for a Module ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ItaniumCXXABI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides C++ code generation targeting the Itanium C++ ABI. The class// -// in this file generates structures that follow the Itanium C++ ABI, which is// -// documented at: // -// http://www.codesourcery.com/public/cxx-abi/abi.html // -// http://www.codesourcery.com/public/cxx-abi/abi-eh.html // -// // -// It also supports the closely-related ARM ABI, documented at: // -// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041c/IHI0041C_cppabi.pdf// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides C++ code generation targeting the Itanium C++ ABI. The class +// in this file generates structures that follow the Itanium C++ ABI, which is +// documented at: +// http://www.codesourcery.com/public/cxx-abi/abi.html +// http://www.codesourcery.com/public/cxx-abi/abi-eh.html +// +// It also supports the closely-related ARM ABI, documented at: +// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041c/IHI0041C_cppabi.pdf +// +//===----------------------------------------------------------------------===// #include "CGCXXABI.h" #include "CGCleanup.h" diff --git a/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp index 576c03b7aa..ceb8511e89 100644 --- a/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp +++ b/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp @@ -1,17 +1,18 @@ //===--- MicrosoftCXXABI.cpp - Emit LLVM Code from ASTs for a Module ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MicrosoftCXXABI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides C++ code generation targeting the Microsoft Visual C++ ABI. // -// The class in this file generates structures that follow the Microsoft // -// Visual C++ ABI, which is actually not very well documented at all outside // -// of Microsoft. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides C++ code generation targeting the Microsoft Visual C++ ABI. +// The class in this file generates structures that follow the Microsoft +// Visual C++ ABI, which is actually not very well documented at all outside +// of Microsoft. +// +//===----------------------------------------------------------------------===// #include "CGCXXABI.h" #include "CGVTables.h" diff --git a/tools/clang/lib/CodeGen/ModuleBuilder.cpp b/tools/clang/lib/CodeGen/ModuleBuilder.cpp index 5efcc9f842..06b1058b31 100644 --- a/tools/clang/lib/CodeGen/ModuleBuilder.cpp +++ b/tools/clang/lib/CodeGen/ModuleBuilder.cpp @@ -1,14 +1,15 @@ //===--- ModuleBuilder.cpp - Emit LLVM Code from ASTs ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This builds an AST and converts it to LLVM Code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This builds an AST and converts it to LLVM Code. +// +//===----------------------------------------------------------------------===// #include "clang/CodeGen/ModuleBuilder.h" #include "CGDebugInfo.h" diff --git a/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 4cb64d8a5c..9c9b1234a6 100644 --- a/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -1,12 +1,11 @@ //===--- ObjectFilePCHContainerOperations.cpp -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjectFilePCHContainerOperations.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/CodeGen/ObjectFilePCHContainerOperations.h" #include "CGDebugInfo.h" diff --git a/tools/clang/lib/CodeGen/README.txt b/tools/clang/lib/CodeGen/README.txt index 4a47ab56fb..e6d61095bf 100644 --- a/tools/clang/lib/CodeGen/README.txt +++ b/tools/clang/lib/CodeGen/README.txt @@ -1,5 +1,3 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. IRgen optimization opportunities. //===---------------------------------------------------------------------===// diff --git a/tools/clang/lib/CodeGen/SanitizerMetadata.cpp b/tools/clang/lib/CodeGen/SanitizerMetadata.cpp index 14455396f5..05cf7103d8 100644 --- a/tools/clang/lib/CodeGen/SanitizerMetadata.cpp +++ b/tools/clang/lib/CodeGen/SanitizerMetadata.cpp @@ -1,13 +1,15 @@ //===--- SanitizerMetadata.cpp - Blacklist for sanitizers -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerMetadata.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Class which emits metadata consumed by sanitizer instrumentation passes. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Class which emits metadata consumed by sanitizer instrumentation passes. +// +//===----------------------------------------------------------------------===// #include "SanitizerMetadata.h" #include "CodeGenModule.h" diff --git a/tools/clang/lib/CodeGen/SanitizerMetadata.h b/tools/clang/lib/CodeGen/SanitizerMetadata.h index ddeb9f5c08..166f0e6c9b 100644 --- a/tools/clang/lib/CodeGen/SanitizerMetadata.h +++ b/tools/clang/lib/CodeGen/SanitizerMetadata.h @@ -1,14 +1,15 @@ //===--- SanitizerMetadata.h - Metadata for sanitizers ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerMetadata.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Class which emits metadata consumed by sanitizer instrumentation passes. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Class which emits metadata consumed by sanitizer instrumentation passes. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_SANITIZERMETADATA_H #define LLVM_CLANG_LIB_CODEGEN_SANITIZERMETADATA_H diff --git a/tools/clang/lib/CodeGen/TargetInfo.cpp b/tools/clang/lib/CodeGen/TargetInfo.cpp index da200f32b0..eafe4a195a 100644 --- a/tools/clang/lib/CodeGen/TargetInfo.cpp +++ b/tools/clang/lib/CodeGen/TargetInfo.cpp @@ -1,15 +1,16 @@ //===---- TargetInfo.cpp - Encapsulate target details -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes wrap the information about a call or function // -// definition used to handle ABI compliancy. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes wrap the information about a call or function +// definition used to handle ABI compliancy. +// +//===----------------------------------------------------------------------===// #include "TargetInfo.h" #include "ABIInfo.h" diff --git a/tools/clang/lib/CodeGen/TargetInfo.h b/tools/clang/lib/CodeGen/TargetInfo.h index d73ffd5222..95275d5d42 100644 --- a/tools/clang/lib/CodeGen/TargetInfo.h +++ b/tools/clang/lib/CodeGen/TargetInfo.h @@ -1,15 +1,16 @@ //===---- TargetInfo.h - Encapsulate target details -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes wrap the information about a call or function // -// definition used to handle ABI compliancy. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes wrap the information about a call or function +// definition used to handle ABI compliancy. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_CODEGEN_TARGETINFO_H #define LLVM_CLANG_LIB_CODEGEN_TARGETINFO_H diff --git a/tools/clang/lib/Driver/Action.cpp b/tools/clang/lib/Driver/Action.cpp index 545a053636..3219dc1cc0 100644 --- a/tools/clang/lib/Driver/Action.cpp +++ b/tools/clang/lib/Driver/Action.cpp @@ -1,12 +1,11 @@ //===--- Action.cpp - Abstract compilation steps --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Action.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Action.h" #include "llvm/Support/ErrorHandling.h" diff --git a/tools/clang/lib/Driver/CMakeLists.txt b/tools/clang/lib/Driver/CMakeLists.txt index 6177c932d6..43d6b0b9cc 100644 --- a/tools/clang/lib/Driver/CMakeLists.txt +++ b/tools/clang/lib/Driver/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Option Support diff --git a/tools/clang/lib/Driver/Compilation.cpp b/tools/clang/lib/Driver/Compilation.cpp index ea08ce65d7..101d1fcc83 100644 --- a/tools/clang/lib/Driver/Compilation.cpp +++ b/tools/clang/lib/Driver/Compilation.cpp @@ -1,12 +1,11 @@ //===--- Compilation.cpp - Compilation Task Implementation ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Compilation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Compilation.h" #include "clang/Driver/Action.h" diff --git a/tools/clang/lib/Driver/CrossWindowsToolChain.cpp b/tools/clang/lib/Driver/CrossWindowsToolChain.cpp index b45c508091..ffb1469df2 100644 --- a/tools/clang/lib/Driver/CrossWindowsToolChain.cpp +++ b/tools/clang/lib/Driver/CrossWindowsToolChain.cpp @@ -1,12 +1,11 @@ //===--- CrossWindowsToolChain.cpp - Cross Windows Tool Chain -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CrossWindowsToolChain.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ToolChains.h" #include "clang/Driver/Driver.h" diff --git a/tools/clang/lib/Driver/Driver.cpp b/tools/clang/lib/Driver/Driver.cpp index 095da6aada..8bada22732 100644 --- a/tools/clang/lib/Driver/Driver.cpp +++ b/tools/clang/lib/Driver/Driver.cpp @@ -1,12 +1,11 @@ //===--- Driver.cpp - Clang GCC Compatible Driver -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Driver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Driver.h" #include "InputInfo.h" diff --git a/tools/clang/lib/Driver/DriverOptions.cpp b/tools/clang/lib/Driver/DriverOptions.cpp index bc508d1806..6ff1cbafb3 100644 --- a/tools/clang/lib/Driver/DriverOptions.cpp +++ b/tools/clang/lib/Driver/DriverOptions.cpp @@ -1,12 +1,11 @@ //===--- DriverOptions.cpp - Driver Options Table -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DriverOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Options.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/lib/Driver/InputInfo.h b/tools/clang/lib/Driver/InputInfo.h index d9df0e1af9..b23ba575b6 100644 --- a/tools/clang/lib/Driver/InputInfo.h +++ b/tools/clang/lib/Driver/InputInfo.h @@ -1,12 +1,11 @@ //===--- InputInfo.h - Input Source & Type Information ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InputInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_DRIVER_INPUTINFO_H #define LLVM_CLANG_LIB_DRIVER_INPUTINFO_H diff --git a/tools/clang/lib/Driver/Job.cpp b/tools/clang/lib/Driver/Job.cpp index 037fffcd50..c481bd1da4 100644 --- a/tools/clang/lib/Driver/Job.cpp +++ b/tools/clang/lib/Driver/Job.cpp @@ -1,12 +1,11 @@ //===--- Job.cpp - Command to Execute -------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Job.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Driver.h" #include "clang/Driver/DriverDiagnostic.h" diff --git a/tools/clang/lib/Driver/MSVCToolChain.cpp b/tools/clang/lib/Driver/MSVCToolChain.cpp index 0aebf1816d..c816b29dca 100644 --- a/tools/clang/lib/Driver/MSVCToolChain.cpp +++ b/tools/clang/lib/Driver/MSVCToolChain.cpp @@ -1,12 +1,11 @@ //===--- ToolChains.cpp - ToolChain Implementations -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MSVCToolChain.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ToolChains.h" #include "Tools.h" diff --git a/tools/clang/lib/Driver/MinGWToolChain.cpp b/tools/clang/lib/Driver/MinGWToolChain.cpp index de8760dc78..938440b08f 100644 --- a/tools/clang/lib/Driver/MinGWToolChain.cpp +++ b/tools/clang/lib/Driver/MinGWToolChain.cpp @@ -1,12 +1,11 @@ //===--- MinGWToolChain.cpp - MinGWToolChain Implementation ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MinGWToolChain.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ToolChains.h" #include "clang/Driver/Driver.h" diff --git a/tools/clang/lib/Driver/Multilib.cpp b/tools/clang/lib/Driver/Multilib.cpp index 0cb781b974..8acda6794d 100644 --- a/tools/clang/lib/Driver/Multilib.cpp +++ b/tools/clang/lib/Driver/Multilib.cpp @@ -1,12 +1,11 @@ //===--- Multilib.cpp - Multilib Implementation ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Multilib.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Multilib.h" #include "Tools.h" diff --git a/tools/clang/lib/Driver/Phases.cpp b/tools/clang/lib/Driver/Phases.cpp index 7108f1da01..7ae270857f 100644 --- a/tools/clang/lib/Driver/Phases.cpp +++ b/tools/clang/lib/Driver/Phases.cpp @@ -1,12 +1,11 @@ //===--- Phases.cpp - Transformations on Driver Types ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Phases.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Phases.h" #include "llvm/Support/ErrorHandling.h" diff --git a/tools/clang/lib/Driver/SanitizerArgs.cpp b/tools/clang/lib/Driver/SanitizerArgs.cpp index 1f611e0a62..cf4cfd9961 100644 --- a/tools/clang/lib/Driver/SanitizerArgs.cpp +++ b/tools/clang/lib/Driver/SanitizerArgs.cpp @@ -1,11 +1,11 @@ //===--- SanitizerArgs.cpp - Arguments for sanitizer tools ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SanitizerArgs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/SanitizerArgs.h" #include "Tools.h" diff --git a/tools/clang/lib/Driver/Tool.cpp b/tools/clang/lib/Driver/Tool.cpp index 540ecbc53d..7142e822f1 100644 --- a/tools/clang/lib/Driver/Tool.cpp +++ b/tools/clang/lib/Driver/Tool.cpp @@ -1,12 +1,11 @@ //===--- Tool.cpp - Compilation Tools -------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Tool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Tool.h" diff --git a/tools/clang/lib/Driver/ToolChain.cpp b/tools/clang/lib/Driver/ToolChain.cpp index e1a432dfdc..d40bb951e5 100644 --- a/tools/clang/lib/Driver/ToolChain.cpp +++ b/tools/clang/lib/Driver/ToolChain.cpp @@ -1,12 +1,11 @@ //===--- ToolChain.cpp - Collections of tools for one platform ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolChain.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Tools.h" #include "clang/Basic/ObjCRuntime.h" diff --git a/tools/clang/lib/Driver/ToolChains.cpp b/tools/clang/lib/Driver/ToolChains.cpp index c8c8731c80..15e36a1e6c 100644 --- a/tools/clang/lib/Driver/ToolChains.cpp +++ b/tools/clang/lib/Driver/ToolChains.cpp @@ -1,12 +1,11 @@ //===--- ToolChains.cpp - ToolChain Implementations -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolChains.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ToolChains.h" #include "clang/Basic/ObjCRuntime.h" diff --git a/tools/clang/lib/Driver/ToolChains.h b/tools/clang/lib/Driver/ToolChains.h index 9a084bc2f5..59eaade6b5 100644 --- a/tools/clang/lib/Driver/ToolChains.h +++ b/tools/clang/lib/Driver/ToolChains.h @@ -1,12 +1,11 @@ //===--- ToolChains.h - ToolChain Implementations ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolChains.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_H #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_H diff --git a/tools/clang/lib/Driver/Tools.cpp b/tools/clang/lib/Driver/Tools.cpp index db1ce199dd..f3eb5b99ca 100644 --- a/tools/clang/lib/Driver/Tools.cpp +++ b/tools/clang/lib/Driver/Tools.cpp @@ -1,12 +1,11 @@ //===--- Tools.cpp - Tools Implementations --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Tools.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Tools.h" #include "InputInfo.h" diff --git a/tools/clang/lib/Driver/Tools.h b/tools/clang/lib/Driver/Tools.h index b18e80a698..651ddc8ff5 100644 --- a/tools/clang/lib/Driver/Tools.h +++ b/tools/clang/lib/Driver/Tools.h @@ -1,12 +1,11 @@ //===--- Tools.h - Tool Implementations -------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Tools.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_DRIVER_TOOLS_H #define LLVM_CLANG_LIB_DRIVER_TOOLS_H diff --git a/tools/clang/lib/Driver/Types.cpp b/tools/clang/lib/Driver/Types.cpp index 3556990ce5..c6c1c17e91 100644 --- a/tools/clang/lib/Driver/Types.cpp +++ b/tools/clang/lib/Driver/Types.cpp @@ -1,12 +1,11 @@ //===--- Types.cpp - Driver input & temporary type information ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Types.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Types.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/lib/Edit/CMakeLists.txt b/tools/clang/lib/Edit/CMakeLists.txt index 0c0ca81479..30e790dcc8 100644 --- a/tools/clang/lib/Edit/CMakeLists.txt +++ b/tools/clang/lib/Edit/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/lib/Edit/Commit.cpp b/tools/clang/lib/Edit/Commit.cpp index ed74442fec..9c08cc28ac 100644 --- a/tools/clang/lib/Edit/Commit.cpp +++ b/tools/clang/lib/Edit/Commit.cpp @@ -1,12 +1,11 @@ //===----- Commit.cpp - A unit of edits -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Commit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Edit/Commit.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Edit/EditedSource.cpp b/tools/clang/lib/Edit/EditedSource.cpp index a71e7ddc8c..e557de9241 100644 --- a/tools/clang/lib/Edit/EditedSource.cpp +++ b/tools/clang/lib/Edit/EditedSource.cpp @@ -1,12 +1,11 @@ //===----- EditedSource.cpp - Collection of source edits ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EditedSource.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Edit/EditedSource.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp index b653126019..9f71168de8 100644 --- a/tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp +++ b/tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp @@ -1,14 +1,15 @@ //===--- RewriteObjCFoundationAPI.cpp - Foundation API Rewriter -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteObjCFoundationAPI.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Rewrites legacy method calls to modern syntax. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Rewrites legacy method calls to modern syntax. +// +//===----------------------------------------------------------------------===// #include "clang/Edit/Rewriters.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Format/BreakableToken.cpp b/tools/clang/lib/Format/BreakableToken.cpp index addba3d418..36a8c4d8da 100644 --- a/tools/clang/lib/Format/BreakableToken.cpp +++ b/tools/clang/lib/Format/BreakableToken.cpp @@ -1,18 +1,17 @@ //===--- BreakableToken.cpp - Format C++ code -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BreakableToken.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Contains implementation of BreakableToken class and classes derived// -/// from it. // +/// \file +/// \brief Contains implementation of BreakableToken class and classes derived +/// from it. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "BreakableToken.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Format/BreakableToken.h b/tools/clang/lib/Format/BreakableToken.h index d1c9cc5c0e..eb1f9fda30 100644 --- a/tools/clang/lib/Format/BreakableToken.h +++ b/tools/clang/lib/Format/BreakableToken.h @@ -1,19 +1,18 @@ //===--- BreakableToken.h - Format C++ code -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BreakableToken.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Declares BreakableToken, BreakableStringLiteral, and // -/// BreakableBlockComment classes, that contain token type-specific logic to // -/// break long lines in tokens. // +/// \file +/// \brief Declares BreakableToken, BreakableStringLiteral, and +/// BreakableBlockComment classes, that contain token type-specific logic to +/// break long lines in tokens. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_BREAKABLETOKEN_H #define LLVM_CLANG_LIB_FORMAT_BREAKABLETOKEN_H diff --git a/tools/clang/lib/Format/CMakeLists.txt b/tools/clang/lib/Format/CMakeLists.txt index b236c003bf..2ce38343cf 100644 --- a/tools/clang/lib/Format/CMakeLists.txt +++ b/tools/clang/lib/Format/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_clang_library(clangFormat diff --git a/tools/clang/lib/Format/ContinuationIndenter.cpp b/tools/clang/lib/Format/ContinuationIndenter.cpp index c5db1828ed..dd56831a3b 100644 --- a/tools/clang/lib/Format/ContinuationIndenter.cpp +++ b/tools/clang/lib/Format/ContinuationIndenter.cpp @@ -1,17 +1,16 @@ //===--- ContinuationIndenter.cpp - Format C++ code -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ContinuationIndenter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements the continuation indenter. // +/// \file +/// \brief This file implements the continuation indenter. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "BreakableToken.h" #include "ContinuationIndenter.h" diff --git a/tools/clang/lib/Format/ContinuationIndenter.h b/tools/clang/lib/Format/ContinuationIndenter.h index 167d3c788f..9b9154ed30 100644 --- a/tools/clang/lib/Format/ContinuationIndenter.h +++ b/tools/clang/lib/Format/ContinuationIndenter.h @@ -1,18 +1,17 @@ //===--- ContinuationIndenter.h - Format C++ code ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ContinuationIndenter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements an indenter that manages the indentation of // -/// continuations. // +/// \file +/// \brief This file implements an indenter that manages the indentation of +/// continuations. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_CONTINUATIONINDENTER_H #define LLVM_CLANG_LIB_FORMAT_CONTINUATIONINDENTER_H diff --git a/tools/clang/lib/Format/Encoding.h b/tools/clang/lib/Format/Encoding.h index ffe1a13e49..766d29274c 100644 --- a/tools/clang/lib/Format/Encoding.h +++ b/tools/clang/lib/Format/Encoding.h @@ -1,18 +1,17 @@ //===--- Encoding.h - Format C++ code -------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Encoding.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Contains functions for text encoding manipulation. Supports UTF-8,// -/// 8-bit encodings and escape sequences in C++ string literals. // +/// \file +/// \brief Contains functions for text encoding manipulation. Supports UTF-8, +/// 8-bit encodings and escape sequences in C++ string literals. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_ENCODING_H #define LLVM_CLANG_LIB_FORMAT_ENCODING_H diff --git a/tools/clang/lib/Format/Format.cpp b/tools/clang/lib/Format/Format.cpp index 67bfca2048..7d556c9f0f 100644 --- a/tools/clang/lib/Format/Format.cpp +++ b/tools/clang/lib/Format/Format.cpp @@ -1,18 +1,17 @@ //===--- Format.cpp - Format C++ code -------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Format.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements functions declared in Format.h. This will be // -/// split into separate files as we go. // +/// \file +/// \brief This file implements functions declared in Format.h. This will be +/// split into separate files as we go. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ContinuationIndenter.h" #include "TokenAnnotator.h" diff --git a/tools/clang/lib/Format/FormatToken.cpp b/tools/clang/lib/Format/FormatToken.cpp index 25c2c95f6c..6c244c3166 100644 --- a/tools/clang/lib/Format/FormatToken.cpp +++ b/tools/clang/lib/Format/FormatToken.cpp @@ -1,18 +1,17 @@ //===--- FormatToken.cpp - Format C++ code --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatToken.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements specific functions of \c FormatTokens and their// -/// roles. // +/// \file +/// \brief This file implements specific functions of \c FormatTokens and their +/// roles. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "FormatToken.h" #include "ContinuationIndenter.h" diff --git a/tools/clang/lib/Format/FormatToken.h b/tools/clang/lib/Format/FormatToken.h index 64b9005563..f335eda086 100644 --- a/tools/clang/lib/Format/FormatToken.h +++ b/tools/clang/lib/Format/FormatToken.h @@ -1,18 +1,17 @@ //===--- FormatToken.h - Format C++ code ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatToken.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file contains the declaration of the FormatToken, a wrapper // -/// around Token with additional information related to formatting. // +/// \file +/// \brief This file contains the declaration of the FormatToken, a wrapper +/// around Token with additional information related to formatting. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_FORMATTOKEN_H #define LLVM_CLANG_LIB_FORMAT_FORMATTOKEN_H diff --git a/tools/clang/lib/Format/TokenAnnotator.cpp b/tools/clang/lib/Format/TokenAnnotator.cpp index ac75d99628..ea8b30de8d 100644 --- a/tools/clang/lib/Format/TokenAnnotator.cpp +++ b/tools/clang/lib/Format/TokenAnnotator.cpp @@ -1,18 +1,17 @@ //===--- TokenAnnotator.cpp - Format C++ code -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenAnnotator.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a token annotator, i.e. creates // -/// \c AnnotatedTokens out of \c FormatTokens with required extra information.// +/// \file +/// \brief This file implements a token annotator, i.e. creates +/// \c AnnotatedTokens out of \c FormatTokens with required extra information. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "TokenAnnotator.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Format/TokenAnnotator.h b/tools/clang/lib/Format/TokenAnnotator.h index 3fb434b4e2..b8a6be057a 100644 --- a/tools/clang/lib/Format/TokenAnnotator.h +++ b/tools/clang/lib/Format/TokenAnnotator.h @@ -1,18 +1,17 @@ //===--- TokenAnnotator.h - Format C++ code ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenAnnotator.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a token annotator, i.e. creates // -/// \c AnnotatedTokens out of \c FormatTokens with required extra information.// +/// \file +/// \brief This file implements a token annotator, i.e. creates +/// \c AnnotatedTokens out of \c FormatTokens with required extra information. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_TOKENANNOTATOR_H #define LLVM_CLANG_LIB_FORMAT_TOKENANNOTATOR_H diff --git a/tools/clang/lib/Format/UnwrappedLineFormatter.cpp b/tools/clang/lib/Format/UnwrappedLineFormatter.cpp index d16a88e9e6..b6784b369e 100644 --- a/tools/clang/lib/Format/UnwrappedLineFormatter.cpp +++ b/tools/clang/lib/Format/UnwrappedLineFormatter.cpp @@ -1,12 +1,11 @@ //===--- UnwrappedLineFormatter.cpp - Format C++ code ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnwrappedLineFormatter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "UnwrappedLineFormatter.h" #include "WhitespaceManager.h" diff --git a/tools/clang/lib/Format/UnwrappedLineFormatter.h b/tools/clang/lib/Format/UnwrappedLineFormatter.h index 2fb59e4c1c..478617d6a8 100644 --- a/tools/clang/lib/Format/UnwrappedLineFormatter.h +++ b/tools/clang/lib/Format/UnwrappedLineFormatter.h @@ -1,18 +1,17 @@ //===--- UnwrappedLineFormatter.h - Format C++ code -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnwrappedLineFormatter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Implements a combinartorial exploration of all the different // -/// linebreaks unwrapped lines can be formatted in. // +/// \file +/// \brief Implements a combinartorial exploration of all the different +/// linebreaks unwrapped lines can be formatted in. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_UNWRAPPEDLINEFORMATTER_H #define LLVM_CLANG_LIB_FORMAT_UNWRAPPEDLINEFORMATTER_H diff --git a/tools/clang/lib/Format/UnwrappedLineParser.cpp b/tools/clang/lib/Format/UnwrappedLineParser.cpp index 920863222a..97fd98ecb9 100644 --- a/tools/clang/lib/Format/UnwrappedLineParser.cpp +++ b/tools/clang/lib/Format/UnwrappedLineParser.cpp @@ -1,18 +1,17 @@ //===--- UnwrappedLineParser.cpp - Format C++ code ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnwrappedLineParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file contains the implementation of the UnwrappedLineParser, // -/// which turns a stream of tokens into UnwrappedLines. // +/// \file +/// \brief This file contains the implementation of the UnwrappedLineParser, +/// which turns a stream of tokens into UnwrappedLines. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "UnwrappedLineParser.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/lib/Format/UnwrappedLineParser.h b/tools/clang/lib/Format/UnwrappedLineParser.h index 714054271b..c2fa029576 100644 --- a/tools/clang/lib/Format/UnwrappedLineParser.h +++ b/tools/clang/lib/Format/UnwrappedLineParser.h @@ -1,18 +1,17 @@ //===--- UnwrappedLineParser.h - Format C++ code ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnwrappedLineParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file contains the declaration of the UnwrappedLineParser, // -/// which turns a stream of tokens into UnwrappedLines. // +/// \file +/// \brief This file contains the declaration of the UnwrappedLineParser, +/// which turns a stream of tokens into UnwrappedLines. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_UNWRAPPEDLINEPARSER_H #define LLVM_CLANG_LIB_FORMAT_UNWRAPPEDLINEPARSER_H diff --git a/tools/clang/lib/Format/WhitespaceManager.cpp b/tools/clang/lib/Format/WhitespaceManager.cpp index e75d090375..65395277f8 100644 --- a/tools/clang/lib/Format/WhitespaceManager.cpp +++ b/tools/clang/lib/Format/WhitespaceManager.cpp @@ -1,17 +1,16 @@ //===--- WhitespaceManager.cpp - Format C++ code --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WhitespaceManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements WhitespaceManager class. // +/// \file +/// \brief This file implements WhitespaceManager class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "WhitespaceManager.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/lib/Format/WhitespaceManager.h b/tools/clang/lib/Format/WhitespaceManager.h index 0330f931b0..d973838329 100644 --- a/tools/clang/lib/Format/WhitespaceManager.h +++ b/tools/clang/lib/Format/WhitespaceManager.h @@ -1,18 +1,17 @@ //===--- WhitespaceManager.h - Format C++ code ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WhitespaceManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief WhitespaceManager class manages whitespace around tokens and their// -/// replacements. // +/// \file +/// \brief WhitespaceManager class manages whitespace around tokens and their +/// replacements. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_WHITESPACEMANAGER_H #define LLVM_CLANG_LIB_FORMAT_WHITESPACEMANAGER_H diff --git a/tools/clang/lib/Frontend/ASTConsumers.cpp b/tools/clang/lib/Frontend/ASTConsumers.cpp index d9ad349964..297d7d6385 100644 --- a/tools/clang/lib/Frontend/ASTConsumers.cpp +++ b/tools/clang/lib/Frontend/ASTConsumers.cpp @@ -1,14 +1,15 @@ //===--- ASTConsumers.cpp - ASTConsumer implementations -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTConsumers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// AST Consumer Implementations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// AST Consumer Implementations. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/ASTConsumers.h" #include "clang/AST/AST.h" diff --git a/tools/clang/lib/Frontend/ASTMerge.cpp b/tools/clang/lib/Frontend/ASTMerge.cpp index 5481f2226b..82676dfa74 100644 --- a/tools/clang/lib/Frontend/ASTMerge.cpp +++ b/tools/clang/lib/Frontend/ASTMerge.cpp @@ -1,11 +1,11 @@ //===-- ASTMerge.cpp - AST Merging Frontent Action --------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMerge.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/ASTUnit.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Frontend/ASTUnit.cpp b/tools/clang/lib/Frontend/ASTUnit.cpp index 8abd8ba11c..dd9817e300 100644 --- a/tools/clang/lib/Frontend/ASTUnit.cpp +++ b/tools/clang/lib/Frontend/ASTUnit.cpp @@ -1,14 +1,15 @@ //===--- ASTUnit.cpp - ASTUnit utility ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTUnit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// ASTUnit Implementation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// ASTUnit Implementation. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/ASTUnit.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Frontend/CMakeLists.txt b/tools/clang/lib/Frontend/CMakeLists.txt index 497167477f..05c7d71a1c 100644 --- a/tools/clang/lib/Frontend/CMakeLists.txt +++ b/tools/clang/lib/Frontend/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(Rewrite) set(LLVM_LINK_COMPONENTS diff --git a/tools/clang/lib/Frontend/CacheTokens.cpp b/tools/clang/lib/Frontend/CacheTokens.cpp index e515259113..3ed8f245ba 100644 --- a/tools/clang/lib/Frontend/CacheTokens.cpp +++ b/tools/clang/lib/Frontend/CacheTokens.cpp @@ -1,15 +1,16 @@ //===--- CacheTokens.cpp - Caching of lexer tokens for PTH support --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CacheTokens.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This provides a possible implementation of PTH support for Clang that is // -// based on caching lexed tokens and identifiers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides a possible implementation of PTH support for Clang that is +// based on caching lexed tokens and identifiers. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp b/tools/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp index 8820dec20d..d77fd180ea 100644 --- a/tools/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp +++ b/tools/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp @@ -1,12 +1,11 @@ //===- ChainedDiagnosticConsumer.cpp - Chain Diagnostic Clients -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ChainedDiagnosticConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/ChainedDiagnosticConsumer.h" diff --git a/tools/clang/lib/Frontend/ChainedIncludesSource.cpp b/tools/clang/lib/Frontend/ChainedIncludesSource.cpp index 4cc7a02c9d..cc0504ba8b 100644 --- a/tools/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/tools/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -1,15 +1,16 @@ //===- ChainedIncludesSource.cpp - Chained PCHs in Memory -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ChainedIncludesSource.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ChainedIncludesSource class, which converts headers// -// to chained PCHs in memory, mainly used for testing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ChainedIncludesSource class, which converts headers +// to chained PCHs in memory, mainly used for testing. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/TargetInfo.h" #include "clang/Frontend/ASTUnit.h" diff --git a/tools/clang/lib/Frontend/CodeGenOptions.cpp b/tools/clang/lib/Frontend/CodeGenOptions.cpp index 736e647370..75ee47f868 100644 --- a/tools/clang/lib/Frontend/CodeGenOptions.cpp +++ b/tools/clang/lib/Frontend/CodeGenOptions.cpp @@ -1,12 +1,11 @@ //===--- CodeGenOptions.cpp -----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/CodeGenOptions.h" #include diff --git a/tools/clang/lib/Frontend/CompilerInstance.cpp b/tools/clang/lib/Frontend/CompilerInstance.cpp index d3ed9ac533..4b61b141db 100644 --- a/tools/clang/lib/Frontend/CompilerInstance.cpp +++ b/tools/clang/lib/Frontend/CompilerInstance.cpp @@ -1,12 +1,11 @@ //===--- CompilerInstance.cpp ---------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilerInstance.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/CompilerInstance.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Frontend/CompilerInvocation.cpp b/tools/clang/lib/Frontend/CompilerInvocation.cpp index 65207d8809..64e7bb1103 100644 --- a/tools/clang/lib/Frontend/CompilerInvocation.cpp +++ b/tools/clang/lib/Frontend/CompilerInvocation.cpp @@ -1,12 +1,11 @@ //===--- CompilerInvocation.cpp -------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilerInvocation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/CompilerInvocation.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp index 76cdd67c39..abb39625f7 100644 --- a/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp +++ b/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp @@ -1,14 +1,15 @@ //===--- CreateInvocationFromCommandLine.cpp - CompilerInvocation from Args ==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CreateInvocationFromCommandLine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Construct a compiler invocation object for command line driver arguments // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Construct a compiler invocation object for command line driver arguments +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/lib/Frontend/DependencyFile.cpp b/tools/clang/lib/Frontend/DependencyFile.cpp index b45679445b..88f443dd25 100644 --- a/tools/clang/lib/Frontend/DependencyFile.cpp +++ b/tools/clang/lib/Frontend/DependencyFile.cpp @@ -1,14 +1,15 @@ //===--- DependencyFile.cpp - Generate dependency file --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependencyFile.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This code generates dependency files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This code generates dependency files. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/DependencyGraph.cpp b/tools/clang/lib/Frontend/DependencyGraph.cpp index c5e5dfe8c7..67a977e38b 100644 --- a/tools/clang/lib/Frontend/DependencyGraph.cpp +++ b/tools/clang/lib/Frontend/DependencyGraph.cpp @@ -1,15 +1,16 @@ //===--- DependencyGraph.cpp - Generate dependency file -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DependencyGraph.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This code generates a header dependency graph in DOT format, for use // -// with, e.g., GraphViz. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This code generates a header dependency graph in DOT format, for use +// with, e.g., GraphViz. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/DiagnosticRenderer.cpp b/tools/clang/lib/Frontend/DiagnosticRenderer.cpp index a80e858fbf..c63e98dbe4 100644 --- a/tools/clang/lib/Frontend/DiagnosticRenderer.cpp +++ b/tools/clang/lib/Frontend/DiagnosticRenderer.cpp @@ -1,12 +1,11 @@ //===--- DiagnosticRenderer.cpp - Diagnostic Pretty-Printing --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticRenderer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/DiagnosticRenderer.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/lib/Frontend/FrontendAction.cpp b/tools/clang/lib/Frontend/FrontendAction.cpp index 73a4580ee0..f88338d342 100644 --- a/tools/clang/lib/Frontend/FrontendAction.cpp +++ b/tools/clang/lib/Frontend/FrontendAction.cpp @@ -1,12 +1,11 @@ //===--- FrontendAction.cpp -----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendAction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/FrontendAction.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Frontend/FrontendActions.cpp b/tools/clang/lib/Frontend/FrontendActions.cpp index 48ed0a48ee..136de2fbae 100644 --- a/tools/clang/lib/Frontend/FrontendActions.cpp +++ b/tools/clang/lib/Frontend/FrontendActions.cpp @@ -1,12 +1,11 @@ //===--- FrontendActions.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendActions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/FrontendActions.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Frontend/FrontendOptions.cpp b/tools/clang/lib/Frontend/FrontendOptions.cpp index a2ee35b385..90b494408f 100644 --- a/tools/clang/lib/Frontend/FrontendOptions.cpp +++ b/tools/clang/lib/Frontend/FrontendOptions.cpp @@ -1,12 +1,11 @@ //===--- FrontendOptions.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/FrontendOptions.h" #include "llvm/ADT/StringSwitch.h" diff --git a/tools/clang/lib/Frontend/HeaderIncludeGen.cpp b/tools/clang/lib/Frontend/HeaderIncludeGen.cpp index 17f4be06a0..5732e5b3fb 100644 --- a/tools/clang/lib/Frontend/HeaderIncludeGen.cpp +++ b/tools/clang/lib/Frontend/HeaderIncludeGen.cpp @@ -1,12 +1,11 @@ //===--- HeaderIncludes.cpp - Generate Header Includes --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HeaderIncludeGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Frontend/InitHeaderSearch.cpp b/tools/clang/lib/Frontend/InitHeaderSearch.cpp index 59c7e2f8ec..218a6baf93 100644 --- a/tools/clang/lib/Frontend/InitHeaderSearch.cpp +++ b/tools/clang/lib/Frontend/InitHeaderSearch.cpp @@ -1,14 +1,15 @@ //===--- InitHeaderSearch.cpp - Initialize header search paths ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InitHeaderSearch.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the InitHeaderSearch class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the InitHeaderSearch class. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/InitPreprocessor.cpp b/tools/clang/lib/Frontend/InitPreprocessor.cpp index dce8b7971d..a018355b7e 100644 --- a/tools/clang/lib/Frontend/InitPreprocessor.cpp +++ b/tools/clang/lib/Frontend/InitPreprocessor.cpp @@ -1,14 +1,15 @@ //===--- InitPreprocessor.cpp - PP initialization code. ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InitPreprocessor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the clang::InitializePreprocessor function. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the clang::InitializePreprocessor function. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/LangStandards.cpp b/tools/clang/lib/Frontend/LangStandards.cpp index b5fcbddd17..f133327f42 100644 --- a/tools/clang/lib/Frontend/LangStandards.cpp +++ b/tools/clang/lib/Frontend/LangStandards.cpp @@ -1,12 +1,11 @@ //===--- LangStandards.cpp - Language Standard Definitions ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LangStandards.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/LangStandard.h" #include "llvm/ADT/StringSwitch.h" diff --git a/tools/clang/lib/Frontend/LayoutOverrideSource.cpp b/tools/clang/lib/Frontend/LayoutOverrideSource.cpp index b138448055..8ecec3c99e 100644 --- a/tools/clang/lib/Frontend/LayoutOverrideSource.cpp +++ b/tools/clang/lib/Frontend/LayoutOverrideSource.cpp @@ -1,11 +1,11 @@ //===--- LayoutOverrideSource.cpp --Override Record Layouts ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LayoutOverrideSource.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/LayoutOverrideSource.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp b/tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp index 9042f56e72..c6a18e0d80 100644 --- a/tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp +++ b/tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp @@ -1,12 +1,11 @@ //===--- LogDiagnosticPrinter.cpp - Log Diagnostic Printer ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LogDiagnosticPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/LogDiagnosticPrinter.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/lib/Frontend/ModuleDependencyCollector.cpp b/tools/clang/lib/Frontend/ModuleDependencyCollector.cpp index fab9993b3b..67852dc020 100644 --- a/tools/clang/lib/Frontend/ModuleDependencyCollector.cpp +++ b/tools/clang/lib/Frontend/ModuleDependencyCollector.cpp @@ -1,14 +1,15 @@ //===--- ModuleDependencyCollector.cpp - Collect module dependencies ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleDependencyCollector.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Collect the dependencies of a set of modules. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Collect the dependencies of a set of modules. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Serialization/ASTReader.h" diff --git a/tools/clang/lib/Frontend/MultiplexConsumer.cpp b/tools/clang/lib/Frontend/MultiplexConsumer.cpp index 6f14ad8fac..e9f282c34f 100644 --- a/tools/clang/lib/Frontend/MultiplexConsumer.cpp +++ b/tools/clang/lib/Frontend/MultiplexConsumer.cpp @@ -1,16 +1,17 @@ //===- MultiplexConsumer.cpp - AST Consumer for PCH Generation --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MultiplexConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the MultiplexConsumer class. It also declares and defines// -// MultiplexASTDeserializationListener and MultiplexASTMutationListener, which// -// are implementation details of MultiplexConsumer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the MultiplexConsumer class. It also declares and defines +// MultiplexASTDeserializationListener and MultiplexASTMutationListener, which +// are implementation details of MultiplexConsumer. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/MultiplexConsumer.h" #include "clang/AST/ASTMutationListener.h" diff --git a/tools/clang/lib/Frontend/PCHContainerOperations.cpp b/tools/clang/lib/Frontend/PCHContainerOperations.cpp index 74e3a9b27f..cde3ba139b 100644 --- a/tools/clang/lib/Frontend/PCHContainerOperations.cpp +++ b/tools/clang/lib/Frontend/PCHContainerOperations.cpp @@ -1,14 +1,15 @@ //===--- Frontend/PCHContainerOperations.cpp - PCH Containers ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PCHContainerOperations.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines PCHContainerOperations and RawPCHContainerOperation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines PCHContainerOperations and RawPCHContainerOperation. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/PCHContainerOperations.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp index ebab78a122..54db0e76c4 100644 --- a/tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp @@ -1,15 +1,16 @@ //===--- PrintPreprocessedOutput.cpp - Implement the -E mode --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrintPreprocessedOutput.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This code simply runs the preprocessor on the input file and prints out the// -// result. This is the traditional behavior of the -E option. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This code simply runs the preprocessor on the input file and prints out the +// result. This is the traditional behavior of the -E option. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/Utils.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Frontend/Rewrite/CMakeLists.txt b/tools/clang/lib/Frontend/Rewrite/CMakeLists.txt index 02179d69a2..830b1f146a 100644 --- a/tools/clang/lib/Frontend/Rewrite/CMakeLists.txt +++ b/tools/clang/lib/Frontend/Rewrite/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_OPTIONAL_SOURCES RewriteModernObjC.cpp) # HLSL Change - ignore file set(LLVM_LINK_COMPONENTS diff --git a/tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp b/tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp index 2cbf16be32..dc787ac955 100644 --- a/tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp +++ b/tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp @@ -1,16 +1,17 @@ //===--- FixItRewriter.cpp - Fix-It Rewriter Diagnostic Client --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FixItRewriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a diagnostic client adaptor that performs rewrites as // -// suggested by code modification hints attached to diagnostics. It // -// then forwards any diagnostics to the adapted diagnostic client. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a diagnostic client adaptor that performs rewrites as +// suggested by code modification hints attached to diagnostics. It +// then forwards any diagnostics to the adapted diagnostic client. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/FixItRewriter.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp b/tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp index 4a45a72945..22ccfe6936 100644 --- a/tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp +++ b/tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp @@ -1,14 +1,15 @@ //===--- HTMLPrint.cpp - Source code -> HTML pretty-printing --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HTMLPrint.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Pretty-printing of source code to HTML. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Pretty-printing of source code to HTML. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/ASTConsumers.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp b/tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp index 44c704ee2a..08d6cf1f92 100644 --- a/tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp +++ b/tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp @@ -1,15 +1,16 @@ //===--- InclusionRewriter.cpp - Rewrite includes into their expansions ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InclusionRewriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This code rewrites include invocations into their expansions. This gives you// -// a file with all included files merged into it. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This code rewrites include invocations into their expansions. This gives you +// a file with all included files merged into it. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/Rewriters.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp b/tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp index b6b3b2fa12..0d0a991fa6 100644 --- a/tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp +++ b/tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp @@ -1,15 +1,16 @@ //===--- RewriteMacros.cpp - Rewrite macros into their expansions ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteMacros.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This code rewrites macro invocations into their expansions. This gives you// -// a macro expanded file that retains comments and #includes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This code rewrites macro invocations into their expansions. This gives you +// a macro expanded file that retains comments and #includes. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/Rewriters.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp b/tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp index f095de5c50..2902ba78c4 100644 --- a/tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp +++ b/tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp @@ -1,14 +1,15 @@ //===--- RewriteObjC.cpp - Playground for the code rewriter ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteModernObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Hacks and fun related to the code rewriter. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Hacks and fun related to the code rewriter. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/ASTConsumers.h" #include "clang/AST/AST.h" diff --git a/tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp b/tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp index a3e24340d0..204820b304 100644 --- a/tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp +++ b/tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp @@ -1,14 +1,15 @@ //===--- RewriteObjC.cpp - Playground for the code rewriter ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Hacks and fun related to the code rewriter. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Hacks and fun related to the code rewriter. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/ASTConsumers.h" #include "clang/AST/AST.h" diff --git a/tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp b/tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp index 9c86cf565c..722c5e80b4 100644 --- a/tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp +++ b/tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp @@ -1,14 +1,15 @@ //===--- RewriteTest.cpp - Rewriter playground ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a testbed. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a testbed. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Frontend/Rewriters.h" #include "clang/Lex/Preprocessor.h" diff --git a/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp b/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp index 25f2d39961..d31b12e87a 100644 --- a/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp +++ b/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp @@ -1,12 +1,11 @@ //===--- SerializedDiagnosticPrinter.cpp - Serializer for diagnostics -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SerializedDiagnosticPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/SerializedDiagnosticPrinter.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp b/tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp index 54a6ddd31c..0ebbd22af2 100644 --- a/tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp +++ b/tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp @@ -1,12 +1,11 @@ //===--- SerializedDiagnosticReader.cpp - Reads diagnostics ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SerializedDiagnosticReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/SerializedDiagnosticReader.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Frontend/TextDiagnostic.cpp b/tools/clang/lib/Frontend/TextDiagnostic.cpp index 104bfec670..aaf17a9833 100644 --- a/tools/clang/lib/Frontend/TextDiagnostic.cpp +++ b/tools/clang/lib/Frontend/TextDiagnostic.cpp @@ -1,12 +1,11 @@ //===--- TextDiagnostic.cpp - Text Diagnostic Pretty-Printing -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TextDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/TextDiagnostic.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp b/tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp index fd43828b66..d49e983fcd 100644 --- a/tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp +++ b/tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp @@ -1,14 +1,15 @@ //===--- TextDiagnosticBuffer.cpp - Buffer Text Diagnostics ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TextDiagnosticBuffer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a concrete diagnostic client, which buffers the diagnostic messages.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a concrete diagnostic client, which buffers the diagnostic messages. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/TextDiagnosticBuffer.h" #include "llvm/ADT/SmallString.h" diff --git a/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp index 3b0b3250d0..66b46b7814 100644 --- a/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -1,14 +1,15 @@ //===--- TextDiagnosticPrinter.cpp - Diagnostic Printer -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TextDiagnosticPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This diagnostic client prints out their diagnostic messages. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This diagnostic client prints out their diagnostic messages. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/TextDiagnosticPrinter.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp b/tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp index 64391e5b46..884befc8ad 100644 --- a/tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp +++ b/tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp @@ -1,14 +1,15 @@ //===---- VerifyDiagnosticConsumer.cpp - Verifying Diagnostic Client ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VerifyDiagnosticConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a concrete diagnostic client, which buffers the diagnostic messages.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a concrete diagnostic client, which buffers the diagnostic messages. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/VerifyDiagnosticConsumer.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/FrontendTool/CMakeLists.txt b/tools/clang/lib/FrontendTool/CMakeLists.txt index 267480d183..7e11be0ce4 100644 --- a/tools/clang/lib/FrontendTool/CMakeLists.txt +++ b/tools/clang/lib/FrontendTool/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Option Support diff --git a/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index e47a7c5287..84877d877b 100644 --- a/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -1,15 +1,16 @@ //===--- ExecuteCompilerInvocation.cpp ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExecuteCompilerInvocation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file holds ExecuteCompilerInvocation(). It is split into its own file to// -// minimize the impact of pulling in essentially everything else in Clang. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file holds ExecuteCompilerInvocation(). It is split into its own file to +// minimize the impact of pulling in essentially everything else in Clang. +// +//===----------------------------------------------------------------------===// #include "clang/FrontendTool/Utils.h" // #include "clang/ARCMigrate/ARCMTActions.h" // HLSL Change diff --git a/tools/clang/lib/Headers/CMakeLists.txt b/tools/clang/lib/Headers/CMakeLists.txt index 5970c4440d..7de5fbe8be 100644 --- a/tools/clang/lib/Headers/CMakeLists.txt +++ b/tools/clang/lib/Headers/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(files adxintrin.h altivec.h diff --git a/tools/clang/lib/Headers/Intrin.h b/tools/clang/lib/Headers/Intrin.h index 8a353fabcb..961f4c88aa 100644 --- a/tools/clang/lib/Headers/Intrin.h +++ b/tools/clang/lib/Headers/Intrin.h @@ -1,13 +1,25 @@ -/*====-------- Intrin.h ---------------------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// Intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -/* Only include this if we're compiling for the windows platform. */ +/* ===-------- Intrin.h ---------------------------------------------------=== + * + * 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 _MSC_VER #include_next #else diff --git a/tools/clang/lib/Headers/__stddef_max_align_t.h b/tools/clang/lib/Headers/__stddef_max_align_t.h index 5274a2a137..13d6666503 100644 --- a/tools/clang/lib/Headers/__stddef_max_align_t.h +++ b/tools/clang/lib/Headers/__stddef_max_align_t.h @@ -1,12 +1,27 @@ /*===---- __stddef_max_align_t.h - Definition of max_align_t for modules ---=== -/////////////////////////////////////////////////////////////////////////////// -// // -// __stddef_max_align_t.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2014 Chandler Carruth + * + * 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 __CLANG_MAX_ALIGN_T_DEFINED #define __CLANG_MAX_ALIGN_T_DEFINED diff --git a/tools/clang/lib/Headers/__wmmintrin_aes.h b/tools/clang/lib/Headers/__wmmintrin_aes.h index ebecb2a4bf..dfd7a0a492 100644 --- a/tools/clang/lib/Headers/__wmmintrin_aes.h +++ b/tools/clang/lib/Headers/__wmmintrin_aes.h @@ -1,12 +1,25 @@ /*===---- __wmmintrin_aes.h - AES intrinsics -------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// __wmmintrin_aes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef _WMMINTRIN_AES_H + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #define _WMMINTRIN_AES_H #include diff --git a/tools/clang/lib/Headers/__wmmintrin_pclmul.h b/tools/clang/lib/Headers/__wmmintrin_pclmul.h index 475f81d862..347ca8bb06 100644 --- a/tools/clang/lib/Headers/__wmmintrin_pclmul.h +++ b/tools/clang/lib/Headers/__wmmintrin_pclmul.h @@ -1,12 +1,25 @@ /*===---- __wmmintrin_pclmul.h - AES intrinsics ----------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// __wmmintrin_pclmul.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef _WMMINTRIN_PCLMUL_H + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #define _WMMINTRIN_PCLMUL_H #if !defined (__PCLMUL__) diff --git a/tools/clang/lib/Headers/adxintrin.h b/tools/clang/lib/Headers/adxintrin.h index f2708ccf84..6ff54b0771 100644 --- a/tools/clang/lib/Headers/adxintrin.h +++ b/tools/clang/lib/Headers/adxintrin.h @@ -1,12 +1,25 @@ /*===---- adxintrin.h - ADX intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// adxintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/altivec.h b/tools/clang/lib/Headers/altivec.h index ced6a646f0..17761901e2 100644 --- a/tools/clang/lib/Headers/altivec.h +++ b/tools/clang/lib/Headers/altivec.h @@ -1,12 +1,24 @@ /*===---- altivec.h - Standard header for type generic math ---------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// altivec.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __ALTIVEC_H #define __ALTIVEC_H diff --git a/tools/clang/lib/Headers/ammintrin.h b/tools/clang/lib/Headers/ammintrin.h index e61679d1c1..1fcf761227 100644 --- a/tools/clang/lib/Headers/ammintrin.h +++ b/tools/clang/lib/Headers/ammintrin.h @@ -1,12 +1,25 @@ /*===---- ammintrin.h - SSE4a intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// ammintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __AMMINTRIN_H #define __AMMINTRIN_H diff --git a/tools/clang/lib/Headers/arm_acle.h b/tools/clang/lib/Headers/arm_acle.h index 4c797f335e..66b4810b5d 100644 --- a/tools/clang/lib/Headers/arm_acle.h +++ b/tools/clang/lib/Headers/arm_acle.h @@ -1,12 +1,25 @@ /*===---- arm_acle.h - ARM Non-Neon intrinsics -----------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// arm_acle.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __ARM_ACLE_H #define __ARM_ACLE_H diff --git a/tools/clang/lib/Headers/avx2intrin.h b/tools/clang/lib/Headers/avx2intrin.h index f7808f4376..f91343ec7a 100644 --- a/tools/clang/lib/Headers/avx2intrin.h +++ b/tools/clang/lib/Headers/avx2intrin.h @@ -1,12 +1,25 @@ /*===---- avx2intrin.h - AVX2 intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx2intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/avx512bwintrin.h b/tools/clang/lib/Headers/avx512bwintrin.h index 041e913abe..6a88a7444b 100644 --- a/tools/clang/lib/Headers/avx512bwintrin.h +++ b/tools/clang/lib/Headers/avx512bwintrin.h @@ -1,14 +1,26 @@ /*===------------- avx512bwintrin.h - AVX512BW intrinsics ------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512bwintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef __IMMINTRIN_H -#error "Never use directly; include instead." -#endif + * + * + * 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 __AVX512BWINTRIN_H #define __AVX512BWINTRIN_H diff --git a/tools/clang/lib/Headers/avx512cdintrin.h b/tools/clang/lib/Headers/avx512cdintrin.h index a61c7bce34..aea652e263 100644 --- a/tools/clang/lib/Headers/avx512cdintrin.h +++ b/tools/clang/lib/Headers/avx512cdintrin.h @@ -1,14 +1,26 @@ /*===------------- avx512cdintrin.h - AVX512CD intrinsics ------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512cdintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef __IMMINTRIN_H -#error "Never use directly; include instead." -#endif + * + * + * 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 __AVX512CDINTRIN_H #define __AVX512CDINTRIN_H diff --git a/tools/clang/lib/Headers/avx512dqintrin.h b/tools/clang/lib/Headers/avx512dqintrin.h index 694bf46a5c..f74633e395 100644 --- a/tools/clang/lib/Headers/avx512dqintrin.h +++ b/tools/clang/lib/Headers/avx512dqintrin.h @@ -1,12 +1,25 @@ /*===---- avx512dqintrin.h - AVX512DQ intrinsics ---------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512dqintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/avx512erintrin.h b/tools/clang/lib/Headers/avx512erintrin.h index c7c7aacd28..11df8f56ab 100644 --- a/tools/clang/lib/Headers/avx512erintrin.h +++ b/tools/clang/lib/Headers/avx512erintrin.h @@ -1,14 +1,25 @@ /*===---- avx512fintrin.h - AVX2 intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512erintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef __IMMINTRIN_H -#error "Never use directly; include instead." -#endif + * + * 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 __AVX512ERINTRIN_H #define __AVX512ERINTRIN_H diff --git a/tools/clang/lib/Headers/avx512fintrin.h b/tools/clang/lib/Headers/avx512fintrin.h index ab2c7c4a39..0a2983848e 100644 --- a/tools/clang/lib/Headers/avx512fintrin.h +++ b/tools/clang/lib/Headers/avx512fintrin.h @@ -1,14 +1,25 @@ /*===---- avx512fintrin.h - AVX2 intrinsics --------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512fintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef __IMMINTRIN_H -#error "Never use directly; include instead." -#endif + * + * 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 __AVX512FINTRIN_H #define __AVX512FINTRIN_H diff --git a/tools/clang/lib/Headers/avx512vlbwintrin.h b/tools/clang/lib/Headers/avx512vlbwintrin.h index 63d38367d1..5631d7265f 100644 --- a/tools/clang/lib/Headers/avx512vlbwintrin.h +++ b/tools/clang/lib/Headers/avx512vlbwintrin.h @@ -1,12 +1,25 @@ /*===---- avx512vlbwintrin.h - AVX512VL and AVX512BW intrinsics ----------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512vlbwintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/avx512vldqintrin.h b/tools/clang/lib/Headers/avx512vldqintrin.h index f952a28089..78eb1f6445 100644 --- a/tools/clang/lib/Headers/avx512vldqintrin.h +++ b/tools/clang/lib/Headers/avx512vldqintrin.h @@ -1,12 +1,25 @@ /*===---- avx512vldqintrin.h - AVX512VL and AVX512DQ intrinsics ---------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512vldqintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/avx512vlintrin.h b/tools/clang/lib/Headers/avx512vlintrin.h index a42b6419ca..3617ea7119 100644 --- a/tools/clang/lib/Headers/avx512vlintrin.h +++ b/tools/clang/lib/Headers/avx512vlintrin.h @@ -1,12 +1,25 @@ /*===---- avx512vlintrin.h - AVX512VL intrinsics ---------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avx512vlintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/avxintrin.h b/tools/clang/lib/Headers/avxintrin.h index 8e1456a8f3..c3d3ea3eb3 100644 --- a/tools/clang/lib/Headers/avxintrin.h +++ b/tools/clang/lib/Headers/avxintrin.h @@ -1,12 +1,25 @@ /*===---- avxintrin.h - AVX intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// avxintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/bmi2intrin.h b/tools/clang/lib/Headers/bmi2intrin.h index 67fcd77ae2..ebf96963c8 100644 --- a/tools/clang/lib/Headers/bmi2intrin.h +++ b/tools/clang/lib/Headers/bmi2intrin.h @@ -1,12 +1,25 @@ /*===---- bmi2intrin.h - BMI2 intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// bmi2intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/bmiintrin.h b/tools/clang/lib/Headers/bmiintrin.h index f4361ce9af..8e17f41cbb 100644 --- a/tools/clang/lib/Headers/bmiintrin.h +++ b/tools/clang/lib/Headers/bmiintrin.h @@ -1,12 +1,25 @@ /*===---- bmiintrin.h - BMI intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// bmiintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/cpuid.h b/tools/clang/lib/Headers/cpuid.h index 6f90c02007..472f0a9583 100644 --- a/tools/clang/lib/Headers/cpuid.h +++ b/tools/clang/lib/Headers/cpuid.h @@ -1,12 +1,25 @@ /*===---- cpuid.h - X86 cpu model detection --------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// cpuid.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !(__x86_64__ || __i386__) #error this header is for x86 only #endif diff --git a/tools/clang/lib/Headers/cuda_builtin_vars.h b/tools/clang/lib/Headers/cuda_builtin_vars.h index d1d573b444..2be311517a 100644 --- a/tools/clang/lib/Headers/cuda_builtin_vars.h +++ b/tools/clang/lib/Headers/cuda_builtin_vars.h @@ -1,12 +1,25 @@ /*===---- cuda_builtin_vars.h - CUDA built-in variables ---------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// cuda_builtin_vars.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __CUDA_BUILTIN_VARS_H #define __CUDA_BUILTIN_VARS_H diff --git a/tools/clang/lib/Headers/emmintrin.h b/tools/clang/lib/Headers/emmintrin.h index 77f30c3b4d..8e1e94ca65 100644 --- a/tools/clang/lib/Headers/emmintrin.h +++ b/tools/clang/lib/Headers/emmintrin.h @@ -1,12 +1,25 @@ /*===---- emmintrin.h - SSE2 intrinsics ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// emmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __EMMINTRIN_H #define __EMMINTRIN_H diff --git a/tools/clang/lib/Headers/f16cintrin.h b/tools/clang/lib/Headers/f16cintrin.h index c2af6b0a07..64b16048f9 100644 --- a/tools/clang/lib/Headers/f16cintrin.h +++ b/tools/clang/lib/Headers/f16cintrin.h @@ -1,12 +1,25 @@ /*===---- f16cintrin.h - F16C intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// f16cintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/float.h b/tools/clang/lib/Headers/float.h index 8aa2e7e1a6..c42df9bb61 100644 --- a/tools/clang/lib/Headers/float.h +++ b/tools/clang/lib/Headers/float.h @@ -1,12 +1,25 @@ /*===---- float.h - Characteristics of floating point types ----------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// float.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __FLOAT_H #define __FLOAT_H diff --git a/tools/clang/lib/Headers/fma4intrin.h b/tools/clang/lib/Headers/fma4intrin.h index a8f5c9bc25..4e804651e3 100644 --- a/tools/clang/lib/Headers/fma4intrin.h +++ b/tools/clang/lib/Headers/fma4intrin.h @@ -1,12 +1,25 @@ /*===---- fma4intrin.h - FMA4 intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// fma4intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __X86INTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/fmaintrin.h b/tools/clang/lib/Headers/fmaintrin.h index 1c0f5711f7..0fd9caeb27 100644 --- a/tools/clang/lib/Headers/fmaintrin.h +++ b/tools/clang/lib/Headers/fmaintrin.h @@ -1,12 +1,25 @@ /*===---- fma4intrin.h - FMA4 intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// fmaintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/fxsrintrin.h b/tools/clang/lib/Headers/fxsrintrin.h index 1ce5827c71..a9ac6ff8e8 100644 --- a/tools/clang/lib/Headers/fxsrintrin.h +++ b/tools/clang/lib/Headers/fxsrintrin.h @@ -1,12 +1,25 @@ /*===---- fxsrintrin.h - FXSR intrinsic ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// fxsrintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/htmintrin.h b/tools/clang/lib/Headers/htmintrin.h index e1f7795ee2..503ab58e00 100644 --- a/tools/clang/lib/Headers/htmintrin.h +++ b/tools/clang/lib/Headers/htmintrin.h @@ -1,12 +1,24 @@ /*===---- htmintrin.h - Standard header for PowerPC HTM ---------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// htmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __HTMINTRIN_H #define __HTMINTRIN_H diff --git a/tools/clang/lib/Headers/htmxlintrin.h b/tools/clang/lib/Headers/htmxlintrin.h index c644669df5..8019420b46 100644 --- a/tools/clang/lib/Headers/htmxlintrin.h +++ b/tools/clang/lib/Headers/htmxlintrin.h @@ -1,12 +1,24 @@ /*===---- htmxlintrin.h - XL compiler HTM execution intrinsics-------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// htmxlintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __HTMXLINTRIN_H #define __HTMXLINTRIN_H diff --git a/tools/clang/lib/Headers/ia32intrin.h b/tools/clang/lib/Headers/ia32intrin.h index 8d6199de67..ec642b1560 100644 --- a/tools/clang/lib/Headers/ia32intrin.h +++ b/tools/clang/lib/Headers/ia32intrin.h @@ -1,12 +1,25 @@ -/*====-------- ia32intrin.h ---------------------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// ia32intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* ===-------- ia32intrin.h ---------------------------------------------------=== + * + * 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 __X86INTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/immintrin.h b/tools/clang/lib/Headers/immintrin.h index df96864d2c..226ea4df59 100644 --- a/tools/clang/lib/Headers/immintrin.h +++ b/tools/clang/lib/Headers/immintrin.h @@ -1,12 +1,25 @@ /*===---- immintrin.h - Intel intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// immintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #define __IMMINTRIN_H diff --git a/tools/clang/lib/Headers/inttypes.h b/tools/clang/lib/Headers/inttypes.h index 1712bc425a..51ea7e7397 100644 --- a/tools/clang/lib/Headers/inttypes.h +++ b/tools/clang/lib/Headers/inttypes.h @@ -1,12 +1,24 @@ /*===---- inttypes.h - Standard header for integer printf macros ----------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// inttypes.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __CLANG_INTTYPES_H #define __CLANG_INTTYPES_H diff --git a/tools/clang/lib/Headers/iso646.h b/tools/clang/lib/Headers/iso646.h index 72e8269e5a..f8d3b9322a 100644 --- a/tools/clang/lib/Headers/iso646.h +++ b/tools/clang/lib/Headers/iso646.h @@ -1,12 +1,27 @@ /*===---- iso646.h - Standard header for alternate spellings of operators---=== -/////////////////////////////////////////////////////////////////////////////// -// // -// iso646.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2008 Eli Friedman + * + * 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 __ISO646_H #define __ISO646_H diff --git a/tools/clang/lib/Headers/limits.h b/tools/clang/lib/Headers/limits.h index 3471fb7279..0a2ebee490 100644 --- a/tools/clang/lib/Headers/limits.h +++ b/tools/clang/lib/Headers/limits.h @@ -1,12 +1,26 @@ /*===---- limits.h - Standard header for integer sizes --------------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// limits.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2009 Chris Lattner + * + * 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 __CLANG_LIMITS_H #define __CLANG_LIMITS_H diff --git a/tools/clang/lib/Headers/lzcntintrin.h b/tools/clang/lib/Headers/lzcntintrin.h index 872a9ab3b3..ab98a10014 100644 --- a/tools/clang/lib/Headers/lzcntintrin.h +++ b/tools/clang/lib/Headers/lzcntintrin.h @@ -1,12 +1,25 @@ /*===---- lzcntintrin.h - LZCNT intrinsics ---------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// lzcntintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/mm3dnow.h b/tools/clang/lib/Headers/mm3dnow.h index 9617505f59..c02e658969 100644 --- a/tools/clang/lib/Headers/mm3dnow.h +++ b/tools/clang/lib/Headers/mm3dnow.h @@ -1,12 +1,25 @@ /*===---- mm3dnow.h - 3DNow! intrinsics ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// mm3dnow.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 _MM3DNOW_H_INCLUDED #define _MM3DNOW_H_INCLUDED diff --git a/tools/clang/lib/Headers/mm_malloc.h b/tools/clang/lib/Headers/mm_malloc.h index 4bdb005abc..dcf6409c19 100644 --- a/tools/clang/lib/Headers/mm_malloc.h +++ b/tools/clang/lib/Headers/mm_malloc.h @@ -1,12 +1,25 @@ /*===---- mm_malloc.h - Allocating and Freeing Aligned Memory Blocks -------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// mm_malloc.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __MM_MALLOC_H #define __MM_MALLOC_H diff --git a/tools/clang/lib/Headers/mmintrin.h b/tools/clang/lib/Headers/mmintrin.h index d607470c5d..d6e8028f1a 100644 --- a/tools/clang/lib/Headers/mmintrin.h +++ b/tools/clang/lib/Headers/mmintrin.h @@ -1,12 +1,25 @@ /*===---- mmintrin.h - MMX intrinsics --------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// mmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __MMINTRIN_H #define __MMINTRIN_H diff --git a/tools/clang/lib/Headers/nmmintrin.h b/tools/clang/lib/Headers/nmmintrin.h index 333f538ec8..f43428ce72 100644 --- a/tools/clang/lib/Headers/nmmintrin.h +++ b/tools/clang/lib/Headers/nmmintrin.h @@ -1,12 +1,25 @@ /*===---- nmmintrin.h - SSE4 intrinsics ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// nmmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 _NMMINTRIN_H #define _NMMINTRIN_H diff --git a/tools/clang/lib/Headers/pmmintrin.h b/tools/clang/lib/Headers/pmmintrin.h index 9bc3489638..f68a8f6301 100644 --- a/tools/clang/lib/Headers/pmmintrin.h +++ b/tools/clang/lib/Headers/pmmintrin.h @@ -1,12 +1,25 @@ /*===---- pmmintrin.h - SSE3 intrinsics ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// pmmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __PMMINTRIN_H #define __PMMINTRIN_H diff --git a/tools/clang/lib/Headers/popcntintrin.h b/tools/clang/lib/Headers/popcntintrin.h index 4f3bf7ecd6..dcb019b048 100644 --- a/tools/clang/lib/Headers/popcntintrin.h +++ b/tools/clang/lib/Headers/popcntintrin.h @@ -1,12 +1,25 @@ /*===---- popcntintrin.h - POPCNT intrinsics -------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// popcntintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __POPCNT__ #error "POPCNT instruction set not enabled" #endif diff --git a/tools/clang/lib/Headers/prfchwintrin.h b/tools/clang/lib/Headers/prfchwintrin.h index 69881a712d..5b04faad6b 100644 --- a/tools/clang/lib/Headers/prfchwintrin.h +++ b/tools/clang/lib/Headers/prfchwintrin.h @@ -1,12 +1,25 @@ /*===---- prfchwintrin.h - PREFETCHW intrinsic -----------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// prfchwintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !defined(__X86INTRIN_H) && !defined(_MM3DNOW_H_INCLUDED) #error "Never use directly; include or instead." #endif diff --git a/tools/clang/lib/Headers/rdseedintrin.h b/tools/clang/lib/Headers/rdseedintrin.h index b85d05141f..559d12cc7f 100644 --- a/tools/clang/lib/Headers/rdseedintrin.h +++ b/tools/clang/lib/Headers/rdseedintrin.h @@ -1,12 +1,25 @@ /*===---- rdseedintrin.h - RDSEED intrinsics -------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// rdseedintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __X86INTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/rtmintrin.h b/tools/clang/lib/Headers/rtmintrin.h index f073dd85a4..92deae4e03 100644 --- a/tools/clang/lib/Headers/rtmintrin.h +++ b/tools/clang/lib/Headers/rtmintrin.h @@ -1,12 +1,25 @@ /*===---- rtmintrin.h - RTM intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// rtmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/s390intrin.h b/tools/clang/lib/Headers/s390intrin.h index 4d906a974a..6bfb0bb5d5 100644 --- a/tools/clang/lib/Headers/s390intrin.h +++ b/tools/clang/lib/Headers/s390intrin.h @@ -1,12 +1,25 @@ /*===---- s390intrin.h - SystemZ intrinsics --------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// s390intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __S390INTRIN_H #define __S390INTRIN_H diff --git a/tools/clang/lib/Headers/shaintrin.h b/tools/clang/lib/Headers/shaintrin.h index 5fa3b974c8..902a3f8535 100644 --- a/tools/clang/lib/Headers/shaintrin.h +++ b/tools/clang/lib/Headers/shaintrin.h @@ -1,12 +1,25 @@ /*===---- shaintrin.h - SHA intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// shaintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/smmintrin.h b/tools/clang/lib/Headers/smmintrin.h index 07d2153b3f..97d11c6f55 100644 --- a/tools/clang/lib/Headers/smmintrin.h +++ b/tools/clang/lib/Headers/smmintrin.h @@ -1,12 +1,25 @@ /*===---- smmintrin.h - SSE4 intrinsics ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// smmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 _SMMINTRIN_H #define _SMMINTRIN_H diff --git a/tools/clang/lib/Headers/stdalign.h b/tools/clang/lib/Headers/stdalign.h index 87c26c73e3..82324fc02e 100644 --- a/tools/clang/lib/Headers/stdalign.h +++ b/tools/clang/lib/Headers/stdalign.h @@ -1,12 +1,25 @@ /*===---- stdalign.h - Standard header for alignment ------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// stdalign.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __STDALIGN_H #define __STDALIGN_H diff --git a/tools/clang/lib/Headers/stdarg.h b/tools/clang/lib/Headers/stdarg.h index 434bacb56d..d8a1dd06c3 100644 --- a/tools/clang/lib/Headers/stdarg.h +++ b/tools/clang/lib/Headers/stdarg.h @@ -1,12 +1,27 @@ /*===---- stdarg.h - Variable argument handling ----------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// stdarg.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2008 Eli Friedman + * + * 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 __STDARG_H #define __STDARG_H diff --git a/tools/clang/lib/Headers/stdatomic.h b/tools/clang/lib/Headers/stdatomic.h index 4fe08fa0a9..df46a7ae73 100644 --- a/tools/clang/lib/Headers/stdatomic.h +++ b/tools/clang/lib/Headers/stdatomic.h @@ -1,12 +1,25 @@ /*===---- stdatomic.h - Standard header for atomic types and operations -----=== -/////////////////////////////////////////////////////////////////////////////// -// // -// stdatomic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __CLANG_STDATOMIC_H #define __CLANG_STDATOMIC_H diff --git a/tools/clang/lib/Headers/stdbool.h b/tools/clang/lib/Headers/stdbool.h index b092c80262..77836151f6 100644 --- a/tools/clang/lib/Headers/stdbool.h +++ b/tools/clang/lib/Headers/stdbool.h @@ -1,12 +1,27 @@ /*===---- stdbool.h - Standard header for booleans -------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// stdbool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2008 Eli Friedman + * + * 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 __STDBOOL_H #define __STDBOOL_H diff --git a/tools/clang/lib/Headers/stddef.h b/tools/clang/lib/Headers/stddef.h index 3ef2f2c1f4..ab417849b0 100644 --- a/tools/clang/lib/Headers/stddef.h +++ b/tools/clang/lib/Headers/stddef.h @@ -1,12 +1,27 @@ /*===---- stddef.h - Basic type definitions --------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// stddef.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2008 Eli Friedman + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) diff --git a/tools/clang/lib/Headers/stdint.h b/tools/clang/lib/Headers/stdint.h index 1be87a31eb..79e299649f 100644 --- a/tools/clang/lib/Headers/stdint.h +++ b/tools/clang/lib/Headers/stdint.h @@ -1,12 +1,26 @@ /*===---- stdint.h - Standard header for sized integer types --------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// stdint.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2009 Chris Lattner + * + * 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 __CLANG_STDINT_H #define __CLANG_STDINT_H diff --git a/tools/clang/lib/Headers/stdnoreturn.h b/tools/clang/lib/Headers/stdnoreturn.h index a821fdc3a3..387b1949a2 100644 --- a/tools/clang/lib/Headers/stdnoreturn.h +++ b/tools/clang/lib/Headers/stdnoreturn.h @@ -1,12 +1,25 @@ /*===---- stdnoreturn.h - Standard header for noreturn macro ---------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// stdnoreturn.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __STDNORETURN_H #define __STDNORETURN_H diff --git a/tools/clang/lib/Headers/tbmintrin.h b/tools/clang/lib/Headers/tbmintrin.h index 8c93ab4e33..de9284fcfa 100644 --- a/tools/clang/lib/Headers/tbmintrin.h +++ b/tools/clang/lib/Headers/tbmintrin.h @@ -1,12 +1,25 @@ /*===---- tbmintrin.h - TBM intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// tbmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __TBM__ #error "TBM instruction set is not enabled" #endif diff --git a/tools/clang/lib/Headers/tgmath.h b/tools/clang/lib/Headers/tgmath.h index 74687e3c21..ad7511c431 100644 --- a/tools/clang/lib/Headers/tgmath.h +++ b/tools/clang/lib/Headers/tgmath.h @@ -1,12 +1,26 @@ /*===---- tgmath.h - Standard header for type generic math ----------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// tgmath.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * Copyright (c) 2009 Howard Hinnant + * + * 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 __TGMATH_H #define __TGMATH_H diff --git a/tools/clang/lib/Headers/tmmintrin.h b/tools/clang/lib/Headers/tmmintrin.h index 7deef5d79c..f896fe8dab 100644 --- a/tools/clang/lib/Headers/tmmintrin.h +++ b/tools/clang/lib/Headers/tmmintrin.h @@ -1,12 +1,25 @@ /*===---- tmmintrin.h - SSSE3 intrinsics -----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// tmmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __TMMINTRIN_H #define __TMMINTRIN_H diff --git a/tools/clang/lib/Headers/unwind.h b/tools/clang/lib/Headers/unwind.h index 4d2b0f22be..45bc2c3aa0 100644 --- a/tools/clang/lib/Headers/unwind.h +++ b/tools/clang/lib/Headers/unwind.h @@ -1,13 +1,25 @@ /*===---- unwind.h - Stack unwinding ----------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// unwind.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -/* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/ + * + * 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 __CLANG_UNWIND_H #define __CLANG_UNWIND_H diff --git a/tools/clang/lib/Headers/vadefs.h b/tools/clang/lib/Headers/vadefs.h index 0cfe3f7216..abf2918195 100644 --- a/tools/clang/lib/Headers/vadefs.h +++ b/tools/clang/lib/Headers/vadefs.h @@ -1,13 +1,25 @@ -/*====-------- vadefs.h ---------------------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// vadefs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -/* Only include this if we are aiming for MSVC compatibility. */ +/* ===-------- vadefs.h ---------------------------------------------------=== + * + * 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 _MSC_VER #include_next #else diff --git a/tools/clang/lib/Headers/varargs.h b/tools/clang/lib/Headers/varargs.h index 29ebeddae3..69a33beade 100644 --- a/tools/clang/lib/Headers/varargs.h +++ b/tools/clang/lib/Headers/varargs.h @@ -1,12 +1,4 @@ /*===---- varargs.h - Variable argument handling -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// varargs.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef __VARARGS_H #define __VARARGS_H #error "Please use instead of " #endif diff --git a/tools/clang/lib/Headers/vecintrin.h b/tools/clang/lib/Headers/vecintrin.h index 9c0d9a159e..a9dec98e34 100644 --- a/tools/clang/lib/Headers/vecintrin.h +++ b/tools/clang/lib/Headers/vecintrin.h @@ -1,12 +1,25 @@ /*===---- vecintrin.h - Vector intrinsics ----------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// vecintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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. + * + *===-----------------------------------------------------------------------=== + */ #if defined(__s390x__) && defined(__VEC__) #define __ATTRS_ai __attribute__((__always_inline__)) diff --git a/tools/clang/lib/Headers/wmmintrin.h b/tools/clang/lib/Headers/wmmintrin.h index c556326397..c054f2501c 100644 --- a/tools/clang/lib/Headers/wmmintrin.h +++ b/tools/clang/lib/Headers/wmmintrin.h @@ -1,12 +1,25 @@ /*===---- wmmintrin.h - AES intrinsics ------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// wmmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 _WMMINTRIN_H #define _WMMINTRIN_H diff --git a/tools/clang/lib/Headers/x86intrin.h b/tools/clang/lib/Headers/x86intrin.h index 5d00966fd7..a90e7f0aad 100644 --- a/tools/clang/lib/Headers/x86intrin.h +++ b/tools/clang/lib/Headers/x86intrin.h @@ -1,12 +1,25 @@ /*===---- x86intrin.h - X86 intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// x86intrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __X86INTRIN_H #define __X86INTRIN_H diff --git a/tools/clang/lib/Headers/xmmintrin.h b/tools/clang/lib/Headers/xmmintrin.h index 8e666dcb1e..885cd843d4 100644 --- a/tools/clang/lib/Headers/xmmintrin.h +++ b/tools/clang/lib/Headers/xmmintrin.h @@ -1,12 +1,25 @@ /*===---- xmmintrin.h - SSE intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// xmmintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __XMMINTRIN_H #define __XMMINTRIN_H diff --git a/tools/clang/lib/Headers/xopintrin.h b/tools/clang/lib/Headers/xopintrin.h index ae8fd12e03..dc70074876 100644 --- a/tools/clang/lib/Headers/xopintrin.h +++ b/tools/clang/lib/Headers/xopintrin.h @@ -1,12 +1,25 @@ /*===---- xopintrin.h - XOP intrinsics -------------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// xopintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __X86INTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Headers/xtestintrin.h b/tools/clang/lib/Headers/xtestintrin.h index c7bfada512..d118624f90 100644 --- a/tools/clang/lib/Headers/xtestintrin.h +++ b/tools/clang/lib/Headers/xtestintrin.h @@ -1,12 +1,25 @@ /*===---- xtestintrin.h - XTEST intrinsic ---------------------------------=== -/////////////////////////////////////////////////////////////////////////////// -// // -// xtestintrin.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * 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 __IMMINTRIN_H #error "Never use directly; include instead." #endif diff --git a/tools/clang/lib/Index/CMakeLists.txt b/tools/clang/lib/Index/CMakeLists.txt index 21dfa45358..3869c32c87 100644 --- a/tools/clang/lib/Index/CMakeLists.txt +++ b/tools/clang/lib/Index/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/lib/Index/CommentToXML.cpp b/tools/clang/lib/Index/CommentToXML.cpp index 08f2938f55..ef6aeefa65 100644 --- a/tools/clang/lib/Index/CommentToXML.cpp +++ b/tools/clang/lib/Index/CommentToXML.cpp @@ -1,12 +1,11 @@ //===--- CommentToXML.cpp - Convert comments to XML representation --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentToXML.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Index/CommentToXML.h" #include "SimpleFormatContext.h" diff --git a/tools/clang/lib/Index/SimpleFormatContext.h b/tools/clang/lib/Index/SimpleFormatContext.h index e95c783b2c..b884214989 100644 --- a/tools/clang/lib/Index/SimpleFormatContext.h +++ b/tools/clang/lib/Index/SimpleFormatContext.h @@ -1,16 +1,17 @@ //===--- SimpleFormatContext.h ----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimpleFormatContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// \file /// -/// \brief Defines a utility class for use of clang-format in libclang // +/// \brief Defines a utility class for use of clang-format in libclang // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_INDEX_SIMPLEFORMATCONTEXT_H #define LLVM_CLANG_LIB_INDEX_SIMPLEFORMATCONTEXT_H diff --git a/tools/clang/lib/Index/USRGeneration.cpp b/tools/clang/lib/Index/USRGeneration.cpp index b32544fd5c..96e3550af5 100644 --- a/tools/clang/lib/Index/USRGeneration.cpp +++ b/tools/clang/lib/Index/USRGeneration.cpp @@ -1,12 +1,11 @@ //===- USRGeneration.cpp - Routines for USR generation --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// USRGeneration.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Index/USRGeneration.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Lex/CMakeLists.txt b/tools/clang/lib/Lex/CMakeLists.txt index b310f48876..38df144adf 100644 --- a/tools/clang/lib/Lex/CMakeLists.txt +++ b/tools/clang/lib/Lex/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # TODO: Add -maltivec when ARCH is PowerPC. set(LLVM_LINK_COMPONENTS support) diff --git a/tools/clang/lib/Lex/HeaderMap.cpp b/tools/clang/lib/Lex/HeaderMap.cpp index 9f4fcfb6da..09d53846d4 100644 --- a/tools/clang/lib/Lex/HeaderMap.cpp +++ b/tools/clang/lib/Lex/HeaderMap.cpp @@ -1,14 +1,15 @@ //===--- HeaderMap.cpp - A file that acts like dir of symlinks ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HeaderMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the HeaderMap interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the HeaderMap interface. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/HeaderMap.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Lex/HeaderSearch.cpp b/tools/clang/lib/Lex/HeaderSearch.cpp index 907065de3e..983dc18b57 100644 --- a/tools/clang/lib/Lex/HeaderSearch.cpp +++ b/tools/clang/lib/Lex/HeaderSearch.cpp @@ -1,14 +1,15 @@ //===--- HeaderSearch.cpp - Resolve Header File Locations ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HeaderSearch.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the DirectoryLookup and HeaderSearch interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DirectoryLookup and HeaderSearch interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/HeaderSearch.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Lex/Lexer.cpp b/tools/clang/lib/Lex/Lexer.cpp index ad16e6900e..1b398316cf 100644 --- a/tools/clang/lib/Lex/Lexer.cpp +++ b/tools/clang/lib/Lex/Lexer.cpp @@ -1,14 +1,15 @@ //===--- Lexer.cpp - C Language Family Lexer ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Lexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Lexer and Token interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Lexer and Token interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Lexer.h" #include "UnicodeCharSets.h" diff --git a/tools/clang/lib/Lex/LiteralSupport.cpp b/tools/clang/lib/Lex/LiteralSupport.cpp index e1e7eaf5da..59104573be 100644 --- a/tools/clang/lib/Lex/LiteralSupport.cpp +++ b/tools/clang/lib/Lex/LiteralSupport.cpp @@ -1,15 +1,16 @@ //===--- LiteralSupport.cpp - Code to parse and process literals ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LiteralSupport.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the NumericLiteralParser, CharLiteralParser, and // -// StringLiteralParser interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the NumericLiteralParser, CharLiteralParser, and +// StringLiteralParser interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/LiteralSupport.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Lex/MacroArgs.cpp b/tools/clang/lib/Lex/MacroArgs.cpp index a81fe16c49..1c1979d8e8 100644 --- a/tools/clang/lib/Lex/MacroArgs.cpp +++ b/tools/clang/lib/Lex/MacroArgs.cpp @@ -1,14 +1,15 @@ //===--- MacroArgs.cpp - Formal argument info for Macros ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacroArgs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MacroArgs interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MacroArgs interface. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/MacroArgs.h" #include "clang/Lex/LexDiagnostic.h" diff --git a/tools/clang/lib/Lex/MacroInfo.cpp b/tools/clang/lib/Lex/MacroInfo.cpp index 0838f296e2..109b6c12b8 100644 --- a/tools/clang/lib/Lex/MacroInfo.cpp +++ b/tools/clang/lib/Lex/MacroInfo.cpp @@ -1,14 +1,15 @@ //===--- MacroInfo.cpp - Information about #defined identifiers -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacroInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MacroInfo interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MacroInfo interface. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/MacroInfo.h" #include "clang/Lex/Preprocessor.h" diff --git a/tools/clang/lib/Lex/ModuleMap.cpp b/tools/clang/lib/Lex/ModuleMap.cpp index ea025c18b1..9915fe9154 100644 --- a/tools/clang/lib/Lex/ModuleMap.cpp +++ b/tools/clang/lib/Lex/ModuleMap.cpp @@ -1,14 +1,16 @@ //===--- ModuleMap.cpp - Describe the layout of modules ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ModuleMap implementation, which describes the layout// -// of a module as it relates to headers. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ModuleMap implementation, which describes the layout +// of a module as it relates to headers. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/ModuleMap.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Lex/PPCaching.cpp b/tools/clang/lib/Lex/PPCaching.cpp index 7017d45cc9..bd48ae64ab 100644 --- a/tools/clang/lib/Lex/PPCaching.cpp +++ b/tools/clang/lib/Lex/PPCaching.cpp @@ -1,15 +1,16 @@ //===--- PPCaching.cpp - Handle caching lexed tokens ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPCaching.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements pieces of the Preprocessor interface that manage the // -// caching of lexed tokens. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements pieces of the Preprocessor interface that manage the +// caching of lexed tokens. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" using namespace clang; diff --git a/tools/clang/lib/Lex/PPCallbacks.cpp b/tools/clang/lib/Lex/PPCallbacks.cpp index a841ea0fd3..952b926005 100644 --- a/tools/clang/lib/Lex/PPCallbacks.cpp +++ b/tools/clang/lib/Lex/PPCallbacks.cpp @@ -1,12 +1,11 @@ //===--- PPCallbacks.cpp - Callbacks for Preprocessor actions ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPCallbacks.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/PPCallbacks.h" diff --git a/tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp b/tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp index b957f0d806..b42494816a 100644 --- a/tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp +++ b/tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp @@ -1,14 +1,16 @@ //===--- PPConditionalDirectiveRecord.h - Preprocessing Directives-*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPConditionalDirectiveRecord.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PPConditionalDirectiveRecord class, which maintains// -// a record of conditional directive regions. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PPConditionalDirectiveRecord class, which maintains +// a record of conditional directive regions. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/PPConditionalDirectiveRecord.h" #include "llvm/Support/Capacity.h" diff --git a/tools/clang/lib/Lex/PPDirectives.cpp b/tools/clang/lib/Lex/PPDirectives.cpp index 6fbd320016..8f0373653e 100644 --- a/tools/clang/lib/Lex/PPDirectives.cpp +++ b/tools/clang/lib/Lex/PPDirectives.cpp @@ -1,17 +1,16 @@ //===--- PPDirectives.cpp - Directive Handling for Preprocessor -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPDirectives.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Implements # directive processing for the Preprocessor. // +/// \file +/// \brief Implements # directive processing for the Preprocessor. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Lex/PPExpressions.cpp b/tools/clang/lib/Lex/PPExpressions.cpp index 239a2f7918..4451302339 100644 --- a/tools/clang/lib/Lex/PPExpressions.cpp +++ b/tools/clang/lib/Lex/PPExpressions.cpp @@ -1,17 +1,20 @@ //===--- PPExpressions.cpp - Preprocessor Expression Evaluation -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPExpressions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Preprocessor::EvaluateDirectiveExpression method,// -// which parses and evaluates integer constant expressions for #if directives.// -// // -// FIXME: implement testing for #assert's. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Preprocessor::EvaluateDirectiveExpression method, +// which parses and evaluates integer constant expressions for #if directives. +// +//===----------------------------------------------------------------------===// +// +// FIXME: implement testing for #assert's. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" #include "clang/Basic/TargetInfo.h" diff --git a/tools/clang/lib/Lex/PPLexerChange.cpp b/tools/clang/lib/Lex/PPLexerChange.cpp index ba6f4ce411..c231e18eec 100644 --- a/tools/clang/lib/Lex/PPLexerChange.cpp +++ b/tools/clang/lib/Lex/PPLexerChange.cpp @@ -1,15 +1,16 @@ //===--- PPLexerChange.cpp - Handle changing lexers in the preprocessor ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPLexerChange.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements pieces of the Preprocessor interface that manage the // -// current lexer stack. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements pieces of the Preprocessor interface that manage the +// current lexer stack. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Lex/PPMacroExpansion.cpp b/tools/clang/lib/Lex/PPMacroExpansion.cpp index 94ee55607e..64ce8c9182 100644 --- a/tools/clang/lib/Lex/PPMacroExpansion.cpp +++ b/tools/clang/lib/Lex/PPMacroExpansion.cpp @@ -1,15 +1,16 @@ //===--- MacroExpansion.cpp - Top level Macro Expansion -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPMacroExpansion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the top level handling of macro expansion for the // -// preprocessor. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the top level handling of macro expansion for the +// preprocessor. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" #include "clang/Basic/Attributes.h" diff --git a/tools/clang/lib/Lex/PTHLexer.cpp b/tools/clang/lib/Lex/PTHLexer.cpp index b7f63b5fe1..5f63d35c5b 100644 --- a/tools/clang/lib/Lex/PTHLexer.cpp +++ b/tools/clang/lib/Lex/PTHLexer.cpp @@ -1,14 +1,15 @@ //===--- PTHLexer.cpp - Lex from a token stream ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PTHLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PTHLexer interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PTHLexer interface. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/PTHLexer.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Lex/Pragma.cpp b/tools/clang/lib/Lex/Pragma.cpp index d4b7d4f5ef..3d85500c3b 100644 --- a/tools/clang/lib/Lex/Pragma.cpp +++ b/tools/clang/lib/Lex/Pragma.cpp @@ -1,15 +1,16 @@ //===--- Pragma.cpp - Pragma registration and handling --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Pragma.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PragmaHandler/PragmaTable interfaces and implements// -// pragma related methods of the Preprocessor class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PragmaHandler/PragmaTable interfaces and implements +// pragma related methods of the Preprocessor class. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Pragma.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Lex/PreprocessingRecord.cpp b/tools/clang/lib/Lex/PreprocessingRecord.cpp index 32dbe49fa0..8cae265b72 100644 --- a/tools/clang/lib/Lex/PreprocessingRecord.cpp +++ b/tools/clang/lib/Lex/PreprocessingRecord.cpp @@ -1,14 +1,16 @@ //===--- PreprocessingRecord.cpp - Record of Preprocessing ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PreprocessingRecord.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PreprocessingRecord class, which maintains a record// -// of what occurred during preprocessing, and its helpers. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PreprocessingRecord class, which maintains a record +// of what occurred during preprocessing, and its helpers. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/PreprocessingRecord.h" #include "clang/Lex/MacroInfo.h" diff --git a/tools/clang/lib/Lex/Preprocessor.cpp b/tools/clang/lib/Lex/Preprocessor.cpp index 40d186280d..65a0628eda 100644 --- a/tools/clang/lib/Lex/Preprocessor.cpp +++ b/tools/clang/lib/Lex/Preprocessor.cpp @@ -1,26 +1,29 @@ //===--- Preprocess.cpp - C Language Family Preprocessor Implementation ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Preprocessor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Preprocessor interface. // -// // -// Options to support: // -// -H - Print the name of each header file used. // -// -d[DNI] - Dump various things. // -// -fworking-directory - #line's with preprocessor's working dir. // -// -fpreprocessed // -// -dependency-file,-M,-MM,-MF,-MG,-MP,-MT,-MQ,-MD,-MMD // -// -W* // -// -w // -// // -// Messages to emit: // -// "Multiple include guards may be useful for:\n" // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Preprocessor interface. +// +//===----------------------------------------------------------------------===// +// +// Options to support: +// -H - Print the name of each header file used. +// -d[DNI] - Dump various things. +// -fworking-directory - #line's with preprocessor's working dir. +// -fpreprocessed +// -dependency-file,-M,-MM,-MF,-MG,-MP,-MT,-MQ,-MD,-MMD +// -W* +// -w +// +// Messages to emit: +// "Multiple include guards may be useful for:\n" +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Lex/PreprocessorLexer.cpp b/tools/clang/lib/Lex/PreprocessorLexer.cpp index b07ec3b095..33ccbc0cfc 100644 --- a/tools/clang/lib/Lex/PreprocessorLexer.cpp +++ b/tools/clang/lib/Lex/PreprocessorLexer.cpp @@ -1,14 +1,15 @@ //===--- PreprocessorLexer.cpp - C Language Family Lexer ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PreprocessorLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the PreprocessorLexer and Token interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the PreprocessorLexer and Token interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/PreprocessorLexer.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Lex/ScratchBuffer.cpp b/tools/clang/lib/Lex/ScratchBuffer.cpp index 0463d97db5..cd8a27e76c 100644 --- a/tools/clang/lib/Lex/ScratchBuffer.cpp +++ b/tools/clang/lib/Lex/ScratchBuffer.cpp @@ -1,14 +1,15 @@ //===--- ScratchBuffer.cpp - Scratch space for forming tokens -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScratchBuffer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ScratchBuffer interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ScratchBuffer interface. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/ScratchBuffer.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Lex/TokenConcatenation.cpp b/tools/clang/lib/Lex/TokenConcatenation.cpp index 383fec5ba9..27b4eab1a2 100644 --- a/tools/clang/lib/Lex/TokenConcatenation.cpp +++ b/tools/clang/lib/Lex/TokenConcatenation.cpp @@ -1,14 +1,15 @@ //===--- TokenConcatenation.cpp - Token Concatenation Avoidance -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenConcatenation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TokenConcatenation class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TokenConcatenation class. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/TokenConcatenation.h" #include "clang/Basic/CharInfo.h" diff --git a/tools/clang/lib/Lex/TokenLexer.cpp b/tools/clang/lib/Lex/TokenLexer.cpp index 7d1fcf41ea..e7512fa283 100644 --- a/tools/clang/lib/Lex/TokenLexer.cpp +++ b/tools/clang/lib/Lex/TokenLexer.cpp @@ -1,14 +1,15 @@ //===--- TokenLexer.cpp - Lex from a token stream -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TokenLexer interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TokenLexer interface. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/TokenLexer.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Lex/UnicodeCharSets.h b/tools/clang/lib/Lex/UnicodeCharSets.h index 0bc6407d7e..6c8d744a4e 100644 --- a/tools/clang/lib/Lex/UnicodeCharSets.h +++ b/tools/clang/lib/Lex/UnicodeCharSets.h @@ -1,12 +1,11 @@ //===--- UnicodeCharSets.h - Contains important sets of characters --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnicodeCharSets.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_LEX_UNICODECHARSETS_H #define LLVM_CLANG_LIB_LEX_UNICODECHARSETS_H diff --git a/tools/clang/lib/Parse/CMakeLists.txt b/tools/clang/lib/Parse/CMakeLists.txt index 9326f6e416..7dfca8e154 100644 --- a/tools/clang/lib/Parse/CMakeLists.txt +++ b/tools/clang/lib/Parse/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS # MC # HLSL Change # MCParser # HLSL Change diff --git a/tools/clang/lib/Parse/ParseAST.cpp b/tools/clang/lib/Parse/ParseAST.cpp index bfd7bd66ff..78c3640c98 100644 --- a/tools/clang/lib/Parse/ParseAST.cpp +++ b/tools/clang/lib/Parse/ParseAST.cpp @@ -1,14 +1,15 @@ //===--- ParseAST.cpp - Provide the clang::ParseAST method ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseAST.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the clang::ParseAST method. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the clang::ParseAST method. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/ParseAST.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp b/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp index 3ae9976c1a..722009901b 100644 --- a/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp +++ b/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp @@ -1,14 +1,15 @@ //===--- ParseCXXInlineMethods.cpp - C++ class inline methods parsing------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseCXXInlineMethods.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements parsing for C++ class inline methods. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements parsing for C++ class inline methods. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseDecl.cpp b/tools/clang/lib/Parse/ParseDecl.cpp index a9f17a501c..8c4a61d4a9 100644 --- a/tools/clang/lib/Parse/ParseDecl.cpp +++ b/tools/clang/lib/Parse/ParseDecl.cpp @@ -1,14 +1,15 @@ //===--- ParseDecl.cpp - Declaration Parsing ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Declaration portions of the Parser interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Declaration portions of the Parser interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseDeclCXX.cpp b/tools/clang/lib/Parse/ParseDeclCXX.cpp index 005ae8ad08..38b3ee77a9 100644 --- a/tools/clang/lib/Parse/ParseDeclCXX.cpp +++ b/tools/clang/lib/Parse/ParseDeclCXX.cpp @@ -1,14 +1,15 @@ //===--- ParseDeclCXX.cpp - C++ Declaration Parsing -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseDeclCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the C++ Declaration portions of the Parser interfaces.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the C++ Declaration portions of the Parser interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseExpr.cpp b/tools/clang/lib/Parse/ParseExpr.cpp index 601b5fe652..6f69cb18a3 100644 --- a/tools/clang/lib/Parse/ParseExpr.cpp +++ b/tools/clang/lib/Parse/ParseExpr.cpp @@ -1,26 +1,25 @@ //===--- ParseExpr.cpp - Expression Parsing -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseExpr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// -/// \file // -/// \brief Provides the Expression parsing implementation. // -/// -/// Expressions in C99 basically consist of a bunch of binary operators with // -/// unary operators and other random stuff at the leaves. // -/// -/// In the C99 grammar, these unary operators bind tightest and are represented// -/// as the 'cast-expression' production. Everything else is either a binary // -/// operator (e.g. '/') or a ternary operator ("?:"). The unary leaves are // -/// handled by ParseCastExpression, the higher level pieces are handled by // -/// ParseBinaryExpression. // -/// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// +/// \file +/// \brief Provides the Expression parsing implementation. +/// +/// Expressions in C99 basically consist of a bunch of binary operators with +/// unary operators and other random stuff at the leaves. +/// +/// In the C99 grammar, these unary operators bind tightest and are represented +/// as the 'cast-expression' production. Everything else is either a binary +/// operator (e.g. '/') or a ternary operator ("?:"). The unary leaves are +/// handled by ParseCastExpression, the higher level pieces are handled by +/// ParseBinaryExpression. +/// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseExprCXX.cpp b/tools/clang/lib/Parse/ParseExprCXX.cpp index 169115d4d7..69349dcf7c 100644 --- a/tools/clang/lib/Parse/ParseExprCXX.cpp +++ b/tools/clang/lib/Parse/ParseExprCXX.cpp @@ -1,13 +1,15 @@ //===--- ParseExprCXX.cpp - C++ Expression Parsing ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseExprCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Expression parsing implementation for C++. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Expression parsing implementation for C++. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseInit.cpp b/tools/clang/lib/Parse/ParseInit.cpp index 6bffdf6a87..19cf1eebb0 100644 --- a/tools/clang/lib/Parse/ParseInit.cpp +++ b/tools/clang/lib/Parse/ParseInit.cpp @@ -1,14 +1,15 @@ //===--- ParseInit.cpp - Initializer Parsing ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseInit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements initializer parsing as specified by C99 6.7.8. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements initializer parsing as specified by C99 6.7.8. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseObjc.cpp b/tools/clang/lib/Parse/ParseObjc.cpp index 1d133496d4..ed6090453d 100644 --- a/tools/clang/lib/Parse/ParseObjc.cpp +++ b/tools/clang/lib/Parse/ParseObjc.cpp @@ -1,14 +1,15 @@ //===--- ParseObjC.cpp - Objective C Parsing ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseObjc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Objective-C portions of the Parser interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Objective-C portions of the Parser interface. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseOpenMP.cpp b/tools/clang/lib/Parse/ParseOpenMP.cpp index d8ea901174..0113a3157c 100644 --- a/tools/clang/lib/Parse/ParseOpenMP.cpp +++ b/tools/clang/lib/Parse/ParseOpenMP.cpp @@ -1,16 +1,15 @@ //===--- ParseOpenMP.cpp - OpenMP directives parsing ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseOpenMP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file implements parsing of all OpenMP directives and clauses.// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file implements parsing of all OpenMP directives and clauses. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "RAIIObjectsForParser.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Parse/ParsePragma.cpp b/tools/clang/lib/Parse/ParsePragma.cpp index 85843f5427..ec161fad81 100644 --- a/tools/clang/lib/Parse/ParsePragma.cpp +++ b/tools/clang/lib/Parse/ParsePragma.cpp @@ -1,14 +1,15 @@ //===--- ParsePragma.cpp - Language specific pragma parsing ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParsePragma.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the language specific #pragma handlers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the language specific #pragma handlers. +// +//===----------------------------------------------------------------------===// #include "RAIIObjectsForParser.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Parse/ParseStmt.cpp b/tools/clang/lib/Parse/ParseStmt.cpp index 6ab3cf7be2..54ad29d433 100644 --- a/tools/clang/lib/Parse/ParseStmt.cpp +++ b/tools/clang/lib/Parse/ParseStmt.cpp @@ -1,15 +1,16 @@ //===--- ParseStmt.cpp - Statement and Block Parser -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseStmt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Statement and Block portions of the Parser // -// interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Statement and Block portions of the Parser +// interface. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseStmtAsm.cpp b/tools/clang/lib/Parse/ParseStmtAsm.cpp index 4f503a5808..2cdf47afbe 100644 --- a/tools/clang/lib/Parse/ParseStmtAsm.cpp +++ b/tools/clang/lib/Parse/ParseStmtAsm.cpp @@ -1,14 +1,15 @@ //===---- ParseStmtAsm.cpp - Assembly Statement Parser --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseStmtAsm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements parsing for GCC and Microsoft inline assembly. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements parsing for GCC and Microsoft inline assembly. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseTemplate.cpp b/tools/clang/lib/Parse/ParseTemplate.cpp index 68d748b225..130b2bc2a2 100644 --- a/tools/clang/lib/Parse/ParseTemplate.cpp +++ b/tools/clang/lib/Parse/ParseTemplate.cpp @@ -1,14 +1,15 @@ //===--- ParseTemplate.cpp - Template Parsing -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseTemplate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements parsing of C++ templates. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements parsing of C++ templates. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/ParseTentative.cpp b/tools/clang/lib/Parse/ParseTentative.cpp index f8d9399b77..29c75062f6 100644 --- a/tools/clang/lib/Parse/ParseTentative.cpp +++ b/tools/clang/lib/Parse/ParseTentative.cpp @@ -1,15 +1,16 @@ //===--- ParseTentative.cpp - Ambiguity Resolution Parsing ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParseTentative.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the tentative parsing portions of the Parser // -// interfaces, for ambiguity resolution. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the tentative parsing portions of the Parser +// interfaces, for ambiguity resolution. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "clang/Parse/ParseDiagnostic.h" diff --git a/tools/clang/lib/Parse/Parser.cpp b/tools/clang/lib/Parse/Parser.cpp index 983630acfc..0be89e46e6 100644 --- a/tools/clang/lib/Parse/Parser.cpp +++ b/tools/clang/lib/Parse/Parser.cpp @@ -1,14 +1,15 @@ //===--- Parser.cpp - C Language Family Parser ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Parser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Parser interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Parser interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" #include "RAIIObjectsForParser.h" diff --git a/tools/clang/lib/Parse/RAIIObjectsForParser.h b/tools/clang/lib/Parse/RAIIObjectsForParser.h index ee6e28b6f8..36d87ebd8a 100644 --- a/tools/clang/lib/Parse/RAIIObjectsForParser.h +++ b/tools/clang/lib/Parse/RAIIObjectsForParser.h @@ -1,15 +1,16 @@ //===--- RAIIObjectsForParser.h - RAII helpers for the parser ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RAIIObjectsForParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines and implements the some simple RAII objects that are used// -// by the parser to manage bits in recursion. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines and implements the some simple RAII objects that are used +// by the parser to manage bits in recursion. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_PARSE_RAIIOBJECTSFORPARSER_H #define LLVM_CLANG_LIB_PARSE_RAIIOBJECTSFORPARSER_H diff --git a/tools/clang/lib/Rewrite/CMakeLists.txt b/tools/clang/lib/Rewrite/CMakeLists.txt index 160016399d..16550b1b71 100644 --- a/tools/clang/lib/Rewrite/CMakeLists.txt +++ b/tools/clang/lib/Rewrite/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/lib/Rewrite/DeltaTree.cpp b/tools/clang/lib/Rewrite/DeltaTree.cpp index 3b01da6427..352fab077a 100644 --- a/tools/clang/lib/Rewrite/DeltaTree.cpp +++ b/tools/clang/lib/Rewrite/DeltaTree.cpp @@ -1,14 +1,15 @@ //===--- DeltaTree.cpp - B-Tree for Rewrite Delta tracking ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeltaTree.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the DeltaTree and related classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DeltaTree and related classes. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Core/DeltaTree.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/lib/Rewrite/HTMLRewrite.cpp b/tools/clang/lib/Rewrite/HTMLRewrite.cpp index d960a86d13..275fbd0ebc 100644 --- a/tools/clang/lib/Rewrite/HTMLRewrite.cpp +++ b/tools/clang/lib/Rewrite/HTMLRewrite.cpp @@ -1,15 +1,16 @@ //== HTMLRewrite.cpp - Translate source code into prettified HTML --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// HTMLRewrite.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the HTMLRewriter class, which is used to translate the // -// text of a source file into prettified HTML. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the HTMLRewriter class, which is used to translate the +// text of a source file into prettified HTML. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Core/HTMLRewrite.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Rewrite/RewriteRope.cpp b/tools/clang/lib/Rewrite/RewriteRope.cpp index 18519f6e4f..451ad07e4e 100644 --- a/tools/clang/lib/Rewrite/RewriteRope.cpp +++ b/tools/clang/lib/Rewrite/RewriteRope.cpp @@ -1,14 +1,15 @@ //===--- RewriteRope.cpp - Rope specialized for rewriter --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteRope.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the RewriteRope class, which is a powerful string. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the RewriteRope class, which is a powerful string. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Core/RewriteRope.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/lib/Rewrite/Rewriter.cpp b/tools/clang/lib/Rewrite/Rewriter.cpp index 9956689092..be09a363a6 100644 --- a/tools/clang/lib/Rewrite/Rewriter.cpp +++ b/tools/clang/lib/Rewrite/Rewriter.cpp @@ -1,15 +1,16 @@ //===--- Rewriter.cpp - Code rewriting interface --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Rewriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the Rewriter class, which is used for code // -// transformations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the Rewriter class, which is used for code +// transformations. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Core/Rewriter.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/Rewrite/TokenRewriter.cpp b/tools/clang/lib/Rewrite/TokenRewriter.cpp index 88f0fa8c55..494defdeda 100644 --- a/tools/clang/lib/Rewrite/TokenRewriter.cpp +++ b/tools/clang/lib/Rewrite/TokenRewriter.cpp @@ -1,15 +1,16 @@ //===--- TokenRewriter.cpp - Token-based code rewriting interface ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TokenRewriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the TokenRewriter class, which is used for code // -// transformations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the TokenRewriter class, which is used for code +// transformations. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Core/TokenRewriter.h" #include "clang/Basic/SourceManager.h" diff --git a/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp b/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp index d188adfdb3..f2ff48ad69 100644 --- a/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp +++ b/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp @@ -1,16 +1,17 @@ //=- AnalysisBasedWarnings.cpp - Sema warnings based on libAnalysis -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisBasedWarnings.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines analysis_warnings::[Policy,Executor]. // -// Together they are used by Sema to issue warnings based on inexpensive // -// static analysis algorithms in libAnalysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines analysis_warnings::[Policy,Executor]. +// Together they are used by Sema to issue warnings based on inexpensive +// static analysis algorithms in libAnalysis. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/AnalysisBasedWarnings.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/Sema/AttributeList.cpp b/tools/clang/lib/Sema/AttributeList.cpp index b4dd3a4996..6abec5bc22 100644 --- a/tools/clang/lib/Sema/AttributeList.cpp +++ b/tools/clang/lib/Sema/AttributeList.cpp @@ -1,14 +1,15 @@ //===--- AttributeList.cpp --------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttributeList.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the AttributeList class implementation // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the AttributeList class implementation +// +//===----------------------------------------------------------------------===// #include "clang/Sema/AttributeList.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/CMakeLists.txt b/tools/clang/lib/Sema/CMakeLists.txt index fd635e62ed..1343d036ec 100644 --- a/tools/clang/lib/Sema/CMakeLists.txt +++ b/tools/clang/lib/Sema/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/lib/Sema/CodeCompleteConsumer.cpp b/tools/clang/lib/Sema/CodeCompleteConsumer.cpp index 88a1210067..4643bd9d34 100644 --- a/tools/clang/lib/Sema/CodeCompleteConsumer.cpp +++ b/tools/clang/lib/Sema/CodeCompleteConsumer.cpp @@ -1,13 +1,15 @@ //===--- CodeCompleteConsumer.cpp - Code Completion Interface ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeCompleteConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CodeCompleteConsumer class. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CodeCompleteConsumer class. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/CodeCompleteConsumer.h" #include "clang-c/Index.h" diff --git a/tools/clang/lib/Sema/DeclSpec.cpp b/tools/clang/lib/Sema/DeclSpec.cpp index 4bfbe80e30..95b02938e3 100644 --- a/tools/clang/lib/Sema/DeclSpec.cpp +++ b/tools/clang/lib/Sema/DeclSpec.cpp @@ -1,14 +1,15 @@ //===--- SemaDeclSpec.cpp - Declaration Specifier Semantic Analysis -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclSpec.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for declaration specifiers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for declaration specifiers. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/DeclSpec.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/DelayedDiagnostic.cpp b/tools/clang/lib/Sema/DelayedDiagnostic.cpp index 30899fdca3..a784c55203 100644 --- a/tools/clang/lib/Sema/DelayedDiagnostic.cpp +++ b/tools/clang/lib/Sema/DelayedDiagnostic.cpp @@ -1,17 +1,19 @@ //===--- DelayedDiagnostic.cpp - Delayed declarator diagnostics -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DelayedDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the DelayedDiagnostic class implementation, which // -// is used to record diagnostics that are being conditionally produced // -// during declarator parsing. // -// // -// This file also defines AccessedEntity. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the DelayedDiagnostic class implementation, which +// is used to record diagnostics that are being conditionally produced +// during declarator parsing. +// +// This file also defines AccessedEntity. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/DelayedDiagnostic.h" #include diff --git a/tools/clang/lib/Sema/IdentifierResolver.cpp b/tools/clang/lib/Sema/IdentifierResolver.cpp index c461a5ad75..53263bac54 100644 --- a/tools/clang/lib/Sema/IdentifierResolver.cpp +++ b/tools/clang/lib/Sema/IdentifierResolver.cpp @@ -1,15 +1,16 @@ //===- IdentifierResolver.cpp - Lexical Scope Name lookup -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IdentifierResolver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the IdentifierResolver class, which is used for lexical// -// scoped lookup, based on declaration names. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the IdentifierResolver class, which is used for lexical +// scoped lookup, based on declaration names. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/IdentifierResolver.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/Sema/JumpDiagnostics.cpp b/tools/clang/lib/Sema/JumpDiagnostics.cpp index 18068e3287..775fe85740 100644 --- a/tools/clang/lib/Sema/JumpDiagnostics.cpp +++ b/tools/clang/lib/Sema/JumpDiagnostics.cpp @@ -1,15 +1,16 @@ //===--- JumpDiagnostics.cpp - Protected scope jump analysis ------*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// JumpDiagnostics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the JumpScopeChecker class, which is used to diagnose// -// jumps that enter a protected scope in an invalid way. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the JumpScopeChecker class, which is used to diagnose +// jumps that enter a protected scope in an invalid way. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp index 1ad60241b1..4844508e75 100644 --- a/tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp +++ b/tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp @@ -1,13 +1,15 @@ //===--- MultiplexExternalSemaSource.cpp ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MultiplexExternalSemaSource.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the event dispatching to the subscribed clients. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the event dispatching to the subscribed clients. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/MultiplexExternalSemaSource.h" #include "clang/AST/DeclContextInternals.h" diff --git a/tools/clang/lib/Sema/Scope.cpp b/tools/clang/lib/Sema/Scope.cpp index b634a4120b..7c70048acf 100644 --- a/tools/clang/lib/Sema/Scope.cpp +++ b/tools/clang/lib/Sema/Scope.cpp @@ -1,15 +1,16 @@ //===- Scope.cpp - Lexical scope information --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Scope.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Scope class, which is used for recording // -// information about a lexical scope. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Scope class, which is used for recording +// information about a lexical scope. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/Scope.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/Sema/ScopeInfo.cpp b/tools/clang/lib/Sema/ScopeInfo.cpp index 17ad401f09..f80eadf18d 100644 --- a/tools/clang/lib/Sema/ScopeInfo.cpp +++ b/tools/clang/lib/Sema/ScopeInfo.cpp @@ -1,15 +1,16 @@ //===--- ScopeInfo.cpp - Information about a semantic context -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScopeInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements FunctionScopeInfo and its subclasses, which contain // -// information about a single function, block, lambda, or method body. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements FunctionScopeInfo and its subclasses, which contain +// information about a single function, block, lambda, or method body. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/ScopeInfo.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/Sema/Sema.cpp b/tools/clang/lib/Sema/Sema.cpp index 4feb57e9a9..01284768e2 100644 --- a/tools/clang/lib/Sema/Sema.cpp +++ b/tools/clang/lib/Sema/Sema.cpp @@ -1,15 +1,16 @@ //===--- Sema.cpp - AST Builder and Semantic Analysis Implementation ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Sema.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the actions class which performs semantic analysis and// -// builds an AST out of a parse stream. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the actions class which performs semantic analysis and +// builds an AST out of a parse stream. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaAccess.cpp b/tools/clang/lib/Sema/SemaAccess.cpp index f64bb89932..0e973cc5eb 100644 --- a/tools/clang/lib/Sema/SemaAccess.cpp +++ b/tools/clang/lib/Sema/SemaAccess.cpp @@ -1,14 +1,15 @@ //===---- SemaAccess.cpp - C++ Access Control -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaAccess.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides Sema routines for C++ access control semantics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides Sema routines for C++ access control semantics. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaAttr.cpp b/tools/clang/lib/Sema/SemaAttr.cpp index 07a9e113a6..5a29bad29f 100644 --- a/tools/clang/lib/Sema/SemaAttr.cpp +++ b/tools/clang/lib/Sema/SemaAttr.cpp @@ -1,15 +1,16 @@ //===--- SemaAttr.cpp - Semantic Analysis for Attributes ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaAttr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for non-trivial attributes and // -// pragmas. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for non-trivial attributes and +// pragmas. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Sema/SemaCUDA.cpp b/tools/clang/lib/Sema/SemaCUDA.cpp index f98c5a9d7d..5973500826 100644 --- a/tools/clang/lib/Sema/SemaCUDA.cpp +++ b/tools/clang/lib/Sema/SemaCUDA.cpp @@ -1,16 +1,15 @@ //===--- SemaCUDA.cpp - Semantic Analysis for CUDA constructs -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaCUDA.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file implements semantic analysis for CUDA constructs. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file implements semantic analysis for CUDA constructs. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Sema/Sema.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaCXXScopeSpec.cpp b/tools/clang/lib/Sema/SemaCXXScopeSpec.cpp index 776b8efe81..9e146ed3a6 100644 --- a/tools/clang/lib/Sema/SemaCXXScopeSpec.cpp +++ b/tools/clang/lib/Sema/SemaCXXScopeSpec.cpp @@ -1,14 +1,15 @@ //===--- SemaCXXScopeSpec.cpp - Semantic Analysis for C++ scope specifiers-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaCXXScopeSpec.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements C++ semantic analysis for scope specifiers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements C++ semantic analysis for scope specifiers. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "TypeLocBuilder.h" diff --git a/tools/clang/lib/Sema/SemaCast.cpp b/tools/clang/lib/Sema/SemaCast.cpp index d1e60cae61..f52c81ca71 100644 --- a/tools/clang/lib/Sema/SemaCast.cpp +++ b/tools/clang/lib/Sema/SemaCast.cpp @@ -1,17 +1,18 @@ //===--- SemaCast.cpp - Semantic Analysis for Casts -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaCast.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for cast expressions, including // -// 1) C-style casts like '(int) x' // -// 2) C++ functional casts like 'int(x)' // -// 3) C++ named casts like 'static_cast(x)' // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for cast expressions, including +// 1) C-style casts like '(int) x' +// 2) C++ functional casts like 'int(x)' +// 3) C++ named casts like 'static_cast(x)' +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaChecking.cpp b/tools/clang/lib/Sema/SemaChecking.cpp index 89430824c3..8013e8171d 100644 --- a/tools/clang/lib/Sema/SemaChecking.cpp +++ b/tools/clang/lib/Sema/SemaChecking.cpp @@ -1,15 +1,16 @@ //===--- SemaChecking.cpp - Extra Semantic Checking -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaChecking.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements extra semantic analysis beyond what is enforced // -// by the C type system. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements extra semantic analysis beyond what is enforced +// by the C type system. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaCodeComplete.cpp b/tools/clang/lib/Sema/SemaCodeComplete.cpp index 5839c8e3f9..85dfa5ce52 100644 --- a/tools/clang/lib/Sema/SemaCodeComplete.cpp +++ b/tools/clang/lib/Sema/SemaCodeComplete.cpp @@ -1,13 +1,15 @@ //===---------------- SemaCodeComplete.cpp - Code Completion ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaCodeComplete.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the code-completion semantic actions. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the code-completion semantic actions. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/DeclObjC.h" diff --git a/tools/clang/lib/Sema/SemaConsumer.cpp b/tools/clang/lib/Sema/SemaConsumer.cpp index 1dab65b2ac..d83a13e2f1 100644 --- a/tools/clang/lib/Sema/SemaConsumer.cpp +++ b/tools/clang/lib/Sema/SemaConsumer.cpp @@ -1,12 +1,11 @@ //===-- SemaConsumer.cpp - Abstract interface for AST semantics -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaConsumer.h" diff --git a/tools/clang/lib/Sema/SemaDecl.cpp b/tools/clang/lib/Sema/SemaDecl.cpp index e4eb49f45f..930007ac62 100644 --- a/tools/clang/lib/Sema/SemaDecl.cpp +++ b/tools/clang/lib/Sema/SemaDecl.cpp @@ -1,14 +1,15 @@ //===--- SemaDecl.cpp - Semantic Analysis for Declarations ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for declarations. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "TypeLocBuilder.h" diff --git a/tools/clang/lib/Sema/SemaDeclAttr.cpp b/tools/clang/lib/Sema/SemaDeclAttr.cpp index 13758c6ba2..723900cd07 100644 --- a/tools/clang/lib/Sema/SemaDeclAttr.cpp +++ b/tools/clang/lib/Sema/SemaDeclAttr.cpp @@ -1,14 +1,15 @@ //===--- SemaDeclAttr.cpp - Declaration Attribute Handling ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaDeclAttr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements decl-related attribute processing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements decl-related attribute processing. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaDeclCXX.cpp b/tools/clang/lib/Sema/SemaDeclCXX.cpp index 3bc547067f..838377f28c 100644 --- a/tools/clang/lib/Sema/SemaDeclCXX.cpp +++ b/tools/clang/lib/Sema/SemaDeclCXX.cpp @@ -1,14 +1,15 @@ //===------ SemaDeclCXX.cpp - Semantic Analysis for C++ Declarations ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaDeclCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for C++ declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for C++ declarations. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Sema/SemaDeclObjC.cpp b/tools/clang/lib/Sema/SemaDeclObjC.cpp index 5b958c1156..aa89b72bdd 100644 --- a/tools/clang/lib/Sema/SemaDeclObjC.cpp +++ b/tools/clang/lib/Sema/SemaDeclObjC.cpp @@ -1,14 +1,15 @@ //===--- SemaDeclObjC.cpp - Semantic Analysis for ObjC Declarations -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaDeclObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for Objective C declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for Objective C declarations. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Sema/SemaExceptionSpec.cpp b/tools/clang/lib/Sema/SemaExceptionSpec.cpp index 0d7a2b027f..729fc76b5c 100644 --- a/tools/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/tools/clang/lib/Sema/SemaExceptionSpec.cpp @@ -1,14 +1,15 @@ //===--- SemaExceptionSpec.cpp - C++ Exception Specifications ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaExceptionSpec.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides Sema routines for C++ exception specification testing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides Sema routines for C++ exception specification testing. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTMutationListener.h" diff --git a/tools/clang/lib/Sema/SemaExpr.cpp b/tools/clang/lib/Sema/SemaExpr.cpp index 57709c9c47..3f03515480 100644 --- a/tools/clang/lib/Sema/SemaExpr.cpp +++ b/tools/clang/lib/Sema/SemaExpr.cpp @@ -1,14 +1,15 @@ //===--- SemaExpr.cpp - Semantic Analysis for Expressions -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaExpr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for expressions. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "TreeTransform.h" diff --git a/tools/clang/lib/Sema/SemaExprCXX.cpp b/tools/clang/lib/Sema/SemaExprCXX.cpp index c0e0f8da71..efd7130007 100644 --- a/tools/clang/lib/Sema/SemaExprCXX.cpp +++ b/tools/clang/lib/Sema/SemaExprCXX.cpp @@ -1,17 +1,16 @@ //===--- SemaExprCXX.cpp - Semantic Analysis for Expressions --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaExprCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Implements semantic analysis for C++ expressions. // +/// \file +/// \brief Implements semantic analysis for C++ expressions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "TreeTransform.h" diff --git a/tools/clang/lib/Sema/SemaExprMember.cpp b/tools/clang/lib/Sema/SemaExprMember.cpp index c7493ffa32..ad4f1143f2 100644 --- a/tools/clang/lib/Sema/SemaExprMember.cpp +++ b/tools/clang/lib/Sema/SemaExprMember.cpp @@ -1,14 +1,15 @@ //===--- SemaExprMember.cpp - Semantic Analysis for Expressions -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaExprMember.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis member access expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis member access expressions. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/Overload.h" #include "clang/AST/ASTLambda.h" diff --git a/tools/clang/lib/Sema/SemaExprObjC.cpp b/tools/clang/lib/Sema/SemaExprObjC.cpp index 0f82f3ce7d..4240d0b2d8 100644 --- a/tools/clang/lib/Sema/SemaExprObjC.cpp +++ b/tools/clang/lib/Sema/SemaExprObjC.cpp @@ -1,14 +1,15 @@ //===--- SemaExprObjC.cpp - Semantic Analysis for ObjC Expressions --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaExprObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for Objective-C expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for Objective-C expressions. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaFixItUtils.cpp b/tools/clang/lib/Sema/SemaFixItUtils.cpp index e0d9622878..2e327ecf23 100644 --- a/tools/clang/lib/Sema/SemaFixItUtils.cpp +++ b/tools/clang/lib/Sema/SemaFixItUtils.cpp @@ -1,14 +1,15 @@ //===--- SemaFixItUtils.cpp - Sema FixIts ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaFixItUtils.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines helper classes for generation of Sema FixItHints. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines helper classes for generation of Sema FixItHints. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/AST/ExprCXX.h" diff --git a/tools/clang/lib/Sema/SemaInit.cpp b/tools/clang/lib/Sema/SemaInit.cpp index 4ad2f393bc..e78547d814 100644 --- a/tools/clang/lib/Sema/SemaInit.cpp +++ b/tools/clang/lib/Sema/SemaInit.cpp @@ -1,14 +1,15 @@ //===--- SemaInit.cpp - Semantic Analysis for Initializers ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaInit.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for initializers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for initializers. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/Initialization.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaLambda.cpp b/tools/clang/lib/Sema/SemaLambda.cpp index f192c5f432..7d9802a892 100644 --- a/tools/clang/lib/Sema/SemaLambda.cpp +++ b/tools/clang/lib/Sema/SemaLambda.cpp @@ -1,14 +1,15 @@ //===--- SemaLambda.cpp - Semantic Analysis for C++11 Lambdas -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaLambda.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for C++ lambda expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for C++ lambda expressions. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/DeclSpec.h" #include "TypeLocBuilder.h" diff --git a/tools/clang/lib/Sema/SemaLookup.cpp b/tools/clang/lib/Sema/SemaLookup.cpp index 71531a3030..a87ea347ec 100644 --- a/tools/clang/lib/Sema/SemaLookup.cpp +++ b/tools/clang/lib/Sema/SemaLookup.cpp @@ -1,15 +1,16 @@ //===--------------------- SemaLookup.cpp - Name Lookup ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaLookup.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements name lookup for C, C++, Objective-C, and // -// Objective-C++. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements name lookup for C, C++, Objective-C, and +// Objective-C++. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/Lookup.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaObjCProperty.cpp b/tools/clang/lib/Sema/SemaObjCProperty.cpp index 6dc12e294c..c3f5e44a02 100644 --- a/tools/clang/lib/Sema/SemaObjCProperty.cpp +++ b/tools/clang/lib/Sema/SemaObjCProperty.cpp @@ -1,15 +1,16 @@ //===--- SemaObjCProperty.cpp - Semantic Analysis for ObjC @property ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaObjCProperty.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for Objective C @property and // -// @synthesize declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for Objective C @property and +// @synthesize declarations. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTMutationListener.h" diff --git a/tools/clang/lib/Sema/SemaOpenMP.cpp b/tools/clang/lib/Sema/SemaOpenMP.cpp index 0e251e4900..452aafb0db 100644 --- a/tools/clang/lib/Sema/SemaOpenMP.cpp +++ b/tools/clang/lib/Sema/SemaOpenMP.cpp @@ -1,17 +1,16 @@ //===--- SemaOpenMP.cpp - Semantic Analysis for OpenMP constructs ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaOpenMP.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief This file implements semantic analysis for OpenMP directives and // -/// clauses. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief This file implements semantic analysis for OpenMP directives and +/// clauses. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "TreeTransform.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaOverload.cpp b/tools/clang/lib/Sema/SemaOverload.cpp index f3df8ada1c..1e2f2768be 100644 --- a/tools/clang/lib/Sema/SemaOverload.cpp +++ b/tools/clang/lib/Sema/SemaOverload.cpp @@ -1,14 +1,15 @@ //===--- SemaOverload.cpp - C++ Overloading -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaOverload.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides Sema routines for C++ overloading. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides Sema routines for C++ overloading. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/Overload.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaPseudoObject.cpp b/tools/clang/lib/Sema/SemaPseudoObject.cpp index c100c70fee..6d837d813e 100644 --- a/tools/clang/lib/Sema/SemaPseudoObject.cpp +++ b/tools/clang/lib/Sema/SemaPseudoObject.cpp @@ -1,33 +1,34 @@ //===--- SemaPseudoObject.cpp - Semantic Analysis for Pseudo-Objects ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaPseudoObject.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for expressions involving // -// pseudo-object references. Pseudo-objects are conceptual objects // -// whose storage is entirely abstract and all accesses to which are // -// translated through some sort of abstraction barrier. // -// // -// For example, Objective-C objects can have "properties", either // -// declared or undeclared. A property may be accessed by writing // -// expr.prop // -// where 'expr' is an r-value of Objective-C pointer type and 'prop' // -// is the name of the property. If this expression is used in a context // -// needing an r-value, it is treated as if it were a message-send // -// of the associated 'getter' selector, typically: // -// [expr prop] // -// If it is used as the LHS of a simple assignment, it is treated // -// as a message-send of the associated 'setter' selector, typically: // -// [expr setProp: RHS] // -// If it is used as the LHS of a compound assignment, or the operand // -// of a unary increment or decrement, both are required; for example, // -// 'expr.prop *= 100' would be translated to: // -// [expr setProp: [expr prop] * 100] // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for expressions involving +// pseudo-object references. Pseudo-objects are conceptual objects +// whose storage is entirely abstract and all accesses to which are +// translated through some sort of abstraction barrier. +// +// For example, Objective-C objects can have "properties", either +// declared or undeclared. A property may be accessed by writing +// expr.prop +// where 'expr' is an r-value of Objective-C pointer type and 'prop' +// is the name of the property. If this expression is used in a context +// needing an r-value, it is treated as if it were a message-send +// of the associated 'getter' selector, typically: +// [expr prop] +// If it is used as the LHS of a simple assignment, it is treated +// as a message-send of the associated 'setter' selector, typically: +// [expr setProp: RHS] +// If it is used as the LHS of a compound assignment, or the operand +// of a unary increment or decrement, both are required; for example, +// 'expr.prop *= 100' would be translated to: +// [expr setProp: [expr prop] * 100] +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ExprCXX.h" diff --git a/tools/clang/lib/Sema/SemaStmt.cpp b/tools/clang/lib/Sema/SemaStmt.cpp index 9a3bf50734..9ed7c4a9a4 100644 --- a/tools/clang/lib/Sema/SemaStmt.cpp +++ b/tools/clang/lib/Sema/SemaStmt.cpp @@ -1,14 +1,15 @@ //===--- SemaStmt.cpp - Semantic Analysis for Statements ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaStmt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for statements. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for statements. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaStmtAsm.cpp b/tools/clang/lib/Sema/SemaStmtAsm.cpp index 65f04a9e83..8e3e89f1e5 100644 --- a/tools/clang/lib/Sema/SemaStmtAsm.cpp +++ b/tools/clang/lib/Sema/SemaStmtAsm.cpp @@ -1,14 +1,15 @@ //===--- SemaStmtAsm.cpp - Semantic Analysis for Asm Statements -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaStmtAsm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements semantic analysis for inline asm statements. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements semantic analysis for inline asm statements. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ExprCXX.h" diff --git a/tools/clang/lib/Sema/SemaStmtAttr.cpp b/tools/clang/lib/Sema/SemaStmtAttr.cpp index 58a2f5c9ad..28e244b6f6 100644 --- a/tools/clang/lib/Sema/SemaStmtAttr.cpp +++ b/tools/clang/lib/Sema/SemaStmtAttr.cpp @@ -1,14 +1,15 @@ //===--- SemaStmtAttr.cpp - Statement Attribute Handling ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaStmtAttr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements stmt-related attribute processing. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements stmt-related attribute processing. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Sema/SemaTemplate.cpp b/tools/clang/lib/Sema/SemaTemplate.cpp index 2b0a9207c9..ad25e748f4 100644 --- a/tools/clang/lib/Sema/SemaTemplate.cpp +++ b/tools/clang/lib/Sema/SemaTemplate.cpp @@ -1,12 +1,13 @@ //===------- SemaTemplate.cpp - Semantic Analysis for C++ Templates -------===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaTemplate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file implements semantic analysis for C++ templates. +//===----------------------------------------------------------------------===/ #include "TreeTransform.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Sema/SemaTemplateDeduction.cpp b/tools/clang/lib/Sema/SemaTemplateDeduction.cpp index a3d6f7ba7f..9fb6ad56cc 100644 --- a/tools/clang/lib/Sema/SemaTemplateDeduction.cpp +++ b/tools/clang/lib/Sema/SemaTemplateDeduction.cpp @@ -1,12 +1,14 @@ //===------- SemaTemplateDeduction.cpp - Template Argument Deduction ------===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaTemplateDeduction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file implements C++ template argument deduction. +// +//===----------------------------------------------------------------------===/ #include "clang/Sema/TemplateDeduction.h" #include "TreeTransform.h" diff --git a/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp b/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp index c4666ad404..8ebe7a61a8 100644 --- a/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp +++ b/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp @@ -1,12 +1,14 @@ //===------- SemaTemplateInstantiate.cpp - C++ Template Instantiation ------===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaTemplateInstantiate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file implements C++ template instantiation. +// +//===----------------------------------------------------------------------===/ #include "clang/Sema/SemaInternal.h" #include "TreeTransform.h" diff --git a/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 2eb592d909..de93b21ff3 100644 --- a/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -1,12 +1,14 @@ //===--- SemaTemplateInstantiateDecl.cpp - C++ Template Decl Instantiation ===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaTemplateInstantiateDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file implements C++ template instantiation for declarations. +// +//===----------------------------------------------------------------------===/ #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Sema/SemaTemplateVariadic.cpp b/tools/clang/lib/Sema/SemaTemplateVariadic.cpp index d3015f9f05..fd3ba3549b 100644 --- a/tools/clang/lib/Sema/SemaTemplateVariadic.cpp +++ b/tools/clang/lib/Sema/SemaTemplateVariadic.cpp @@ -1,12 +1,13 @@ //===------- SemaTemplateVariadic.cpp - C++ Variadic Templates ------------===/ -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaTemplateVariadic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===/ +// +// This file implements semantic analysis for C++0x variadic templates. +//===----------------------------------------------------------------------===/ #include "clang/Sema/Sema.h" #include "TypeLocBuilder.h" diff --git a/tools/clang/lib/Sema/SemaType.cpp b/tools/clang/lib/Sema/SemaType.cpp index 23f997b9c7..dcaf082626 100644 --- a/tools/clang/lib/Sema/SemaType.cpp +++ b/tools/clang/lib/Sema/SemaType.cpp @@ -1,14 +1,15 @@ //===--- SemaType.cpp - Semantic Analysis for Types -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SemaType.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements type-related semantic analysis. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements type-related semantic analysis. +// +//===----------------------------------------------------------------------===// #include "clang/Sema/SemaInternal.h" #include "TypeLocBuilder.h" diff --git a/tools/clang/lib/Sema/TreeTransform.h b/tools/clang/lib/Sema/TreeTransform.h index c329d29217..895595c5e8 100644 --- a/tools/clang/lib/Sema/TreeTransform.h +++ b/tools/clang/lib/Sema/TreeTransform.h @@ -1,13 +1,13 @@ //===------- TreeTransform.h - Semantic Tree Transformation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TreeTransform.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a semantic tree transformation that takes a given // -// AST and rebuilds it, possibly transforming some nodes in the process. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +//===----------------------------------------------------------------------===// +// +// This file implements a semantic tree transformation that takes a given +// AST and rebuilds it, possibly transforming some nodes in the process. // //===----------------------------------------------------------------------===// diff --git a/tools/clang/lib/Sema/TypeLocBuilder.cpp b/tools/clang/lib/Sema/TypeLocBuilder.cpp index 25e0b37823..be995400df 100644 --- a/tools/clang/lib/Sema/TypeLocBuilder.cpp +++ b/tools/clang/lib/Sema/TypeLocBuilder.cpp @@ -1,15 +1,16 @@ //===--- TypeLocBuilder.cpp - Type Source Info collector ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeLocBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files defines TypeLocBuilder, a class for building TypeLocs // -// bottom-up. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files defines TypeLocBuilder, a class for building TypeLocs +// bottom-up. +// +//===----------------------------------------------------------------------===// #include "TypeLocBuilder.h" diff --git a/tools/clang/lib/Sema/TypeLocBuilder.h b/tools/clang/lib/Sema/TypeLocBuilder.h index 01cc68f6be..82844b3914 100644 --- a/tools/clang/lib/Sema/TypeLocBuilder.h +++ b/tools/clang/lib/Sema/TypeLocBuilder.h @@ -1,15 +1,16 @@ //===--- TypeLocBuilder.h - Type Source Info collector ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeLocBuilder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files defines TypeLocBuilder, a class for building TypeLocs // -// bottom-up. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files defines TypeLocBuilder, a class for building TypeLocs +// bottom-up. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_SEMA_TYPELOCBUILDER_H #define LLVM_CLANG_LIB_SEMA_TYPELOCBUILDER_H diff --git a/tools/clang/lib/Serialization/ASTCommon.cpp b/tools/clang/lib/Serialization/ASTCommon.cpp index fed02ce820..b1bf4a6bff 100644 --- a/tools/clang/lib/Serialization/ASTCommon.cpp +++ b/tools/clang/lib/Serialization/ASTCommon.cpp @@ -1,14 +1,15 @@ //===--- ASTCommon.cpp - Common stuff for ASTReader/ASTWriter----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTCommon.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines common functions that both ASTReader and ASTWriter use.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines common functions that both ASTReader and ASTWriter use. +// +//===----------------------------------------------------------------------===// #include "ASTCommon.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/Serialization/ASTCommon.h b/tools/clang/lib/Serialization/ASTCommon.h index 39c77a6c22..f21e8a7ea0 100644 --- a/tools/clang/lib/Serialization/ASTCommon.h +++ b/tools/clang/lib/Serialization/ASTCommon.h @@ -1,14 +1,15 @@ //===- ASTCommon.h - Common stuff for ASTReader/ASTWriter -*- C++ -*-=========// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTCommon.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines common functions that both ASTReader and ASTWriter use.// // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines common functions that both ASTReader and ASTWriter use. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_SERIALIZATION_ASTCOMMON_H #define LLVM_CLANG_LIB_SERIALIZATION_ASTCOMMON_H diff --git a/tools/clang/lib/Serialization/ASTReader.cpp b/tools/clang/lib/Serialization/ASTReader.cpp index 50896ae7a7..dd0bf4176a 100644 --- a/tools/clang/lib/Serialization/ASTReader.cpp +++ b/tools/clang/lib/Serialization/ASTReader.cpp @@ -1,14 +1,15 @@ //===-- ASTReader.cpp - AST File Reader ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTReader.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTReader class, which reads AST files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTReader class, which reads AST files. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTReader.h" #include "ASTCommon.h" diff --git a/tools/clang/lib/Serialization/ASTReaderDecl.cpp b/tools/clang/lib/Serialization/ASTReaderDecl.cpp index e5f65af4cf..9149b89c41 100644 --- a/tools/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/tools/clang/lib/Serialization/ASTReaderDecl.cpp @@ -1,15 +1,16 @@ //===--- ASTReaderDecl.cpp - Decl Deserialization ---------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTReaderDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the ASTReader::ReadDeclRecord method, which is the // -// entrypoint for loading a decl. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the ASTReader::ReadDeclRecord method, which is the +// entrypoint for loading a decl. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTReader.h" #include "ASTCommon.h" diff --git a/tools/clang/lib/Serialization/ASTReaderInternals.h b/tools/clang/lib/Serialization/ASTReaderInternals.h index a5b381e003..5b1c4f4963 100644 --- a/tools/clang/lib/Serialization/ASTReaderInternals.h +++ b/tools/clang/lib/Serialization/ASTReaderInternals.h @@ -1,14 +1,15 @@ //===--- ASTReaderInternals.h - AST Reader Internals ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTReaderInternals.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides internal definitions used in the AST reader. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides internal definitions used in the AST reader. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_SERIALIZATION_ASTREADERINTERNALS_H #define LLVM_CLANG_LIB_SERIALIZATION_ASTREADERINTERNALS_H diff --git a/tools/clang/lib/Serialization/ASTReaderStmt.cpp b/tools/clang/lib/Serialization/ASTReaderStmt.cpp index 2a956c86d5..a9d2b4bc9b 100644 --- a/tools/clang/lib/Serialization/ASTReaderStmt.cpp +++ b/tools/clang/lib/Serialization/ASTReaderStmt.cpp @@ -1,15 +1,16 @@ //===--- ASTReaderStmt.cpp - Stmt/Expr Deserialization ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTReaderStmt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Statement/expression deserialization. This implements the // -// ASTReader::ReadStmt method. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Statement/expression deserialization. This implements the +// ASTReader::ReadStmt method. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTReader.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Serialization/ASTWriter.cpp b/tools/clang/lib/Serialization/ASTWriter.cpp index 138a362506..1e63cbaca9 100644 --- a/tools/clang/lib/Serialization/ASTWriter.cpp +++ b/tools/clang/lib/Serialization/ASTWriter.cpp @@ -1,14 +1,15 @@ //===--- ASTWriter.cpp - AST File Writer ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ASTWriter class, which writes AST files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ASTWriter class, which writes AST files. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTWriter.h" #include "ASTCommon.h" diff --git a/tools/clang/lib/Serialization/ASTWriterDecl.cpp b/tools/clang/lib/Serialization/ASTWriterDecl.cpp index 2977e273d5..fd6708dd5c 100644 --- a/tools/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/tools/clang/lib/Serialization/ASTWriterDecl.cpp @@ -1,14 +1,15 @@ //===--- ASTWriterDecl.cpp - Declaration Serialization --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTWriterDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements serialization for Declarations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements serialization for Declarations. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTWriter.h" #include "ASTCommon.h" diff --git a/tools/clang/lib/Serialization/ASTWriterStmt.cpp b/tools/clang/lib/Serialization/ASTWriterStmt.cpp index 3eadd1169f..ee2949118b 100644 --- a/tools/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/tools/clang/lib/Serialization/ASTWriterStmt.cpp @@ -1,17 +1,16 @@ //===--- ASTWriterStmt.cpp - Statement and Expression Serialization -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTWriterStmt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Implements serialization for Statements and Expressions. // +/// \file +/// \brief Implements serialization for Statements and Expressions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTWriter.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/Serialization/CMakeLists.txt b/tools/clang/lib/Serialization/CMakeLists.txt index 734d0ad7b7..d885db2297 100644 --- a/tools/clang/lib/Serialization/CMakeLists.txt +++ b/tools/clang/lib/Serialization/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS BitReader Support diff --git a/tools/clang/lib/Serialization/GeneratePCH.cpp b/tools/clang/lib/Serialization/GeneratePCH.cpp index ea0fc4a441..c461fe936e 100644 --- a/tools/clang/lib/Serialization/GeneratePCH.cpp +++ b/tools/clang/lib/Serialization/GeneratePCH.cpp @@ -1,15 +1,16 @@ //===--- GeneratePCH.cpp - Sema Consumer for PCH Generation -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GeneratePCH.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PCHGenerator, which as a SemaConsumer that generates// -// a PCH file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PCHGenerator, which as a SemaConsumer that generates +// a PCH file. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/ASTWriter.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/lib/Serialization/GlobalModuleIndex.cpp b/tools/clang/lib/Serialization/GlobalModuleIndex.cpp index e529b45d40..17c7914243 100644 --- a/tools/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/tools/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -1,14 +1,15 @@ //===--- GlobalModuleIndex.cpp - Global Module Index ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GlobalModuleIndex.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the GlobalModuleIndex class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the GlobalModuleIndex class. +// +//===----------------------------------------------------------------------===// #include "ASTReaderInternals.h" #include "clang/Frontend/PCHContainerOperations.h" diff --git a/tools/clang/lib/Serialization/Module.cpp b/tools/clang/lib/Serialization/Module.cpp index 2651c8a056..01f935eafd 100644 --- a/tools/clang/lib/Serialization/Module.cpp +++ b/tools/clang/lib/Serialization/Module.cpp @@ -1,15 +1,16 @@ //===--- Module.cpp - Module description ------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Module.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Module class, which describes a module that has // -// been loaded from an AST file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Module class, which describes a module that has +// been loaded from an AST file. +// +//===----------------------------------------------------------------------===// #include "clang/Serialization/Module.h" #include "ASTReaderInternals.h" diff --git a/tools/clang/lib/Serialization/ModuleManager.cpp b/tools/clang/lib/Serialization/ModuleManager.cpp index 0ad5550cba..6e01bf767f 100644 --- a/tools/clang/lib/Serialization/ModuleManager.cpp +++ b/tools/clang/lib/Serialization/ModuleManager.cpp @@ -1,15 +1,16 @@ //===--- ModuleManager.cpp - Module Manager ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModuleManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the ModuleManager class, which manages a set of loaded // -// modules for the ASTReader. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the ModuleManager class, which manages a set of loaded +// modules for the ASTReader. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/PCHContainerOperations.h" #include "clang/Lex/HeaderSearch.h" diff --git a/tools/clang/lib/StaticAnalyzer/CMakeLists.txt b/tools/clang/lib/StaticAnalyzer/CMakeLists.txt index fdf82bfe48..3d1509254f 100644 --- a/tools/clang/lib/StaticAnalyzer/CMakeLists.txt +++ b/tools/clang/lib/StaticAnalyzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(Core) add_subdirectory(Checkers) add_subdirectory(Frontend) diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp index 2116765728..3dec8a58c9 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp @@ -1,14 +1,15 @@ //=- AllocationDiagnostics.cpp - Config options for allocation diags *- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// AllocationDiagnostics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Declares the configuration functions for leaks/allocation diagnostics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Declares the configuration functions for leaks/allocation diagnostics. +// +//===-------------------------- #include "AllocationDiagnostics.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h b/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h index e6454be798..048418ef62 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h +++ b/tools/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h @@ -1,14 +1,15 @@ //=--- AllocationDiagnostics.h - Config options for allocation diags *- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// AllocationDiagnostics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Declares the configuration functions for leaks/allocation diagnostics. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Declares the configuration functions for leaks/allocation diagnostics. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp index 358e369251..d65c556d96 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp @@ -1,14 +1,13 @@ //==--AnalyzerStatsChecker.cpp - Analyzer visitation statistics --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalyzerStatsChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file reports various statistics about analyzer visitation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file reports various statistics about analyzer visitation. +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/DeclObjC.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp index 21b4929cd9..557439b288 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp @@ -1,15 +1,16 @@ //== ArrayBoundChecker.cpp ------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArrayBoundChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ArrayBoundChecker, which is a path-sensitive check // -// which looks for an out-of-bound array element access. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ArrayBoundChecker, which is a path-sensitive check +// which looks for an out-of-bound array element access. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp index 4bde53a362..d8dc2aaa63 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp @@ -1,15 +1,16 @@ //== ArrayBoundCheckerV2.cpp ------------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArrayBoundCheckerV2.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ArrayBoundCheckerV2, which is a path-sensitive check // -// which looks for an out-of-bound array element access. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ArrayBoundCheckerV2, which is a path-sensitive check +// which looks for an out-of-bound array element access. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/CharUnits.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp index e159b60b84..f763284aa2 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp @@ -1,16 +1,17 @@ //== BasicObjCFoundationChecks.cpp - Simple Apple-Foundation checks -*- C++ -*-- -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicObjCFoundationChecks.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BasicObjCFoundationChecks, a class that encapsulates // -// a set of simple checks to run on Objective-C code using Apple's Foundation// -// classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BasicObjCFoundationChecks, a class that encapsulates +// a set of simple checks to run on Objective-C code using Apple's Foundation +// classes. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "SelectorExtras.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp index 8f585f2d01..e945c38e77 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp @@ -1,15 +1,16 @@ //== BoolAssignmentChecker.cpp - Boolean assignment checker -----*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// BoolAssignmentChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines BoolAssignmentChecker, a builtin check in ExprEngine that // -// performs checks for assignment of non-Boolean values to Boolean variables.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines BoolAssignmentChecker, a builtin check in ExprEngine that +// performs checks for assignment of non-Boolean values to Boolean variables. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp index 8d87d0ed20..104a81eac4 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp @@ -1,14 +1,15 @@ //=== BuiltinFunctionChecker.cpp --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinFunctionChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker evaluates clang builtin functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker evaluates clang builtin functions. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/Basic/Builtins.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt b/tools/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt index 7560195464..9fb22ecc85 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. clang_tablegen(Checkers.inc -gen-clang-sa-checkers -I ${CMAKE_CURRENT_SOURCE_DIR}/../../../include SOURCE Checkers.td diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index 7d7d9a56c6..54b12410aa 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -1,15 +1,16 @@ //= CStringChecker.cpp - Checks calls to C string functions --------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// CStringChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines CStringChecker, which is an assortment of checks on calls // -// to functions in . // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines CStringChecker, which is an assortment of checks on calls +// to functions in . +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "InterCheckerAPI.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp index e198e3db3a..098290a81e 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp @@ -1,16 +1,17 @@ //== CStringSyntaxChecker.cpp - CoreFoundation containers API *- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CStringSyntaxChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// An AST checker that looks for common pitfalls when using C string APIs. // -// - Identifies erroneous patterns in the last argument to strncat - the number// -// of bytes to copy. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// An AST checker that looks for common pitfalls when using C string APIs. +// - Identifies erroneous patterns in the last argument to strncat - the number +// of bytes to copy. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Expr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp index 0e0da9f4d0..26423b7368 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp @@ -1,15 +1,16 @@ //===--- CallAndMessageChecker.cpp ------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallAndMessageChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines CallAndMessageChecker, a builtin checker that checks for various// -// errors of call and objc message expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines CallAndMessageChecker, a builtin checker that checks for various +// errors of call and objc message expressions. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp index c4c2b6e5c2..c139fcaab6 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp @@ -1,15 +1,16 @@ //=== CastSizeChecker.cpp ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CastSizeChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// CastSizeChecker checks when casting a malloc'ed symbolic region to type T,// -// whether the size of the symbolic region is a multiple of the size of T. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// CastSizeChecker checks when casting a malloc'ed symbolic region to type T, +// whether the size of the symbolic region is a multiple of the size of T. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/CharUnits.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp index 5eb8aeef88..ba3024d78a 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CastToStructChecker.cpp @@ -1,16 +1,17 @@ //=== CastToStructChecker.cpp - Fixed address usage checker ----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CastToStructChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files defines CastToStructChecker, a builtin checker that checks for // -// cast from non-struct pointer to struct pointer. // -// This check corresponds to CWE-588. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files defines CastToStructChecker, a builtin checker that checks for +// cast from non-struct pointer to struct pointer. +// This check corresponds to CWE-588. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp index 69b6067495..12eb0bde28 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp @@ -1,16 +1,17 @@ //==- CheckObjCDealloc.cpp - Check ObjC -dealloc implementation --*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckObjCDealloc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a CheckObjCDealloc, a checker that // -// analyzes an Objective-C class's implementation to determine if it // -// correctly implements -dealloc. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a CheckObjCDealloc, a checker that +// analyzes an Objective-C class's implementation to determine if it +// correctly implements -dealloc. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp index 9b298375ba..cc4c0c3db8 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp @@ -1,16 +1,17 @@ //=- CheckObjCInstMethodRetTy.cpp - Check ObjC method signatures -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckObjCInstMethSignature.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a CheckObjCInstMethSignature, a flow-insenstive check // -// that determines if an Objective-C class interface incorrectly redefines // -// the method signature in a subclass. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a CheckObjCInstMethSignature, a flow-insenstive check +// that determines if an Objective-C class interface incorrectly redefines +// the method signature in a subclass. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp index 9e8cff3ca0..e0c113c862 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp @@ -1,14 +1,15 @@ //==- CheckSecuritySyntaxOnly.cpp - Basic security checks --------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckSecuritySyntaxOnly.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a set of flow-insensitive security checks. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a set of flow-insensitive security checks. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/StmtVisitor.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp index c5e9ef9859..81a20063f9 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CheckSizeofPointer.cpp @@ -1,15 +1,16 @@ //==- CheckSizeofPointer.cpp - Check for sizeof on pointers ------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckSizeofPointer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a check for unintended use of sizeof() on pointer // -// expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a check for unintended use of sizeof() on pointer +// expressions. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/StmtVisitor.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp index 0c17a92182..956dca7d92 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp @@ -1,15 +1,16 @@ //= CheckerDocumentation.cpp - Documentation checker ---------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerDocumentation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker lists all the checker callbacks and provides documentation for// -// checker writers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker lists all the checker callbacks and provides documentation for +// checker writers. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/Checkers.td b/tools/clang/lib/StaticAnalyzer/Checkers/Checkers.td index e308f5b873..d1d6ac277f 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/Checkers.td +++ b/tools/clang/lib/StaticAnalyzer/Checkers/Checkers.td @@ -1,12 +1,11 @@ //===--- Checkers.td - Static Analyzer Checkers -===-----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Checkers.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// include "clang/StaticAnalyzer/Checkers/CheckerBase.td" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp index a72da281f1..804e83c0fb 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp @@ -1,14 +1,15 @@ //===- Chrootchecker.cpp -------- Basic security checks ----------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ChrootChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines chroot checker, which checks improper use of chroot. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines chroot checker, which checks improper use of chroot. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ClangCheckers.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ClangCheckers.cpp index deee3fcdb9..77a5a72264 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ClangCheckers.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ClangCheckers.cpp @@ -1,12 +1,11 @@ //===--- ClangCheckers.h - Provides builtin checkers ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangCheckers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Checkers/ClangCheckers.h" #include "clang/StaticAnalyzer/Core/CheckerRegistry.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ClangSACheckers.h b/tools/clang/lib/StaticAnalyzer/Checkers/ClangSACheckers.h index 4093edc4e4..05b4a61c5a 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ClangSACheckers.h +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ClangSACheckers.h @@ -1,15 +1,16 @@ //===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangSACheckers.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Declares the registation functions for the checkers defined in // -// libclangStaticAnalyzerCheckers. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Declares the registation functions for the checkers defined in +// libclangStaticAnalyzerCheckers. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_CLANGSACHECKERS_H #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_CLANGSACHECKERS_H diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp index f3594adedf..f4be5b3e82 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp @@ -1,15 +1,16 @@ //==- DeadStoresChecker.cpp - Check for stores to dead variables -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeadStoresChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a DeadStores, a flow-sensitive checker that looks for // -// stores to variables that are no longer live. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a DeadStores, a flow-sensitive checker that looks for +// stores to variables that are no longer live. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp index ab4faa8037..803aa8c930 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp @@ -1,14 +1,15 @@ //==- DebugCheckers.cpp - Debugging Checkers ---------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugCheckers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines checkers that display debugging information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines checkers that display debugging information. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/Analysis/Analyses/Dominators.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp index 1a8dae7d94..2ba7ea4a4e 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp @@ -1,15 +1,16 @@ //== NullDerefChecker.cpp - Null dereference checker ------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DereferenceChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines NullDerefChecker, a builtin check in ExprEngine that performs// -// checks for null pointers at loads and stores. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines NullDerefChecker, a builtin check in ExprEngine that performs +// checks for null pointers at loads and stores. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ExprObjC.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp index 1ac81f2f8d..a71def23c0 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp @@ -1,24 +1,25 @@ //=- DirectIvarAssignment.cpp - Check rules on ObjC properties -*- C++ ----*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DirectIvarAssignment.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Check that Objective C properties are set with the setter, not though a // -// direct assignment. // -// // -// Two versions of a checker exist: one that checks all methods and the other// -// that only checks the methods annotated with // -// __attribute__((annotate("objc_no_direct_instance_variable_assignment")))// -// // -// The checker does not warn about assignments to Ivars, annotated with // -// __attribute__((objc_allow_direct_instance_variable_assignment"))). This// -// annotation serves as a false positive suppression mechanism for the // -// checker. The annotation is allowed on properties and Ivars. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Check that Objective C properties are set with the setter, not though a +// direct assignment. +// +// Two versions of a checker exist: one that checks all methods and the other +// that only checks the methods annotated with +// __attribute__((annotate("objc_no_direct_instance_variable_assignment"))) +// +// The checker does not warn about assignments to Ivars, annotated with +// __attribute__((objc_allow_direct_instance_variable_assignment"))). This +// annotation serves as a false positive suppression mechanism for the +// checker. The annotation is allowed on properties and Ivars. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp index 50b65aaadf..79f9479b14 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp @@ -1,15 +1,16 @@ //== DivZeroChecker.cpp - Division by zero checker --------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DivZeroChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines DivZeroChecker, a builtin check in ExprEngine that performs // -// checks for division by zeros. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines DivZeroChecker, a builtin check in ExprEngine that performs +// checks for division by zeros. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp index b64cc70f85..43a2812187 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp @@ -1,14 +1,15 @@ //== DynamicTypePropagation.cpp -------------------------------- -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// DynamicTypePropagation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker defines the rules for dynamic type gathering and propagation.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker defines the rules for dynamic type gathering and propagation. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/Basic/Builtins.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp index 8e50a17b0f..7dc0a87459 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp @@ -1,12 +1,11 @@ //==- ExprInspectionChecker.cpp - Used for regression tests ------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprInspectionChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/FixedAddressChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/FixedAddressChecker.cpp index 3c3cf32de9..48d6bd4b37 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/FixedAddressChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/FixedAddressChecker.cpp @@ -1,16 +1,17 @@ //=== FixedAddressChecker.cpp - Fixed address usage checker ----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FixedAddressChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files defines FixedAddressChecker, a builtin checker that checks for // -// assignment of a fixed address to a pointer. // -// This check corresponds to CWE-587. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files defines FixedAddressChecker, a builtin checker that checks for +// assignment of a fixed address to a pointer. +// This check corresponds to CWE-587. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp index 2321602924..5fbe0b19bb 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp @@ -1,18 +1,19 @@ //== GenericTaintChecker.cpp ----------------------------------- -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// GenericTaintChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker defines the attack surface for generic taint propagation. // -// // -// The taint information produced by it might be useful to other checkers. For// -// example, checkers should report errors which involve tainted data more // -// aggressively, even if the involved symbols are under constrained. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker defines the attack surface for generic taint propagation. +// +// The taint information produced by it might be useful to other checkers. For +// example, checkers should report errors which involve tainted data more +// aggressively, even if the involved symbols are under constrained. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp index 041d5f6418..58d0783f39 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp @@ -1,21 +1,20 @@ //== IdenticalExprChecker.cpp - Identical expression checker----------------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// IdenticalExprChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This defines IdenticalExprChecker, a check that warns about // -/// unintended use of identical expressions. // +/// \file +/// \brief This defines IdenticalExprChecker, a check that warns about +/// unintended use of identical expressions. /// -/// It checks for use of identical expressions with comparison operators and // -/// inside conditional expressions. // +/// It checks for use of identical expressions with comparison operators and +/// inside conditional expressions. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/RecursiveASTVisitor.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h b/tools/clang/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h index df4e992756..d38d63cd05 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h +++ b/tools/clang/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h @@ -1,15 +1,14 @@ //==--- InterCheckerAPI.h ---------------------------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// InterCheckerAPI.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file allows introduction of checker dependencies. It contains APIs for// -// inter-checker communications. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file allows introduction of checker dependencies. It contains APIs for +// inter-checker communications. +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_INTERCHECKERAPI_H #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_INTERCHECKERAPI_H diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp index 11c62dc657..3df5fa034a 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp @@ -1,31 +1,32 @@ //=- IvarInvalidationChecker.cpp - -*- C++ -------------------------------*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// IvarInvalidationChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker implements annotation driven invalidation checking. If a class// -// contains a method annotated with 'objc_instance_variable_invalidator', // -// - (void) foo // -// __attribute__((annotate("objc_instance_variable_invalidator")));// -// all the "ivalidatable" instance variables of this class should be // -// invalidated. We call an instance variable ivalidatable if it is an object of// -// a class which contains an invalidation method. There could be multiple // -// methods annotated with such annotations per class, either one can be used// -// to invalidate the ivar. An ivar or property are considered to be // -// invalidated if they are being assigned 'nil' or an invalidation method has// -// been called on them. An invalidation method should either invalidate all // -// the ivars or call another invalidation method (on self). // -// // -// Partial invalidor annotation allows to addess cases when ivars are // -// invalidated by other methods, which might or might not be called from // -// the invalidation method. The checker checks that each invalidation // -// method and all the partial methods cumulatively invalidate all ivars. // -// __attribute__((annotate("objc_instance_variable_invalidator_partial")));// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker implements annotation driven invalidation checking. If a class +// contains a method annotated with 'objc_instance_variable_invalidator', +// - (void) foo +// __attribute__((annotate("objc_instance_variable_invalidator"))); +// all the "ivalidatable" instance variables of this class should be +// invalidated. We call an instance variable ivalidatable if it is an object of +// a class which contains an invalidation method. There could be multiple +// methods annotated with such annotations per class, either one can be used +// to invalidate the ivar. An ivar or property are considered to be +// invalidated if they are being assigned 'nil' or an invalidation method has +// been called on them. An invalidation method should either invalidate all +// the ivars or call another invalidation method (on self). +// +// Partial invalidor annotation allows to addess cases when ivars are +// invalidated by other methods, which might or might not be called from +// the invalidation method. The checker checks that each invalidation +// method and all the partial methods cumulatively invalidate all ivars. +// __attribute__((annotate("objc_instance_variable_invalidator_partial"))); +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp index 0de897a6ab..4e3f9b73ac 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp @@ -1,15 +1,16 @@ //=== LLVMConventionsChecker.cpp - Check LLVM codebase conventions ---*- C++ -*- -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMConventionsChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines LLVMConventionsChecker, a bunch of small little checks // -// for checking specific coding conventions in the LLVM/Clang codebase. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines LLVMConventionsChecker, a bunch of small little checks +// for checking specific coding conventions in the LLVM/Clang codebase. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/DeclTemplate.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp index 685ca07b0c..783890135e 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp @@ -1,17 +1,16 @@ //==--- MacOSKeychainAPIChecker.cpp ------------------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacOSKeychainAPIChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker flags misuses of KeyChainAPI. In particular, the password data// -// allocated/returned by SecKeychainItemCopyContent, // -// SecKeychainFindGenericPassword, SecKeychainFindInternetPassword functions has// -// to be freed using a call to SecKeychainItemFreeContent. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This checker flags misuses of KeyChainAPI. In particular, the password data +// allocated/returned by SecKeychainItemCopyContent, +// SecKeychainFindGenericPassword, SecKeychainFindInternetPassword functions has +// to be freed using a call to SecKeychainItemFreeContent. +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp index 6817da9b28..11ba6096e2 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp @@ -1,18 +1,19 @@ -//= MacOSXAPIChecker.h - Checks proper use of various MacOS X APIs --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// MacOSXAPIChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines MacOSXAPIChecker, which is an assortment of checks on calls // -// to various, widely used Apple APIs. // -// // -// FIXME: What's currently in BasicObjCFoundationChecks.cpp should be migrated// -// to here, using the new Checker interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// MacOSXAPIChecker.h - Checks proper use of various MacOS X APIs --*- C++ -*-// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines MacOSXAPIChecker, which is an assortment of checks on calls +// to various, widely used Apple APIs. +// +// FIXME: What's currently in BasicObjCFoundationChecks.cpp should be migrated +// to here, using the new Checker interface. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/Basic/TargetInfo.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index e1d4bfc24c..a9e08653b2 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -1,15 +1,16 @@ //=== MallocChecker.cpp - A malloc/free checker -------------------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// MallocChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines malloc/free checker, which checks for potential memory // -// leaks, double free, and use-after-free problems. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines malloc/free checker, which checks for potential memory +// leaks, double free, and use-after-free problems. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "InterCheckerAPI.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp index b37b9bfcb6..e91347999d 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp @@ -1,21 +1,22 @@ -//= MallocOverflowSecurityChecker.cpp - Check for malloc overflows -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// MallocOverflowSecurityChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker detects a common memory allocation security flaw. // -// Suppose 'unsigned int n' comes from an untrusted source. If the // -// code looks like 'malloc (n * 4)', and an attacker can make 'n' be // -// say MAX_UINT/4+2, then instead of allocating the correct 'n' 4-byte // -// elements, this will actually allocate only two because of overflow. // -// Then when the rest of the program attempts to store values past the // -// second element, these values will actually overwrite other items in // -// the heap, probably allowing the attacker to execute arbitrary code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// MallocOverflowSecurityChecker.cpp - Check for malloc overflows -*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker detects a common memory allocation security flaw. +// Suppose 'unsigned int n' comes from an untrusted source. If the +// code looks like 'malloc (n * 4)', and an attacker can make 'n' be +// say MAX_UINT/4+2, then instead of allocating the correct 'n' 4-byte +// elements, this will actually allocate only two because of overflow. +// Then when the rest of the program attempts to store values past the +// second element, these values will actually overwrite other items in +// the heap, probably allowing the attacker to execute arbitrary code. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/EvaluatedExprVisitor.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp index 9afb4443c9..fb07484bfc 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp @@ -1,16 +1,17 @@ -//= MallocSizeofChecker.cpp - Check for dubious malloc arguments ---*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// MallocSizeofChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Reports inconsistencies between the casted type of the return value of a // -// malloc/calloc/realloc call and the operand of any sizeof expressions // -// contained within its argument(s). // -// // -/////////////////////////////////////////////////////////////////////////////// +// MallocSizeofChecker.cpp - Check for dubious malloc arguments ---*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Reports inconsistencies between the casted type of the return value of a +// malloc/calloc/realloc call and the operand of any sizeof expressions +// contained within its argument(s). +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/StmtVisitor.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp index 16ade85117..d23708ecbd 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp @@ -1,18 +1,19 @@ //=- NSAutoreleasePoolChecker.cpp --------------------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// NSAutoreleasePoolChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a NSAutoreleasePoolChecker, a small checker that warns // -// about subpar uses of NSAutoreleasePool. Note that while the check itself// -// (in its current form) could be written as a flow-insensitive check, in // -// can be potentially enhanced in the future with flow-sensitive information.// -// It is also a good example of the CheckerVisitor interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a NSAutoreleasePoolChecker, a small checker that warns +// about subpar uses of NSAutoreleasePool. Note that while the check itself +// (in its current form) could be written as a flow-insensitive check, in +// can be potentially enhanced in the future with flow-sensitive information. +// It is also a good example of the CheckerVisitor interface. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp index 42b6f16b78..c351c6e9e0 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp @@ -1,18 +1,19 @@ //=- NSErrorChecker.cpp - Coding conventions for uses of NSError -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// NSErrorChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a CheckNSError, a flow-insenstive check // -// that determines if an Objective-C class interface correctly returns // -// a non-void return type. // -// // -// File under feature request PR 2600. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a CheckNSError, a flow-insenstive check +// that determines if an Objective-C class interface correctly returns +// a non-void return type. +// +// File under feature request PR 2600. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp index a96e256b20..ba82d1d1d4 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp @@ -1,15 +1,16 @@ //=== NoReturnFunctionChecker.cpp -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NoReturnFunctionChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines NoReturnFunctionChecker, which evaluates functions that do not// -// return to the caller. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines NoReturnFunctionChecker, which evaluates functions that do not +// return to the caller. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "SelectorExtras.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp index be71057cd6..73f8087fd3 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp @@ -1,18 +1,19 @@ //===--- NonNullParamChecker.cpp - Undefined arguments checker -*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NonNullParamChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines NonNullParamChecker, which checks for arguments expected not to// -// be null due to: // -// - the corresponding parameters being declared to have nonnull attribute // -// - the corresponding parameters being references; since the call would form// -// a reference to a null pointer // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines NonNullParamChecker, which checks for arguments expected not to +// be null due to: +// - the corresponding parameters being declared to have nonnull attribute +// - the corresponding parameters being references; since the call would form +// a reference to a null pointer +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp index c376cc6f67..a7b92b4c67 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp @@ -1,15 +1,16 @@ //== ObjCAtSyncChecker.cpp - nil mutex checker for @synchronized -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCAtSyncChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines ObjCAtSyncChecker, a builtin check that checks for null pointers// -// used as mutexes for @synchronized. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines ObjCAtSyncChecker, a builtin check that checks for null pointers +// used as mutexes for @synchronized. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/StmtObjC.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp index bacc4637c6..aecec178d1 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp @@ -1,14 +1,16 @@ //== ObjCContainersASTChecker.cpp - CoreFoundation containers API *- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCContainersASTChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// An AST checker that looks for common pitfalls when using 'CFArray', // -// 'CFDictionary', 'CFSet' APIs. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// An AST checker that looks for common pitfalls when using 'CFArray', +// 'CFDictionary', 'CFSet' APIs. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/StmtVisitor.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp index ca5fc963ca..53e159879e 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp @@ -1,19 +1,20 @@ //== ObjCContainersChecker.cpp - Path sensitive checker for CFArray *- C++ -*=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCContainersChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Performs path sensitive checks of Core Foundation static containers like // -// CFArray. // -// 1) Check for buffer overflows: // -// In CFArrayGetArrayAtIndex( myArray, index), if the index is outside the// -// index space of theArray (0 to N-1 inclusive (where N is the count of // -// theArray), the behavior is undefined. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Performs path sensitive checks of Core Foundation static containers like +// CFArray. +// 1) Check for buffer overflows: +// In CFArrayGetArrayAtIndex( myArray, index), if the index is outside the +// index space of theArray (0 to N-1 inclusive (where N is the count of +// theArray), the behavior is undefined. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp index 58ef0012c3..016cb146f8 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp @@ -1,16 +1,17 @@ //==- ObjCMissingSuperCallChecker.cpp - Check missing super-calls in ObjC --==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCMissingSuperCallChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a ObjCMissingSuperCallChecker, a checker that // -// analyzes a UIViewController implementation to determine if it // -// correctly calls super in the methods where this is mandatory. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a ObjCMissingSuperCallChecker, a checker that +// analyzes a UIViewController implementation to determine if it +// correctly calls super in the methods where this is mandatory. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/DeclObjC.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp index aed2cebb2d..f7544f3f1a 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp @@ -1,37 +1,16 @@ //== ObjCSelfInitChecker.cpp - Checker for 'self' initialization -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCSelfInitChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines ObjCSelfInitChecker, a builtin check that checks for uses of // -// 'self' before proper initialization. // -// // -/////////////////////////////////////////////////////////////////////////////// -// This checks initialization methods to verify that they assign 'self' to the// -// result of an initialization call (e.g. [super init], or [self initWith..])// -// before using 'self' or any instance variable. // -// // -// To perform the required checking, values are tagged with flags that indicate// -// 1) if the object is the one pointed to by 'self', and 2) if the object // -// is the result of an initializer (e.g. [super init]). // -// // -// Uses of an object that is true for 1) but not 2) trigger a diagnostic. // -// The uses that are currently checked are: // -// - Using instance variables. // -// - Returning the object. // -// // -// Note that we don't check for an invalid 'self' that is the receiver of an // -// obj-c message expression to cut down false positives where logging functions// -// get information from self (like its class) or doing "invalidation" on self// -// when the initialization fails. // -// // -// Because the object that 'self' points to gets invalidated when a call // -// receives a reference to 'self', the checker keeps track and passes the flags// -// for 1) and 2) to the new object that 'self' points to after the call. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines ObjCSelfInitChecker, a builtin check that checks for uses of +// 'self' before proper initialization. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp index 402f684483..c6da37eac0 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp @@ -1,16 +1,17 @@ //==- ObjCUnusedIVarsChecker.cpp - Check for unused ivars --------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjCUnusedIVarsChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a CheckObjCUnusedIvars, a checker that // -// analyzes an Objective-C class's interface/implementation to determine if it// -// has any ivars that are never accessed. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a CheckObjCUnusedIvars, a checker that +// analyzes an Objective-C class's interface/implementation to determine if it +// has any ivars that are never accessed. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp index 2bd91ee8d9..806312468b 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp @@ -1,15 +1,16 @@ //=== PointerArithChecker.cpp - Pointer arithmetic checker -----*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerArithChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files defines PointerArithChecker, a builtin checker that checks for // -// pointer arithmetic on locations other than array elements. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files defines PointerArithChecker, a builtin checker that checks for +// pointer arithmetic on locations other than array elements. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp index a371402c7c..cf1f88a285 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp @@ -1,16 +1,17 @@ //=== PointerSubChecker.cpp - Pointer subtraction checker ------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerSubChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files defines PointerSubChecker, a builtin checker that checks for // -// pointer subtractions on two pointers pointing to different memory chunks. // -// This check corresponds to CWE-469. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files defines PointerSubChecker, a builtin checker that checks for +// pointer subtractions on two pointers pointing to different memory chunks. +// This check corresponds to CWE-469. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp index 74ef6964c0..4209017a58 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp @@ -1,15 +1,16 @@ //===--- PthreadLockChecker.cpp - Check for locking problems ---*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PthreadLockChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines PthreadLockChecker, a simple lock -> unlock checker. // -// Also handles XNU locks, which behave similarly enough to share code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines PthreadLockChecker, a simple lock -> unlock checker. +// Also handles XNU locks, which behave similarly enough to share code. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index c1d305869a..6ee87a561e 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -1,15 +1,16 @@ //==-- RetainCountChecker.cpp - Checks for leaks and other issues -*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// RetainCountChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the methods for RetainCountChecker, which implements // -// a reference count checker for Core Foundation and Cocoa on (Mac OS X). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the methods for RetainCountChecker, which implements +// a reference count checker for Core Foundation and Cocoa on (Mac OS X). +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "AllocationDiagnostics.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp index e0e8d5669c..acbd0d95d0 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp @@ -1,15 +1,16 @@ //== ReturnPointerRangeChecker.cpp ------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReturnPointerRangeChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ReturnPointerRangeChecker, which is a path-sensitive check// -// which looks for an out-of-bound pointer being returned to callers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ReturnPointerRangeChecker, which is a path-sensitive check +// which looks for an out-of-bound pointer being returned to callers. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp index 0d00d9260f..2668ac1e1e 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp @@ -1,16 +1,17 @@ //== ReturnUndefChecker.cpp -------------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReturnUndefChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ReturnUndefChecker, which is a path-sensitive // -// check which looks for undefined or garbage values being returned to the // -// caller. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ReturnUndefChecker, which is a path-sensitive +// check which looks for undefined or garbage values being returned to the +// caller. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h b/tools/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h index dcd489c41b..41f70d7d5b 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h +++ b/tools/clang/lib/StaticAnalyzer/Checkers/SelectorExtras.h @@ -1,12 +1,11 @@ //=== SelectorExtras.h - Helpers for checkers using selectors -----*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// SelectorExtras.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_SELECTOREXTRAS_H #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_SELECTOREXTRAS_H diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp index 7b627c2e16..c22e78b7eb 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp @@ -1,18 +1,19 @@ //===-- SimpleStreamChecker.cpp -----------------------------------------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimpleStreamChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines a checker for proper use of fopen/fclose APIs. // -// - If a file has been closed with fclose, it should not be accessed again.// -// Accessing a closed file results in undefined behavior. // -// - If a file was opened with fopen, it must be closed with fclose before // -// the execution ends. Failing to do so results in a resource leak. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines a checker for proper use of fopen/fclose APIs. +// - If a file has been closed with fclose, it should not be accessed again. +// Accessing a closed file results in undefined behavior. +// - If a file was opened with fopen, it must be closed with fclose before +// the execution ends. Failing to do so results in a resource leak. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp index 10c0eb31f4..813c811ef1 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp @@ -1,15 +1,16 @@ //=== StackAddrEscapeChecker.cpp ----------------------------------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackAddrEscapeChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines stack address leak checker, which checks if an invalid // -// stack address is stored into a global or heap location. See CERT DCL30-C. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines stack address leak checker, which checks if an invalid +// stack address is stored into a global or heap location. See CERT DCL30-C. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ExprCXX.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp index 64c47d8acd..2109a75b1f 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp @@ -1,14 +1,15 @@ //===-- StreamChecker.cpp -----------------------------------------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// StreamChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines checkers that model and check stream handling functions.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines checkers that model and check stream handling functions. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp index 34a4537dc8..5dff5c8d5c 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/TaintTesterChecker.cpp @@ -1,13 +1,15 @@ //== TaintTesterChecker.cpp ----------------------------------- -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// TaintTesterChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker can be used for testing how taint data is propagated. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker can be used for testing how taint data is propagated. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp index 54520975fa..638701da8a 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp @@ -1,15 +1,16 @@ //== TestAfterDivZeroChecker.cpp - Test after division by zero checker --*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// TestAfterDivZeroChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines TestAfterDivZeroChecker, a builtin check that performs checks// -// for division by zero where the division occurs before comparison with zero.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines TestAfterDivZeroChecker, a builtin check that performs checks +// for division by zero where the division occurs before comparison with zero. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp index a7789744ed..f44eb03b3c 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp @@ -1,14 +1,16 @@ //== TraversalChecker.cpp -------------------------------------- -*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// TraversalChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These checkers print various aspects of the ExprEngine's traversal of the CFG// -// as it builds the ExplodedGraph. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These checkers print various aspects of the ExprEngine's traversal of the CFG +// as it builds the ExplodedGraph. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp index 13e8f277f1..1d8ef99471 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UndefBranchChecker.cpp @@ -1,15 +1,16 @@ //=== UndefBranchChecker.cpp -----------------------------------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UndefBranchChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines UndefBranchChecker, which checks for undefined branch // -// condition. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines UndefBranchChecker, which checks for undefined branch +// condition. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp index 7dfa655e51..53fd069bf1 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp @@ -1,14 +1,15 @@ -//= UndefCapturedBlockVarChecker.cpp - Uninitialized captured vars -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// UndefCapturedBlockVarChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This checker detects blocks that capture uninitialized values. // -// // -/////////////////////////////////////////////////////////////////////////////// +// UndefCapturedBlockVarChecker.cpp - Uninitialized captured vars -*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This checker detects blocks that capture uninitialized values. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp index f68e2a1d20..5353310e6d 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp @@ -1,15 +1,16 @@ //=== UndefResultChecker.cpp ------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UndefResultChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines UndefResultChecker, a builtin check in ExprEngine that // -// performs checks for undefined results of non-assignment binary operators. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines UndefResultChecker, a builtin check in ExprEngine that +// performs checks for undefined results of non-assignment binary operators. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp index 04bb4f03ac..ba4daf8351 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp @@ -1,15 +1,16 @@ //===--- UndefinedArraySubscriptChecker.h ----------------------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UndefinedArraySubscriptChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines UndefinedArraySubscriptChecker, a builtin check in ExprEngine// -// that performs checks for undefined array subscripts. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines UndefinedArraySubscriptChecker, a builtin check in ExprEngine +// that performs checks for undefined array subscripts. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp index 14ac87a9db..81c96c4860 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp @@ -1,15 +1,16 @@ //===--- UndefinedAssignmentChecker.h ---------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// UndefinedAssignmentChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines UndefinedAssignmentChecker, a builtin check in ExprEngine that// -// checks for assigning undefined values. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines UndefinedAssignmentChecker, a builtin check in ExprEngine that +// checks for assigning undefined values. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp index 5157112ad9..a799b4c219 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp @@ -1,15 +1,16 @@ //= UnixAPIChecker.h - Checks preconditions for various Unix APIs --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnixAPIChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines UnixAPIChecker, which is an assortment of checks on calls // -// to various, widely used UNIX/Posix functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines UnixAPIChecker, which is an assortment of checks on calls +// to various, widely used UNIX/Posix functions. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/Basic/TargetInfo.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp index 8d6f90dec1..d78de3c6f3 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp @@ -1,18 +1,17 @@ //==- UnreachableCodeChecker.cpp - Generalized dead code checker -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnreachableCodeChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a generalized unreachable code checker using a // -// path-sensitive analysis. We mark any path visited, and then walk the CFG as a// -// post-analysis to determine what was never visited. // -// // -// A similar flow-sensitive only check exists in Analysis/ReachableCode.cpp // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// This file implements a generalized unreachable code checker using a +// path-sensitive analysis. We mark any path visited, and then walk the CFG as a +// post-analysis to determine what was never visited. +// +// A similar flow-sensitive only check exists in Analysis/ReachableCode.cpp +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp index 79b2c2749d..80384bbfdb 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp @@ -1,17 +1,18 @@ //=== VLASizeChecker.cpp - Undefined dereference checker --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VLASizeChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines VLASizeChecker, a builtin check in ExprEngine that // -// performs checks for declaration of VLA of undefined or zero size. // -// In addition, VLASizeChecker is responsible for defining the extent // -// of the MemRegion that represents a VLA. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines VLASizeChecker, a builtin check in ExprEngine that +// performs checks for declaration of VLA of undefined or zero size. +// In addition, VLASizeChecker is responsible for defining the extent +// of the MemRegion that represents a VLA. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/CharUnits.h" diff --git a/tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp b/tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp index 08a781a1c9..f6ef4aef5c 100644 --- a/tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp @@ -1,15 +1,16 @@ //=======- VirtualCallChecker.cpp --------------------------------*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// VirtualCallChecker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a checker that checks virtual function calls during // -// construction or destruction of C++ objects. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a checker that checks virtual function calls during +// construction or destruction of C++ objects. +// +//===----------------------------------------------------------------------===// #include "ClangSACheckers.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp b/tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp index a386ddfe92..c7e9526821 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp @@ -1,12 +1,11 @@ //===--- APSIntType.cpp - Simple record of the type of APSInts ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APSIntType.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp b/tools/clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp index a1abe14add..5798f01370 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp @@ -1,12 +1,11 @@ //===-- AnalysisManager.cpp -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp b/tools/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp index 5da913aaf5..1696bcfac9 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp @@ -1,15 +1,16 @@ //===-- AnalyzerOptions.cpp - Analysis Engine Options -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalyzerOptions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains special accessors for analyzer configuration options // -// with string representations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains special accessors for analyzer configuration options +// with string representations. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h" #include "clang/StaticAnalyzer/Core/Checker.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp b/tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp index 3601745aa7..3c3f41a885 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp @@ -1,16 +1,17 @@ //=== BasicValueFactory.cpp - Basic values for Path Sens analysis --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// BasicValueFactory.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BasicValueFactory, a class that manages the lifetime // -// of APSInt objects and symbolic constraints used by ExprEngine // -// and related classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BasicValueFactory, a class that manages the lifetime +// of APSInt objects and symbolic constraints used by ExprEngine +// and related classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/BlockCounter.cpp b/tools/clang/lib/StaticAnalyzer/Core/BlockCounter.cpp index c31f0863d6..c1ac03d5ab 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/BlockCounter.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/BlockCounter.cpp @@ -1,16 +1,17 @@ //==- BlockCounter.h - ADT for counting block visits -------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockCounter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BlockCounter, an abstract data type used to count // -// the number of times a given block has been visited along a path // -// analyzed by CoreEngine. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BlockCounter, an abstract data type used to count +// the number of times a given block has been visited along a path +// analyzed by CoreEngine. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h" #include "llvm/ADT/ImmutableMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index 4cfa84eec7..e4db64fe34 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1,15 +1,16 @@ -//= BugReporter.cpp - Generate PathDiagnostics for Bugs ------------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// BugReporter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines BugReporter, a utility class for generating // -// PathDiagnostics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// BugReporter.cpp - Generate PathDiagnostics for Bugs ------------*- C++ -*--// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BugReporter, a utility class for generating +// PathDiagnostics. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp index ea1deac9a3..ce580adf70 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp @@ -1,14 +1,16 @@ -//= BugReporterVisitors.cpp - Helpers for reporting bugs -----------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// BugReporterVisitors.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a set of BugReporter "visitors" which can be used to // -// enhance the diagnostics reported for a bug. // -// // +// BugReporterVisitors.cpp - Helpers for reporting bugs -----------*- C++ -*--// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a set of BugReporter "visitors" which can be used to +// enhance the diagnostics reported for a bug. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h" #include "clang/AST/Expr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CMakeLists.txt b/tools/clang/lib/StaticAnalyzer/Core/CMakeLists.txt index 11c64471b9..59a6b6fbc5 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CMakeLists.txt +++ b/tools/clang/lib/StaticAnalyzer/Core/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_clang_library(clangStaticAnalyzerCore diff --git a/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp b/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp index 01a396a322..8542f7d6a8 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp @@ -1,16 +1,17 @@ //===- Calls.cpp - Wrapper for all function and method calls ------*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallEvent.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file This file defines CallEvent and its subclasses, which represent path-// -/// sensitive instances of different kinds of function and method calls // -/// (C, C++, and Objective-C). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +/// \file This file defines CallEvent and its subclasses, which represent path- +/// sensitive instances of different kinds of function and method calls +/// (C, C++, and Objective-C). +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/Checker.cpp b/tools/clang/lib/StaticAnalyzer/Core/Checker.cpp index 160872dd19..22352111d1 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/Checker.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/Checker.cpp @@ -1,14 +1,15 @@ //== Checker.cpp - Registration mechanism for checkers -----------*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// Checker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines Checker, used to create and register checkers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines Checker, used to create and register checkers. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h" #include "clang/StaticAnalyzer/Core/Checker.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp b/tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp index 2da144fb6e..6b22bf411c 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp @@ -1,15 +1,16 @@ //== CheckerContext.cpp - Context info for path-sensitive checkers-----------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines CheckerContext that provides contextual info for // -// path-sensitive checkers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines CheckerContext that provides contextual info for +// path-sensitive checkers. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h" #include "clang/Basic/Builtins.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp b/tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp index 8749f3ef1b..3d9a815815 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp @@ -1,14 +1,15 @@ //===---- CheckerHelpers.cpp - Helper functions for checkers ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerHelpers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines several static functions for use in checkers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines several static functions for use in checkers. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h" #include "clang/AST/Expr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp b/tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp index 5508b44c1e..2684cc78be 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp @@ -1,14 +1,15 @@ //===--- CheckerManager.cpp - Static Analyzer Checker Manager -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines the Static Analyzer Checker Manager. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines the Static Analyzer Checker Manager. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/CheckerManager.h" #include "clang/AST/DeclBase.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp b/tools/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp index 59916807bf..6ba64f52d1 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CheckerRegistry.cpp @@ -1,12 +1,11 @@ //===--- CheckerRegistry.cpp - Maintains all available checkers -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerRegistry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/CheckerRegistry.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CommonBugCategories.cpp b/tools/clang/lib/StaticAnalyzer/Core/CommonBugCategories.cpp index 5b574f0e70..3cb9323563 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CommonBugCategories.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CommonBugCategories.cpp @@ -1,12 +1,11 @@ //=--- CommonBugCategories.cpp - Provides common issue categories -*- C++ -*-=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommonBugCategories.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp b/tools/clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp index 6e2bd04ba1..4dec526005 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp @@ -1,14 +1,15 @@ //== ConstraintManager.cpp - Constraints on symbolic values -----*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstraintManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the interface to manage constraints on symbolic values.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the interface to manage constraints on symbolic values. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp index 73dfb4ad4a..7844ad4a9c 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp @@ -1,15 +1,16 @@ //==- CoreEngine.cpp - Path-Sensitive Dataflow Engine ------------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoreEngine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a generic engine for intraprocedural, path-sensitive, // -// dataflow analysis via graph reachability engine. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a generic engine for intraprocedural, path-sensitive, +// dataflow analysis via graph reachability engine. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h" #include "clang/AST/Expr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/Environment.cpp b/tools/clang/lib/StaticAnalyzer/Core/Environment.cpp index a9875c1ecb..ae5a4cc8b4 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/Environment.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/Environment.cpp @@ -1,14 +1,15 @@ //== Environment.cpp - Map from Stmt* to Locations/Values -------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Environment.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the Environment and EnvironmentManager classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the Environment and EnvironmentManager classes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ExprCXX.h" #include "clang/AST/ExprObjC.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp b/tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp index 6934937ac0..010d26e48e 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp @@ -1,15 +1,16 @@ //=-- ExplodedGraph.cpp - Local, Path-Sens. "Exploded Graph" -*- C++ -*------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExplodedGraph.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the template classes ExplodedNode and ExplodedGraph, // -// which represent a path-sensitive, intra-procedural "exploded graph." // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the template classes ExplodedNode and ExplodedGraph, +// which represent a path-sensitive, intra-procedural "exploded graph." +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h" #include "clang/AST/ParentMap.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 68d7261d1c..6881421870 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -1,16 +1,17 @@ //=-- ExprEngine.cpp - Path-Sensitive Expression-Level Dataflow ---*- C++ -*-= -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprEngine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a meta-engine for path-sensitive dataflow analysis that// -// is built on GREngine, but provides the boilerplate to execute transfer // -// functions and build the ExplodedGraph at the expression level. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a meta-engine for path-sensitive dataflow analysis that +// is built on GREngine, but provides the boilerplate to execute transfer +// functions and build the ExplodedGraph at the expression level. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h" #include "PrettyStackTraceLocationContext.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp index 588280acc8..1777ea97a4 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp @@ -1,14 +1,15 @@ //=-- ExprEngineC.cpp - ExprEngine support for C expressions ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprEngineC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ExprEngine's support for C expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ExprEngine's support for C expressions. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ExprCXX.h" #include "clang/StaticAnalyzer/Core/CheckerManager.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp index d779aa6aeb..2a766218aa 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp @@ -1,14 +1,15 @@ //===- ExprEngineCXX.cpp - ExprEngine support for C++ -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprEngineCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the C++ expression evaluation engine. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the C++ expression evaluation engine. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp index 320808d621..3f608ba79e 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp @@ -1,14 +1,15 @@ //=-- ExprEngineCallAndReturn.cpp - Support for call/return -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprEngineCallAndReturn.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ExprEngine's support for calls and returns. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ExprEngine's support for calls and returns. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h" #include "PrettyStackTraceLocationContext.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp index 5eef472db2..a6611e050d 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp @@ -1,14 +1,15 @@ //=-- ExprEngineObjC.cpp - ExprEngine support for Objective-C ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExprEngineObjC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines ExprEngine's support for Objective-C expressions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines ExprEngine's support for Objective-C expressions. +// +//===----------------------------------------------------------------------===// #include "clang/AST/StmtObjC.h" #include "clang/StaticAnalyzer/Core/CheckerManager.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/FunctionSummary.cpp b/tools/clang/lib/StaticAnalyzer/Core/FunctionSummary.cpp index 6ec5489c79..c21735b8b8 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/FunctionSummary.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/FunctionSummary.cpp @@ -1,14 +1,15 @@ //== FunctionSummary.cpp - Stores summaries of functions. ----------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionSummary.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a summary of a function gathered/used by static analysis.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a summary of a function gathered/used by static analysis. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h" using namespace clang; diff --git a/tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index 600840cca3..cfcf7c6a99 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -1,14 +1,15 @@ //===--- HTMLDiagnostics.cpp - HTML Diagnostics for Paths ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HTMLDiagnostics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the HTMLDiagnostics object. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the HTMLDiagnostics object. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp b/tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp index 997836ff12..5ac845825c 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -1,16 +1,17 @@ //== MemRegion.cpp - Abstract memory regions for static analysis --*- C++ -*--// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemRegion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines MemRegion and its subclasses. MemRegion defines a // -// partially-typed abstraction of memory useful for path-sensitive dataflow // -// analyses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines MemRegion and its subclasses. MemRegion defines a +// partially-typed abstraction of memory useful for path-sensitive dataflow +// analyses. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h" #include "clang/AST/Attr.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp b/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp index d9b19a4d6f..c4900313ca 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp @@ -1,14 +1,15 @@ //===--- PathDiagnostic.cpp - Path-Specific Diagnostic Handling -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PathDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PathDiagnostic-related interfaces. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PathDiagnostic-related interfaces. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 0b3a45838b..e0aff589e0 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -1,14 +1,15 @@ //===--- PlistDiagnostics.cpp - Plist Diagnostics for Paths -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PlistDiagnostics.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the PlistDiagnostics object. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the PlistDiagnostics object. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/PrettyStackTraceLocationContext.h b/tools/clang/lib/StaticAnalyzer/Core/PrettyStackTraceLocationContext.h index a1c3adf174..e7cc23ca82 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/PrettyStackTraceLocationContext.h +++ b/tools/clang/lib/StaticAnalyzer/Core/PrettyStackTraceLocationContext.h @@ -1,12 +1,11 @@ //==- PrettyStackTraceLocationContext.h - show analysis backtrace --*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrettyStackTraceLocationContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_STATICANALYZER_CORE_PRETTYSTACKTRACELOCATIONCONTEXT_H #define LLVM_CLANG_LIB_STATICANALYZER_CORE_PRETTYSTACKTRACELOCATIONCONTEXT_H diff --git a/tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp b/tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp index 25353efdbe..60b32c722e 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp @@ -1,14 +1,15 @@ //= ProgramState.cpp - Path-Sensitive "State" for tracking values --*- C++ -*--= -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramState.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements ProgramState and ProgramStateManager. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements ProgramState and ProgramStateManager. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h" #include "clang/Analysis/CFG.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp b/tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp index ba591fe5ec..170f7c02b8 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp @@ -1,15 +1,16 @@ //== RangeConstraintManager.cpp - Manage range constraints.------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RangeConstraintManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines RangeConstraintManager, a class that tracks simple // -// equality and inequality constraints on symbolic values of ProgramState. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines RangeConstraintManager, a class that tracks simple +// equality and inequality constraints on symbolic values of ProgramState. +// +//===----------------------------------------------------------------------===// #include "SimpleConstraintManager.h" #include "clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp b/tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp index 57495146e2..d043b106c5 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp @@ -1,17 +1,19 @@ //== RegionStore.cpp - Field-sensitive store model --------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegionStore.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a basic region store model. In this model, we do have field// -// sensitivity. But we assume nothing about the heap shape. So recursive data// -// structures are largely ignored. Basically we do 1-limiting analysis. // -// Parameter pointers are assumed with no aliasing. Pointee objects of // -// parameters are created lazily. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a basic region store model. In this model, we do have field +// sensitivity. But we assume nothing about the heap shape. So recursive data +// structures are largely ignored. Basically we do 1-limiting analysis. +// Parameter pointers are assumed with no aliasing. Pointee objects of +// parameters are created lazily. +// +//===----------------------------------------------------------------------===// #include "clang/AST/Attr.h" #include "clang/AST/CharUnits.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp b/tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp index fde8a207a2..3ed2bde1e4 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp @@ -1,15 +1,16 @@ -//= SValBuilder.cpp - Basic class for all SValBuilder implementations -*- C++ -*- -/////////////////////////////////////////////////////////////////////////////// -// // -// SValBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SValBuilder, the base class for all (complete) SValBuilder// -// implementations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// SValBuilder.cpp - Basic class for all SValBuilder implementations -*- C++ -*- +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SValBuilder, the base class for all (complete) SValBuilder +// implementations. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/SVals.cpp b/tools/clang/lib/StaticAnalyzer/Core/SVals.cpp index 151eae5865..8de939f47d 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SVals.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/SVals.cpp @@ -1,15 +1,16 @@ //= RValues.cpp - Abstract RValues for Path-Sens. Value Tracking -*- C++ -*-==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SVals.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SVal, Loc, and NonLoc, classes that represent // -// abstract r-values for use with path-sensitive value tracking. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SVal, Loc, and NonLoc, classes that represent +// abstract r-values for use with path-sensitive value tracking. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h" #include "clang/AST/ExprObjC.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp b/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp index aa32495a82..35930e47f8 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp @@ -1,15 +1,16 @@ //== SimpleConstraintManager.cpp --------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimpleConstraintManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SimpleConstraintManager, a class that holds code shared// -// between BasicConstraintManager and RangeConstraintManager. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SimpleConstraintManager, a class that holds code shared +// between BasicConstraintManager and RangeConstraintManager. +// +//===----------------------------------------------------------------------===// #include "SimpleConstraintManager.h" #include "clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h b/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h index 455a63e0c3..135cd4ef86 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h +++ b/tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.h @@ -1,14 +1,15 @@ //== SimpleConstraintManager.h ----------------------------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SimpleConstraintManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Code shared between BasicConstraintManager and RangeConstraintManager. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Code shared between BasicConstraintManager and RangeConstraintManager. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_STATICANALYZER_CORE_SIMPLECONSTRAINTMANAGER_H #define LLVM_CLANG_LIB_STATICANALYZER_CORE_SIMPLECONSTRAINTMANAGER_H diff --git a/tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp b/tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp index 3c0280fcf3..b3cab87c80 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp @@ -1,14 +1,15 @@ -//= SimpleSValBuilder.cpp - A basic SValBuilder -----------------------*- C++ -*- -/////////////////////////////////////////////////////////////////////////////// -// // -// SimpleSValBuilder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SimpleSValBuilder, a basic implementation of SValBuilder.// -// // -/////////////////////////////////////////////////////////////////////////////// +// SimpleSValBuilder.cpp - A basic SValBuilder -----------------------*- C++ -*- +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SimpleSValBuilder, a basic implementation of SValBuilder. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h" #include "clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/Store.cpp b/tools/clang/lib/StaticAnalyzer/Core/Store.cpp index 0e5f1a2062..99ec1e7043 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/Store.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/Store.cpp @@ -1,14 +1,15 @@ //== Store.cpp - Interface for maps from Locations to Values ----*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// Store.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defined the types Store and StoreManager. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defined the types Store and StoreManager. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/Store.h" #include "clang/AST/CXXInheritance.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/SubEngine.cpp b/tools/clang/lib/StaticAnalyzer/Core/SubEngine.cpp index 5cdd211cea..350f4b8bb3 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SubEngine.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/SubEngine.cpp @@ -1,12 +1,11 @@ //== SubEngine.cpp - Interface of the subengine of CoreEngine ------*- C++ -*-// -/////////////////////////////////////////////////////////////////////////////// -// // -// SubEngine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h" diff --git a/tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp b/tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp index e34202a0e8..cca0461a47 100644 --- a/tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp +++ b/tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp @@ -1,15 +1,16 @@ //== SymbolManager.h - Management of Symbolic Values ------------*- C++ -*--==// -/////////////////////////////////////////////////////////////////////////////// -// // -// SymbolManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines SymbolManager, a class that manages symbolic values // -// created for use by ExprEngine and related classes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines SymbolManager, a class that manages symbolic values +// created for use by ExprEngine and related classes. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h" #include "clang/Analysis/Analyses/LiveVariables.h" diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index 12df45c4ba..5ed531f3d2 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ b/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -1,14 +1,15 @@ //===--- AnalysisConsumer.cpp - ASTConsumer for running Analyses ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// "Meta" ASTConsumer for running different source analyses. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// "Meta" ASTConsumer for running different source analyses. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h" #include "ModelInjector.h" diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt b/tools/clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt index 3d16daa829..e3ca91aec9 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt +++ b/tools/clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../Checkers ) set(LLVM_LINK_COMPONENTS diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp index 9c214e35b6..7fced1e5c7 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp +++ b/tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp @@ -1,14 +1,15 @@ //===--- CheckerRegistration.cpp - Registration for the Analyzer Checkers -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CheckerRegistration.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Defines the registration function for the analyzer checkers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Defines the registration function for the analyzer checkers. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Frontend/CheckerRegistration.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp b/tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp index 2565834553..b33608042c 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp +++ b/tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp @@ -1,12 +1,11 @@ //===--- FrontendActions.cpp ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendActions.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Frontend/FrontendActions.h" #include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h" diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp b/tools/clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp index e3b8ee0803..a65a5ee0a4 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp +++ b/tools/clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp @@ -1,24 +1,23 @@ //===--- ModelConsumer.cpp - ASTConsumer for consuming model files --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModelConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements an ASTConsumer for consuming model files. // +/// \file +/// \brief This file implements an ASTConsumer for consuming model files. /// -/// This ASTConsumer handles the AST of a parsed model file. All top level // -/// function definitions will be collected from that model file for later // -/// retrieval during the static analysis. The body of these functions will not// -/// be injected into the ASTUnit of the analyzed translation unit. It will be// -/// available through the BodyFarm which is utilized by the AnalysisDeclContext// -/// class. // +/// This ASTConsumer handles the AST of a parsed model file. All top level +/// function definitions will be collected from that model file for later +/// retrieval during the static analysis. The body of these functions will not +/// be injected into the ASTUnit of the analyzed translation unit. It will be +/// available through the BodyFarm which is utilized by the AnalysisDeclContext +/// class. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Frontend/ModelConsumer.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp b/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp index fe63ecf6bc..ee2c3f513c 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp +++ b/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp @@ -1,12 +1,11 @@ //===-- ModelInjector.cpp ---------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModelInjector.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ModelInjector.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.h b/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.h index a4a271ec4c..e23bf8abf3 100644 --- a/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.h +++ b/tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.h @@ -1,26 +1,25 @@ //===-- ModelInjector.h -----------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ModelInjector.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file defines the clang::ento::ModelInjector class which implements the// -/// clang::CodeInjector interface. This class is responsible for injecting // -/// function definitions that were synthesized from model files. // +/// \file +/// \brief This file defines the clang::ento::ModelInjector class which implements the +/// clang::CodeInjector interface. This class is responsible for injecting +/// function definitions that were synthesized from model files. /// -/// Model files allow definitions of functions to be lazily constituted for functions// -/// which lack bodies in the original source code. This allows the analyzer // -/// to more precisely analyze code that calls such functions, analyzing the // -/// artificial definitions (which typically approximate the semantics of the // -/// called function) when called by client code. These definitions are // -/// reconstituted lazily, on-demand, by the static analyzer engine. // +/// Model files allow definitions of functions to be lazily constituted for functions +/// which lack bodies in the original source code. This allows the analyzer +/// to more precisely analyze code that calls such functions, analyzing the +/// artificial definitions (which typically approximate the semantics of the +/// called function) when called by client code. These definitions are +/// reconstituted lazily, on-demand, by the static analyzer engine. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SA_FRONTEND_MODELINJECTOR_H #define LLVM_CLANG_SA_FRONTEND_MODELINJECTOR_H diff --git a/tools/clang/lib/StaticAnalyzer/README.txt b/tools/clang/lib/StaticAnalyzer/README.txt index b17a209a40..bdf3ce7389 100644 --- a/tools/clang/lib/StaticAnalyzer/README.txt +++ b/tools/clang/lib/StaticAnalyzer/README.txt @@ -1,5 +1,6 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. +//===----------------------------------------------------------------------===// +// Clang Static Analyzer +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // Clang Static Analyzer //===----------------------------------------------------------------------===// diff --git a/tools/clang/lib/Tooling/ArgumentsAdjusters.cpp b/tools/clang/lib/Tooling/ArgumentsAdjusters.cpp index 80d2bcc288..1722ede08a 100644 --- a/tools/clang/lib/Tooling/ArgumentsAdjusters.cpp +++ b/tools/clang/lib/Tooling/ArgumentsAdjusters.cpp @@ -1,15 +1,16 @@ //===--- ArgumentsAdjusters.cpp - Command line arguments adjuster ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArgumentsAdjusters.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains definitions of classes which implement ArgumentsAdjuster// -// interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains definitions of classes which implement ArgumentsAdjuster +// interface. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/ArgumentsAdjusters.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/lib/Tooling/CMakeLists.txt b/tools/clang/lib/Tooling/CMakeLists.txt index 99b32ad624..b5c3d54e5f 100644 --- a/tools/clang/lib/Tooling/CMakeLists.txt +++ b/tools/clang/lib/Tooling/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_subdirectory(Core) diff --git a/tools/clang/lib/Tooling/CommonOptionsParser.cpp b/tools/clang/lib/Tooling/CommonOptionsParser.cpp index 136d927f74..adae1781f4 100644 --- a/tools/clang/lib/Tooling/CommonOptionsParser.cpp +++ b/tools/clang/lib/Tooling/CommonOptionsParser.cpp @@ -1,27 +1,28 @@ //===--- CommonOptionsParser.cpp - common options for clang tools ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommonOptionsParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CommonOptionsParser class used to parse common // -// command-line options for clang tools, so that they can be run as separate// -// command-line applications with a consistent common interface for handling// -// compilation database and input files. // -// // -// It provides a common subset of command-line options, common algorithm // -// for locating a compilation database and source files, and help messages // -// for the basic command-line interface. // -// // -// It creates a CompilationDatabase and reads common command-line options. // -// // -// This class uses the Clang Tooling infrastructure, see // -// http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html // -// for details on setting it up with LLVM source tree. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CommonOptionsParser class used to parse common +// command-line options for clang tools, so that they can be run as separate +// command-line applications with a consistent common interface for handling +// compilation database and input files. +// +// It provides a common subset of command-line options, common algorithm +// for locating a compilation database and source files, and help messages +// for the basic command-line interface. +// +// It creates a CompilationDatabase and reads common command-line options. +// +// This class uses the Clang Tooling infrastructure, see +// http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html +// for details on setting it up with LLVM source tree. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CommandLine.h" #include "clang/Tooling/ArgumentsAdjusters.h" diff --git a/tools/clang/lib/Tooling/CompilationDatabase.cpp b/tools/clang/lib/Tooling/CompilationDatabase.cpp index bacf5655bc..2272be632b 100644 --- a/tools/clang/lib/Tooling/CompilationDatabase.cpp +++ b/tools/clang/lib/Tooling/CompilationDatabase.cpp @@ -1,15 +1,16 @@ //===--- CompilationDatabase.cpp - ----------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilationDatabase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains implementations of the CompilationDatabase base class // -// and the FixedCompilationDatabase. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains implementations of the CompilationDatabase base class +// and the FixedCompilationDatabase. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/CompilationDatabase.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/lib/Tooling/Core/CMakeLists.txt b/tools/clang/lib/Tooling/Core/CMakeLists.txt index bd1264cc6d..c8c75f95f3 100644 --- a/tools/clang/lib/Tooling/Core/CMakeLists.txt +++ b/tools/clang/lib/Tooling/Core/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_clang_library(clangToolingCore diff --git a/tools/clang/lib/Tooling/Core/Replacement.cpp b/tools/clang/lib/Tooling/Core/Replacement.cpp index 2b8d2980a3..6d37a49db3 100644 --- a/tools/clang/lib/Tooling/Core/Replacement.cpp +++ b/tools/clang/lib/Tooling/Core/Replacement.cpp @@ -1,14 +1,15 @@ //===--- Replacement.cpp - Framework for clang refactoring tools ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Replacement.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements classes to support/store refactorings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements classes to support/store refactorings. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Diagnostic.h" #include "clang/Basic/DiagnosticIDs.h" diff --git a/tools/clang/lib/Tooling/FileMatchTrie.cpp b/tools/clang/lib/Tooling/FileMatchTrie.cpp index 0d1e715520..86ed036e2d 100644 --- a/tools/clang/lib/Tooling/FileMatchTrie.cpp +++ b/tools/clang/lib/Tooling/FileMatchTrie.cpp @@ -1,14 +1,15 @@ //===--- FileMatchTrie.cpp - ----------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileMatchTrie.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation of a FileMatchTrie. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation of a FileMatchTrie. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/FileMatchTrie.h" #include "llvm/ADT/StringMap.h" diff --git a/tools/clang/lib/Tooling/JSONCompilationDatabase.cpp b/tools/clang/lib/Tooling/JSONCompilationDatabase.cpp index f1eec91633..454a2ffd95 100644 --- a/tools/clang/lib/Tooling/JSONCompilationDatabase.cpp +++ b/tools/clang/lib/Tooling/JSONCompilationDatabase.cpp @@ -1,14 +1,15 @@ //===--- JSONCompilationDatabase.cpp - ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// JSONCompilationDatabase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the implementation of the JSONCompilationDatabase. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the implementation of the JSONCompilationDatabase. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/JSONCompilationDatabase.h" #include "clang/Tooling/CompilationDatabase.h" diff --git a/tools/clang/lib/Tooling/Refactoring.cpp b/tools/clang/lib/Tooling/Refactoring.cpp index 09e7740055..d32452f6f2 100644 --- a/tools/clang/lib/Tooling/Refactoring.cpp +++ b/tools/clang/lib/Tooling/Refactoring.cpp @@ -1,14 +1,15 @@ //===--- Refactoring.cpp - Framework for clang refactoring tools ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Refactoring.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements tools to support refactorings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements tools to support refactorings. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/DiagnosticOptions.h" #include "clang/Basic/FileManager.h" diff --git a/tools/clang/lib/Tooling/RefactoringCallbacks.cpp b/tools/clang/lib/Tooling/RefactoringCallbacks.cpp index 36c4c10d6e..7adf04b7fe 100644 --- a/tools/clang/lib/Tooling/RefactoringCallbacks.cpp +++ b/tools/clang/lib/Tooling/RefactoringCallbacks.cpp @@ -1,11 +1,14 @@ //===--- RefactoringCallbacks.cpp - Structural query framework ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RefactoringCallbacks.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Lexer.h" #include "clang/Tooling/RefactoringCallbacks.h" diff --git a/tools/clang/lib/Tooling/Tooling.cpp b/tools/clang/lib/Tooling/Tooling.cpp index 38abe38591..f9cb7c6413 100644 --- a/tools/clang/lib/Tooling/Tooling.cpp +++ b/tools/clang/lib/Tooling/Tooling.cpp @@ -1,15 +1,16 @@ //===--- Tooling.cpp - Running clang standalone tools ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Tooling.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements functions to run clang tools standalone instead // -// of running them as a plugin. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements functions to run clang tools standalone instead +// of running them as a plugin. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/Tooling.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/runtime/CMakeLists.txt b/tools/clang/runtime/CMakeLists.txt index 9c94c98bbd..ad383f6cf7 100644 --- a/tools/clang/runtime/CMakeLists.txt +++ b/tools/clang/runtime/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # TODO: Set the install directory. include(ExternalProject) diff --git a/tools/clang/tools/CMakeLists.txt b/tools/clang/tools/CMakeLists.txt index 6cee368f82..8a95e2a403 100644 --- a/tools/clang/tools/CMakeLists.txt +++ b/tools/clang/tools/CMakeLists.txt @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. -# add_subdirectory(diagtool) # HLSL Change add_subdirectory(driver) # add_subdirectory(clang-format) # HLSL Change # add_subdirectory(clang-format-vs) # HLSL Change diff --git a/tools/clang/tools/c-index-test/CMakeLists.txt b/tools/clang/tools/c-index-test/CMakeLists.txt index ff448afdf8..d0872fd2ef 100644 --- a/tools/clang/tools/c-index-test/CMakeLists.txt +++ b/tools/clang/tools/c-index-test/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_clang_executable(c-index-test c-index-test.c ) diff --git a/tools/clang/tools/c-index-test/c-index-test.c b/tools/clang/tools/c-index-test/c-index-test.c index 3f4ee59bc9..eeeb832cd8 100644 --- a/tools/clang/tools/c-index-test/c-index-test.c +++ b/tools/clang/tools/c-index-test/c-index-test.c @@ -1,11 +1,4 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// c-index-test.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +/* c-index-test.c */ #include "clang/Config/config.h" #include "clang-c/Index.h" diff --git a/tools/clang/tools/clang-check/CMakeLists.txt b/tools/clang/tools/clang-check/CMakeLists.txt index 4870f07a17..04151a8e03 100644 --- a/tools/clang/tools/clang-check/CMakeLists.txt +++ b/tools/clang/tools/clang-check/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set( LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Option diff --git a/tools/clang/tools/clang-check/ClangCheck.cpp b/tools/clang/tools/clang-check/ClangCheck.cpp index 58081b4968..a9934c978d 100644 --- a/tools/clang/tools/clang-check/ClangCheck.cpp +++ b/tools/clang/tools/clang-check/ClangCheck.cpp @@ -1,19 +1,20 @@ //===--- tools/clang-check/ClangCheck.cpp - Clang check tool --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangCheck.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements a clang-check tool that runs clang based on the info// -// stored in a compilation database. // -// // -// This tool uses the Clang Tooling infrastructure, see // -// http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html // -// for details on setting it up with LLVM source tree. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements a clang-check tool that runs clang based on the info +// stored in a compilation database. +// +// This tool uses the Clang Tooling infrastructure, see +// http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html +// for details on setting it up with LLVM source tree. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/CodeGen/ObjectFilePCHContainerOperations.h" diff --git a/tools/clang/tools/clang-format-vs/CMakeLists.txt b/tools/clang/tools/clang-format-vs/CMakeLists.txt index d8c38894de..fd0d6b028c 100644 --- a/tools/clang/tools/clang-format-vs/CMakeLists.txt +++ b/tools/clang/tools/clang-format-vs/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. option(BUILD_CLANG_FORMAT_VS_PLUGIN "Build clang-format VS plugin" OFF) if (BUILD_CLANG_FORMAT_VS_PLUGIN) add_custom_target(clang_format_exe_for_vsix diff --git a/tools/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs b/tools/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs index 2a639171d7..a70fda9723 100644 --- a/tools/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs +++ b/tools/clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs @@ -1,15 +1,16 @@ //===-- ClangFormatPackages.cs - VSPackage for clang-format ------*- C# -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangFormatPackages..cs // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// // // This class contains a VS extension package that runs clang-format over a // selection in a VS text editor. -// // -/////////////////////////////////////////////////////////////////////////////// +// +//===----------------------------------------------------------------------===// using Microsoft.VisualStudio.Editor; using Microsoft.VisualStudio.Shell; diff --git a/tools/clang/tools/clang-format-vs/ClangFormat/Guids.cs b/tools/clang/tools/clang-format-vs/ClangFormat/Guids.cs index 02a6b0b989..3b3467c51d 100644 --- a/tools/clang/tools/clang-format-vs/ClangFormat/Guids.cs +++ b/tools/clang/tools/clang-format-vs/ClangFormat/Guids.cs @@ -1,12 +1,4 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// Guids.cs // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - + using System; namespace LLVM.ClangFormat diff --git a/tools/clang/tools/clang-format-vs/ClangFormat/PkgCmdID.cs b/tools/clang/tools/clang-format-vs/ClangFormat/PkgCmdID.cs index 543b50ca54..98414faf98 100644 --- a/tools/clang/tools/clang-format-vs/ClangFormat/PkgCmdID.cs +++ b/tools/clang/tools/clang-format-vs/ClangFormat/PkgCmdID.cs @@ -1,12 +1,4 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// PkgCmdID.cs // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// - + namespace LLVM.ClangFormat { static class PkgCmdIDList diff --git a/tools/clang/tools/clang-format-vs/README.txt b/tools/clang/tools/clang-format-vs/README.txt index f9a6984441..c18de3e133 100644 --- a/tools/clang/tools/clang-format-vs/README.txt +++ b/tools/clang/tools/clang-format-vs/README.txt @@ -1,5 +1,3 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. This directory contains a VSPackage project to generate a Visual Studio extension for clang-format. diff --git a/tools/clang/tools/clang-format/CMakeLists.txt b/tools/clang/tools/clang-format/CMakeLists.txt index 5626fef977..9d49439d37 100644 --- a/tools/clang/tools/clang-format/CMakeLists.txt +++ b/tools/clang/tools/clang-format/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support mcparser # HLSL Change - needed for 'no target' build hlsl # HLSL Change diff --git a/tools/clang/tools/clang-format/ClangFormat.cpp b/tools/clang/tools/clang-format/ClangFormat.cpp index 1794ebe0c0..5037e901f3 100644 --- a/tools/clang/tools/clang-format/ClangFormat.cpp +++ b/tools/clang/tools/clang-format/ClangFormat.cpp @@ -1,18 +1,17 @@ //===-- clang-format/ClangFormat.cpp - Clang format tool ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangFormat.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a clang-format tool that automatically formats// -/// (fragments of) C++ code. // +/// \file +/// \brief This file implements a clang-format tool that automatically formats +/// (fragments of) C++ code. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Basic/Diagnostic.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/tools/clang-format/clang-format-diff.py b/tools/clang/tools/clang-format/clang-format-diff.py index c4cb4b4475..64efb83a8c 100644 --- a/tools/clang/tools/clang-format/clang-format-diff.py +++ b/tools/clang/tools/clang-format/clang-format-diff.py @@ -2,8 +2,10 @@ # #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# diff --git a/tools/clang/tools/clang-format/clang-format-sublime.py b/tools/clang/tools/clang-format/clang-format-sublime.py index f02fb2e756..16ff56e502 100644 --- a/tools/clang/tools/clang-format/clang-format-sublime.py +++ b/tools/clang/tools/clang-format/clang-format-sublime.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # This file is a minimal clang-format sublime-integration. To install: # - Change 'binary' if clang-format is not on the path (see below). # - Put this file into your sublime Packages directory, e.g. on Linux: diff --git a/tools/clang/tools/clang-format/clang-format.py b/tools/clang/tools/clang-format/clang-format.py index f742e88014..5cb41fcfa3 100644 --- a/tools/clang/tools/clang-format/clang-format.py +++ b/tools/clang/tools/clang-format/clang-format.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # This file is a minimal clang-format vim-integration. To install: # - Change 'binary' if clang-format is not on the path (see below). # - Add to your .vimrc: diff --git a/tools/clang/tools/clang-format/fuzzer/CMakeLists.txt b/tools/clang/tools/clang-format/fuzzer/CMakeLists.txt index d1ffcd6ec2..c7772fcb2f 100644 --- a/tools/clang/tools/clang-format/fuzzer/CMakeLists.txt +++ b/tools/clang/tools/clang-format/fuzzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_clang_executable(clang-format-fuzzer diff --git a/tools/clang/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp b/tools/clang/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp index 57942e18ed..fe4941a5ba 100644 --- a/tools/clang/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp +++ b/tools/clang/tools/clang-format/fuzzer/ClangFormatFuzzer.cpp @@ -1,18 +1,17 @@ //===-- ClangFormatFuzzer.cpp - Fuzz the Clang format tool ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangFormatFuzzer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a function that runs Clang format on a single// -/// input. This function is then linked into the Fuzzer library. // +/// \file +/// \brief This file implements a function that runs Clang format on a single +/// input. This function is then linked into the Fuzzer library. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Format/Format.h" diff --git a/tools/clang/tools/clang-format/git-clang-format b/tools/clang/tools/clang-format/git-clang-format index a25c20b71e..0c45762ea5 100644 --- a/tools/clang/tools/clang-format/git-clang-format +++ b/tools/clang/tools/clang-format/git-clang-format @@ -1,7 +1,13 @@ #!/usr/bin/env python +# #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===# -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# r""" clang-format git integration diff --git a/tools/clang/tools/clang-fuzzer/CMakeLists.txt b/tools/clang/tools/clang-fuzzer/CMakeLists.txt index f44048c019..87d21c6bf1 100644 --- a/tools/clang/tools/clang-fuzzer/CMakeLists.txt +++ b/tools/clang/tools/clang-fuzzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. if( LLVM_USE_SANITIZE_COVERAGE ) set(LLVM_LINK_COMPONENTS support) diff --git a/tools/clang/tools/clang-fuzzer/ClangFuzzer.cpp b/tools/clang/tools/clang-fuzzer/ClangFuzzer.cpp index d41e341ae0..124911cd4a 100644 --- a/tools/clang/tools/clang-fuzzer/ClangFuzzer.cpp +++ b/tools/clang/tools/clang-fuzzer/ClangFuzzer.cpp @@ -1,18 +1,17 @@ //===-- ClangFuzzer.cpp - Fuzz Clang --------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangFuzzer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a function that runs Clang on a single // -/// input. This function is then linked into the Fuzzer library. // +/// \file +/// \brief This file implements a function that runs Clang on a single +/// input. This function is then linked into the Fuzzer library. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "clang/Tooling/Tooling.h" #include "clang/Frontend/FrontendActions.h" diff --git a/tools/clang/tools/diagtool/CMakeLists.txt b/tools/clang/tools/diagtool/CMakeLists.txt index bd1777a184..d286797b99 100644 --- a/tools/clang/tools/diagtool/CMakeLists.txt +++ b/tools/clang/tools/diagtool/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support mcparser # HLSL Change diff --git a/tools/clang/tools/diagtool/DiagTool.cpp b/tools/clang/tools/diagtool/DiagTool.cpp index 994ae5542d..0e4d8088c6 100644 --- a/tools/clang/tools/diagtool/DiagTool.cpp +++ b/tools/clang/tools/diagtool/DiagTool.cpp @@ -1,14 +1,15 @@ //===- DiagTool.cpp - Classes for defining diagtool tools -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagTool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the boilerplate for defining diagtool tools. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the boilerplate for defining diagtool tools. +// +//===----------------------------------------------------------------------===// #include "DiagTool.h" #include "llvm/ADT/SmallString.h" diff --git a/tools/clang/tools/diagtool/DiagTool.h b/tools/clang/tools/diagtool/DiagTool.h index ee07820bca..04b926df3b 100644 --- a/tools/clang/tools/diagtool/DiagTool.h +++ b/tools/clang/tools/diagtool/DiagTool.h @@ -1,14 +1,15 @@ //===- DiagTool.h - Classes for defining diagtool tools -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagTool.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the boilerplate for defining diagtool tools. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the boilerplate for defining diagtool tools. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_DIAGTOOL_DIAGTOOL_H #define LLVM_CLANG_TOOLS_DIAGTOOL_DIAGTOOL_H diff --git a/tools/clang/tools/diagtool/DiagnosticNames.cpp b/tools/clang/tools/diagtool/DiagnosticNames.cpp index 6bb6364749..a08da89577 100644 --- a/tools/clang/tools/diagtool/DiagnosticNames.cpp +++ b/tools/clang/tools/diagtool/DiagnosticNames.cpp @@ -1,12 +1,11 @@ //===- DiagnosticNames.cpp - Defines a table of all builtin diagnostics ----==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticNames.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DiagnosticNames.h" #include "clang/Basic/AllDiagnostics.h" diff --git a/tools/clang/tools/diagtool/DiagnosticNames.h b/tools/clang/tools/diagtool/DiagnosticNames.h index 5d6f7feeb5..ac1a098579 100644 --- a/tools/clang/tools/diagtool/DiagnosticNames.h +++ b/tools/clang/tools/diagtool/DiagnosticNames.h @@ -1,12 +1,11 @@ //===- DiagnosticNames.h - Defines a table of all builtin diagnostics ------==// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticNames.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_DIAGTOOL_DIAGNOSTICNAMES_H #define LLVM_CLANG_TOOLS_DIAGTOOL_DIAGNOSTICNAMES_H diff --git a/tools/clang/tools/diagtool/ListWarnings.cpp b/tools/clang/tools/diagtool/ListWarnings.cpp index 66b2c76881..3e6e88306e 100644 --- a/tools/clang/tools/diagtool/ListWarnings.cpp +++ b/tools/clang/tools/diagtool/ListWarnings.cpp @@ -1,15 +1,16 @@ //===- ListWarnings.h - diagtool tool for printing warning flags ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ListWarnings.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides a diagtool tool that displays warning flags for // -// diagnostics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides a diagtool tool that displays warning flags for +// diagnostics. +// +//===----------------------------------------------------------------------===// #include "DiagTool.h" #include "DiagnosticNames.h" diff --git a/tools/clang/tools/diagtool/ShowEnabledWarnings.cpp b/tools/clang/tools/diagtool/ShowEnabledWarnings.cpp index a16ad97329..06f74320b7 100644 --- a/tools/clang/tools/diagtool/ShowEnabledWarnings.cpp +++ b/tools/clang/tools/diagtool/ShowEnabledWarnings.cpp @@ -1,12 +1,11 @@ //===- ShowEnabledWarnings - diagtool tool for printing enabled flags -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ShowEnabledWarnings.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DiagTool.h" #include "DiagnosticNames.h" diff --git a/tools/clang/tools/diagtool/TreeView.cpp b/tools/clang/tools/diagtool/TreeView.cpp index 3ad19144a4..3647e393b8 100644 --- a/tools/clang/tools/diagtool/TreeView.cpp +++ b/tools/clang/tools/diagtool/TreeView.cpp @@ -1,12 +1,11 @@ //===- TreeView.cpp - diagtool tool for printing warning flags ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TreeView.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DiagTool.h" #include "DiagnosticNames.h" diff --git a/tools/clang/tools/diagtool/diagtool_main.cpp b/tools/clang/tools/diagtool/diagtool_main.cpp index 3ce047931f..4eef54dbfe 100644 --- a/tools/clang/tools/diagtool/diagtool_main.cpp +++ b/tools/clang/tools/diagtool/diagtool_main.cpp @@ -1,14 +1,15 @@ //===- diagtool_main.h - Entry point for invoking all diagnostic tools ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// diagtool_main.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the main function for diagtool. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the main function for diagtool. +// +//===----------------------------------------------------------------------===// #include "DiagTool.h" diff --git a/tools/clang/tools/driver/CMakeLists.txt b/tools/clang/tools/driver/CMakeLists.txt index 59610cf99e..3931085997 100644 --- a/tools/clang/tools/driver/CMakeLists.txt +++ b/tools/clang/tools/driver/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set( LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Analysis diff --git a/tools/clang/tools/driver/cc1_main.cpp b/tools/clang/tools/driver/cc1_main.cpp index fe0c09ec7f..8240561236 100644 --- a/tools/clang/tools/driver/cc1_main.cpp +++ b/tools/clang/tools/driver/cc1_main.cpp @@ -1,16 +1,17 @@ //===-- cc1_main.cpp - Clang CC1 Compiler Frontend ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// cc1_main.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the entry point to the clang -cc1 functionality, which implements the// -// core compiler functionality along with a number of additional tools for // -// demonstration and testing purposes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the entry point to the clang -cc1 functionality, which implements the +// core compiler functionality along with a number of additional tools for +// demonstration and testing purposes. +// +//===----------------------------------------------------------------------===// #include "llvm/Option/Arg.h" #include "clang/CodeGen/ObjectFilePCHContainerOperations.h" diff --git a/tools/clang/tools/driver/cc1as_main.cpp b/tools/clang/tools/driver/cc1as_main.cpp index 72f1b430c6..fd0fbb4c5a 100644 --- a/tools/clang/tools/driver/cc1as_main.cpp +++ b/tools/clang/tools/driver/cc1as_main.cpp @@ -1,15 +1,16 @@ //===-- cc1as_main.cpp - Clang Assembler ---------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// cc1as_main.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the entry point to the clang -cc1as functionality, which implements// -// the direct interface to the LLVM MC based assembler. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the entry point to the clang -cc1as functionality, which implements +// the direct interface to the LLVM MC based assembler. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Diagnostic.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/tools/driver/driver.cpp b/tools/clang/tools/driver/driver.cpp index 3a22d151f7..6f845ef632 100644 --- a/tools/clang/tools/driver/driver.cpp +++ b/tools/clang/tools/driver/driver.cpp @@ -1,15 +1,16 @@ //===-- driver.cpp - Clang GCC-Compatible Driver --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// driver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the entry point to the clang driver; it is a thin wrapper // -// for functionality in the Driver clang library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the entry point to the clang driver; it is a thin wrapper +// for functionality in the Driver clang library. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/CharInfo.h" #include "clang/Basic/DiagnosticOptions.h" diff --git a/tools/clang/tools/libclang/ARCMigrate.cpp b/tools/clang/tools/libclang/ARCMigrate.cpp index ec78f0a518..b597383dfd 100644 --- a/tools/clang/tools/libclang/ARCMigrate.cpp +++ b/tools/clang/tools/libclang/ARCMigrate.cpp @@ -1,14 +1,15 @@ //===- ARCMigrate.cpp - Clang-C ARC Migration Library ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARCMigrate.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the main API hooks in the Clang-C ARC Migration library.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the main API hooks in the Clang-C ARC Migration library. +// +//===----------------------------------------------------------------------===// #include "clang-c/Index.h" #include "CXString.h" diff --git a/tools/clang/tools/libclang/BuildSystem.cpp b/tools/clang/tools/libclang/BuildSystem.cpp index 66c0271a57..fe3db755eb 100644 --- a/tools/clang/tools/libclang/BuildSystem.cpp +++ b/tools/clang/tools/libclang/BuildSystem.cpp @@ -1,14 +1,15 @@ //===- BuildSystem.cpp - Utilities for use by build systems ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuildSystem.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements various utilities for use by build systems. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements various utilities for use by build systems. +// +//===----------------------------------------------------------------------===// #include "clang-c/BuildSystem.h" #include "CXString.h" diff --git a/tools/clang/tools/libclang/CIndex.cpp b/tools/clang/tools/libclang/CIndex.cpp index 5b20c44b2a..241a6d4aab 100644 --- a/tools/clang/tools/libclang/CIndex.cpp +++ b/tools/clang/tools/libclang/CIndex.cpp @@ -1,15 +1,16 @@ //===- CIndex.cpp - Clang-C Source Indexing Library -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndex.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the main API hooks in the Clang-C Source Indexing // -// library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the main API hooks in the Clang-C Source Indexing +// library. +// +//===----------------------------------------------------------------------===// #include "CIndexer.h" #include "CIndexDiagnostic.h" diff --git a/tools/clang/tools/libclang/CIndexCXX.cpp b/tools/clang/tools/libclang/CIndexCXX.cpp index dd4434199b..ea692af0ed 100644 --- a/tools/clang/tools/libclang/CIndexCXX.cpp +++ b/tools/clang/tools/libclang/CIndexCXX.cpp @@ -1,14 +1,15 @@ //===- CIndexCXX.cpp - Clang-C Source Indexing Library --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexCXX.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the libclang support for C++ cursors. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the libclang support for C++ cursors. +// +//===----------------------------------------------------------------------===// #include "CIndexer.h" #include "CXCursor.h" diff --git a/tools/clang/tools/libclang/CIndexCodeCompletion.cpp b/tools/clang/tools/libclang/CIndexCodeCompletion.cpp index 3f98f5988b..de52b45eb9 100644 --- a/tools/clang/tools/libclang/CIndexCodeCompletion.cpp +++ b/tools/clang/tools/libclang/CIndexCodeCompletion.cpp @@ -1,15 +1,16 @@ //===- CIndexCodeCompletion.cpp - Code Completion API hooks ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexCodeCompletion.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Clang-C Source Indexing library hooks for // -// code completion. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Clang-C Source Indexing library hooks for +// code completion. +// +//===----------------------------------------------------------------------===// #include "CIndexer.h" #include "CIndexDiagnostic.h" diff --git a/tools/clang/tools/libclang/CIndexDiagnostic.cpp b/tools/clang/tools/libclang/CIndexDiagnostic.cpp index 1860816505..09050456f0 100644 --- a/tools/clang/tools/libclang/CIndexDiagnostic.cpp +++ b/tools/clang/tools/libclang/CIndexDiagnostic.cpp @@ -1,14 +1,15 @@ /*===-- CIndexDiagnostics.cpp - Diagnostics C Interface ---------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements the diagnostic functions of the Clang C interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Implements the diagnostic functions of the Clang C interface. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "CIndexDiagnostic.h" #include "CIndexer.h" diff --git a/tools/clang/tools/libclang/CIndexDiagnostic.h b/tools/clang/tools/libclang/CIndexDiagnostic.h index 96516a1cd5..05c63ff57c 100644 --- a/tools/clang/tools/libclang/CIndexDiagnostic.h +++ b/tools/clang/tools/libclang/CIndexDiagnostic.h @@ -1,12 +1,15 @@ /*===-- CIndexDiagnostic.h - Diagnostics C Interface ------------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Implements the diagnostic functions of the Clang C interface. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CINDEXDIAGNOSTIC_H #define LLVM_CLANG_TOOLS_LIBCLANG_CINDEXDIAGNOSTIC_H diff --git a/tools/clang/tools/libclang/CIndexHigh.cpp b/tools/clang/tools/libclang/CIndexHigh.cpp index 82ee3ae515..fe960e84aa 100644 --- a/tools/clang/tools/libclang/CIndexHigh.cpp +++ b/tools/clang/tools/libclang/CIndexHigh.cpp @@ -1,12 +1,11 @@ //===- CIndexHigh.cpp - Higher level API functions ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexHigh.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "CursorVisitor.h" #include "CLog.h" diff --git a/tools/clang/tools/libclang/CIndexInclusionStack.cpp b/tools/clang/tools/libclang/CIndexInclusionStack.cpp index 2089ae6953..791a10f133 100644 --- a/tools/clang/tools/libclang/CIndexInclusionStack.cpp +++ b/tools/clang/tools/libclang/CIndexInclusionStack.cpp @@ -1,15 +1,16 @@ //===- CIndexInclusionStack.cpp - Clang-C Source Indexing Library ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexInclusionStack.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a callback mechanism for clients to get the inclusion // -// stack from a translation unit. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a callback mechanism for clients to get the inclusion +// stack from a translation unit. +// +//===----------------------------------------------------------------------===// #include "CIndexer.h" #include "CXSourceLocation.h" diff --git a/tools/clang/tools/libclang/CIndexUSRs.cpp b/tools/clang/tools/libclang/CIndexUSRs.cpp index d98ad95d67..b1f75fdfb3 100644 --- a/tools/clang/tools/libclang/CIndexUSRs.cpp +++ b/tools/clang/tools/libclang/CIndexUSRs.cpp @@ -1,14 +1,15 @@ //===- CIndexUSR.cpp - Clang-C Source Indexing Library --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexUSRs.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the generation and use of USRs from CXEntities. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the generation and use of USRs from CXEntities. +// +//===----------------------------------------------------------------------===// #include "CIndexer.h" #include "CXCursor.h" diff --git a/tools/clang/tools/libclang/CIndexer.cpp b/tools/clang/tools/libclang/CIndexer.cpp index a9383c9296..1d9c1039fb 100644 --- a/tools/clang/tools/libclang/CIndexer.cpp +++ b/tools/clang/tools/libclang/CIndexer.cpp @@ -1,14 +1,15 @@ //===- CIndex.cpp - Clang-C Source Indexing Library -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Clang-C Source Indexing library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Clang-C Source Indexing library. +// +//===----------------------------------------------------------------------===// #include "CIndexer.h" #include "clang/AST/Decl.h" diff --git a/tools/clang/tools/libclang/CIndexer.h b/tools/clang/tools/libclang/CIndexer.h index be321c21a9..c83a334217 100644 --- a/tools/clang/tools/libclang/CIndexer.h +++ b/tools/clang/tools/libclang/CIndexer.h @@ -1,15 +1,16 @@ //===- CIndexer.h - Clang-C Source Indexing Library -------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CIndexer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines CIndexer, a subclass of Indexer that provides extra // -// functionality needed by the CIndex library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines CIndexer, a subclass of Indexer that provides extra +// functionality needed by the CIndex library. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CINDEXER_H #define LLVM_CLANG_TOOLS_LIBCLANG_CINDEXER_H diff --git a/tools/clang/tools/libclang/CLog.h b/tools/clang/tools/libclang/CLog.h index 1cb61d0e1f..b9309ed192 100644 --- a/tools/clang/tools/libclang/CLog.h +++ b/tools/clang/tools/libclang/CLog.h @@ -1,12 +1,11 @@ //===- CLog.h - Logging Interface -------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CLog.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CLOG_H #define LLVM_CLANG_TOOLS_LIBCLANG_CLOG_H diff --git a/tools/clang/tools/libclang/CMakeLists.txt b/tools/clang/tools/libclang/CMakeLists.txt index 4c752c95b1..793b751c7e 100644 --- a/tools/clang/tools/libclang/CMakeLists.txt +++ b/tools/clang/tools/libclang/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_OPTIONAL_SOURCES ARCMigrate.cpp) # HLSL Change - ignore file set (HLSL_IGNORE_SOURCES diff --git a/tools/clang/tools/libclang/CXComment.cpp b/tools/clang/tools/libclang/CXComment.cpp index 8d4094ea41..922fdf58b8 100644 --- a/tools/clang/tools/libclang/CXComment.cpp +++ b/tools/clang/tools/libclang/CXComment.cpp @@ -1,14 +1,15 @@ //===- CXComment.cpp - libclang APIs for manipulating CXComments ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXComment.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines all libclang APIs related to walking comment AST. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines all libclang APIs related to walking comment AST. +// +//===----------------------------------------------------------------------===// #include "clang-c/Index.h" #include "CXComment.h" diff --git a/tools/clang/tools/libclang/CXComment.h b/tools/clang/tools/libclang/CXComment.h index bda948c245..a937a80346 100644 --- a/tools/clang/tools/libclang/CXComment.h +++ b/tools/clang/tools/libclang/CXComment.h @@ -1,14 +1,15 @@ //===- CXComment.h - Routines for manipulating CXComments -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXComment.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXComments. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXComments. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXCOMMENT_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXCOMMENT_H diff --git a/tools/clang/tools/libclang/CXCompilationDatabase.cpp b/tools/clang/tools/libclang/CXCompilationDatabase.cpp index b2c7fe905a..d4b1ebf453 100644 --- a/tools/clang/tools/libclang/CXCompilationDatabase.cpp +++ b/tools/clang/tools/libclang/CXCompilationDatabase.cpp @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// CXCompilationDatabase.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "clang-c/CXCompilationDatabase.h" #include "CXString.h" diff --git a/tools/clang/tools/libclang/CXCursor.cpp b/tools/clang/tools/libclang/CXCursor.cpp index 628cf66e24..ef37a03e74 100644 --- a/tools/clang/tools/libclang/CXCursor.cpp +++ b/tools/clang/tools/libclang/CXCursor.cpp @@ -1,16 +1,17 @@ //===- CXCursor.cpp - Routines for manipulating CXCursors -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXCursor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXCursors. It should be the // -// only file that has internal knowledge of the encoding of the data in // -// CXCursor. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXCursors. It should be the +// only file that has internal knowledge of the encoding of the data in +// CXCursor. +// +//===----------------------------------------------------------------------===// #include "CXTranslationUnit.h" #include "CXCursor.h" diff --git a/tools/clang/tools/libclang/CXCursor.h b/tools/clang/tools/libclang/CXCursor.h index 9488ca3046..083b86934d 100644 --- a/tools/clang/tools/libclang/CXCursor.h +++ b/tools/clang/tools/libclang/CXCursor.h @@ -1,14 +1,15 @@ //===- CXCursor.h - Routines for manipulating CXCursors -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXCursor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXCursors. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXCursors. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXCURSOR_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXCURSOR_H diff --git a/tools/clang/tools/libclang/CXLoadedDiagnostic.cpp b/tools/clang/tools/libclang/CXLoadedDiagnostic.cpp index a0cce5f00b..0dfedaed33 100644 --- a/tools/clang/tools/libclang/CXLoadedDiagnostic.cpp +++ b/tools/clang/tools/libclang/CXLoadedDiagnostic.cpp @@ -1,14 +1,15 @@ //===-- CXLoadedDiagnostic.cpp - Handling of persisent diags ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXLoadedDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements handling of persisent diagnostics. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements handling of persisent diagnostics. +// +//===----------------------------------------------------------------------===// #include "CXLoadedDiagnostic.h" #include "CXString.h" diff --git a/tools/clang/tools/libclang/CXLoadedDiagnostic.h b/tools/clang/tools/libclang/CXLoadedDiagnostic.h index f805099bfe..4019f59b30 100644 --- a/tools/clang/tools/libclang/CXLoadedDiagnostic.h +++ b/tools/clang/tools/libclang/CXLoadedDiagnostic.h @@ -1,12 +1,15 @@ /*===-- CXLoadedDiagnostic.h - Handling of persisent diags ------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CXLoadedDiagnostic.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Implements handling of persisent diagnostics. *| +|* *| +\*===----------------------------------------------------------------------===*/ #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXLOADEDDIAGNOSTIC_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXLOADEDDIAGNOSTIC_H diff --git a/tools/clang/tools/libclang/CXSourceLocation.cpp b/tools/clang/tools/libclang/CXSourceLocation.cpp index ffb502c5d8..24b78dd1cb 100644 --- a/tools/clang/tools/libclang/CXSourceLocation.cpp +++ b/tools/clang/tools/libclang/CXSourceLocation.cpp @@ -1,14 +1,15 @@ //===- CXSourceLocation.cpp - CXSourceLocations APIs ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXSourceLocation.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXSourceLocations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXSourceLocations. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/ASTUnit.h" #include "CIndexer.h" diff --git a/tools/clang/tools/libclang/CXSourceLocation.h b/tools/clang/tools/libclang/CXSourceLocation.h index 850921d489..f0b3f49549 100644 --- a/tools/clang/tools/libclang/CXSourceLocation.h +++ b/tools/clang/tools/libclang/CXSourceLocation.h @@ -1,14 +1,15 @@ //===- CXSourceLocation.h - CXSourceLocations Utilities ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXSourceLocation.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXSourceLocations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXSourceLocations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXSOURCELOCATION_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXSOURCELOCATION_H diff --git a/tools/clang/tools/libclang/CXStoredDiagnostic.cpp b/tools/clang/tools/libclang/CXStoredDiagnostic.cpp index 8f18360de4..faaf746a1e 100644 --- a/tools/clang/tools/libclang/CXStoredDiagnostic.cpp +++ b/tools/clang/tools/libclang/CXStoredDiagnostic.cpp @@ -1,14 +1,15 @@ /*===-- CXStoreDiagnostic.cpp - Diagnostics C Interface ----------*- C++ -*-===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// CXStoredDiagnostic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implements part of the diagnostic functions of the Clang C interface. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Implements part of the diagnostic functions of the Clang C interface. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "CIndexDiagnostic.h" #include "CIndexer.h" diff --git a/tools/clang/tools/libclang/CXString.cpp b/tools/clang/tools/libclang/CXString.cpp index de55617811..7d0c94af1a 100644 --- a/tools/clang/tools/libclang/CXString.cpp +++ b/tools/clang/tools/libclang/CXString.cpp @@ -1,16 +1,17 @@ //===- CXString.cpp - Routines for manipulating CXStrings -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXString.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXStrings. It should be the // -// only file that has internal knowledge of the encoding of the data in // -// CXStrings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXStrings. It should be the +// only file that has internal knowledge of the encoding of the data in +// CXStrings. +// +//===----------------------------------------------------------------------===// #include "CXString.h" #include "CXTranslationUnit.h" diff --git a/tools/clang/tools/libclang/CXString.h b/tools/clang/tools/libclang/CXString.h index d3a8b1df13..72ac0cf469 100644 --- a/tools/clang/tools/libclang/CXString.h +++ b/tools/clang/tools/libclang/CXString.h @@ -1,14 +1,15 @@ //===- CXString.h - Routines for manipulating CXStrings -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXString.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXStrings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXStrings. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXSTRING_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXSTRING_H diff --git a/tools/clang/tools/libclang/CXTranslationUnit.h b/tools/clang/tools/libclang/CXTranslationUnit.h index 7b1f616b87..6022c9dab1 100644 --- a/tools/clang/tools/libclang/CXTranslationUnit.h +++ b/tools/clang/tools/libclang/CXTranslationUnit.h @@ -1,14 +1,15 @@ //===- CXTranslationUnit.h - Routines for manipulating CXTranslationUnits -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXTranslationUnit.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXTranslationUnits. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXTranslationUnits. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXTRANSLATIONUNIT_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXTRANSLATIONUNIT_H diff --git a/tools/clang/tools/libclang/CXType.cpp b/tools/clang/tools/libclang/CXType.cpp index bcccbcd60d..09faeb0326 100644 --- a/tools/clang/tools/libclang/CXType.cpp +++ b/tools/clang/tools/libclang/CXType.cpp @@ -1,12 +1,15 @@ //===- CXTypes.cpp - Implements 'CXTypes' aspect of libclang ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXType.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===--------------------------------------------------------------------===// +// +// This file implements the 'CXTypes' API hooks in the Clang-C library. +// +//===--------------------------------------------------------------------===// #include "CIndexer.h" #include "CXCursor.h" diff --git a/tools/clang/tools/libclang/CXType.h b/tools/clang/tools/libclang/CXType.h index 22f18ad2bb..941cc0a9fd 100644 --- a/tools/clang/tools/libclang/CXType.h +++ b/tools/clang/tools/libclang/CXType.h @@ -1,14 +1,15 @@ //===- CXTypes.h - Routines for manipulating CXTypes ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CXType.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXCursors. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXCursors. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CXTYPE_H #define LLVM_CLANG_TOOLS_LIBCLANG_CXTYPE_H diff --git a/tools/clang/tools/libclang/CursorVisitor.h b/tools/clang/tools/libclang/CursorVisitor.h index 959a36b5c3..71a183c727 100644 --- a/tools/clang/tools/libclang/CursorVisitor.h +++ b/tools/clang/tools/libclang/CursorVisitor.h @@ -1,12 +1,11 @@ //===- CursorVisitor.h - CursorVisitor interface ----------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CursorVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_CURSORVISITOR_H #define LLVM_CLANG_TOOLS_LIBCLANG_CURSORVISITOR_H diff --git a/tools/clang/tools/libclang/IndexBody.cpp b/tools/clang/tools/libclang/IndexBody.cpp index dc5173ce03..5539971f04 100644 --- a/tools/clang/tools/libclang/IndexBody.cpp +++ b/tools/clang/tools/libclang/IndexBody.cpp @@ -1,12 +1,11 @@ //===- CIndexHigh.cpp - Higher level API functions ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndexBody.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "IndexingContext.h" #include "clang/AST/DataRecursiveASTVisitor.h" diff --git a/tools/clang/tools/libclang/IndexDecl.cpp b/tools/clang/tools/libclang/IndexDecl.cpp index 9ff6d649bd..c8cf1d3621 100644 --- a/tools/clang/tools/libclang/IndexDecl.cpp +++ b/tools/clang/tools/libclang/IndexDecl.cpp @@ -1,12 +1,11 @@ //===- CIndexHigh.cpp - Higher level API functions ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndexDecl.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "IndexingContext.h" #include "clang/AST/DeclVisitor.h" diff --git a/tools/clang/tools/libclang/IndexTypeSourceInfo.cpp b/tools/clang/tools/libclang/IndexTypeSourceInfo.cpp index f142386ed4..706870e514 100644 --- a/tools/clang/tools/libclang/IndexTypeSourceInfo.cpp +++ b/tools/clang/tools/libclang/IndexTypeSourceInfo.cpp @@ -1,12 +1,11 @@ //===- CIndexHigh.cpp - Higher level API functions ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndexTypeSourceInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "IndexingContext.h" #include "clang/AST/DataRecursiveASTVisitor.h" diff --git a/tools/clang/tools/libclang/Index_Internal.h b/tools/clang/tools/libclang/Index_Internal.h index c364ec0fd4..98f069c887 100644 --- a/tools/clang/tools/libclang/Index_Internal.h +++ b/tools/clang/tools/libclang/Index_Internal.h @@ -1,14 +1,15 @@ //===- CXString.h - Routines for manipulating CXStrings -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Index_Internal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines routines for manipulating CXStrings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines routines for manipulating CXStrings. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_INDEX_INTERNAL_H #define LLVM_CLANG_TOOLS_LIBCLANG_INDEX_INTERNAL_H diff --git a/tools/clang/tools/libclang/Indexing.cpp b/tools/clang/tools/libclang/Indexing.cpp index 2cb4b1df74..731f46e66b 100644 --- a/tools/clang/tools/libclang/Indexing.cpp +++ b/tools/clang/tools/libclang/Indexing.cpp @@ -1,12 +1,11 @@ //===- CIndexHigh.cpp - Higher level API functions ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Indexing.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "IndexingContext.h" #include "CIndexDiagnostic.h" diff --git a/tools/clang/tools/libclang/IndexingContext.cpp b/tools/clang/tools/libclang/IndexingContext.cpp index b046dbe00f..bf6e172fc0 100644 --- a/tools/clang/tools/libclang/IndexingContext.cpp +++ b/tools/clang/tools/libclang/IndexingContext.cpp @@ -1,12 +1,11 @@ //===- IndexingContext.cpp - Higher level API functions -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndexingContext.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "IndexingContext.h" #include "CIndexDiagnostic.h" diff --git a/tools/clang/tools/libclang/IndexingContext.h b/tools/clang/tools/libclang/IndexingContext.h index d617aefac8..4da6aebaf6 100644 --- a/tools/clang/tools/libclang/IndexingContext.h +++ b/tools/clang/tools/libclang/IndexingContext.h @@ -1,12 +1,11 @@ //===- IndexingContext.h - Higher level API functions -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IndexingContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_LIBCLANG_INDEXINGCONTEXT_H #define LLVM_CLANG_TOOLS_LIBCLANG_INDEXINGCONTEXT_H diff --git a/tools/clang/unittests/AST/ASTContextParentMapTest.cpp b/tools/clang/unittests/AST/ASTContextParentMapTest.cpp index ae78661844..0dcb175e07 100644 --- a/tools/clang/unittests/AST/ASTContextParentMapTest.cpp +++ b/tools/clang/unittests/AST/ASTContextParentMapTest.cpp @@ -1,14 +1,15 @@ //===- unittest/AST/ASTContextParentMapTest.cpp - AST parent map test -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTContextParentMapTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Tests for the getParents(...) methods of ASTContext. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Tests for the getParents(...) methods of ASTContext. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "MatchVerifier.h" diff --git a/tools/clang/unittests/AST/ASTTypeTraitsTest.cpp b/tools/clang/unittests/AST/ASTTypeTraitsTest.cpp index 4393905fcf..bf87965756 100644 --- a/tools/clang/unittests/AST/ASTTypeTraitsTest.cpp +++ b/tools/clang/unittests/AST/ASTTypeTraitsTest.cpp @@ -1,12 +1,11 @@ //===- unittest/AST/ASTTypeTraits.cpp - AST type traits unit tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTTypeTraitsTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===--------------------------------------------------------------------===// #include "clang/AST/ASTTypeTraits.h" #include "MatchVerifier.h" diff --git a/tools/clang/unittests/AST/ASTVectorTest.cpp b/tools/clang/unittests/AST/ASTVectorTest.cpp index 60f2fa4a20..55c06d0071 100644 --- a/tools/clang/unittests/AST/ASTVectorTest.cpp +++ b/tools/clang/unittests/AST/ASTVectorTest.cpp @@ -1,14 +1,15 @@ //===- unittests/AST/DeclTest.cpp --- Declaration tests -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Unit tests for the ASTVector container. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Unit tests for the ASTVector container. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Compiler.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/unittests/AST/CMakeLists.txt b/tools/clang/unittests/AST/CMakeLists.txt index 82a9f7186b..2fa1078a5e 100644 --- a/tools/clang/unittests/AST/CMakeLists.txt +++ b/tools/clang/unittests/AST/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/AST/CommentLexer.cpp b/tools/clang/unittests/AST/CommentLexer.cpp index 0dcd7a305e..77ee22ffb4 100644 --- a/tools/clang/unittests/AST/CommentLexer.cpp +++ b/tools/clang/unittests/AST/CommentLexer.cpp @@ -1,12 +1,11 @@ //===- unittests/AST/CommentLexer.cpp ------ Comment lexer tests ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentLexer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentCommandTraits.h" diff --git a/tools/clang/unittests/AST/CommentParser.cpp b/tools/clang/unittests/AST/CommentParser.cpp index 8398afdc94..f6ef9b9b7c 100644 --- a/tools/clang/unittests/AST/CommentParser.cpp +++ b/tools/clang/unittests/AST/CommentParser.cpp @@ -1,12 +1,11 @@ //===- unittests/AST/CommentParser.cpp ------ Comment parser tests --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/CommentParser.h" #include "clang/AST/Comment.h" diff --git a/tools/clang/unittests/AST/DeclPrinterTest.cpp b/tools/clang/unittests/AST/DeclPrinterTest.cpp index ae8751ad72..d8cb977092 100644 --- a/tools/clang/unittests/AST/DeclPrinterTest.cpp +++ b/tools/clang/unittests/AST/DeclPrinterTest.cpp @@ -1,22 +1,23 @@ //===- unittests/AST/DeclPrinterTest.cpp --- Declaration printer tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclPrinterTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains tests for Decl::print() and related methods. // -// // -// Search this file for WRONG to see test cases that are producing something // -// completely wrong, invalid C++ or just misleading. // -// // -// These tests have a coding convention: // -// * declaration to be printed is named 'A' unless it should have some special// -// name (e.g., 'operator+'); // -// * additional helper declarations are 'Z', 'Y', 'X' and so on. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains tests for Decl::print() and related methods. +// +// Search this file for WRONG to see test cases that are producing something +// completely wrong, invalid C++ or just misleading. +// +// These tests have a coding convention: +// * declaration to be printed is named 'A' unless it should have some special +// name (e.g., 'operator+'); +// * additional helper declarations are 'Z', 'Y', 'X' and so on. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" diff --git a/tools/clang/unittests/AST/DeclTest.cpp b/tools/clang/unittests/AST/DeclTest.cpp index dfde02b6d4..87aeef47c6 100644 --- a/tools/clang/unittests/AST/DeclTest.cpp +++ b/tools/clang/unittests/AST/DeclTest.cpp @@ -1,14 +1,15 @@ //===- unittests/AST/DeclTest.cpp --- Declaration tests -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeclTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Unit tests for Decl nodes in the AST. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Unit tests for Decl nodes in the AST. +// +//===----------------------------------------------------------------------===// #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/Tooling/Tooling.h" diff --git a/tools/clang/unittests/AST/EvaluateAsRValueTest.cpp b/tools/clang/unittests/AST/EvaluateAsRValueTest.cpp index 8a6e89a57f..820edbc7c3 100644 --- a/tools/clang/unittests/AST/EvaluateAsRValueTest.cpp +++ b/tools/clang/unittests/AST/EvaluateAsRValueTest.cpp @@ -1,15 +1,16 @@ //===- unittests/AST/EvaluateAsRValueTest.cpp -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EvaluateAsRValueTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// \file // -// \brief Unit tests for evaluation of constant initializers. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// \file +// \brief Unit tests for evaluation of constant initializers. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/unittests/AST/ExternalASTSourceTest.cpp b/tools/clang/unittests/AST/ExternalASTSourceTest.cpp index cbec37d6a7..4f42dcf103 100644 --- a/tools/clang/unittests/AST/ExternalASTSourceTest.cpp +++ b/tools/clang/unittests/AST/ExternalASTSourceTest.cpp @@ -1,14 +1,15 @@ //===- unittest/AST/ExternalASTSourceTest.cpp -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalASTSourceTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains tests for Clang's ExternalASTSource. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains tests for Clang's ExternalASTSource. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/unittests/AST/MatchVerifier.h b/tools/clang/unittests/AST/MatchVerifier.h index c0a235dcf7..31932479ef 100644 --- a/tools/clang/unittests/AST/MatchVerifier.h +++ b/tools/clang/unittests/AST/MatchVerifier.h @@ -1,19 +1,20 @@ //===- unittest/AST/MatchVerifier.h - AST unit test support ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MatchVerifier.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Provides MatchVerifier, a base class to implement gtest matchers that // -// verify things that can be matched on the AST. // // -// Also implements matchers based on MatchVerifier: // -// LocationVerifier and RangeVerifier to verify whether a matched node has // -// the expected source location or source range. // +// The LLVM Compiler Infrastructure // -/////////////////////////////////////////////////////////////////////////////// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Provides MatchVerifier, a base class to implement gtest matchers that +// verify things that can be matched on the AST. +// +// Also implements matchers based on MatchVerifier: +// LocationVerifier and RangeVerifier to verify whether a matched node has +// the expected source location or source range. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_UNITTESTS_AST_MATCHVERIFIER_H #define LLVM_CLANG_UNITTESTS_AST_MATCHVERIFIER_H diff --git a/tools/clang/unittests/AST/NamedDeclPrinterTest.cpp b/tools/clang/unittests/AST/NamedDeclPrinterTest.cpp index aad5c5d3aa..cf97a0abf6 100644 --- a/tools/clang/unittests/AST/NamedDeclPrinterTest.cpp +++ b/tools/clang/unittests/AST/NamedDeclPrinterTest.cpp @@ -1,19 +1,20 @@ //===- unittests/AST/NamedDeclPrinterTest.cpp --- NamedDecl printer tests -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NamedDeclPrinterTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains tests for NamedDecl::printQualifiedName(). // -// // -// These tests have a coding convention: // -// * declaration to be printed is named 'A' unless it should have some special// -// name (e.g., 'operator+'); // -// * additional helper declarations are 'Z', 'Y', 'X' and so on. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains tests for NamedDecl::printQualifiedName(). +// +// These tests have a coding convention: +// * declaration to be printed is named 'A' unless it should have some special +// name (e.g., 'operator+'); +// * additional helper declarations are 'Z', 'Y', 'X' and so on. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" diff --git a/tools/clang/unittests/AST/SourceLocationTest.cpp b/tools/clang/unittests/AST/SourceLocationTest.cpp index cac4f574ae..b0a8f85f0e 100644 --- a/tools/clang/unittests/AST/SourceLocationTest.cpp +++ b/tools/clang/unittests/AST/SourceLocationTest.cpp @@ -1,19 +1,20 @@ //===- unittest/AST/SourceLocationTest.cpp - AST source loc unit tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceLocationTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains tests for SourceLocation and SourceRange fields // -// in AST nodes. // -// // -// FIXME: In the long-term, when we test more than source locations, we may // -// want to have a unit test file for an AST node (or group of related nodes),// -// rather than a unit test file for source locations for all AST nodes. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains tests for SourceLocation and SourceRange fields +// in AST nodes. +// +// FIXME: In the long-term, when we test more than source locations, we may +// want to have a unit test file for an AST node (or group of related nodes), +// rather than a unit test file for source locations for all AST nodes. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "MatchVerifier.h" diff --git a/tools/clang/unittests/AST/StmtPrinterTest.cpp b/tools/clang/unittests/AST/StmtPrinterTest.cpp index 57bc66d95f..b1fd2c1eb4 100644 --- a/tools/clang/unittests/AST/StmtPrinterTest.cpp +++ b/tools/clang/unittests/AST/StmtPrinterTest.cpp @@ -1,22 +1,23 @@ //===- unittests/AST/StmtPrinterTest.cpp --- Statement printer tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StmtPrinterTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains tests for Stmt::printPretty() and related methods. // -// // -// Search this file for WRONG to see test cases that are producing something // -// completely wrong, invalid C++ or just misleading. // -// // -// These tests have a coding convention: // -// * statements to be printed should be contained within a function named 'A'// -// unless it should have some special name (e.g., 'operator+'); // -// * additional helper declarations are 'Z', 'Y', 'X' and so on. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains tests for Stmt::printPretty() and related methods. +// +// Search this file for WRONG to see test cases that are producing something +// completely wrong, invalid C++ or just misleading. +// +// These tests have a coding convention: +// * statements to be printed should be contained within a function named 'A' +// unless it should have some special name (e.g., 'operator+'); +// * additional helper declarations are 'Z', 'Y', 'X' and so on. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" diff --git a/tools/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/tools/clang/unittests/ASTMatchers/ASTMatchersTest.cpp index 42bfc651a4..8ef3f15e4c 100644 --- a/tools/clang/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/tools/clang/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/ASTMatchersTest.cpp - AST matcher unit tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchersTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ASTMatchersTest.h" #include "clang/AST/PrettyPrinter.h" diff --git a/tools/clang/unittests/ASTMatchers/ASTMatchersTest.h b/tools/clang/unittests/ASTMatchers/ASTMatchersTest.h index c10b66d7ec..403a305db2 100644 --- a/tools/clang/unittests/ASTMatchers/ASTMatchersTest.h +++ b/tools/clang/unittests/ASTMatchers/ASTMatchersTest.h @@ -1,12 +1,11 @@ //===- unittest/Tooling/ASTMatchersTest.h - Matcher tests helpers ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASTMatchersTest.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_UNITTESTS_ASTMATCHERS_ASTMATCHERSTEST_H #define LLVM_CLANG_UNITTESTS_ASTMATCHERS_ASTMATCHERSTEST_H diff --git a/tools/clang/unittests/ASTMatchers/CMakeLists.txt b/tools/clang/unittests/ASTMatchers/CMakeLists.txt index 9f1862970b..3ace9fe264 100644 --- a/tools/clang/unittests/ASTMatchers/CMakeLists.txt +++ b/tools/clang/unittests/ASTMatchers/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt b/tools/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt index b3f2cadce6..506a65549e 100644 --- a/tools/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt +++ b/tools/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp index cf0789cb3a..45b0910ab0 100644 --- a/tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp +++ b/tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ASTMatchers/Dynamic/ParserTest.cpp - Parser unit tests -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ParserTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===-------------------------------------------------------------------===// #include "../ASTMatchersTest.h" #include "clang/ASTMatchers/Dynamic/Parser.h" diff --git a/tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp b/tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp index 1bf4e37fc0..a6b0a1b41d 100644 --- a/tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp +++ b/tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ASTMatchers/Dynamic/RegistryTest.cpp - Registry unit tests -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegistryTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===-----------------------------------------------------------------------===// #include "../ASTMatchersTest.h" #include "clang/ASTMatchers/Dynamic/Registry.h" diff --git a/tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp b/tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp index 077b7564be..268463da45 100644 --- a/tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp +++ b/tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ASTMatchers/Dynamic/VariantValueTest.cpp - VariantValue unit tests -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VariantValueTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===-----------------------------------------------------------------------------===// #include "../ASTMatchersTest.h" #include "clang/ASTMatchers/Dynamic/VariantValue.h" diff --git a/tools/clang/unittests/Basic/CMakeLists.txt b/tools/clang/unittests/Basic/CMakeLists.txt index 8010ef6ca7..3cb3cb8d3c 100644 --- a/tools/clang/unittests/Basic/CMakeLists.txt +++ b/tools/clang/unittests/Basic/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Basic/CharInfoTest.cpp b/tools/clang/unittests/Basic/CharInfoTest.cpp index 15f6685b6b..348e6ffe2b 100644 --- a/tools/clang/unittests/Basic/CharInfoTest.cpp +++ b/tools/clang/unittests/Basic/CharInfoTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Basic/CharInfoTest.cpp -- ASCII classification tests -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CharInfoTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/CharInfo.h" #include "gtest/gtest.h" diff --git a/tools/clang/unittests/Basic/DiagnosticTest.cpp b/tools/clang/unittests/Basic/DiagnosticTest.cpp index 72e86dc257..fa2b56e083 100644 --- a/tools/clang/unittests/Basic/DiagnosticTest.cpp +++ b/tools/clang/unittests/Basic/DiagnosticTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Basic/DiagnosticTest.cpp -- Diagnostic engine tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiagnosticTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/Diagnostic.h" #include "clang/Basic/DiagnosticIDs.h" diff --git a/tools/clang/unittests/Basic/FileManagerTest.cpp b/tools/clang/unittests/Basic/FileManagerTest.cpp index a2b7a24382..d8d85dd76c 100644 --- a/tools/clang/unittests/Basic/FileManagerTest.cpp +++ b/tools/clang/unittests/Basic/FileManagerTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Basic/FileMangerTest.cpp ------------ FileManger tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileManagerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/FileManager.h" #include "clang/Basic/FileSystemOptions.h" diff --git a/tools/clang/unittests/Basic/SourceManagerTest.cpp b/tools/clang/unittests/Basic/SourceManagerTest.cpp index e584f88990..494c27a2f1 100644 --- a/tools/clang/unittests/Basic/SourceManagerTest.cpp +++ b/tools/clang/unittests/Basic/SourceManagerTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Basic/SourceManagerTest.cpp ------ SourceManager tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceManagerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/SourceManager.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/unittests/Basic/VirtualFileSystemTest.cpp b/tools/clang/unittests/Basic/VirtualFileSystemTest.cpp index 9831cce325..71d2d2b60c 100644 --- a/tools/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/tools/clang/unittests/Basic/VirtualFileSystemTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Basic/VirtualFileSystem.cpp ---------------- VFS tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VirtualFileSystemTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Basic/VirtualFileSystem.h" #include "llvm/Support/Errc.h" diff --git a/tools/clang/unittests/CMakeLists.txt b/tools/clang/unittests/CMakeLists.txt index 4a258a6542..3bf1b5d172 100644 --- a/tools/clang/unittests/CMakeLists.txt +++ b/tools/clang/unittests/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_custom_target(ClangUnitTests) set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests") diff --git a/tools/clang/unittests/CodeGen/BufferSourceTest.cpp b/tools/clang/unittests/CodeGen/BufferSourceTest.cpp index f0d966cafd..e80e83bd28 100644 --- a/tools/clang/unittests/CodeGen/BufferSourceTest.cpp +++ b/tools/clang/unittests/CodeGen/BufferSourceTest.cpp @@ -1,12 +1,11 @@ //===- unittests/CodeGen/BufferSourceTest.cpp - MemoryBuffer source tests -===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BufferSourceTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/unittests/CodeGen/CMakeLists.txt b/tools/clang/unittests/CodeGen/CMakeLists.txt index 33547e9ef3..27a513a2f9 100644 --- a/tools/clang/unittests/CodeGen/CMakeLists.txt +++ b/tools/clang/unittests/CodeGen/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core Support diff --git a/tools/clang/unittests/Driver/CMakeLists.txt b/tools/clang/unittests/Driver/CMakeLists.txt index b351e007a5..8cc963b33a 100644 --- a/tools/clang/unittests/Driver/CMakeLists.txt +++ b/tools/clang/unittests/Driver/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Driver/MultilibTest.cpp b/tools/clang/unittests/Driver/MultilibTest.cpp index ac90175b61..c5e8e0970d 100644 --- a/tools/clang/unittests/Driver/MultilibTest.cpp +++ b/tools/clang/unittests/Driver/MultilibTest.cpp @@ -1,14 +1,15 @@ //===- unittests/Driver/MultilibTest.cpp --- Multilib tests ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MultilibTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Unit tests for Multilib and MultilibSet // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Unit tests for Multilib and MultilibSet +// +//===----------------------------------------------------------------------===// #include "clang/Driver/Multilib.h" #include "clang/Basic/LLVM.h" diff --git a/tools/clang/unittests/Format/CMakeLists.txt b/tools/clang/unittests/Format/CMakeLists.txt index ff223ec265..6d48cf8713 100644 --- a/tools/clang/unittests/Format/CMakeLists.txt +++ b/tools/clang/unittests/Format/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Format/FormatTest.cpp b/tools/clang/unittests/Format/FormatTest.cpp index c42279743b..d61dc7f662 100644 --- a/tools/clang/unittests/Format/FormatTest.cpp +++ b/tools/clang/unittests/Format/FormatTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Format/FormatTest.cpp - Formatting unit tests -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "FormatTestUtils.h" #include "clang/Format/Format.h" diff --git a/tools/clang/unittests/Format/FormatTestJS.cpp b/tools/clang/unittests/Format/FormatTestJS.cpp index 3caba4997d..d068d35d7d 100644 --- a/tools/clang/unittests/Format/FormatTestJS.cpp +++ b/tools/clang/unittests/Format/FormatTestJS.cpp @@ -1,12 +1,11 @@ //===- unittest/Format/FormatTestJS.cpp - Formatting unit tests for JS ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatTestJS.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "FormatTestUtils.h" #include "clang/Format/Format.h" diff --git a/tools/clang/unittests/Format/FormatTestJava.cpp b/tools/clang/unittests/Format/FormatTestJava.cpp index c05eeb40aa..8e590879f6 100644 --- a/tools/clang/unittests/Format/FormatTestJava.cpp +++ b/tools/clang/unittests/Format/FormatTestJava.cpp @@ -1,12 +1,11 @@ //===- unittest/Format/FormatTestJava.cpp - Formatting tests for Java -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatTestJava.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "FormatTestUtils.h" #include "clang/Format/Format.h" diff --git a/tools/clang/unittests/Format/FormatTestProto.cpp b/tools/clang/unittests/Format/FormatTestProto.cpp index 5ebc2f6dbd..74f7005b21 100644 --- a/tools/clang/unittests/Format/FormatTestProto.cpp +++ b/tools/clang/unittests/Format/FormatTestProto.cpp @@ -1,12 +1,11 @@ //===- unittest/Format/FormatTestProto.cpp --------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatTestProto.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "FormatTestUtils.h" #include "clang/Format/Format.h" diff --git a/tools/clang/unittests/Format/FormatTestSelective.cpp b/tools/clang/unittests/Format/FormatTestSelective.cpp index d0758721a4..8d2cb5a2fc 100644 --- a/tools/clang/unittests/Format/FormatTestSelective.cpp +++ b/tools/clang/unittests/Format/FormatTestSelective.cpp @@ -1,12 +1,11 @@ //===- unittest/Format/FormatTestSelective.cpp - Formatting unit tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatTestSelective.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "FormatTestUtils.h" #include "clang/Format/Format.h" diff --git a/tools/clang/unittests/Format/FormatTestUtils.h b/tools/clang/unittests/Format/FormatTestUtils.h index 1011c04b14..bd340e5b0e 100644 --- a/tools/clang/unittests/Format/FormatTestUtils.h +++ b/tools/clang/unittests/Format/FormatTestUtils.h @@ -1,14 +1,15 @@ //===- unittest/Format/FormatTestUtils.h - Formatting unit tests ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FormatTestUtils.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines utility functions for Clang-Format related tests. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines utility functions for Clang-Format related tests. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_UNITTESTS_FORMAT_FORMATTESTUTILS_H #define LLVM_CLANG_UNITTESTS_FORMAT_FORMATTESTUTILS_H diff --git a/tools/clang/unittests/Frontend/CMakeLists.txt b/tools/clang/unittests/Frontend/CMakeLists.txt index fa88cf486d..5b5fdc9a54 100644 --- a/tools/clang/unittests/Frontend/CMakeLists.txt +++ b/tools/clang/unittests/Frontend/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Frontend/FrontendActionTest.cpp b/tools/clang/unittests/Frontend/FrontendActionTest.cpp index 8cf3a86a3d..90afd774f1 100644 --- a/tools/clang/unittests/Frontend/FrontendActionTest.cpp +++ b/tools/clang/unittests/Frontend/FrontendActionTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Frontend/FrontendActionTest.cpp - FrontendAction tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FrontendActionTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Frontend/FrontendAction.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/unittests/Lex/CMakeLists.txt b/tools/clang/unittests/Lex/CMakeLists.txt index 231d51263d..461e0d95fc 100644 --- a/tools/clang/unittests/Lex/CMakeLists.txt +++ b/tools/clang/unittests/Lex/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Lex/LexerTest.cpp b/tools/clang/unittests/Lex/LexerTest.cpp index 36207cec37..b5a39b303d 100644 --- a/tools/clang/unittests/Lex/LexerTest.cpp +++ b/tools/clang/unittests/Lex/LexerTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Lex/LexerTest.cpp ------ Lexer tests ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LexerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/Lexer.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/unittests/Lex/PPCallbacksTest.cpp b/tools/clang/unittests/Lex/PPCallbacksTest.cpp index 1779888d93..94812fc93d 100644 --- a/tools/clang/unittests/Lex/PPCallbacksTest.cpp +++ b/tools/clang/unittests/Lex/PPCallbacksTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Lex/PPCallbacksTest.cpp - PPCallbacks tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPCallbacksTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===--------------------------------------------------------------===// #include "clang/Lex/Preprocessor.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp b/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp index fe4b6c48b1..d2e3640501 100644 --- a/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp +++ b/tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Lex/PPConditionalDirectiveRecordTest.cpp-PP directive tests =// -/////////////////////////////////////////////////////////////////////////////// -// // -// PPConditionalDirectiveRecordTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Lex/PPConditionalDirectiveRecord.h" #include "clang/Basic/Diagnostic.h" diff --git a/tools/clang/unittests/Rewrite/CMakeLists.txt b/tools/clang/unittests/Rewrite/CMakeLists.txt index 7a4be79af5..bee7ff6d55 100644 --- a/tools/clang/unittests/Rewrite/CMakeLists.txt +++ b/tools/clang/unittests/Rewrite/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Rewrite/RewriteBufferTest.cpp b/tools/clang/unittests/Rewrite/RewriteBufferTest.cpp index 359a830ee2..e3b7d1fb88 100644 --- a/tools/clang/unittests/Rewrite/RewriteBufferTest.cpp +++ b/tools/clang/unittests/Rewrite/RewriteBufferTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Rewrite/RewriteBufferTest.cpp - RewriteBuffer tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriteBufferTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Rewrite/Core/RewriteBuffer.h" #include "gtest/gtest.h" diff --git a/tools/clang/unittests/Sema/CMakeLists.txt b/tools/clang/unittests/Sema/CMakeLists.txt index 5c5abb053e..c25db814b7 100644 --- a/tools/clang/unittests/Sema/CMakeLists.txt +++ b/tools/clang/unittests/Sema/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp b/tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp index 22bcdd867a..703e97b4ac 100644 --- a/tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp +++ b/tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp @@ -1,12 +1,11 @@ //=== unittests/Sema/ExternalSemaSourceTest.cpp - ExternalSemaSource tests ===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalSemaSourceTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" diff --git a/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp b/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp index 0d284cdf17..33f1740bea 100644 --- a/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp +++ b/tools/clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Analysis/AnalyzerOptionsTest.cpp - SA Options test --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalyzerOptionsTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h" #include "clang/StaticAnalyzer/Core/Checker.h" diff --git a/tools/clang/unittests/StaticAnalyzer/CMakeLists.txt b/tools/clang/unittests/StaticAnalyzer/CMakeLists.txt index 52c9bb9dac..4aa5efba77 100644 --- a/tools/clang/unittests/StaticAnalyzer/CMakeLists.txt +++ b/tools/clang/unittests/StaticAnalyzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Tooling/CMakeLists.txt b/tools/clang/unittests/Tooling/CMakeLists.txt index a049f6ad27..469e6a956b 100644 --- a/tools/clang/unittests/Tooling/CMakeLists.txt +++ b/tools/clang/unittests/Tooling/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/tools/clang/unittests/Tooling/CommentHandlerTest.cpp b/tools/clang/unittests/Tooling/CommentHandlerTest.cpp index dc660ee8c5..da5604524c 100644 --- a/tools/clang/unittests/Tooling/CommentHandlerTest.cpp +++ b/tools/clang/unittests/Tooling/CommentHandlerTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/CommentHandlerTest.cpp -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommentHandlerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TestVisitor.h" #include "clang/Lex/Preprocessor.h" diff --git a/tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp index d197c6053d..3e5a589caf 100644 --- a/tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp +++ b/tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/CompilationDatabaseTest.cpp -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilationDatabaseTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp b/tools/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp index 2a7360338c..c28704532a 100644 --- a/tools/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp +++ b/tools/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RecursiveASTVisitorTest.cpp -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecursiveASTVisitorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TestVisitor.h" #include diff --git a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestCallVisitor.cpp b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestCallVisitor.cpp index f749663853..f8ff5bdc78 100644 --- a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestCallVisitor.cpp +++ b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestCallVisitor.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RecursiveASTVisitorTestCallVisitor.cpp ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecursiveASTVisitorTestCallVisitor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TestVisitor.h" #include diff --git a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp index e1c7564254..02676a737a 100644 --- a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp +++ b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecursiveASTVisitorTestDeclVisitor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TestVisitor.h" #include diff --git a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestExprVisitor.cpp b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestExprVisitor.cpp index 5b519293a9..6af5906c3f 100644 --- a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestExprVisitor.cpp +++ b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestExprVisitor.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RecursiveASTVisitorTestExprVisitor.cpp ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecursiveASTVisitorTestExprVisitor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TestVisitor.h" #include diff --git a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestTypeLocVisitor.cpp b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestTypeLocVisitor.cpp index 5c64a4b1db..63e2e8b602 100644 --- a/tools/clang/unittests/Tooling/RecursiveASTVisitorTestTypeLocVisitor.cpp +++ b/tools/clang/unittests/Tooling/RecursiveASTVisitorTestTypeLocVisitor.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RecursiveASTVisitorTestTypeLocVisitor.cpp ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RecursiveASTVisitorTestTypeLocVisitor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TestVisitor.h" #include diff --git a/tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp b/tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp index 1e56908122..c2b331c70a 100644 --- a/tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp +++ b/tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RefactoringCallbacksTest.cpp ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RefactoringCallbacksTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/RefactoringCallbacks.h" #include "RewriterTestContext.h" diff --git a/tools/clang/unittests/Tooling/RefactoringTest.cpp b/tools/clang/unittests/Tooling/RefactoringTest.cpp index 3464dc63f9..6c2c16b484 100644 --- a/tools/clang/unittests/Tooling/RefactoringTest.cpp +++ b/tools/clang/unittests/Tooling/RefactoringTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RefactoringTest.cpp - Refactoring unit tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RefactoringTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "RewriterTestContext.h" #include "clang/AST/ASTConsumer.h" diff --git a/tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp b/tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp index abdc4934aa..a20dde7614 100644 --- a/tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp +++ b/tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp @@ -1,14 +1,15 @@ //===- unittests/Tooling/ReplacementsYamlTest.cpp - Serialization tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ReplacementsYamlTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Tests for serialization of Replacements. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Tests for serialization of Replacements. +// +//===----------------------------------------------------------------------===// #include "clang/Tooling/ReplacementsYaml.h" #include "gtest/gtest.h" diff --git a/tools/clang/unittests/Tooling/RewriterTest.cpp b/tools/clang/unittests/Tooling/RewriterTest.cpp index 5f73ba8e98..93f69eb9fa 100644 --- a/tools/clang/unittests/Tooling/RewriterTest.cpp +++ b/tools/clang/unittests/Tooling/RewriterTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/RewriterTest.cpp ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriterTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "RewriterTestContext.h" #include "clang/Tooling/Core/Replacement.h" diff --git a/tools/clang/unittests/Tooling/RewriterTestContext.h b/tools/clang/unittests/Tooling/RewriterTestContext.h index 2e3e523c97..112efac52e 100644 --- a/tools/clang/unittests/Tooling/RewriterTestContext.h +++ b/tools/clang/unittests/Tooling/RewriterTestContext.h @@ -1,14 +1,15 @@ //===--- RewriterTestContext.h ----------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RewriterTestContext.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a utility class for Rewriter related tests. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a utility class for Rewriter related tests. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_UNITTESTS_TOOLING_REWRITERTESTCONTEXT_H #define LLVM_CLANG_UNITTESTS_TOOLING_REWRITERTESTCONTEXT_H diff --git a/tools/clang/unittests/Tooling/TestVisitor.h b/tools/clang/unittests/Tooling/TestVisitor.h index e9046aa2bb..f4a0039448 100644 --- a/tools/clang/unittests/Tooling/TestVisitor.h +++ b/tools/clang/unittests/Tooling/TestVisitor.h @@ -1,17 +1,16 @@ //===--- TestVisitor.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TestVisitor.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Defines utility templates for RecursiveASTVisitor related tests. // +/// \file +/// \brief Defines utility templates for RecursiveASTVisitor related tests. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_UNITTESTS_TOOLING_TESTVISITOR_H #define LLVM_CLANG_UNITTESTS_TOOLING_TESTVISITOR_H diff --git a/tools/clang/unittests/Tooling/ToolingTest.cpp b/tools/clang/unittests/Tooling/ToolingTest.cpp index 00bdf953c4..4b14ebb2c3 100644 --- a/tools/clang/unittests/Tooling/ToolingTest.cpp +++ b/tools/clang/unittests/Tooling/ToolingTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Tooling/ToolingTest.cpp - Tooling unit tests --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ToolingTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang/AST/ASTConsumer.h" #include "clang/AST/DeclCXX.h" diff --git a/tools/clang/unittests/libclang/CMakeLists.txt b/tools/clang/unittests/libclang/CMakeLists.txt index 29d1bf1039..1cdc45e2d2 100644 --- a/tools/clang/unittests/libclang/CMakeLists.txt +++ b/tools/clang/unittests/libclang/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_clang_unittest(libclangTests LibclangTest.cpp ) diff --git a/tools/clang/unittests/libclang/LibclangTest.cpp b/tools/clang/unittests/libclang/LibclangTest.cpp index 05f51b129b..becebf076d 100644 --- a/tools/clang/unittests/libclang/LibclangTest.cpp +++ b/tools/clang/unittests/libclang/LibclangTest.cpp @@ -1,12 +1,11 @@ //===- unittests/libclang/LibclangTest.cpp --- libclang tests -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LibclangTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "clang-c/Index.h" #include "llvm/Support/Debug.h" diff --git a/tools/clang/utils/ABITest/ABITestGen.py b/tools/clang/utils/ABITest/ABITestGen.py index 5783bd6ffa..27cc5ec258 100644 --- a/tools/clang/utils/ABITest/ABITestGen.py +++ b/tools/clang/utils/ABITest/ABITestGen.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. from pprint import pprint import random, atexit, time diff --git a/tools/clang/utils/ABITest/Enumeration.py b/tools/clang/utils/ABITest/Enumeration.py index b78e5c8be7..47e47026db 100644 --- a/tools/clang/utils/ABITest/Enumeration.py +++ b/tools/clang/utils/ABITest/Enumeration.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """Utilities for enumeration of finite and countably infinite sets. """ ### diff --git a/tools/clang/utils/ABITest/TypeGen.py b/tools/clang/utils/ABITest/TypeGen.py index 90b5614f44..1e4471c71e 100644 --- a/tools/clang/utils/ABITest/TypeGen.py +++ b/tools/clang/utils/ABITest/TypeGen.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """Flexible enumeration of C types.""" from Enumeration import * diff --git a/tools/clang/utils/CIndex/completion_logger_server.py b/tools/clang/utils/CIndex/completion_logger_server.py index 8dd9aee30e..0652b1f4a8 100644 --- a/tools/clang/utils/CIndex/completion_logger_server.py +++ b/tools/clang/utils/CIndex/completion_logger_server.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. import sys from socket import * from time import strftime diff --git a/tools/clang/utils/ClangDataFormat.py b/tools/clang/utils/ClangDataFormat.py index facb439ccd..38ef76b325 100644 --- a/tools/clang/utils/ClangDataFormat.py +++ b/tools/clang/utils/ClangDataFormat.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """lldb data formatters for clang classes. Usage diff --git a/tools/clang/utils/TableGen/CMakeLists.txt b/tools/clang/utils/TableGen/CMakeLists.txt index 87bd641ddd..9762ac4ee4 100644 --- a/tools/clang/utils/TableGen/CMakeLists.txt +++ b/tools/clang/utils/TableGen/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support MSSupport) # HLSL Change add_tablegen(clang-tblgen CLANG diff --git a/tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp b/tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp index 179d03543a..b17a4a374a 100644 --- a/tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp @@ -1,14 +1,15 @@ //=== ClangASTNodesEmitter.cpp - Generate Clang AST node tables -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangASTNodesEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These tablegen backends emit Clang AST node tables // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These tablegen backends emit Clang AST node tables +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/Record.h" #include "llvm/TableGen/TableGenBackend.h" diff --git a/tools/clang/utils/TableGen/ClangAttrEmitter.cpp b/tools/clang/utils/TableGen/ClangAttrEmitter.cpp index 390bbd4e15..7375d7f592 100644 --- a/tools/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -1,14 +1,15 @@ //===- ClangAttrEmitter.cpp - Generate Clang attribute handling =-*- C++ -*--=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangAttrEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These tablegen backends emit Clang attribute processing code // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These tablegen backends emit Clang attribute processing code +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp b/tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp index 156636a404..3349030466 100644 --- a/tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp @@ -1,15 +1,16 @@ //===--- ClangCommentCommandInfoEmitter.cpp - Generate command lists -----====// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangCommentCommandInfoEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits command lists and efficient matchers for command// -// names that are used in documentation comments. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits command lists and efficient matchers for command +// names that are used in documentation comments. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/Record.h" #include "llvm/TableGen/StringMatcher.h" diff --git a/tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp b/tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp index 9e878f4dd0..bfdb268b63 100644 --- a/tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp @@ -1,15 +1,16 @@ //===--- ClangCommentHTMLNamedCharacterReferenceEmitter.cpp -----------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangCommentHTMLNamedCharacterReferenceEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits an fficient function to translate HTML named // -// character references to UTF-8 sequences. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits an fficient function to translate HTML named +// character references to UTF-8 sequences. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/Support/ConvertUTF.h" diff --git a/tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp b/tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp index eaefd69e66..477bbc8aaa 100644 --- a/tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp @@ -1,15 +1,16 @@ //===--- ClangCommentHTMLTagsEmitter.cpp - Generate HTML tag list for Clang -=// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangCommentHTMLTagsEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits efficient matchers for HTML tags that are used// -// in documentation comments. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits efficient matchers for HTML tags that are used +// in documentation comments. +// +//===----------------------------------------------------------------------===// #include "TableGenBackends.h" #include "llvm/TableGen/Record.h" diff --git a/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp index ace3a5036f..efce521903 100644 --- a/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp @@ -1,14 +1,15 @@ //=- ClangDiagnosticsEmitter.cpp - Generate Clang diagnostics tables -*- C++ -*- -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangDiagnosticsEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These tablegen backends emit Clang diagnostics tables. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These tablegen backends emit Clang diagnostics tables. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/Optional.h" diff --git a/tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp b/tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp index ae2e9d80f9..115527ae33 100644 --- a/tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp +++ b/tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp @@ -1,14 +1,15 @@ //=- ClangSACheckersEmitter.cpp - Generate Clang SA checkers tables -*- C++ -*- -/////////////////////////////////////////////////////////////////////////////// -// // -// ClangSACheckersEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits Clang Static Analyzer checkers tables. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits Clang Static Analyzer checkers tables. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseSet.h" #include "llvm/TableGen/Error.h" diff --git a/tools/clang/utils/TableGen/NeonEmitter.cpp b/tools/clang/utils/TableGen/NeonEmitter.cpp index a86f381d86..7644ae2c04 100644 --- a/tools/clang/utils/TableGen/NeonEmitter.cpp +++ b/tools/clang/utils/TableGen/NeonEmitter.cpp @@ -1,27 +1,28 @@ //===- NeonEmitter.cpp - Generate arm_neon.h for use with clang -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NeonEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend is responsible for emitting arm_neon.h, which includes// -// a declaration and definition of each function specified by the ARM NEON // -// compiler interface. See ARM document DUI0348B. // -// // -// Each NEON instruction is implemented in terms of 1 or more functions which// -// are suffixed with the element type of the input vectors. Functions may be// -// implemented in terms of generic vector operations such as +, *, -, etc. or// -// by calling a __builtin_-prefixed function which will be handled by clang's// -// CodeGen library. // -// // -// Additional validation code can be generated by this file when runHeader() is// -// called, rather than the normal run() entry point. // -// // -// See also the documentation in include/clang/Basic/arm_neon.td. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend is responsible for emitting arm_neon.h, which includes +// a declaration and definition of each function specified by the ARM NEON +// compiler interface. See ARM document DUI0348B. +// +// Each NEON instruction is implemented in terms of 1 or more functions which +// are suffixed with the element type of the input vectors. Functions may be +// implemented in terms of generic vector operations such as +, *, -, etc. or +// by calling a __builtin_-prefixed function which will be handled by clang's +// CodeGen library. +// +// Additional validation code can be generated by this file when runHeader() is +// called, rather than the normal run() entry point. +// +// See also the documentation in include/clang/Basic/arm_neon.td. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/clang/utils/TableGen/TableGen.cpp b/tools/clang/utils/TableGen/TableGen.cpp index eee0524bb0..94d037ad26 100644 --- a/tools/clang/utils/TableGen/TableGen.cpp +++ b/tools/clang/utils/TableGen/TableGen.cpp @@ -1,14 +1,15 @@ //===- TableGen.cpp - Top-Level TableGen implementation for Clang ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TableGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the main function for Clang's TableGen. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the main function for Clang's TableGen. +// +//===----------------------------------------------------------------------===// #include "TableGenBackends.h" // Declares all backends. #include "llvm/Support/CommandLine.h" diff --git a/tools/clang/utils/TableGen/TableGenBackends.h b/tools/clang/utils/TableGen/TableGenBackends.h index 21ffb6859c..4adf368cbd 100644 --- a/tools/clang/utils/TableGen/TableGenBackends.h +++ b/tools/clang/utils/TableGen/TableGenBackends.h @@ -1,16 +1,17 @@ //===- TableGenBackends.h - Declarations for Clang TableGen Backends ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TableGenBackends.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declarations for all of the Clang TableGen // -// backends. A "TableGen backend" is just a function. See // -// "$LLVM_ROOT/utils/TableGen/TableGenBackends.h" for more info. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declarations for all of the Clang TableGen +// backends. A "TableGen backend" is just a function. See +// "$LLVM_ROOT/utils/TableGen/TableGenBackends.h" for more info. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H #define LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H diff --git a/tools/clang/utils/TestUtils/deep-stack.py b/tools/clang/utils/TestUtils/deep-stack.py index 0ee2c134c4..1750a5fca0 100644 --- a/tools/clang/utils/TestUtils/deep-stack.py +++ b/tools/clang/utils/TestUtils/deep-stack.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. def pcall(f, N): if N == 0: diff --git a/tools/clang/utils/analyzer/CmpRuns.py b/tools/clang/utils/analyzer/CmpRuns.py index e339c2948d..ce5ddfb3ad 100644 --- a/tools/clang/utils/analyzer/CmpRuns.py +++ b/tools/clang/utils/analyzer/CmpRuns.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ CmpRuns - A simple tool for comparing two static analyzer runs to determine diff --git a/tools/clang/utils/analyzer/SATestAdd.py b/tools/clang/utils/analyzer/SATestAdd.py index 79d7ac896a..64ff4ff656 100644 --- a/tools/clang/utils/analyzer/SATestAdd.py +++ b/tools/clang/utils/analyzer/SATestAdd.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ Static Analyzer qualification infrastructure: adding a new project to diff --git a/tools/clang/utils/analyzer/SATestBuild.py b/tools/clang/utils/analyzer/SATestBuild.py index 65a8e259f0..2d91ba41e2 100644 --- a/tools/clang/utils/analyzer/SATestBuild.py +++ b/tools/clang/utils/analyzer/SATestBuild.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ Static Analyzer qualification infrastructure. diff --git a/tools/clang/utils/analyzer/SumTimerInfo.py b/tools/clang/utils/analyzer/SumTimerInfo.py index d4f1cb6ef2..4ef1ceb4ce 100644 --- a/tools/clang/utils/analyzer/SumTimerInfo.py +++ b/tools/clang/utils/analyzer/SumTimerInfo.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ Script to Summarize statistics in the scan-build output. diff --git a/tools/clang/utils/analyzer/ubiviz b/tools/clang/utils/analyzer/ubiviz index 26fc899ad9..9b5e1b72f2 100644 --- a/tools/clang/utils/analyzer/ubiviz +++ b/tools/clang/utils/analyzer/ubiviz @@ -1,6 +1,10 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# ##===----------------------------------------------------------------------===## # # This script reads visualization data emitted by the static analyzer for diff --git a/tools/clang/utils/check_cfc/check_cfc.py b/tools/clang/utils/check_cfc/check_cfc.py index 1f7d140ce2..c6ab9abf23 100644 --- a/tools/clang/utils/check_cfc/check_cfc.py +++ b/tools/clang/utils/check_cfc/check_cfc.py @@ -1,6 +1,4 @@ #!/usr/bin/env python2.7 -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """Check CFC - Check Compile Flow Consistency diff --git a/tools/clang/utils/check_cfc/obj_diff.py b/tools/clang/utils/check_cfc/obj_diff.py index 396f67cdf1..cc4c2a97d5 100644 --- a/tools/clang/utils/check_cfc/obj_diff.py +++ b/tools/clang/utils/check_cfc/obj_diff.py @@ -1,6 +1,4 @@ #!/usr/bin/env python2.7 -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. from __future__ import print_function diff --git a/tools/clang/utils/check_cfc/setup.py b/tools/clang/utils/check_cfc/setup.py index 8c6eb6f510..b5fc473639 100644 --- a/tools/clang/utils/check_cfc/setup.py +++ b/tools/clang/utils/check_cfc/setup.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """For use on Windows. Run with: python.exe setup.py py2exe """ diff --git a/tools/clang/utils/check_cfc/test_check_cfc.py b/tools/clang/utils/check_cfc/test_check_cfc.py index 232759b9b1..e304ff5927 100644 --- a/tools/clang/utils/check_cfc/test_check_cfc.py +++ b/tools/clang/utils/check_cfc/test_check_cfc.py @@ -1,6 +1,4 @@ #!/usr/bin/env python2.7 -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """Test internal functions within check_cfc.py.""" diff --git a/tools/clang/utils/token-delta.py b/tools/clang/utils/token-delta.py index 16aac0f4a1..327fa9221f 100644 --- a/tools/clang/utils/token-delta.py +++ b/tools/clang/utils/token-delta.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. import os import re diff --git a/tools/dsymutil/BinaryHolder.cpp b/tools/dsymutil/BinaryHolder.cpp index 6be4b3c591..ad66105bc2 100644 --- a/tools/dsymutil/BinaryHolder.cpp +++ b/tools/dsymutil/BinaryHolder.cpp @@ -1,15 +1,16 @@ //===-- BinaryHolder.cpp --------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BinaryHolder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that aims to be a dropin replacement for // -// Darwin's dsymutil. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that aims to be a dropin replacement for +// Darwin's dsymutil. +// +//===----------------------------------------------------------------------===// #include "BinaryHolder.h" #include "llvm/Support/raw_ostream.h" diff --git a/tools/dsymutil/BinaryHolder.h b/tools/dsymutil/BinaryHolder.h index 0374c7c2aa..04871b5d58 100644 --- a/tools/dsymutil/BinaryHolder.h +++ b/tools/dsymutil/BinaryHolder.h @@ -1,15 +1,16 @@ //===-- BinaryHolder.h - Utility class for accessing binaries -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BinaryHolder.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that aims to be a dropin replacement for // -// Darwin's dsymutil. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that aims to be a dropin replacement for +// Darwin's dsymutil. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_DSYMUTIL_BINARYHOLDER_H #define LLVM_TOOLS_DSYMUTIL_BINARYHOLDER_H diff --git a/tools/dsymutil/CMakeLists.txt b/tools/dsymutil/CMakeLists.txt index 25e9a28b09..88f9f1f083 100644 --- a/tools/dsymutil/CMakeLists.txt +++ b/tools/dsymutil/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} AsmPrinter diff --git a/tools/dsymutil/DebugMap.cpp b/tools/dsymutil/DebugMap.cpp index 60998dce0c..6071f7a298 100644 --- a/tools/dsymutil/DebugMap.cpp +++ b/tools/dsymutil/DebugMap.cpp @@ -1,11 +1,11 @@ //===- tools/dsymutil/DebugMap.cpp - Generic debug map representation -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugMap.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DebugMap.h" #include "BinaryHolder.h" diff --git a/tools/dsymutil/DebugMap.h b/tools/dsymutil/DebugMap.h index 9d8e9ccf94..d0edbabb40 100644 --- a/tools/dsymutil/DebugMap.h +++ b/tools/dsymutil/DebugMap.h @@ -1,24 +1,23 @@ //===- tools/dsymutil/DebugMap.h - Generic debug map representation -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugMap.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // +/// \file /// -/// This file contains the class declaration of the DebugMap // -/// entity. A DebugMap lists all the object files linked together to // -/// produce an executable along with the linked address of all the // -/// atoms used in these object files. // -/// The DebugMap is an input to the DwarfLinker class that will // -/// extract the Dwarf debug information from the referenced object // -/// files and link their usefull debug info together. // +/// This file contains the class declaration of the DebugMap +/// entity. A DebugMap lists all the object files linked together to +/// produce an executable along with the linked address of all the +/// atoms used in these object files. +/// The DebugMap is an input to the DwarfLinker class that will +/// extract the Dwarf debug information from the referenced object +/// files and link their usefull debug info together. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_DSYMUTIL_DEBUGMAP_H #define LLVM_TOOLS_DSYMUTIL_DEBUGMAP_H diff --git a/tools/dsymutil/DwarfLinker.cpp b/tools/dsymutil/DwarfLinker.cpp index 8f4f573f46..5b819b44ff 100644 --- a/tools/dsymutil/DwarfLinker.cpp +++ b/tools/dsymutil/DwarfLinker.cpp @@ -1,11 +1,11 @@ //===- tools/dsymutil/DwarfLinker.cpp - Dwarf debug info linker -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfLinker.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DebugMap.h" #include "BinaryHolder.h" diff --git a/tools/dsymutil/LLVMBuild.txt b/tools/dsymutil/LLVMBuild.txt index babb4dc383..99b0b441c2 100644 --- a/tools/dsymutil/LLVMBuild.txt +++ b/tools/dsymutil/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/dsymutil/LLVMBuild.txt ---------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/dsymutil/MachODebugMapParser.cpp b/tools/dsymutil/MachODebugMapParser.cpp index e9d8f03e42..6c9fa9b513 100644 --- a/tools/dsymutil/MachODebugMapParser.cpp +++ b/tools/dsymutil/MachODebugMapParser.cpp @@ -1,12 +1,11 @@ //===- tools/dsymutil/MachODebugMapParser.cpp - Parse STABS debug maps ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachODebugMapParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "BinaryHolder.h" #include "DebugMap.h" diff --git a/tools/dsymutil/dsymutil.cpp b/tools/dsymutil/dsymutil.cpp index 13149bc301..50091935a4 100644 --- a/tools/dsymutil/dsymutil.cpp +++ b/tools/dsymutil/dsymutil.cpp @@ -1,15 +1,16 @@ //===-- dsymutil.cpp - Debug info dumping utility for llvm ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// dsymutil.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that aims to be a dropin replacement for // -// Darwin's dsymutil. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that aims to be a dropin replacement for +// Darwin's dsymutil. +// +//===----------------------------------------------------------------------===// #include "DebugMap.h" #include "dsymutil.h" diff --git a/tools/dsymutil/dsymutil.h b/tools/dsymutil/dsymutil.h index 503cf57002..4089187798 100644 --- a/tools/dsymutil/dsymutil.h +++ b/tools/dsymutil/dsymutil.h @@ -1,19 +1,18 @@ //===- tools/dsymutil/dsymutil.h - dsymutil high-level functionality ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// dsymutil.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // +/// \file /// -/// This file contains the class declaration for the code that parses STABS // -/// debug maps that are embedded in the binaries symbol tables. // +/// This file contains the class declaration for the code that parses STABS +/// debug maps that are embedded in the binaries symbol tables. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_DSYMUTIL_DSYMUTIL_H #define LLVM_TOOLS_DSYMUTIL_DSYMUTIL_H diff --git a/tools/llc/CMakeLists.txt b/tools/llc/CMakeLists.txt index f31a12429e..ff5a89e1da 100644 --- a/tools/llc/CMakeLists.txt +++ b/tools/llc/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Analysis diff --git a/tools/llc/LLVMBuild.txt b/tools/llc/LLVMBuild.txt index a7a627d5f6..38660cf27a 100644 --- a/tools/llc/LLVMBuild.txt +++ b/tools/llc/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llc/LLVMBuild.txt --------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 8f69886c5c..8a9f528188 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -1,16 +1,17 @@ //===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is the llc code generator driver. It provides a convenient // -// command-line interface for generating native assembly-language code // -// or C code, given LLVM bitcode. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is the llc code generator driver. It provides a convenient +// command-line interface for generating native assembly-language code +// or C code, given LLVM bitcode. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/Triple.h" diff --git a/tools/lli/CMakeLists.txt b/tools/lli/CMakeLists.txt index 074be23b2d..8ef0af04c7 100644 --- a/tools/lli/CMakeLists.txt +++ b/tools/lli/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(ChildTarget) set(LLVM_LINK_COMPONENTS diff --git a/tools/lli/ChildTarget/CMakeLists.txt b/tools/lli/ChildTarget/CMakeLists.txt index 6380197810..9f88b2cde3 100644 --- a/tools/lli/ChildTarget/CMakeLists.txt +++ b/tools/lli/ChildTarget/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_llvm_executable(lli-child-target diff --git a/tools/lli/ChildTarget/ChildTarget.cpp b/tools/lli/ChildTarget/ChildTarget.cpp index bdac97870a..2afecd2b0a 100644 --- a/tools/lli/ChildTarget/ChildTarget.cpp +++ b/tools/lli/ChildTarget/ChildTarget.cpp @@ -1,12 +1,3 @@ -//===-- ChildTarget.cpp ---------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ChildTarget.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "llvm/Config/config.h" #include "../RPCChannel.h" diff --git a/tools/lli/ChildTarget/LLVMBuild.txt b/tools/lli/ChildTarget/LLVMBuild.txt index e0efc77813..daf6df1132 100644 --- a/tools/lli/ChildTarget/LLVMBuild.txt +++ b/tools/lli/ChildTarget/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/lli/ChildTarget/LLVMBuild.txt --------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/lli/LLVMBuild.txt b/tools/lli/LLVMBuild.txt index 4930dc6cc9..9d889bf4c2 100644 --- a/tools/lli/LLVMBuild.txt +++ b/tools/lli/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/lli/LLVMBuild.txt --------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/lli/OrcLazyJIT.cpp b/tools/lli/OrcLazyJIT.cpp index cd4ff87b71..ae276e6cda 100644 --- a/tools/lli/OrcLazyJIT.cpp +++ b/tools/lli/OrcLazyJIT.cpp @@ -1,12 +1,11 @@ //===------ OrcLazyJIT.cpp - Basic Orc-based JIT for lazy execution -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcLazyJIT.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "OrcLazyJIT.h" #include "llvm/ExecutionEngine/Orc/OrcTargetSupport.h" diff --git a/tools/lli/OrcLazyJIT.h b/tools/lli/OrcLazyJIT.h index f668b8674e..fe86adbf95 100644 --- a/tools/lli/OrcLazyJIT.h +++ b/tools/lli/OrcLazyJIT.h @@ -1,15 +1,16 @@ //===--- OrcLazyJIT.h - Basic Orc-based JIT for lazy execution --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OrcLazyJIT.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Simple Orc-based JIT. Uses the compile-on-demand layer to break up and // -// lazily compile modules. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Simple Orc-based JIT. Uses the compile-on-demand layer to break up and +// lazily compile modules. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLI_ORCLAZYJIT_H #define LLVM_TOOLS_LLI_ORCLAZYJIT_H diff --git a/tools/lli/RPCChannel.h b/tools/lli/RPCChannel.h index 4640667c05..ebd3c65640 100644 --- a/tools/lli/RPCChannel.h +++ b/tools/lli/RPCChannel.h @@ -1,15 +1,16 @@ //===---------- RPCChannel.h - LLVM out-of-process JIT execution ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RPCChannel.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of the RemoteTargetExternal class which executes JITed code in a// -// separate process from where it was built. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of the RemoteTargetExternal class which executes JITed code in a +// separate process from where it was built. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLI_RPCCHANNEL_H #define LLVM_TOOLS_LLI_RPCCHANNEL_H diff --git a/tools/lli/RemoteMemoryManager.cpp b/tools/lli/RemoteMemoryManager.cpp index 147948f9e9..0a16210d2e 100644 --- a/tools/lli/RemoteMemoryManager.cpp +++ b/tools/lli/RemoteMemoryManager.cpp @@ -1,15 +1,16 @@ //===---- RemoteMemoryManager.cpp - Recording memory manager --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteMemoryManager.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This memory manager allocates local storage and keeps a record of each // -// allocation. Iterators are provided for all data and code allocations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This memory manager allocates local storage and keeps a record of each +// allocation. Iterators are provided for all data and code allocations. +// +//===----------------------------------------------------------------------===// #include "RemoteMemoryManager.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" diff --git a/tools/lli/RemoteMemoryManager.h b/tools/lli/RemoteMemoryManager.h index a8f30b2b7d..5733fa53f3 100644 --- a/tools/lli/RemoteMemoryManager.h +++ b/tools/lli/RemoteMemoryManager.h @@ -1,15 +1,16 @@ //===- RemoteMemoryManager.h - LLI MCJIT recording memory manager ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteMemoryManager.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This memory manager allocates local storage and keeps a record of each // -// allocation. Iterators are provided for all data and code allocations. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This memory manager allocates local storage and keeps a record of each +// allocation. Iterators are provided for all data and code allocations. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLI_REMOTEMEMORYMANAGER_H #define LLVM_TOOLS_LLI_REMOTEMEMORYMANAGER_H diff --git a/tools/lli/RemoteTarget.cpp b/tools/lli/RemoteTarget.cpp index d7cbca0049..850fdc5069 100644 --- a/tools/lli/RemoteTarget.cpp +++ b/tools/lli/RemoteTarget.cpp @@ -1,15 +1,16 @@ //===- RemoteTarget.cpp - LLVM Remote process JIT execution --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteTarget.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the RemoteTarget class which executes JITed code in a // -// separate address range from where it was built. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the RemoteTarget class which executes JITed code in a +// separate address range from where it was built. +// +//===----------------------------------------------------------------------===// #include "RemoteTarget.h" #include "llvm/ADT/StringRef.h" diff --git a/tools/lli/RemoteTarget.h b/tools/lli/RemoteTarget.h index 40151686d2..ee758a2747 100644 --- a/tools/lli/RemoteTarget.h +++ b/tools/lli/RemoteTarget.h @@ -1,15 +1,16 @@ //===- RemoteTarget.h - LLVM Remote process JIT execution ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteTarget.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of the RemoteTarget class which executes JITed code in a // -// separate address range from where it was built. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of the RemoteTarget class which executes JITed code in a +// separate address range from where it was built. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLI_REMOTETARGET_H #define LLVM_TOOLS_LLI_REMOTETARGET_H diff --git a/tools/lli/RemoteTargetExternal.cpp b/tools/lli/RemoteTargetExternal.cpp index 65e1478851..fe46248822 100644 --- a/tools/lli/RemoteTargetExternal.cpp +++ b/tools/lli/RemoteTargetExternal.cpp @@ -1,15 +1,16 @@ //===---- RemoteTargetExternal.cpp - LLVM out-of-process JIT execution ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteTargetExternal.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the RemoteTargetExternal class which executes JITed code// -// in a separate process from where it was built. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the RemoteTargetExternal class which executes JITed code +// in a separate process from where it was built. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" #include "RemoteTarget.h" diff --git a/tools/lli/RemoteTargetExternal.h b/tools/lli/RemoteTargetExternal.h index dd39daea97..afe8570ff4 100644 --- a/tools/lli/RemoteTargetExternal.h +++ b/tools/lli/RemoteTargetExternal.h @@ -1,15 +1,16 @@ //===----- RemoteTargetExternal.h - LLVM out-of-process JIT execution -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteTargetExternal.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of the RemoteTargetExternal class which executes JITed code in a// -// separate process from where it was built. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of the RemoteTargetExternal class which executes JITed code in a +// separate process from where it was built. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLI_REMOTETARGETEXTERNAL_H #define LLVM_TOOLS_LLI_REMOTETARGETEXTERNAL_H diff --git a/tools/lli/RemoteTargetMessage.h b/tools/lli/RemoteTargetMessage.h index 615ffc820f..c210e4b3d6 100644 --- a/tools/lli/RemoteTargetMessage.h +++ b/tools/lli/RemoteTargetMessage.h @@ -1,15 +1,16 @@ //===---- RemoteTargetMessage.h - LLI out-of-process message protocol -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RemoteTargetMessage.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Definition of the LLIMessageType enum which is used for communication with a// -// child process for remote execution. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Definition of the LLIMessageType enum which is used for communication with a +// child process for remote execution. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLI_REMOTETARGETMESSAGE_H #define LLVM_TOOLS_LLI_REMOTETARGETMESSAGE_H diff --git a/tools/lli/Unix/RPCChannel.inc b/tools/lli/Unix/RPCChannel.inc index 5ae7e2064f..6a9ae14b59 100644 --- a/tools/lli/Unix/RPCChannel.inc +++ b/tools/lli/Unix/RPCChannel.inc @@ -1,15 +1,16 @@ //=- RPCChannel.inc - LLVM out-of-process JIT execution for Unix --=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RPCChannel.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the Unix-specific parts of the RPCChannel class // -// which executes JITed code in a separate process from where it was built. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the Unix-specific parts of the RPCChannel class +// which executes JITed code in a separate process from where it was built. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Errno.h" #include "llvm/Support/raw_ostream.h" diff --git a/tools/lli/Windows/RPCChannel.inc b/tools/lli/Windows/RPCChannel.inc index 87e695f13c..82f2acbf14 100644 --- a/tools/lli/Windows/RPCChannel.inc +++ b/tools/lli/Windows/RPCChannel.inc @@ -1,15 +1,16 @@ //=- RPCChannel.inc - LLVM out-of-process JIT execution for Windows --=// -/////////////////////////////////////////////////////////////////////////////// -// // -// RPCChannel.inc // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation of the Windows-specific parts of the RPCChannel class // -// which executes JITed code in a separate process from where it was built. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation of the Windows-specific parts of the RPCChannel class +// which executes JITed code in a separate process from where it was built. +// +//===----------------------------------------------------------------------===// namespace llvm { diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 593fb4843e..417578431d 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -1,16 +1,17 @@ //===- lli.cpp - LLVM Interpreter / Dynamic compiler ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// lli.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility provides a simple wrapper around the LLVM Execution Engines, // -// which allow the direct execution of LLVM programs through a Just-In-Time // -// compiler, or through an interpreter if no JIT is available for this platform.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility provides a simple wrapper around the LLVM Execution Engines, +// which allow the direct execution of LLVM programs through a Just-In-Time +// compiler, or through an interpreter if no JIT is available for this platform. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LLVMContext.h" #include "OrcLazyJIT.h" diff --git a/tools/llvm-as/CMakeLists.txt b/tools/llvm-as/CMakeLists.txt index 56bf53d180..d9fcbb071a 100644 --- a/tools/llvm-as/CMakeLists.txt +++ b/tools/llvm-as/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AsmParser BitWriter diff --git a/tools/llvm-as/LLVMBuild.txt b/tools/llvm-as/LLVMBuild.txt index 20108ab21b..542470bbdd 100644 --- a/tools/llvm-as/LLVMBuild.txt +++ b/tools/llvm-as/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-as/LLVMBuild.txt ----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index d484aeddab..b93cd723f2 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -1,18 +1,19 @@ //===--- llvm-as.cpp - The low-level LLVM assembler -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-as.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility may be invoked in the following manner: // -// llvm-as --help - Output information about command line switches // -// llvm-as [options] - Read LLVM asm from stdin, write bitcode to stdout// -// llvm-as [options] x.ll - Read LLVM asm from the x.ll file, write bitcode// -// to the x.bc file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility may be invoked in the following manner: +// llvm-as --help - Output information about command line switches +// llvm-as [options] - Read LLVM asm from stdin, write bitcode to stdout +// llvm-as [options] x.ll - Read LLVM asm from the x.ll file, write bitcode +// to the x.bc file. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LLVMContext.h" #include "llvm/AsmParser/Parser.h" diff --git a/tools/llvm-bcanalyzer/CMakeLists.txt b/tools/llvm-bcanalyzer/CMakeLists.txt index 8f1c83de15..369f469af8 100644 --- a/tools/llvm-bcanalyzer/CMakeLists.txt +++ b/tools/llvm-bcanalyzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS BitReader Support diff --git a/tools/llvm-bcanalyzer/LLVMBuild.txt b/tools/llvm-bcanalyzer/LLVMBuild.txt index 7dcb8b8cce..ee77a7d33a 100644 --- a/tools/llvm-bcanalyzer/LLVMBuild.txt +++ b/tools/llvm-bcanalyzer/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-bcanalyzer/LLVMBuild.txt --------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index 7a6dfdc77b..57e3444a2a 100644 --- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp @@ -1,30 +1,31 @@ //===-- llvm-bcanalyzer.cpp - Bitcode Analyzer --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-bcanalyzer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tool may be invoked in the following manner: // -// llvm-bcanalyzer [options] - Read LLVM bitcode from stdin // -// llvm-bcanalyzer [options] x.bc - Read LLVM bitcode from the x.bc file // -// // -// Options: // -// --help - Output information about command line switches // -// --dump - Dump low-level bitcode structure in readable format // -// // -// This tool provides analytical information about a bitcode file. It is // -// intended as an aid to developers of bitcode reading and writing software. It// -// produces on std::out a summary of the bitcode file that shows various // -// statistics about the contents of the file. By default this information is // -// detailed and contains information about individual bitcode blocks and the // -// functions in the module. // -// The tool is also able to print a bitcode file in a straight forward text // -// format that shows the containment and relationships of the information in // -// the bitcode file (-dump option). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tool may be invoked in the following manner: +// llvm-bcanalyzer [options] - Read LLVM bitcode from stdin +// llvm-bcanalyzer [options] x.bc - Read LLVM bitcode from the x.bc file +// +// Options: +// --help - Output information about command line switches +// --dump - Dump low-level bitcode structure in readable format +// +// This tool provides analytical information about a bitcode file. It is +// intended as an aid to developers of bitcode reading and writing software. It +// produces on std::out a summary of the bitcode file that shows various +// statistics about the contents of the file. By default this information is +// detailed and contains information about individual bitcode blocks and the +// functions in the module. +// The tool is also able to print a bitcode file in a straight forward text +// format that shows the containment and relationships of the information in +// the bitcode file (-dump option). +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/BitstreamReader.h" #include "llvm/ADT/Optional.h" diff --git a/tools/llvm-c-test/CMakeLists.txt b/tools/llvm-c-test/CMakeLists.txt index e736a5713a..f22dffb30e 100644 --- a/tools/llvm-c-test/CMakeLists.txt +++ b/tools/llvm-c-test/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} BitReader diff --git a/tools/llvm-c-test/calc.c b/tools/llvm-c-test/calc.c index 8d805ecdf8..3119ccf8e9 100644 --- a/tools/llvm-c-test/calc.c +++ b/tools/llvm-c-test/calc.c @@ -1,16 +1,17 @@ /*===-- calc.c - tool for testing libLLVM and llvm-c API ------------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// calc.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the --calc command in llvm-c-test. --calc reads lines// -// from stdin, parses them as a name and an expression in reverse polish // -// notation and prints a module with a function with the expression. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file implements the --calc command in llvm-c-test. --calc reads lines *| +|* from stdin, parses them as a name and an expression in reverse polish *| +|* notation and prints a module with a function with the expression. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include "llvm-c/Core.h" diff --git a/tools/llvm-c-test/disassemble.c b/tools/llvm-c-test/disassemble.c index 0d80305535..05a9218d01 100644 --- a/tools/llvm-c-test/disassemble.c +++ b/tools/llvm-c-test/disassemble.c @@ -1,16 +1,17 @@ /*===-- disassemble.c - tool for testing libLLVM and llvm-c API -----------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// disassemble.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the --disassemble command in llvm-c-test. // -// --disassemble reads lines from stdin, parses them as a triple and hex // -// machine code, and prints disassembly of the machine code. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file implements the --disassemble command in llvm-c-test. *| +|* --disassemble reads lines from stdin, parses them as a triple and hex *| +|* machine code, and prints disassembly of the machine code. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include "llvm-c/Disassembler.h" diff --git a/tools/llvm-c-test/helpers.c b/tools/llvm-c-test/helpers.c index 65e4db994e..1ea8a4f669 100644 --- a/tools/llvm-c-test/helpers.c +++ b/tools/llvm-c-test/helpers.c @@ -1,14 +1,15 @@ /*===-- helpers.c - tool for testing libLLVM and llvm-c API ---------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// helpers.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Helper functions // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Helper functions *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include diff --git a/tools/llvm-c-test/include-all.c b/tools/llvm-c-test/include-all.c index e7dc878f9c..17b9917a87 100644 --- a/tools/llvm-c-test/include-all.c +++ b/tools/llvm-c-test/include-all.c @@ -1,15 +1,16 @@ /*===-- include-all.c - tool for testing libLLVM and llvm-c API -----------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// include-all.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file doesn't have any actual code. It just make sure that all // -// the llvm-c include files are good and doesn't generate any warnings // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file doesn't have any actual code. It just make sure that all *| +|* the llvm-c include files are good and doesn't generate any warnings *| +|* *| +\*===----------------------------------------------------------------------===*/ // FIXME: Autogenerate this list diff --git a/tools/llvm-c-test/llvm-c-test.h b/tools/llvm-c-test/llvm-c-test.h index d790f300ca..aeb3501f71 100644 --- a/tools/llvm-c-test/llvm-c-test.h +++ b/tools/llvm-c-test/llvm-c-test.h @@ -1,12 +1,15 @@ /*===-- llvm-c-test.h - tool for testing libLLVM and llvm-c API -----------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-c-test.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -///////////////////////////////////////////////////////////////////////////////#ifndef LLVM_C_TEST_H +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Header file for llvm-c-test *| +|* *| +\*===----------------------------------------------------------------------===*/ #define LLVM_C_TEST_H // helpers.c diff --git a/tools/llvm-c-test/main.c b/tools/llvm-c-test/main.c index 6e5b262904..c51d50930e 100644 --- a/tools/llvm-c-test/main.c +++ b/tools/llvm-c-test/main.c @@ -1,14 +1,15 @@ /*===-- main.c - tool for testing libLLVM and llvm-c API ------------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// main.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Main file for llvm-c-tests. "Parses" arguments and dispatches. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* Main file for llvm-c-tests. "Parses" arguments and dispatches. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include "llvm-c/BitReader.h" diff --git a/tools/llvm-c-test/metadata.c b/tools/llvm-c-test/metadata.c index 28a0bba105..b64a696c52 100644 --- a/tools/llvm-c-test/metadata.c +++ b/tools/llvm-c-test/metadata.c @@ -1,15 +1,16 @@ /*===-- object.c - tool for testing libLLVM and llvm-c API ----------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// metadata.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the --add-named-metadata-operand and --set-metadata // -// commands in llvm-c-test. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file implements the --add-named-metadata-operand and --set-metadata *| +|* commands in llvm-c-test. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include "llvm-c/Core.h" diff --git a/tools/llvm-c-test/module.c b/tools/llvm-c-test/module.c index a2941e8990..2661fc81d8 100644 --- a/tools/llvm-c-test/module.c +++ b/tools/llvm-c-test/module.c @@ -1,15 +1,16 @@ /*===-- module.c - tool for testing libLLVM and llvm-c API ----------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// module.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the --module-dump, --module-list-functions and // -// --module-list-globals commands in llvm-c-test. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file implements the --module-dump, --module-list-functions and *| +|* --module-list-globals commands in llvm-c-test. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include "llvm-c/BitReader.h" diff --git a/tools/llvm-c-test/object.c b/tools/llvm-c-test/object.c index fb88e450ed..a5421d9066 100644 --- a/tools/llvm-c-test/object.c +++ b/tools/llvm-c-test/object.c @@ -1,15 +1,16 @@ /*===-- object.c - tool for testing libLLVM and llvm-c API ----------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// object.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the --object-list-sections and --object-list-symbols // -// commands in llvm-c-test. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file implements the --object-list-sections and --object-list-symbols *| +|* commands in llvm-c-test. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c-test.h" #include "llvm-c/Object.h" diff --git a/tools/llvm-c-test/targets.c b/tools/llvm-c-test/targets.c index 54cd44d4ee..252c2e02a6 100644 --- a/tools/llvm-c-test/targets.c +++ b/tools/llvm-c-test/targets.c @@ -1,14 +1,15 @@ /*===-- targets.c - tool for testing libLLVM and llvm-c API ---------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// targets.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the --targets command in llvm-c-test. // -// // -/////////////////////////////////////////////////////////////////////////////// +|* *| +|* The LLVM Compiler Infrastructure *| +|* *| +|* This file is distributed under the University of Illinois Open Source *| +|* License. See LICENSE.TXT for details. *| +|* *| +|*===----------------------------------------------------------------------===*| +|* *| +|* This file implements the --targets command in llvm-c-test. *| +|* *| +\*===----------------------------------------------------------------------===*/ #include "llvm-c/TargetMachine.h" #include diff --git a/tools/llvm-config/BuildVariables.inc.in b/tools/llvm-config/BuildVariables.inc.in index 12c8a3e6ec..3f51f491a7 100644 --- a/tools/llvm-config/BuildVariables.inc.in +++ b/tools/llvm-config/BuildVariables.inc.in @@ -1,18 +1,20 @@ //===-- BuildVariables.inc.in - llvm-config build variables -*- C++ -*-----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// // This file is configured by the build system to define the variables // llvm-config wants to report to the user, but which can only be determined at // build time. -// // +// // The variant of this file not ending with .in has been autogenerated by the // LLVM build. Do not edit! -// // -/////////////////////////////////////////////////////////////////////////////// +// +//===----------------------------------------------------------------------===// #define LLVM_SRC_ROOT "@LLVM_SRC_ROOT@" #define LLVM_OBJ_ROOT "@LLVM_OBJ_ROOT@" diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index bf2d85090d..edbd8c950d 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) set(BUILDVARIABLES_SRCPATH ${CMAKE_CURRENT_SOURCE_DIR}/BuildVariables.inc.in) diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp index 4b49d0473e..955e269eed 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp @@ -1,20 +1,21 @@ //===-- llvm-config.cpp - LLVM project configuration utility --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-config.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tool encapsulates information about an LLVM project configuration for// -// use by other project's build environments (to determine installed path, // -// available features, required libraries, etc.). // -// // -// Note that although this tool *may* be used by some parts of LLVM's build // -// itself (i.e., the Makefiles use it to compute required libraries when linking// -// tools), this tool is primarily designed to support external projects. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tool encapsulates information about an LLVM project configuration for +// use by other project's build environments (to determine installed path, +// available features, required libraries, etc.). +// +// Note that although this tool *may* be used by some parts of LLVM's build +// itself (i.e., the Makefiles use it to compute required libraries when linking +// tools), this tool is primarily designed to support external projects. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringMap.h" diff --git a/tools/llvm-cov/CMakeLists.txt b/tools/llvm-cov/CMakeLists.txt index 5f15b280c3..193218a663 100644 --- a/tools/llvm-cov/CMakeLists.txt +++ b/tools/llvm-cov/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS core support object profiledata) add_llvm_tool(llvm-cov diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index 596a0a1a26..8dc4d665f2 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/tools/llvm-cov/CodeCoverage.cpp @@ -1,16 +1,17 @@ //===- CodeCoverage.cpp - Coverage tool based on profiling instrumentation-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeCoverage.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// The 'CodeCoverageTool' class implements a command line tool to analyze and// -// report coverage information using the profiling instrumentation and code // -// coverage mapping. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// The 'CodeCoverageTool' class implements a command line tool to analyze and +// report coverage information using the profiling instrumentation and code +// coverage mapping. +// +//===----------------------------------------------------------------------===// #include "RenderingSupport.h" #include "CoverageFilters.h" diff --git a/tools/llvm-cov/CoverageFilters.cpp b/tools/llvm-cov/CoverageFilters.cpp index 93a9923d23..325dd72357 100644 --- a/tools/llvm-cov/CoverageFilters.cpp +++ b/tools/llvm-cov/CoverageFilters.cpp @@ -1,14 +1,15 @@ //===- CoverageFilters.cpp - Function coverage mapping filters ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageFilters.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes provide filtering for function coverage mapping records. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes provide filtering for function coverage mapping records. +// +//===----------------------------------------------------------------------===// #include "CoverageFilters.h" #include "CoverageSummaryInfo.h" diff --git a/tools/llvm-cov/CoverageFilters.h b/tools/llvm-cov/CoverageFilters.h index 230dea1356..dc5dc98807 100644 --- a/tools/llvm-cov/CoverageFilters.h +++ b/tools/llvm-cov/CoverageFilters.h @@ -1,14 +1,15 @@ //===- CoverageFilters.h - Function coverage mapping filters --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageFilters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes provide filtering for function coverage mapping records. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes provide filtering for function coverage mapping records. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_COV_COVERAGEFILTERS_H #define LLVM_COV_COVERAGEFILTERS_H diff --git a/tools/llvm-cov/CoverageReport.cpp b/tools/llvm-cov/CoverageReport.cpp index 015b890cdc..497c2f88f2 100644 --- a/tools/llvm-cov/CoverageReport.cpp +++ b/tools/llvm-cov/CoverageReport.cpp @@ -1,14 +1,15 @@ //===- CoverageReport.cpp - Code coverage report -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageReport.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements rendering of a code coverage report. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements rendering of a code coverage report. +// +//===----------------------------------------------------------------------===// #include "CoverageReport.h" #include "RenderingSupport.h" diff --git a/tools/llvm-cov/CoverageReport.h b/tools/llvm-cov/CoverageReport.h index 9ded34731e..7ec3df90b8 100644 --- a/tools/llvm-cov/CoverageReport.h +++ b/tools/llvm-cov/CoverageReport.h @@ -1,14 +1,15 @@ //===- CoverageReport.h - Code coverage report ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageReport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements rendering of a code coverage report. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements rendering of a code coverage report. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_COV_COVERAGEREPORT_H #define LLVM_COV_COVERAGEREPORT_H diff --git a/tools/llvm-cov/CoverageSummaryInfo.cpp b/tools/llvm-cov/CoverageSummaryInfo.cpp index 543b8cb4ee..de8975097e 100644 --- a/tools/llvm-cov/CoverageSummaryInfo.cpp +++ b/tools/llvm-cov/CoverageSummaryInfo.cpp @@ -1,15 +1,16 @@ //===- CoverageSummaryInfo.cpp - Coverage summary for function/file -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageSummaryInfo.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These structures are used to represent code coverage metrics // -// for functions/files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These structures are used to represent code coverage metrics +// for functions/files. +// +//===----------------------------------------------------------------------===// #include "CoverageSummaryInfo.h" diff --git a/tools/llvm-cov/CoverageSummaryInfo.h b/tools/llvm-cov/CoverageSummaryInfo.h index 64ff5c83cb..c393b00d32 100644 --- a/tools/llvm-cov/CoverageSummaryInfo.h +++ b/tools/llvm-cov/CoverageSummaryInfo.h @@ -1,15 +1,16 @@ //===- CoverageSummaryInfo.h - Coverage summary for function/file ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageSummaryInfo.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These structures are used to represent code coverage metrics // -// for functions/files. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These structures are used to represent code coverage metrics +// for functions/files. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_COV_COVERAGESUMMARYINFO_H #define LLVM_COV_COVERAGESUMMARYINFO_H diff --git a/tools/llvm-cov/CoverageViewOptions.h b/tools/llvm-cov/CoverageViewOptions.h index 3eef7f64b0..94b55fe793 100644 --- a/tools/llvm-cov/CoverageViewOptions.h +++ b/tools/llvm-cov/CoverageViewOptions.h @@ -1,12 +1,11 @@ //===- CoverageViewOptions.h - Code coverage display options -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageViewOptions.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_COV_COVERAGEVIEWOPTIONS_H #define LLVM_COV_COVERAGEVIEWOPTIONS_H diff --git a/tools/llvm-cov/LLVMBuild.txt b/tools/llvm-cov/LLVMBuild.txt index 3f36961b07..d6eb74de0d 100644 --- a/tools/llvm-cov/LLVMBuild.txt +++ b/tools/llvm-cov/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-cov/LLVMBuild.txt ---------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-cov/RenderingSupport.h b/tools/llvm-cov/RenderingSupport.h index 3cf7325ed3..3ef155d3fd 100644 --- a/tools/llvm-cov/RenderingSupport.h +++ b/tools/llvm-cov/RenderingSupport.h @@ -1,12 +1,11 @@ //===- RenderingSupport.h - output stream rendering support functions ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RenderingSupport.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_COV_RENDERINGSUPPORT_H #define LLVM_COV_RENDERINGSUPPORT_H diff --git a/tools/llvm-cov/SourceCoverageView.cpp b/tools/llvm-cov/SourceCoverageView.cpp index a11ab8bb2d..58c8a67952 100644 --- a/tools/llvm-cov/SourceCoverageView.cpp +++ b/tools/llvm-cov/SourceCoverageView.cpp @@ -1,14 +1,15 @@ //===- SourceCoverageView.cpp - Code coverage view for source code --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceCoverageView.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements rendering for code coverage of source code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements rendering for code coverage of source code. +// +//===----------------------------------------------------------------------===// #include "SourceCoverageView.h" #include "llvm/ADT/Optional.h" diff --git a/tools/llvm-cov/SourceCoverageView.h b/tools/llvm-cov/SourceCoverageView.h index 405613cde0..9e6fe5f350 100644 --- a/tools/llvm-cov/SourceCoverageView.h +++ b/tools/llvm-cov/SourceCoverageView.h @@ -1,14 +1,15 @@ //===- SourceCoverageView.h - Code coverage view for source code ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceCoverageView.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements rendering for code coverage of source code. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements rendering for code coverage of source code. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_COV_SOURCECOVERAGEVIEW_H #define LLVM_COV_SOURCECOVERAGEVIEW_H diff --git a/tools/llvm-cov/TestingSupport.cpp b/tools/llvm-cov/TestingSupport.cpp index 52c2a5ba31..6959897482 100644 --- a/tools/llvm-cov/TestingSupport.cpp +++ b/tools/llvm-cov/TestingSupport.cpp @@ -1,12 +1,11 @@ //===- TestingSupport.cpp - Convert objects files into test files --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TestingSupport.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/ObjectFile.h" #include "llvm/Support/CommandLine.h" diff --git a/tools/llvm-cov/gcov.cpp b/tools/llvm-cov/gcov.cpp index a843c609ab..4377a50b55 100644 --- a/tools/llvm-cov/gcov.cpp +++ b/tools/llvm-cov/gcov.cpp @@ -1,14 +1,15 @@ //===- gcov.cpp - GCOV compatible LLVM coverage tool ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// gcov.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// llvm-cov is a command line tools to analyze and report coverage information.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// llvm-cov is a command line tools to analyze and report coverage information. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/Support/CommandLine.h" diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp index 1210252751..979b58d8e9 100644 --- a/tools/llvm-cov/llvm-cov.cpp +++ b/tools/llvm-cov/llvm-cov.cpp @@ -1,14 +1,15 @@ //===- llvm-cov.cpp - LLVM coverage tool ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-cov.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// llvm-cov is a command line tools to analyze and report coverage information.// -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// llvm-cov is a command line tools to analyze and report coverage information. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringSwitch.h" diff --git a/tools/llvm-cxxdump/CMakeLists.txt b/tools/llvm-cxxdump/CMakeLists.txt index 6f059fb3c6..ada886e888 100644 --- a/tools/llvm-cxxdump/CMakeLists.txt +++ b/tools/llvm-cxxdump/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Object diff --git a/tools/llvm-cxxdump/Error.cpp b/tools/llvm-cxxdump/Error.cpp index a0b6a27d7d..16fed96e48 100644 --- a/tools/llvm-cxxdump/Error.cpp +++ b/tools/llvm-cxxdump/Error.cpp @@ -1,14 +1,15 @@ //===- Error.cxx - system_error extensions for llvm-cxxdump -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines a new error_category for the llvm-cxxdump tool. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines a new error_category for the llvm-cxxdump tool. +// +//===----------------------------------------------------------------------===// #include "Error.h" #include "llvm/Support/ErrorHandling.h" diff --git a/tools/llvm-cxxdump/Error.h b/tools/llvm-cxxdump/Error.h index b8ea7d66c1..7caf6d6447 100644 --- a/tools/llvm-cxxdump/Error.h +++ b/tools/llvm-cxxdump/Error.h @@ -1,14 +1,15 @@ //===- Error.h - system_error extensions for llvm-cxxdump -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This declares a new error_category for the llvm-cxxdump tool. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This declares a new error_category for the llvm-cxxdump tool. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_CXXDUMP_ERROR_H #define LLVM_TOOLS_LLVM_CXXDUMP_ERROR_H diff --git a/tools/llvm-cxxdump/LLVMBuild.txt b/tools/llvm-cxxdump/LLVMBuild.txt index 59655276df..4e08815779 100644 --- a/tools/llvm-cxxdump/LLVMBuild.txt +++ b/tools/llvm-cxxdump/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-cxxdump/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-cxxdump/llvm-cxxdump.cpp b/tools/llvm-cxxdump/llvm-cxxdump.cpp index 403c5bbf35..4e06be9e78 100644 --- a/tools/llvm-cxxdump/llvm-cxxdump.cpp +++ b/tools/llvm-cxxdump/llvm-cxxdump.cpp @@ -1,14 +1,15 @@ //===- llvm-cxxdump.cpp - Dump C++ data in an Object File -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-cxxdump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Dumps C++ data resident in object files and archives. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Dumps C++ data resident in object files and archives. +// +//===----------------------------------------------------------------------===// #include "llvm-cxxdump.h" #include "Error.h" diff --git a/tools/llvm-cxxdump/llvm-cxxdump.h b/tools/llvm-cxxdump/llvm-cxxdump.h index 2bc3702424..daa05cb2ca 100644 --- a/tools/llvm-cxxdump/llvm-cxxdump.h +++ b/tools/llvm-cxxdump/llvm-cxxdump.h @@ -1,12 +1,11 @@ //===-- llvm-cxxdump.h ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-cxxdump.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_CXXDUMP_LLVM_CXXDUMP_H #define LLVM_TOOLS_LLVM_CXXDUMP_LLVM_CXXDUMP_H diff --git a/tools/llvm-diff/CMakeLists.txt b/tools/llvm-diff/CMakeLists.txt index c58d5a3b60..4407a86c15 100644 --- a/tools/llvm-diff/CMakeLists.txt +++ b/tools/llvm-diff/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core IRReader diff --git a/tools/llvm-diff/DiffConsumer.cpp b/tools/llvm-diff/DiffConsumer.cpp index e76fc4c129..9078013c1c 100644 --- a/tools/llvm-diff/DiffConsumer.cpp +++ b/tools/llvm-diff/DiffConsumer.cpp @@ -1,14 +1,15 @@ //===-- DiffConsumer.cpp - Difference Consumer ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiffConsumer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This files implements the LLVM difference Consumer // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This files implements the LLVM difference Consumer +// +//===----------------------------------------------------------------------===// #include "DiffConsumer.h" #include "llvm/IR/Instructions.h" diff --git a/tools/llvm-diff/DiffConsumer.h b/tools/llvm-diff/DiffConsumer.h index 99f26e3f78..855f6884e6 100644 --- a/tools/llvm-diff/DiffConsumer.h +++ b/tools/llvm-diff/DiffConsumer.h @@ -1,14 +1,15 @@ //===-- DiffConsumer.h - Difference Consumer --------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiffConsumer.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the interface to the LLVM difference Consumer // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the interface to the LLVM difference Consumer +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_DIFF_DIFFCONSUMER_H #define LLVM_TOOLS_LLVM_DIFF_DIFFCONSUMER_H diff --git a/tools/llvm-diff/DiffLog.cpp b/tools/llvm-diff/DiffLog.cpp index 4f18234155..24a1b08d54 100644 --- a/tools/llvm-diff/DiffLog.cpp +++ b/tools/llvm-diff/DiffLog.cpp @@ -1,14 +1,15 @@ //===-- DiffLog.h - Difference Log Builder and accessories ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiffLog.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the interface to the LLVM difference log builder. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the interface to the LLVM difference log builder. +// +//===----------------------------------------------------------------------===// #include "DiffLog.h" #include "DiffConsumer.h" diff --git a/tools/llvm-diff/DiffLog.h b/tools/llvm-diff/DiffLog.h index 912af20894..8eb53ffffc 100644 --- a/tools/llvm-diff/DiffLog.h +++ b/tools/llvm-diff/DiffLog.h @@ -1,14 +1,15 @@ //===-- DiffLog.h - Difference Log Builder and accessories ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DiffLog.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the interface to the LLVM difference log builder. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the interface to the LLVM difference log builder. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_DIFF_DIFFLOG_H #define LLVM_TOOLS_LLVM_DIFF_DIFFLOG_H diff --git a/tools/llvm-diff/DifferenceEngine.cpp b/tools/llvm-diff/DifferenceEngine.cpp index d39b4f1a12..7d379ef5dc 100644 --- a/tools/llvm-diff/DifferenceEngine.cpp +++ b/tools/llvm-diff/DifferenceEngine.cpp @@ -1,15 +1,16 @@ //===-- DifferenceEngine.cpp - Structural function/module comparison ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DifferenceEngine.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the implementation of the LLVM difference // -// engine, which structurally compares global values within a module. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the implementation of the LLVM difference +// engine, which structurally compares global values within a module. +// +//===----------------------------------------------------------------------===// #include "DifferenceEngine.h" #include "llvm/ADT/DenseMap.h" diff --git a/tools/llvm-diff/DifferenceEngine.h b/tools/llvm-diff/DifferenceEngine.h index 9bba4a96fe..f0d831144a 100644 --- a/tools/llvm-diff/DifferenceEngine.h +++ b/tools/llvm-diff/DifferenceEngine.h @@ -1,15 +1,16 @@ //===-- DifferenceEngine.h - Module comparator ------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DifferenceEngine.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This header defines the interface to the LLVM difference engine, // -// which structurally compares functions within a module. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This header defines the interface to the LLVM difference engine, +// which structurally compares functions within a module. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_DIFF_DIFFERENCEENGINE_H #define LLVM_TOOLS_LLVM_DIFF_DIFFERENCEENGINE_H diff --git a/tools/llvm-diff/LLVMBuild.txt b/tools/llvm-diff/LLVMBuild.txt index e4e06c4e9f..5adfdc2bd6 100644 --- a/tools/llvm-diff/LLVMBuild.txt +++ b/tools/llvm-diff/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-diff/LLVMBuild.txt --------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-diff/llvm-diff.cpp b/tools/llvm-diff/llvm-diff.cpp index 900934caef..37b4dd203b 100644 --- a/tools/llvm-diff/llvm-diff.cpp +++ b/tools/llvm-diff/llvm-diff.cpp @@ -1,14 +1,15 @@ //===-- llvm-diff.cpp - Module comparator command-line driver ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-diff.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines the command-line driver for the difference engine. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the command-line driver for the difference engine. +// +//===----------------------------------------------------------------------===// #include "DiffLog.h" #include "DifferenceEngine.h" diff --git a/tools/llvm-dis/CMakeLists.txt b/tools/llvm-dis/CMakeLists.txt index 65f2d0f1a1..b05f77bc80 100644 --- a/tools/llvm-dis/CMakeLists.txt +++ b/tools/llvm-dis/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS BitReader Core diff --git a/tools/llvm-dis/LLVMBuild.txt b/tools/llvm-dis/LLVMBuild.txt index b6833090f5..4525010c1f 100644 --- a/tools/llvm-dis/LLVMBuild.txt +++ b/tools/llvm-dis/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-dis/LLVMBuild.txt ---------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index 716b0288d8..df7f4cadfb 100644 --- a/tools/llvm-dis/llvm-dis.cpp +++ b/tools/llvm-dis/llvm-dis.cpp @@ -1,19 +1,20 @@ //===-- llvm-dis.cpp - The low-level LLVM disassembler --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-dis.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility may be invoked in the following manner: // -// llvm-dis [options] - Read LLVM bitcode from stdin, write asm to stdout// -// llvm-dis [options] x.bc - Read LLVM bitcode from the x.bc file, write asm// -// to the x.ll file. // -// Options: // -// --help - Output information about command line switches // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility may be invoked in the following manner: +// llvm-dis [options] - Read LLVM bitcode from stdin, write asm to stdout +// llvm-dis [options] x.bc - Read LLVM bitcode from the x.bc file, write asm +// to the x.ll file. +// Options: +// --help - Output information about command line switches +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LLVMContext.h" #include "llvm/Bitcode/ReaderWriter.h" diff --git a/tools/llvm-dwarfdump/CMakeLists.txt b/tools/llvm-dwarfdump/CMakeLists.txt index 6dba41449c..9a2e53f5a4 100644 --- a/tools/llvm-dwarfdump/CMakeLists.txt +++ b/tools/llvm-dwarfdump/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS DebugInfoDWARF Object diff --git a/tools/llvm-dwarfdump/LLVMBuild.txt b/tools/llvm-dwarfdump/LLVMBuild.txt index 546512f63a..a9dca3e0cf 100644 --- a/tools/llvm-dwarfdump/LLVMBuild.txt +++ b/tools/llvm-dwarfdump/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-dwarfdump/LLVMBuild.txt ---------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-dwarfdump/fuzzer/CMakeLists.txt b/tools/llvm-dwarfdump/fuzzer/CMakeLists.txt index 8baf30ce7a..1de35a3de4 100644 --- a/tools/llvm-dwarfdump/fuzzer/CMakeLists.txt +++ b/tools/llvm-dwarfdump/fuzzer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS DebugInfoDWARF Object diff --git a/tools/llvm-dwarfdump/fuzzer/llvm-dwarfdump-fuzzer.cpp b/tools/llvm-dwarfdump/fuzzer/llvm-dwarfdump-fuzzer.cpp index 4ab2a0d05b..b85c5ed0d9 100644 --- a/tools/llvm-dwarfdump/fuzzer/llvm-dwarfdump-fuzzer.cpp +++ b/tools/llvm-dwarfdump/fuzzer/llvm-dwarfdump-fuzzer.cpp @@ -1,16 +1,17 @@ //===-- llvm-dwarfdump-fuzzer.cpp - Fuzz the llvm-dwarfdump tool ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-dwarfdump-fuzzer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements a function that runs llvm-dwarfdump // -/// on a single input. This function is then linked into the Fuzzer library.// +/// \file +/// \brief This file implements a function that runs llvm-dwarfdump +/// on a single input. This function is then linked into the Fuzzer library. /// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DIContext.h" #include "llvm/DebugInfo/DWARF/DWARFContext.h" diff --git a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index f7e4edd5d5..6bc2cc6717 100644 --- a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -1,14 +1,15 @@ //===-- llvm-dwarfdump.cpp - Debug info dumping utility for llvm ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-dwarfdump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that works like "dwarfdump". // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that works like "dwarfdump". +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/Triple.h" diff --git a/tools/llvm-extract/CMakeLists.txt b/tools/llvm-extract/CMakeLists.txt index db321fef2a..c984f01034 100644 --- a/tools/llvm-extract/CMakeLists.txt +++ b/tools/llvm-extract/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS BitWriter Core diff --git a/tools/llvm-extract/LLVMBuild.txt b/tools/llvm-extract/LLVMBuild.txt index 0487cd73c9..70e3507a73 100644 --- a/tools/llvm-extract/LLVMBuild.txt +++ b/tools/llvm-extract/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-extract/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp index 91824d1039..c5cdfc517c 100644 --- a/tools/llvm-extract/llvm-extract.cpp +++ b/tools/llvm-extract/llvm-extract.cpp @@ -1,15 +1,16 @@ //===- llvm-extract.cpp - LLVM function extraction utility ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-extract.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility changes the input module to only contain a single function, // -// which is primarily used for debugging transformations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility changes the input module to only contain a single function, +// which is primarily used for debugging transformations. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/tools/llvm-link/CMakeLists.txt b/tools/llvm-link/CMakeLists.txt index 9aa2260c49..d4f5be7490 100644 --- a/tools/llvm-link/CMakeLists.txt +++ b/tools/llvm-link/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS BitWriter Core diff --git a/tools/llvm-link/LLVMBuild.txt b/tools/llvm-link/LLVMBuild.txt index dbce8726cb..2e386f3c23 100644 --- a/tools/llvm-link/LLVMBuild.txt +++ b/tools/llvm-link/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-link/LLVMBuild.txt --------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 84bbff5a94..3da681708d 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -1,15 +1,16 @@ //===- llvm-link.cpp - Low-level LLVM linker ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-link.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility may be invoked in the following manner: // -// llvm-link a.bc b.bc c.bc -o x.bc // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility may be invoked in the following manner: +// llvm-link a.bc b.bc c.bc -o x.bc +// +//===----------------------------------------------------------------------===// #include "llvm/Linker/Linker.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/llvm-lto/CMakeLists.txt b/tools/llvm-lto/CMakeLists.txt index 72675566a1..3ea1aeea9a 100644 --- a/tools/llvm-lto/CMakeLists.txt +++ b/tools/llvm-lto/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} LTO diff --git a/tools/llvm-lto/LLVMBuild.txt b/tools/llvm-lto/LLVMBuild.txt index ccf976ff34..c1613a34c0 100644 --- a/tools/llvm-lto/LLVMBuild.txt +++ b/tools/llvm-lto/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-lto/LLVMBuild.txt ----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-lto/llvm-lto.cpp b/tools/llvm-lto/llvm-lto.cpp index 8921764d41..c7a65fafa4 100644 --- a/tools/llvm-lto/llvm-lto.cpp +++ b/tools/llvm-lto/llvm-lto.cpp @@ -1,15 +1,16 @@ //===-- llvm-lto: a simple command-line program to link modules with LTO --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-lto.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program takes in a list of bitcode files, links them, performs link-time// -// optimization, and outputs an object file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program takes in a list of bitcode files, links them, performs link-time +// optimization, and outputs an object file. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringSet.h" #include "llvm/CodeGen/CommandFlags.h" diff --git a/tools/llvm-mc/CMakeLists.txt b/tools/llvm-mc/CMakeLists.txt index f750093cf9..15c6dda1b2 100644 --- a/tools/llvm-mc/CMakeLists.txt +++ b/tools/llvm-mc/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AllTargetsAsmPrinters AllTargetsAsmParsers diff --git a/tools/llvm-mc/Disassembler.cpp b/tools/llvm-mc/Disassembler.cpp index c4fbfb77d1..5ffeffc076 100644 --- a/tools/llvm-mc/Disassembler.cpp +++ b/tools/llvm-mc/Disassembler.cpp @@ -1,15 +1,16 @@ //===- Disassembler.cpp - Disassembler for hex strings --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassembler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements the disassembler of strings of bytes written in // -// hexadecimal, from standard input or from a file. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements the disassembler of strings of bytes written in +// hexadecimal, from standard input or from a file. +// +//===----------------------------------------------------------------------===// #include "Disassembler.h" #include "llvm/ADT/Triple.h" diff --git a/tools/llvm-mc/Disassembler.h b/tools/llvm-mc/Disassembler.h index ad99f8647f..1f18ac075f 100644 --- a/tools/llvm-mc/Disassembler.h +++ b/tools/llvm-mc/Disassembler.h @@ -1,15 +1,16 @@ //===- Disassembler.h - Text File Disassembler ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassembler.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class implements the disassembler of strings of bytes written in // -// hexadecimal, from standard input or from a file. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements the disassembler of strings of bytes written in +// hexadecimal, from standard input or from a file. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H #define LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H diff --git a/tools/llvm-mc/LLVMBuild.txt b/tools/llvm-mc/LLVMBuild.txt index 71c0839950..dff5358f38 100644 --- a/tools/llvm-mc/LLVMBuild.txt +++ b/tools/llvm-mc/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-mc/LLVMBuild.txt ----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 7c0f150aa3..144224e562 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -1,15 +1,16 @@ //===-- llvm-mc.cpp - Machine Code Hacking Driver -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-mc.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility is a simple driver that allows command line hacking on machine// -// code. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility is a simple driver that allows command line hacking on machine +// code. +// +//===----------------------------------------------------------------------===// #include "Disassembler.h" #include "llvm/MC/MCAsmBackend.h" diff --git a/tools/llvm-mcmarkup/CMakeLists.txt b/tools/llvm-mcmarkup/CMakeLists.txt index 963529491b..0a51e99f19 100644 --- a/tools/llvm-mcmarkup/CMakeLists.txt +++ b/tools/llvm-mcmarkup/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS support) add_llvm_tool(llvm-mcmarkup diff --git a/tools/llvm-mcmarkup/LLVMBuild.txt b/tools/llvm-mcmarkup/LLVMBuild.txt index 5f1132d502..6423493a54 100644 --- a/tools/llvm-mcmarkup/LLVMBuild.txt +++ b/tools/llvm-mcmarkup/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-mcmarkup/LLVMBuild.txt ----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-mcmarkup/llvm-mcmarkup.cpp b/tools/llvm-mcmarkup/llvm-mcmarkup.cpp index 90463c3300..53c46ddc2e 100644 --- a/tools/llvm-mcmarkup/llvm-mcmarkup.cpp +++ b/tools/llvm-mcmarkup/llvm-mcmarkup.cpp @@ -1,14 +1,15 @@ //===-- llvm-mcmarkup.cpp - Parse the MC assembly markup tags -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-mcmarkup.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Example simple parser implementation for the MC assembly markup language. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Example simple parser implementation for the MC assembly markup language. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CommandLine.h" #include "llvm/Support/Format.h" diff --git a/tools/llvm-nm/CMakeLists.txt b/tools/llvm-nm/CMakeLists.txt index ea3057033e..20293bb88f 100644 --- a/tools/llvm-nm/CMakeLists.txt +++ b/tools/llvm-nm/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Core diff --git a/tools/llvm-nm/LLVMBuild.txt b/tools/llvm-nm/LLVMBuild.txt index 6d34653034..3e64577d6d 100644 --- a/tools/llvm-nm/LLVMBuild.txt +++ b/tools/llvm-nm/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-nm/LLVMBuild.txt ----------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 8fa5424aed..3e2487c1c2 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -1,19 +1,20 @@ //===-- llvm-nm.cpp - Symbol table dumping utility for llvm ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-nm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that works like traditional Unix "nm", that is, it// -// prints out the names of symbols in a bitcode or object file, along with some// -// information about each symbol. // -// // -// This "nm" supports many of the features of GNU "nm", including its different// -// output formats. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that works like traditional Unix "nm", that is, it +// prints out the names of symbols in a bitcode or object file, along with some +// information about each symbol. +// +// This "nm" supports many of the features of GNU "nm", including its different +// output formats. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Function.h" #include "llvm/IR/GlobalAlias.h" diff --git a/tools/llvm-objdump/CMakeLists.txt b/tools/llvm-objdump/CMakeLists.txt index eec3476e39..1f2721ab54 100644 --- a/tools/llvm-objdump/CMakeLists.txt +++ b/tools/llvm-objdump/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} CodeGen diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp index 882a799177..8b94a50ea2 100644 --- a/tools/llvm-objdump/COFFDump.cpp +++ b/tools/llvm-objdump/COFFDump.cpp @@ -1,20 +1,19 @@ //===-- COFFDump.cpp - COFF-specific dumper ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFFDump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements the COFF-specific dumper for llvm-objdump. // -/// It outputs the Win64 EH data structures as plain text. // -/// The encoding of the unwind codes is described in MSDN: // -/// http://msdn.microsoft.com/en-us/library/ck9asaa9.aspx // +/// \file +/// \brief This file implements the COFF-specific dumper for llvm-objdump. +/// It outputs the Win64 EH data structures as plain text. +/// The encoding of the unwind codes is described in MSDN: +/// http://msdn.microsoft.com/en-us/library/ck9asaa9.aspx /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm-objdump.h" #include "llvm/Object/COFF.h" diff --git a/tools/llvm-objdump/ELFDump.cpp b/tools/llvm-objdump/ELFDump.cpp index 4659e63f33..2d0d7d7db0 100644 --- a/tools/llvm-objdump/ELFDump.cpp +++ b/tools/llvm-objdump/ELFDump.cpp @@ -1,17 +1,16 @@ //===-- ELFDump.cpp - ELF-specific dumper -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFDump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements the ELF-specific dumper for llvm-objdump. // +/// \file +/// \brief This file implements the ELF-specific dumper for llvm-objdump. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm-objdump.h" #include "llvm/Object/ELFObjectFile.h" diff --git a/tools/llvm-objdump/LLVMBuild.txt b/tools/llvm-objdump/LLVMBuild.txt index 3fafa87b82..42328737a7 100644 --- a/tools/llvm-objdump/LLVMBuild.txt +++ b/tools/llvm-objdump/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-objdump/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index c53afcee9e..04c72f4856 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/tools/llvm-objdump/MachODump.cpp @@ -1,14 +1,15 @@ //===-- MachODump.cpp - Object file dumping utility for llvm --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachODump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MachO-specific dumper for llvm-objdump. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MachO-specific dumper for llvm-objdump. +// +//===----------------------------------------------------------------------===// #include "llvm-objdump.h" #include "llvm-c/Disassembler.h" diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 0f973b8faf..dcd01a7968 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -1,19 +1,20 @@ //===-- llvm-objdump.cpp - Object file dumping utility for llvm -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-objdump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that works like binutils "objdump", that is, it // -// dumps out a plethora of information about an object file depending on the // -// flags. // -// // -// The flags and output of this program should be near identical to those of // -// binutils objdump. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that works like binutils "objdump", that is, it +// dumps out a plethora of information about an object file depending on the +// flags. +// +// The flags and output of this program should be near identical to those of +// binutils objdump. +// +//===----------------------------------------------------------------------===// #include "llvm-objdump.h" #include "llvm/ADT/Optional.h" diff --git a/tools/llvm-objdump/llvm-objdump.h b/tools/llvm-objdump/llvm-objdump.h index 5408e437d5..eb10d8344f 100644 --- a/tools/llvm-objdump/llvm-objdump.h +++ b/tools/llvm-objdump/llvm-objdump.h @@ -1,11 +1,10 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-objdump.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_OBJDUMP_LLVM_OBJDUMP_H #define LLVM_TOOLS_LLVM_OBJDUMP_LLVM_OBJDUMP_H diff --git a/tools/llvm-pdbdump/BuiltinDumper.cpp b/tools/llvm-pdbdump/BuiltinDumper.cpp index 846cc490e4..d80829841f 100644 --- a/tools/llvm-pdbdump/BuiltinDumper.cpp +++ b/tools/llvm-pdbdump/BuiltinDumper.cpp @@ -1,12 +1,11 @@ //===- BuiltinDumper.cpp ---------------------------------------- *- C++ *-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "BuiltinDumper.h" #include "LinePrinter.h" diff --git a/tools/llvm-pdbdump/BuiltinDumper.h b/tools/llvm-pdbdump/BuiltinDumper.h index 64cb0a4419..8cf984a0ca 100644 --- a/tools/llvm-pdbdump/BuiltinDumper.h +++ b/tools/llvm-pdbdump/BuiltinDumper.h @@ -1,12 +1,11 @@ //===- BuiltinDumper.h ---------------------------------------- *- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BuiltinDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_BUILTINDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_BUILTINDUMPER_H diff --git a/tools/llvm-pdbdump/CMakeLists.txt b/tools/llvm-pdbdump/CMakeLists.txt index 65ae855cc2..1907f91707 100644 --- a/tools/llvm-pdbdump/CMakeLists.txt +++ b/tools/llvm-pdbdump/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support DebugInfoPDB diff --git a/tools/llvm-pdbdump/ClassDefinitionDumper.cpp b/tools/llvm-pdbdump/ClassDefinitionDumper.cpp index 0c1c56ad9c..8abf3fa391 100644 --- a/tools/llvm-pdbdump/ClassDefinitionDumper.cpp +++ b/tools/llvm-pdbdump/ClassDefinitionDumper.cpp @@ -1,12 +1,11 @@ //===- ClassDefinitionDumper.cpp --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClassDefinitionDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ClassDefinitionDumper.h" #include "EnumDumper.h" diff --git a/tools/llvm-pdbdump/ClassDefinitionDumper.h b/tools/llvm-pdbdump/ClassDefinitionDumper.h index 5e32dd0695..5b48ba879c 100644 --- a/tools/llvm-pdbdump/ClassDefinitionDumper.h +++ b/tools/llvm-pdbdump/ClassDefinitionDumper.h @@ -1,12 +1,11 @@ //===- ClassDefinitionDumper.h - --------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ClassDefinitionDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_CLASSDEFINITIONDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_CLASSDEFINITIONDUMPER_H diff --git a/tools/llvm-pdbdump/CompilandDumper.cpp b/tools/llvm-pdbdump/CompilandDumper.cpp index 0296358fc6..68ceb62062 100644 --- a/tools/llvm-pdbdump/CompilandDumper.cpp +++ b/tools/llvm-pdbdump/CompilandDumper.cpp @@ -1,12 +1,11 @@ //===- CompilandDumper.cpp - llvm-pdbdump compiland symbol dumper *- C++ *-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilandDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "CompilandDumper.h" #include "LinePrinter.h" diff --git a/tools/llvm-pdbdump/CompilandDumper.h b/tools/llvm-pdbdump/CompilandDumper.h index 3fd40dcac1..0d1d27cd7a 100644 --- a/tools/llvm-pdbdump/CompilandDumper.h +++ b/tools/llvm-pdbdump/CompilandDumper.h @@ -1,12 +1,11 @@ //===- CompilandDumper.h - llvm-pdbdump compiland symbol dumper *- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompilandDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H diff --git a/tools/llvm-pdbdump/EnumDumper.cpp b/tools/llvm-pdbdump/EnumDumper.cpp index 256d9aa811..3514c39f6e 100644 --- a/tools/llvm-pdbdump/EnumDumper.cpp +++ b/tools/llvm-pdbdump/EnumDumper.cpp @@ -1,12 +1,11 @@ //===- EnumDumper.cpp -------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EnumDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "EnumDumper.h" diff --git a/tools/llvm-pdbdump/EnumDumper.h b/tools/llvm-pdbdump/EnumDumper.h index ab86987f4f..23de061424 100644 --- a/tools/llvm-pdbdump/EnumDumper.h +++ b/tools/llvm-pdbdump/EnumDumper.h @@ -1,12 +1,11 @@ //===- EnumDumper.h - -------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EnumDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_ENUMDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_ENUMDUMPER_H diff --git a/tools/llvm-pdbdump/ExternalSymbolDumper.cpp b/tools/llvm-pdbdump/ExternalSymbolDumper.cpp index becc551caa..c4e9f47488 100644 --- a/tools/llvm-pdbdump/ExternalSymbolDumper.cpp +++ b/tools/llvm-pdbdump/ExternalSymbolDumper.cpp @@ -1,12 +1,11 @@ //===- ExternalSymbolDumper.cpp -------------------------------- *- C++ *-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalSymbolDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ExternalSymbolDumper.h" #include "LinePrinter.h" diff --git a/tools/llvm-pdbdump/ExternalSymbolDumper.h b/tools/llvm-pdbdump/ExternalSymbolDumper.h index b2ae247e77..d77b09cdeb 100644 --- a/tools/llvm-pdbdump/ExternalSymbolDumper.h +++ b/tools/llvm-pdbdump/ExternalSymbolDumper.h @@ -1,12 +1,11 @@ //===- ExternalSymbolDumper.h --------------------------------- *- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ExternalSymbolDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_EXTERNALSYMBOLDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_EXTERNALSYMBOLDUMPER_H diff --git a/tools/llvm-pdbdump/FunctionDumper.cpp b/tools/llvm-pdbdump/FunctionDumper.cpp index 961106be12..9584812e81 100644 --- a/tools/llvm-pdbdump/FunctionDumper.cpp +++ b/tools/llvm-pdbdump/FunctionDumper.cpp @@ -1,12 +1,11 @@ //===- FunctionDumper.cpp ------------------------------------ *- C++ *-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "FunctionDumper.h" #include "BuiltinDumper.h" diff --git a/tools/llvm-pdbdump/FunctionDumper.h b/tools/llvm-pdbdump/FunctionDumper.h index 4a41a38b82..19a00145a1 100644 --- a/tools/llvm-pdbdump/FunctionDumper.h +++ b/tools/llvm-pdbdump/FunctionDumper.h @@ -1,12 +1,11 @@ //===- FunctionDumper.h --------------------------------------- *- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H diff --git a/tools/llvm-pdbdump/LLVMBuild.txt b/tools/llvm-pdbdump/LLVMBuild.txt index 028ac379f5..487768935d 100644 --- a/tools/llvm-pdbdump/LLVMBuild.txt +++ b/tools/llvm-pdbdump/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-pdbdump/LLVMBuild.txt -----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-pdbdump/LinePrinter.cpp b/tools/llvm-pdbdump/LinePrinter.cpp index 9e8a1bf1e4..6bbc403f5c 100644 --- a/tools/llvm-pdbdump/LinePrinter.cpp +++ b/tools/llvm-pdbdump/LinePrinter.cpp @@ -1,12 +1,11 @@ //===- LinePrinter.cpp ------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinePrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "LinePrinter.h" diff --git a/tools/llvm-pdbdump/LinePrinter.h b/tools/llvm-pdbdump/LinePrinter.h index 89f5131d82..b985e93419 100644 --- a/tools/llvm-pdbdump/LinePrinter.h +++ b/tools/llvm-pdbdump/LinePrinter.h @@ -1,12 +1,11 @@ //===- LinePrinter.h ------------------------------------------ *- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinePrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_LINEPRINTER_H #define LLVM_TOOLS_LLVMPDBDUMP_LINEPRINTER_H diff --git a/tools/llvm-pdbdump/TypeDumper.cpp b/tools/llvm-pdbdump/TypeDumper.cpp index 9d688f63e2..88c0bd6569 100644 --- a/tools/llvm-pdbdump/TypeDumper.cpp +++ b/tools/llvm-pdbdump/TypeDumper.cpp @@ -1,12 +1,11 @@ //===- TypeDumper.cpp - PDBSymDumper implementation for types *----- C++ *-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TypeDumper.h" diff --git a/tools/llvm-pdbdump/TypeDumper.h b/tools/llvm-pdbdump/TypeDumper.h index 22a56ba09d..5c0832ecca 100644 --- a/tools/llvm-pdbdump/TypeDumper.h +++ b/tools/llvm-pdbdump/TypeDumper.h @@ -1,12 +1,11 @@ //===- TypeDumper.h - PDBSymDumper implementation for types *- C++ ------*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_TYPEDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_TYPEDUMPER_H diff --git a/tools/llvm-pdbdump/TypedefDumper.cpp b/tools/llvm-pdbdump/TypedefDumper.cpp index a7628b6f61..a6b5c53a6b 100644 --- a/tools/llvm-pdbdump/TypedefDumper.cpp +++ b/tools/llvm-pdbdump/TypedefDumper.cpp @@ -1,12 +1,11 @@ //===- TypedefDumper.cpp - PDBSymDumper impl for typedefs -------- * C++ *-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypedefDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "TypedefDumper.h" diff --git a/tools/llvm-pdbdump/TypedefDumper.h b/tools/llvm-pdbdump/TypedefDumper.h index 756359cd48..8cd578cc6d 100644 --- a/tools/llvm-pdbdump/TypedefDumper.h +++ b/tools/llvm-pdbdump/TypedefDumper.h @@ -1,12 +1,11 @@ //===- TypedefDumper.h - llvm-pdbdump typedef dumper ---------*- C++ ----*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypedefDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_TYPEDEFDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_TYPEDEFDUMPER_H diff --git a/tools/llvm-pdbdump/VariableDumper.cpp b/tools/llvm-pdbdump/VariableDumper.cpp index e9119e77fb..e5665b5fca 100644 --- a/tools/llvm-pdbdump/VariableDumper.cpp +++ b/tools/llvm-pdbdump/VariableDumper.cpp @@ -1,12 +1,11 @@ //===- VariableDumper.cpp - -------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VariableDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "VariableDumper.h" diff --git a/tools/llvm-pdbdump/VariableDumper.h b/tools/llvm-pdbdump/VariableDumper.h index 303676ae4e..db8d8ea0e4 100644 --- a/tools/llvm-pdbdump/VariableDumper.h +++ b/tools/llvm-pdbdump/VariableDumper.h @@ -1,12 +1,11 @@ //===- VariableDumper.h - PDBSymDumper implementation for types -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VariableDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_VARIABLEDUMPER_H #define LLVM_TOOLS_LLVMPDBDUMP_VARIABLEDUMPER_H diff --git a/tools/llvm-pdbdump/llvm-pdbdump.cpp b/tools/llvm-pdbdump/llvm-pdbdump.cpp index f5270d8beb..4a4c64b80c 100644 --- a/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -1,16 +1,17 @@ //===- llvm-pdbdump.cpp - Dump debug info from a PDB file -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-pdbdump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Dumps debug information present in PDB files. This utility makes use of // -// the Microsoft Windows SDK, so will not compile or run on non-Windows // -// platforms. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Dumps debug information present in PDB files. This utility makes use of +// the Microsoft Windows SDK, so will not compile or run on non-Windows +// platforms. +// +//===----------------------------------------------------------------------===// #include "llvm-pdbdump.h" #include "CompilandDumper.h" diff --git a/tools/llvm-pdbdump/llvm-pdbdump.h b/tools/llvm-pdbdump/llvm-pdbdump.h index aa0fb81871..586a9ea374 100644 --- a/tools/llvm-pdbdump/llvm-pdbdump.h +++ b/tools/llvm-pdbdump/llvm-pdbdump.h @@ -1,12 +1,11 @@ //===- llvm-pdbdump.h ----------------------------------------- *- C++ --*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-pdbdump.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVMPDBDUMP_LLVMPDBDUMP_H #define LLVM_TOOLS_LLVMPDBDUMP_LLVMPDBDUMP_H diff --git a/tools/llvm-profdata/CMakeLists.txt b/tools/llvm-profdata/CMakeLists.txt index cc2bfb9453..0e330fd075 100644 --- a/tools/llvm-profdata/CMakeLists.txt +++ b/tools/llvm-profdata/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core ProfileData diff --git a/tools/llvm-profdata/LLVMBuild.txt b/tools/llvm-profdata/LLVMBuild.txt index 7a57d914e9..bbc1ea6fce 100644 --- a/tools/llvm-profdata/LLVMBuild.txt +++ b/tools/llvm-profdata/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-profdata/LLVMBuild.txt ----------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp index 97697e8e0b..6fb48d8fad 100644 --- a/tools/llvm-profdata/llvm-profdata.cpp +++ b/tools/llvm-profdata/llvm-profdata.cpp @@ -1,14 +1,15 @@ //===- llvm-profdata.cpp - LLVM profile data tool -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-profdata.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// llvm-profdata merges .profdata files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// llvm-profdata merges .profdata files. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/IR/LLVMContext.h" diff --git a/tools/llvm-readobj/ARMAttributeParser.cpp b/tools/llvm-readobj/ARMAttributeParser.cpp index eb5d4508a4..e2d71912a2 100644 --- a/tools/llvm-readobj/ARMAttributeParser.cpp +++ b/tools/llvm-readobj/ARMAttributeParser.cpp @@ -1,12 +1,11 @@ //===--- ARMAttributeParser.cpp - ARM Attribute Information Printer -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMAttributeParser.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ARMAttributeParser.h" #include "StreamWriter.h" diff --git a/tools/llvm-readobj/ARMAttributeParser.h b/tools/llvm-readobj/ARMAttributeParser.h index c1041e6d83..f924c835d3 100644 --- a/tools/llvm-readobj/ARMAttributeParser.h +++ b/tools/llvm-readobj/ARMAttributeParser.h @@ -1,12 +1,11 @@ //===--- ARMAttributeParser.h - ARM Attribute Information Printer ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMAttributeParser.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_ARMATTRIBUTEPARSER_H #define LLVM_TOOLS_LLVM_READOBJ_ARMATTRIBUTEPARSER_H diff --git a/tools/llvm-readobj/ARMEHABIPrinter.h b/tools/llvm-readobj/ARMEHABIPrinter.h index 692965ef3e..dd2490d503 100644 --- a/tools/llvm-readobj/ARMEHABIPrinter.h +++ b/tools/llvm-readobj/ARMEHABIPrinter.h @@ -1,12 +1,11 @@ //===--- ARMEHABIPrinter.h - ARM EHABI Unwind Information Printer ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMEHABIPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_ARMEHABIPRINTER_H #define LLVM_TOOLS_LLVM_READOBJ_ARMEHABIPRINTER_H diff --git a/tools/llvm-readobj/ARMWinEHPrinter.cpp b/tools/llvm-readobj/ARMWinEHPrinter.cpp index 240e2544a8..a252e0f8a2 100644 --- a/tools/llvm-readobj/ARMWinEHPrinter.cpp +++ b/tools/llvm-readobj/ARMWinEHPrinter.cpp @@ -1,66 +1,11 @@ //===-- ARMWinEHPrinter.cpp - Windows on ARM EH Data Printer ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMWinEHPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Windows on ARM uses a series of serialised data structures (RuntimeFunction)// -// to create a table of information for unwinding. In order to conserve space,// -// there are two different ways that this data is represented. // -// // -// For functions with canonical forms for the prologue and epilogue, the data// -// can be stored in a "packed" form. In this case, the data is packed into the// -// RuntimeFunction's remaining 30-bits and can fully describe the entire frame.// -// // -// +---------------------------------------+ // -// | Function Entry Address | // -// +---------------------------------------+ // -// | Packed Form Data | // -// +---------------------------------------+ // -// // -// This layout is parsed by Decoder::dumpPackedEntry. No unwind bytecode is // -// associated with such a frame as they can be derived from the provided data.// -// The decoder does not synthesize this data as it is unnecessary for the // -// purposes of validation, with the synthesis being required only by a proper// -// unwinder. // -// // -// For functions that are large or do not match canonical forms, the data is // -// split up into two portions, with the actual data residing in the "exception// -// data" table (.xdata) with a reference to the entry from the "procedure data"// -// (.pdata) entry. // -// // -// The exception data contains information about the frame setup, all of the // -// epilouge scopes (for functions for which there are multiple exit points) and// -// the associated exception handler. Additionally, the entry contains byte-code// -// describing how to unwind the function (c.f. Decoder::decodeOpcodes). // -// // -// +---------------------------------------+ // -// | Function Entry Address | // -// +---------------------------------------+ // -// | Exception Data Entry Address | // -// +---------------------------------------+ // -// // -// This layout is parsed by Decoder::dumpUnpackedEntry. Such an entry must // -// first resolve the exception data entry address. This structure // -// (ExceptionDataRecord) has a variable sized header // -// (c.f. ARM::WinEH::HeaderWords) and encodes most of the same information as// -// the packed form. However, because this information is insufficient to // -// synthesize the unwinding, there are associated unwinding bytecode which make// -// up the bulk of the Decoder. // -// // -// The decoder itself is table-driven, using the first byte to determine the // -// opcode and dispatching to the associated printing routine. The bytecode // -// itself is a variable length instruction encoding that can fully describe the// -// state of the stack and the necessary operations for unwinding to the // -// beginning of the frame. // -// // -// The byte-code maintains a 1-1 instruction mapping, indicating both the width// -// of the instruction (Thumb2 instructions are variable length, 16 or 32 bits// -// wide) allowing the program to unwind from any point in the prologue, body, or// -// epilogue of the function. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "ARMWinEHPrinter.h" #include "Error.h" diff --git a/tools/llvm-readobj/ARMWinEHPrinter.h b/tools/llvm-readobj/ARMWinEHPrinter.h index 52ddaca0d5..274ef11484 100644 --- a/tools/llvm-readobj/ARMWinEHPrinter.h +++ b/tools/llvm-readobj/ARMWinEHPrinter.h @@ -1,12 +1,11 @@ //===--- ARMWinEHPrinter.h - Windows on ARM Unwind Information Printer ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ARMWinEHPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_ARMWINEHPRINTER_H #define LLVM_TOOLS_LLVM_READOBJ_ARMWINEHPRINTER_H diff --git a/tools/llvm-readobj/CMakeLists.txt b/tools/llvm-readobj/CMakeLists.txt index 49acddc69d..87407a2580 100644 --- a/tools/llvm-readobj/CMakeLists.txt +++ b/tools/llvm-readobj/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Object Support diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp index 3b95b4c559..cf897d7cb4 100644 --- a/tools/llvm-readobj/COFFDumper.cpp +++ b/tools/llvm-readobj/COFFDumper.cpp @@ -1,17 +1,16 @@ //===-- COFFDumper.cpp - COFF-specific dumper -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// COFFDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements the COFF-specific dumper for llvm-readobj. // +/// \file +/// \brief This file implements the COFF-specific dumper for llvm-readobj. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm-readobj.h" #include "ARMWinEHPrinter.h" diff --git a/tools/llvm-readobj/ELFDumper.cpp b/tools/llvm-readobj/ELFDumper.cpp index 8f290951f3..1cdf5529c0 100644 --- a/tools/llvm-readobj/ELFDumper.cpp +++ b/tools/llvm-readobj/ELFDumper.cpp @@ -1,17 +1,16 @@ //===-- ELFDumper.cpp - ELF-specific dumper ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ELFDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements the ELF-specific dumper for llvm-readobj. // +/// \file +/// \brief This file implements the ELF-specific dumper for llvm-readobj. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "llvm-readobj.h" #include "ARMAttributeParser.h" diff --git a/tools/llvm-readobj/Error.cpp b/tools/llvm-readobj/Error.cpp index d00e726176..7e6f780c5d 100644 --- a/tools/llvm-readobj/Error.cpp +++ b/tools/llvm-readobj/Error.cpp @@ -1,14 +1,15 @@ //===- Error.cpp - system_error extensions for llvm-readobj -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This defines a new error_category for the llvm-readobj tool. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This defines a new error_category for the llvm-readobj tool. +// +//===----------------------------------------------------------------------===// #include "Error.h" #include "llvm/Support/ErrorHandling.h" diff --git a/tools/llvm-readobj/Error.h b/tools/llvm-readobj/Error.h index d64db5c3ac..f3e24bbe5d 100644 --- a/tools/llvm-readobj/Error.h +++ b/tools/llvm-readobj/Error.h @@ -1,14 +1,15 @@ //===- Error.h - system_error extensions for llvm-readobj -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This declares a new error_category for the llvm-readobj tool. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This declares a new error_category for the llvm-readobj tool. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_ERROR_H #define LLVM_TOOLS_LLVM_READOBJ_ERROR_H diff --git a/tools/llvm-readobj/LLVMBuild.txt b/tools/llvm-readobj/LLVMBuild.txt index a3b24ceade..e75f195120 100644 --- a/tools/llvm-readobj/LLVMBuild.txt +++ b/tools/llvm-readobj/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-readobj/LLVMBuild.txt ---------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-readobj/MachODumper.cpp b/tools/llvm-readobj/MachODumper.cpp index 20c274203c..adb99b0acd 100644 --- a/tools/llvm-readobj/MachODumper.cpp +++ b/tools/llvm-readobj/MachODumper.cpp @@ -1,14 +1,15 @@ //===-- MachODump.cpp - Object file dumping utility for llvm --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MachODumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the MachO-specific dumper for llvm-readobj. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the MachO-specific dumper for llvm-readobj. +// +//===----------------------------------------------------------------------===// #include "llvm-readobj.h" #include "Error.h" diff --git a/tools/llvm-readobj/ObjDumper.cpp b/tools/llvm-readobj/ObjDumper.cpp index c6ea7ddfd9..f500a05815 100644 --- a/tools/llvm-readobj/ObjDumper.cpp +++ b/tools/llvm-readobj/ObjDumper.cpp @@ -1,17 +1,16 @@ //===-- ObjDumper.cpp - Base dumper class -----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief This file implements ObjDumper. // +/// \file +/// \brief This file implements ObjDumper. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "ObjDumper.h" #include "Error.h" diff --git a/tools/llvm-readobj/ObjDumper.h b/tools/llvm-readobj/ObjDumper.h index 8b01bf1e05..5ecf0ec3d6 100644 --- a/tools/llvm-readobj/ObjDumper.h +++ b/tools/llvm-readobj/ObjDumper.h @@ -1,12 +1,11 @@ //===-- ObjDumper.h -------------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ObjDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_OBJDUMPER_H #define LLVM_TOOLS_LLVM_READOBJ_OBJDUMPER_H diff --git a/tools/llvm-readobj/StackMapPrinter.h b/tools/llvm-readobj/StackMapPrinter.h index b6d4044c2b..92645bcf91 100644 --- a/tools/llvm-readobj/StackMapPrinter.h +++ b/tools/llvm-readobj/StackMapPrinter.h @@ -1,12 +1,11 @@ //===-------- StackMapPrinter.h - Pretty-print stackmaps --------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StackMapPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_STACKMAPPRINTER_H #define LLVM_TOOLS_LLVM_READOBJ_STACKMAPPRINTER_H diff --git a/tools/llvm-readobj/StreamWriter.cpp b/tools/llvm-readobj/StreamWriter.cpp index 034d194cd2..7224089751 100644 --- a/tools/llvm-readobj/StreamWriter.cpp +++ b/tools/llvm-readobj/StreamWriter.cpp @@ -1,12 +1,3 @@ -//===-- StreamWriter.cpp --------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StreamWriter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// #include "StreamWriter.h" #include "llvm/ADT/StringExtras.h" diff --git a/tools/llvm-readobj/StreamWriter.h b/tools/llvm-readobj/StreamWriter.h index 06ded64d9d..f3cc57ef94 100644 --- a/tools/llvm-readobj/StreamWriter.h +++ b/tools/llvm-readobj/StreamWriter.h @@ -1,12 +1,11 @@ //===-- StreamWriter.h ----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StreamWriter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_STREAMWRITER_H #define LLVM_TOOLS_LLVM_READOBJ_STREAMWRITER_H diff --git a/tools/llvm-readobj/Win64EHDumper.cpp b/tools/llvm-readobj/Win64EHDumper.cpp index 00c18e9753..f57eea20e2 100644 --- a/tools/llvm-readobj/Win64EHDumper.cpp +++ b/tools/llvm-readobj/Win64EHDumper.cpp @@ -1,12 +1,11 @@ //===- Win64EHDumper.cpp - Win64 EH Printer ---------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Win64EHDumper.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Win64EHDumper.h" #include "llvm-readobj.h" diff --git a/tools/llvm-readobj/Win64EHDumper.h b/tools/llvm-readobj/Win64EHDumper.h index b9504c6739..a80df9c4f9 100644 --- a/tools/llvm-readobj/Win64EHDumper.h +++ b/tools/llvm-readobj/Win64EHDumper.h @@ -1,12 +1,11 @@ //===- Win64EHDumper.h - Win64 EH Printing ----------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Win64EHDumper.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_WIN64EHDUMPER_H #define LLVM_TOOLS_LLVM_READOBJ_WIN64EHDUMPER_H diff --git a/tools/llvm-readobj/llvm-readobj.cpp b/tools/llvm-readobj/llvm-readobj.cpp index 378a9c7e35..e370ed6a77 100644 --- a/tools/llvm-readobj/llvm-readobj.cpp +++ b/tools/llvm-readobj/llvm-readobj.cpp @@ -1,22 +1,23 @@ //===- llvm-readobj.cpp - Dump contents of an Object File -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-readobj.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a tool similar to readelf, except it works on multiple object file// -// formats. The main purpose of this tool is to provide detailed output suitable// -// for FileCheck. // -// // -// Flags should be similar to readelf where supported, but the output format // -// does not need to be identical. The point is to not make users learn yet // -// another set of flags. // -// // -// Output should be specialized for each format where appropriate. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a tool similar to readelf, except it works on multiple object file +// formats. The main purpose of this tool is to provide detailed output suitable +// for FileCheck. +// +// Flags should be similar to readelf where supported, but the output format +// does not need to be identical. The point is to not make users learn yet +// another set of flags. +// +// Output should be specialized for each format where appropriate. +// +//===----------------------------------------------------------------------===// #include "llvm-readobj.h" #include "Error.h" diff --git a/tools/llvm-readobj/llvm-readobj.h b/tools/llvm-readobj/llvm-readobj.h index 792391947e..74b9a60d34 100644 --- a/tools/llvm-readobj/llvm-readobj.h +++ b/tools/llvm-readobj/llvm-readobj.h @@ -1,12 +1,11 @@ //===-- llvm-readobj.h ----------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-readobj.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H #define LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H diff --git a/tools/llvm-rtdyld/CMakeLists.txt b/tools/llvm-rtdyld/CMakeLists.txt index 2c52f2a7a7..c1acbe5846 100644 --- a/tools/llvm-rtdyld/CMakeLists.txt +++ b/tools/llvm-rtdyld/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} DebugInfoDWARF diff --git a/tools/llvm-rtdyld/LLVMBuild.txt b/tools/llvm-rtdyld/LLVMBuild.txt index e58f7da811..c4ed49bdff 100644 --- a/tools/llvm-rtdyld/LLVMBuild.txt +++ b/tools/llvm-rtdyld/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-rtdyld/LLVMBuild.txt ------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-rtdyld/llvm-rtdyld.cpp b/tools/llvm-rtdyld/llvm-rtdyld.cpp index c3cd0eec17..38c483d5c8 100644 --- a/tools/llvm-rtdyld/llvm-rtdyld.cpp +++ b/tools/llvm-rtdyld/llvm-rtdyld.cpp @@ -1,14 +1,15 @@ //===-- llvm-rtdyld.cpp - MCJIT Testing Tool ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-rtdyld.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a testing tool for use with the MC-JIT LLVM components. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a testing tool for use with the MC-JIT LLVM components. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringMap.h" #include "llvm/DebugInfo/DIContext.h" diff --git a/tools/llvm-shlib/CMakeLists.txt b/tools/llvm-shlib/CMakeLists.txt index 77fed1e35b..54d71d3f63 100644 --- a/tools/llvm-shlib/CMakeLists.txt +++ b/tools/llvm-shlib/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # This tool creates a shared library from the LLVM libraries. Generating this # library is enabled by setting LLVM_BUILD_LLVM_DYLIB=yes on the CMake # commandline. By default the shared library only exports the LLVM C API. diff --git a/tools/llvm-shlib/libllvm.cpp b/tools/llvm-shlib/libllvm.cpp index ec4fb58b11..8424d660c9 100644 --- a/tools/llvm-shlib/libllvm.cpp +++ b/tools/llvm-shlib/libllvm.cpp @@ -1,15 +1,16 @@ //===-libllvm.cpp - LLVM Shared Library -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// libllvm.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is empty and serves only the purpose of making CMake happy because// -// you can't define a target with no sources. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is empty and serves only the purpose of making CMake happy because +// you can't define a target with no sources. +// +//===----------------------------------------------------------------------===// #include "llvm/Config/config.h" diff --git a/tools/llvm-size/CMakeLists.txt b/tools/llvm-size/CMakeLists.txt index 9e1a585853..60345739c3 100644 --- a/tools/llvm-size/CMakeLists.txt +++ b/tools/llvm-size/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Object Support diff --git a/tools/llvm-size/LLVMBuild.txt b/tools/llvm-size/LLVMBuild.txt index a150b5519c..b4c538a406 100644 --- a/tools/llvm-size/LLVMBuild.txt +++ b/tools/llvm-size/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-size/LLVMBuild.txt --------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp index f94e0995f1..fcef3d3d1a 100644 --- a/tools/llvm-size/llvm-size.cpp +++ b/tools/llvm-size/llvm-size.cpp @@ -1,16 +1,17 @@ //===-- llvm-size.cpp - Print the size of each object section -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-size.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that works like traditional Unix "size", // -// that is, it prints out the size of each section, and the total size of all// -// sections. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that works like traditional Unix "size", +// that is, it prints out the size of each section, and the total size of all +// sections. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APInt.h" #include "llvm/Object/Archive.h" diff --git a/tools/llvm-stress/CMakeLists.txt b/tools/llvm-stress/CMakeLists.txt index 5b198a173b..d5c10e13f5 100644 --- a/tools/llvm-stress/CMakeLists.txt +++ b/tools/llvm-stress/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core IPA diff --git a/tools/llvm-stress/LLVMBuild.txt b/tools/llvm-stress/LLVMBuild.txt index bf8d5e2903..f383d351dd 100644 --- a/tools/llvm-stress/LLVMBuild.txt +++ b/tools/llvm-stress/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/llvm-stress/LLVMBuild.txt -------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp index ea8f2d0c24..adba56707b 100644 --- a/tools/llvm-stress/llvm-stress.cpp +++ b/tools/llvm-stress/llvm-stress.cpp @@ -1,15 +1,16 @@ //===-- llvm-stress.cpp - Generate random LL files to stress-test LLVM ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-stress.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program is a utility that generates random .ll files to stress-test // -// different components in LLVM. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program is a utility that generates random .ll files to stress-test +// different components in LLVM. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CallGraphSCCPass.h" #include "llvm/IR/Constants.h" diff --git a/tools/llvm-symbolizer/CMakeLists.txt b/tools/llvm-symbolizer/CMakeLists.txt index 1df81aee63..5df3b17a06 100644 --- a/tools/llvm-symbolizer/CMakeLists.txt +++ b/tools/llvm-symbolizer/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # FIXME: As we plan to execute llvm-symbolizer binary from compiler-rt # libraries, it has to be compiled for all supported targets (x86_64, i386 etc). # This means that we need LLVM libraries to be compiled for these diff --git a/tools/llvm-symbolizer/LLVMSymbolize.cpp b/tools/llvm-symbolizer/LLVMSymbolize.cpp index 0586c1d11f..c57c219b11 100644 --- a/tools/llvm-symbolizer/LLVMSymbolize.cpp +++ b/tools/llvm-symbolizer/LLVMSymbolize.cpp @@ -1,14 +1,15 @@ //===-- LLVMSymbolize.cpp -------------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMSymbolize.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Implementation for LLVM symbolization library. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implementation for LLVM symbolization library. +// +//===----------------------------------------------------------------------===// #include "LLVMSymbolize.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/llvm-symbolizer/LLVMSymbolize.h b/tools/llvm-symbolizer/LLVMSymbolize.h index 7fc58d6f9f..be246c3f87 100644 --- a/tools/llvm-symbolizer/LLVMSymbolize.h +++ b/tools/llvm-symbolizer/LLVMSymbolize.h @@ -1,14 +1,15 @@ //===-- LLVMSymbolize.h ----------------------------------------- C++ -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LLVMSymbolize.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Header for LLVM symbolization library. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Header for LLVM symbolization library. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_LLVM_SYMBOLIZER_LLVMSYMBOLIZE_H #define LLVM_TOOLS_LLVM_SYMBOLIZER_LLVMSYMBOLIZE_H diff --git a/tools/llvm-symbolizer/llvm-symbolizer.cpp b/tools/llvm-symbolizer/llvm-symbolizer.cpp index 82dee86e98..3aa4663c03 100644 --- a/tools/llvm-symbolizer/llvm-symbolizer.cpp +++ b/tools/llvm-symbolizer/llvm-symbolizer.cpp @@ -1,18 +1,19 @@ //===-- llvm-symbolizer.cpp - Simple addr2line-like symbolizer ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// llvm-symbolizer.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This utility works much like "addr2line". It is able of transforming // -// tuples (module name, module offset) to code locations (function name, // -// file, line number, column number). It is targeted for compiler-rt tools // -// (especially AddressSanitizer and ThreadSanitizer) that can use it // -// to symbolize stack traces in their error reports. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This utility works much like "addr2line". It is able of transforming +// tuples (module name, module offset) to code locations (function name, +// file, line number, column number). It is targeted for compiler-rt tools +// (especially AddressSanitizer and ThreadSanitizer) that can use it +// to symbolize stack traces in their error reports. +// +//===----------------------------------------------------------------------===// #include "LLVMSymbolize.h" #include "llvm/ADT/StringRef.h" diff --git a/tools/lto/CMakeLists.txt b/tools/lto/CMakeLists.txt index 9767ae8e29..c479fa954c 100644 --- a/tools/lto/CMakeLists.txt +++ b/tools/lto/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Core diff --git a/tools/lto/LTODisassembler.cpp b/tools/lto/LTODisassembler.cpp index b7941a3d50..186acebc01 100644 --- a/tools/lto/LTODisassembler.cpp +++ b/tools/lto/LTODisassembler.cpp @@ -1,15 +1,16 @@ //===-- LTODisassembler.cpp - LTO Disassembler interface ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LTODisassembler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This function provides utility methods used by clients of libLTO that want// -// to use the disassembler. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This function provides utility methods used by clients of libLTO that want +// to use the disassembler. +// +//===----------------------------------------------------------------------===// #include "llvm-c/lto.h" #include "llvm/Support/TargetSelect.h" diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 7c6df499b0..5c712f18c9 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -1,15 +1,16 @@ //===-lto.cpp - LLVM Link Time Optimizer ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// lto.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the Link Time Optimization library. This library is // -// intended to be used by linker to optimize code at link time. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the Link Time Optimization library. This library is +// intended to be used by linker to optimize code at link time. +// +//===----------------------------------------------------------------------===// #include "llvm-c/lto.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/macho-dump/CMakeLists.txt b/tools/macho-dump/CMakeLists.txt index 3e2cca3d4a..bc2dfbf427 100644 --- a/tools/macho-dump/CMakeLists.txt +++ b/tools/macho-dump/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Object Support diff --git a/tools/macho-dump/LLVMBuild.txt b/tools/macho-dump/LLVMBuild.txt index 1e710e863c..1ad9b84261 100644 --- a/tools/macho-dump/LLVMBuild.txt +++ b/tools/macho-dump/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/macho-dump/LLVMBuild.txt -------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/macho-dump/macho-dump.cpp b/tools/macho-dump/macho-dump.cpp index e82c5d1139..b736921dd9 100644 --- a/tools/macho-dump/macho-dump.cpp +++ b/tools/macho-dump/macho-dump.cpp @@ -1,14 +1,15 @@ //===-- macho-dump.cpp - Mach Object Dumping Tool -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// macho-dump.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This is a testing tool for use with the MC/Mach-O LLVM components. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a testing tool for use with the MC/Mach-O LLVM components. +// +//===----------------------------------------------------------------------===// #include "llvm/Object/MachO.h" #include "llvm/ADT/StringExtras.h" diff --git a/tools/msbuild/CMakeLists.txt b/tools/msbuild/CMakeLists.txt index 0e768ab0f0..4f471e5408 100644 --- a/tools/msbuild/CMakeLists.txt +++ b/tools/msbuild/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. if (WIN32) # CPack will install a registry key in this format that we wish to reference. set(REG_KEY "${CPACK_PACKAGE_INSTALL_REGISTRY_KEY}") diff --git a/tools/obj2yaml/CMakeLists.txt b/tools/obj2yaml/CMakeLists.txt index 52fbd978fa..3cdac5c748 100644 --- a/tools/obj2yaml/CMakeLists.txt +++ b/tools/obj2yaml/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Object Support diff --git a/tools/obj2yaml/Error.cpp b/tools/obj2yaml/Error.cpp index dbb85bfa55..abef8af58c 100644 --- a/tools/obj2yaml/Error.cpp +++ b/tools/obj2yaml/Error.cpp @@ -1,12 +1,11 @@ //===- Error.cpp - system_error extensions for obj2yaml ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Error.h" #include "llvm/Support/ErrorHandling.h" diff --git a/tools/obj2yaml/Error.h b/tools/obj2yaml/Error.h index be7b95cbba..982f59e236 100644 --- a/tools/obj2yaml/Error.h +++ b/tools/obj2yaml/Error.h @@ -1,12 +1,11 @@ //===- Error.h - system_error extensions for obj2yaml -----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Error.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_OBJ2YAML_ERROR_H #define LLVM_TOOLS_OBJ2YAML_ERROR_H diff --git a/tools/obj2yaml/coff2yaml.cpp b/tools/obj2yaml/coff2yaml.cpp index 714a9c749c..f675bfe4e6 100644 --- a/tools/obj2yaml/coff2yaml.cpp +++ b/tools/obj2yaml/coff2yaml.cpp @@ -1,12 +1,11 @@ //===------ utils/obj2yaml.cpp - obj2yaml conversion tool -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// coff2yaml.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "obj2yaml.h" #include "llvm/Object/COFF.h" diff --git a/tools/obj2yaml/elf2yaml.cpp b/tools/obj2yaml/elf2yaml.cpp index 4dd8b8039b..f117a10d38 100644 --- a/tools/obj2yaml/elf2yaml.cpp +++ b/tools/obj2yaml/elf2yaml.cpp @@ -1,12 +1,11 @@ //===------ utils/elf2yaml.cpp - obj2yaml conversion tool -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// elf2yaml.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Error.h" #include "obj2yaml.h" diff --git a/tools/obj2yaml/obj2yaml.cpp b/tools/obj2yaml/obj2yaml.cpp index d1b560e200..183b577269 100644 --- a/tools/obj2yaml/obj2yaml.cpp +++ b/tools/obj2yaml/obj2yaml.cpp @@ -1,12 +1,11 @@ //===------ utils/obj2yaml.cpp - obj2yaml conversion tool -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// obj2yaml.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "Error.h" #include "obj2yaml.h" diff --git a/tools/obj2yaml/obj2yaml.h b/tools/obj2yaml/obj2yaml.h index c97d925d15..643ab7bc43 100644 --- a/tools/obj2yaml/obj2yaml.h +++ b/tools/obj2yaml/obj2yaml.h @@ -1,12 +1,14 @@ //===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// obj2yaml.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +// This file declares some helper routines, and also the format-specific +// writers. To add a new format, add the declaration here, and, in a separate +// source file, implement it. +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H #define LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index 25dd4b2cc7..4bdc268f8d 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -1,20 +1,21 @@ //===- AnalysisWrappers.cpp - Wrappers around non-pass analyses -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AnalysisWrappers.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines pass wrappers around LLVM analyses that don't make sense to// -// be passes. It provides a nice standard pass interface to these classes so// -// that they can be printed out by analyze. // -// // -// These classes are separated out of analyze.cpp so that it is more clear which// -// code is the integral part of the analyze tool, and which part of the code is// -// just making it so more passes are available. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines pass wrappers around LLVM analyses that don't make sense to +// be passes. It provides a nice standard pass interface to these classes so +// that they can be printed out by analyze. +// +// These classes are separated out of analyze.cpp so that it is more clear which +// code is the integral part of the analyze tool, and which part of the code is +// just making it so more passes are available. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CallGraph.h" #include "llvm/IR/CallSite.h" diff --git a/tools/opt/BreakpointPrinter.cpp b/tools/opt/BreakpointPrinter.cpp index 859e680534..10af406f86 100644 --- a/tools/opt/BreakpointPrinter.cpp +++ b/tools/opt/BreakpointPrinter.cpp @@ -1,15 +1,16 @@ //===- BreakpointPrinter.cpp - Breakpoint location printer ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BreakpointPrinter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Breakpoint location printer. // +/// \file +/// \brief Breakpoint location printer. /// +//===----------------------------------------------------------------------===// #include "BreakpointPrinter.h" #include "llvm/ADT/StringSet.h" diff --git a/tools/opt/BreakpointPrinter.h b/tools/opt/BreakpointPrinter.h index 6a51f1a764..81c88e1919 100644 --- a/tools/opt/BreakpointPrinter.h +++ b/tools/opt/BreakpointPrinter.h @@ -1,17 +1,16 @@ //===- BreakpointPrinter.h - Breakpoint location printer ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BreakpointPrinter.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Breakpoint location printer. // +/// \file +/// \brief Breakpoint location printer. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_OPT_BREAKPOINTPRINTER_H #define LLVM_TOOLS_OPT_BREAKPOINTPRINTER_H diff --git a/tools/opt/CMakeLists.txt b/tools/opt/CMakeLists.txt index 4f8b32740a..0aa93800fd 100644 --- a/tools/opt/CMakeLists.txt +++ b/tools/opt/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Analysis diff --git a/tools/opt/GraphPrinters.cpp b/tools/opt/GraphPrinters.cpp index 96d227da35..640edfee41 100644 --- a/tools/opt/GraphPrinters.cpp +++ b/tools/opt/GraphPrinters.cpp @@ -1,17 +1,18 @@ //===- GraphPrinters.cpp - DOT printers for various graph types -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// GraphPrinters.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines several printers for various different types of graphs used// -// by the LLVM infrastructure. It uses the generic graph interface to convert// -// the graph into a .dot graph. These graphs can then be processed with the // -// "dot" tool to convert them to postscript or some other suitable format. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines several printers for various different types of graphs used +// by the LLVM infrastructure. It uses the generic graph interface to convert +// the graph into a .dot graph. These graphs can then be processed with the +// "dot" tool to convert them to postscript or some other suitable format. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Dominators.h" #include "llvm/Pass.h" diff --git a/tools/opt/LLVMBuild.txt b/tools/opt/LLVMBuild.txt index ed5595500a..4e89e6bdfc 100644 --- a/tools/opt/LLVMBuild.txt +++ b/tools/opt/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/opt/LLVMBuild.txt --------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/opt/NewPMDriver.cpp b/tools/opt/NewPMDriver.cpp index 774782fd07..3030d65743 100644 --- a/tools/opt/NewPMDriver.cpp +++ b/tools/opt/NewPMDriver.cpp @@ -1,18 +1,17 @@ //===- NewPMDriver.cpp - Driver for opt with new PM -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NewPMDriver.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// This file is just a split of the code that logically belongs in opt.cpp but// -/// that includes the new pass manager headers. // +/// This file is just a split of the code that logically belongs in opt.cpp but +/// that includes the new pass manager headers. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "NewPMDriver.h" #include "llvm/ADT/StringRef.h" diff --git a/tools/opt/NewPMDriver.h b/tools/opt/NewPMDriver.h index 8481af8e67..349a7b1267 100644 --- a/tools/opt/NewPMDriver.h +++ b/tools/opt/NewPMDriver.h @@ -1,23 +1,22 @@ //===- NewPMDriver.h - Function to drive opt with the new PM ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// NewPMDriver.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file /// -/// A single function which is called to drive the opt behavior for the new // -/// PassManager. // +/// A single function which is called to drive the opt behavior for the new +/// PassManager. /// -/// This is only in a separate TU with a header to avoid including all of the// -/// old pass manager headers and the new pass manager headers into the same // -/// file. Eventually all of the routines here will get folded back into // -/// opt.cpp. // +/// This is only in a separate TU with a header to avoid including all of the +/// old pass manager headers and the new pass manager headers into the same +/// file. Eventually all of the routines here will get folded back into +/// opt.cpp. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_OPT_NEWPMDRIVER_H #define LLVM_TOOLS_OPT_NEWPMDRIVER_H diff --git a/tools/opt/PassPrinters.cpp b/tools/opt/PassPrinters.cpp index 153967fe3f..c2c80c5978 100644 --- a/tools/opt/PassPrinters.cpp +++ b/tools/opt/PassPrinters.cpp @@ -1,15 +1,16 @@ //===- PassPrinters.cpp - Utilities to print analysis info for passes -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassPrinters.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Utilities to print analysis info for various kinds of passes. // +/// \file +/// \brief Utilities to print analysis info for various kinds of passes. /// +//===----------------------------------------------------------------------===// #include "PassPrinters.h" #include "llvm/Analysis/CallGraphSCCPass.h" diff --git a/tools/opt/PassPrinters.h b/tools/opt/PassPrinters.h index a1e8a74a83..cf46ef9e36 100644 --- a/tools/opt/PassPrinters.h +++ b/tools/opt/PassPrinters.h @@ -1,17 +1,16 @@ //===- PassPrinters.h - Utilities to print analysis info for passes -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassPrinters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief Utilities to print analysis info for various kinds of passes. // +/// \file +/// \brief Utilities to print analysis info for various kinds of passes. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H #define LLVM_TOOLS_OPT_PASSPRINTERS_H diff --git a/tools/opt/PrintSCC.cpp b/tools/opt/PrintSCC.cpp index d3bcb1722e..78ede2b72f 100644 --- a/tools/opt/PrintSCC.cpp +++ b/tools/opt/PrintSCC.cpp @@ -1,28 +1,29 @@ //===- PrintSCC.cpp - Enumerate SCCs in some key graphs -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PrintSCC.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file provides passes to print out SCCs in a CFG or a CallGraph. // -// Normally, you would not use these passes; instead, you would use the // -// scc_iterator directly to enumerate SCCs and process them in some way. These// -// passes serve three purposes: // -// // -// (1) As a reference for how to use the scc_iterator. // -// (2) To print out the SCCs for a CFG or a CallGraph: // -// analyze -print-cfg-sccs to print the SCCs in each CFG of a module.// -// analyze -print-cfg-sccs -stats to print the #SCCs and the maximum SCC size.// -// analyze -print-cfg-sccs -debug > /dev/null to watch the algorithm in action.// -// // -// and similarly: // -// analyze -print-callgraph-sccs [-stats] [-debug] to print SCCs in the CallGraph// -// // -// (3) To test the scc_iterator. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides passes to print out SCCs in a CFG or a CallGraph. +// Normally, you would not use these passes; instead, you would use the +// scc_iterator directly to enumerate SCCs and process them in some way. These +// passes serve three purposes: +// +// (1) As a reference for how to use the scc_iterator. +// (2) To print out the SCCs for a CFG or a CallGraph: +// analyze -print-cfg-sccs to print the SCCs in each CFG of a module. +// analyze -print-cfg-sccs -stats to print the #SCCs and the maximum SCC size. +// analyze -print-cfg-sccs -debug > /dev/null to watch the algorithm in action. +// +// and similarly: +// analyze -print-callgraph-sccs [-stats] [-debug] to print SCCs in the CallGraph +// +// (3) To test the scc_iterator. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SCCIterator.h" #include "llvm/Analysis/CallGraph.h" diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index aa0092822c..16a4fd2a06 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -1,15 +1,16 @@ //===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// opt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Optimizations may be specified an arbitrary number of times on the command// -// line, They are run in the order specified. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Optimizations may be specified an arbitrary number of times on the command +// line, They are run in the order specified. +// +//===----------------------------------------------------------------------===// #include "BreakpointPrinter.h" #include "NewPMDriver.h" diff --git a/tools/verify-uselistorder/CMakeLists.txt b/tools/verify-uselistorder/CMakeLists.txt index 7b2cf62744..260a95adb6 100644 --- a/tools/verify-uselistorder/CMakeLists.txt +++ b/tools/verify-uselistorder/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AsmParser BitReader diff --git a/tools/verify-uselistorder/LLVMBuild.txt b/tools/verify-uselistorder/LLVMBuild.txt index 5fcbc97e3f..23957c189c 100644 --- a/tools/verify-uselistorder/LLVMBuild.txt +++ b/tools/verify-uselistorder/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./tools/verify-uselistorder/LLVMBuild.txt ----------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/tools/verify-uselistorder/verify-uselistorder.cpp b/tools/verify-uselistorder/verify-uselistorder.cpp index 78e94c8453..efa4bcbe1a 100644 --- a/tools/verify-uselistorder/verify-uselistorder.cpp +++ b/tools/verify-uselistorder/verify-uselistorder.cpp @@ -1,30 +1,31 @@ //===- verify-uselistorder.cpp - The LLVM Modular Optimizer ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// verify-uselistorder.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Verify that use-list order can be serialized correctly. After reading the// -// provided IR, this tool shuffles the use-lists and then writes and reads to a// -// separate Module whose use-list orders are compared to the original. // -// // -// The shuffles are deterministic, but guarantee that use-lists will change. // -// The algorithm per iteration is as follows: // -// // -// 1. Seed the random number generator. The seed is different for each // -// shuffle. Shuffle 0 uses default+0, shuffle 1 uses default+1, and so on.// -// // -// 2. Visit every Value in a deterministic order. // -// // -// 3. Assign a random number to each Use in the Value's use-list in order. // -// // -// 4. If the numbers are already in order, reassign numbers until they aren't.// -// // -// 5. Sort the use-list using Value::sortUseList(), which is a stable sort. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Verify that use-list order can be serialized correctly. After reading the +// provided IR, this tool shuffles the use-lists and then writes and reads to a +// separate Module whose use-list orders are compared to the original. +// +// The shuffles are deterministic, but guarantee that use-lists will change. +// The algorithm per iteration is as follows: +// +// 1. Seed the random number generator. The seed is different for each +// shuffle. Shuffle 0 uses default+0, shuffle 1 uses default+1, and so on. +// +// 2. Visit every Value in a deterministic order. +// +// 3. Assign a random number to each Use in the Value's use-list in order. +// +// 4. If the numbers are already in order, reassign numbers until they aren't. +// +// 5. Sort the use-list using Value::sortUseList(), which is a stable sort. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" diff --git a/tools/yaml2obj/CMakeLists.txt b/tools/yaml2obj/CMakeLists.txt index 75e59edfb9..52e9df4d76 100644 --- a/tools/yaml2obj/CMakeLists.txt +++ b/tools/yaml2obj/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS MC Object diff --git a/tools/yaml2obj/yaml2coff.cpp b/tools/yaml2obj/yaml2coff.cpp index a9c9485c72..61d9851925 100644 --- a/tools/yaml2obj/yaml2coff.cpp +++ b/tools/yaml2obj/yaml2coff.cpp @@ -1,17 +1,16 @@ //===- yaml2coff - Convert YAML to a COFF object file ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// yaml2coff.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief The COFF component of yaml2obj. // +/// \file +/// \brief The COFF component of yaml2obj. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "yaml2obj.h" #include "llvm/ADT/STLExtras.h" diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 0e6616bb2c..a247f48c05 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -1,17 +1,16 @@ //===- yaml2elf - Convert YAML to a ELF object file -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// yaml2elf.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// /// -/// \file // -/// \brief The ELF component of yaml2obj. // +/// \file +/// \brief The ELF component of yaml2obj. /// -// // -/////////////////////////////////////////////////////////////////////////////// +//===----------------------------------------------------------------------===// #include "yaml2obj.h" #include "llvm/ADT/ArrayRef.h" diff --git a/tools/yaml2obj/yaml2obj.cpp b/tools/yaml2obj/yaml2obj.cpp index 6ef4d73730..96a14861fb 100644 --- a/tools/yaml2obj/yaml2obj.cpp +++ b/tools/yaml2obj/yaml2obj.cpp @@ -1,17 +1,18 @@ //===- yaml2obj - Convert YAML to a binary object file --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// yaml2obj.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program takes a YAML description of an object file and outputs the // -// binary equivalent. // -// // -// This is used for writing tests that require binary files. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program takes a YAML description of an object file and outputs the +// binary equivalent. +// +// This is used for writing tests that require binary files. +// +//===----------------------------------------------------------------------===// #include "yaml2obj.h" #include "llvm/ADT/StringExtras.h" diff --git a/tools/yaml2obj/yaml2obj.h b/tools/yaml2obj/yaml2obj.h index e652580cab..7290a9af2c 100644 --- a/tools/yaml2obj/yaml2obj.h +++ b/tools/yaml2obj/yaml2obj.h @@ -1,15 +1,14 @@ //===--- yaml2obj.h - -------------------------------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// yaml2obj.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/// \file // -/// \brief Common declarations for yaml2obj // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// \file +/// \brief Common declarations for yaml2obj +//===----------------------------------------------------------------------===// #ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H #define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H diff --git a/unittests/ADT/APFloatTest.cpp b/unittests/ADT/APFloatTest.cpp index 19d493a0d4..a4445f6e46 100644 --- a/unittests/ADT/APFloatTest.cpp +++ b/unittests/ADT/APFloatTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/APFloat.cpp - APFloat unit tests ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APFloatTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APFloat.h" #include "llvm/ADT/APSInt.h" diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index 01441ec8b3..ffba7b1633 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/APInt.cpp - APInt unit tests ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APIntTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APInt.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/ADT/APSIntTest.cpp b/unittests/ADT/APSIntTest.cpp index 57e853023f..a9b3071d13 100644 --- a/unittests/ADT/APSIntTest.cpp +++ b/unittests/ADT/APSIntTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/APSIntTest.cpp - APSInt unit tests ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// APSIntTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/APSInt.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/ArrayRefTest.cpp b/unittests/ADT/ArrayRefTest.cpp index d3a166a9d6..9ad32d54d3 100644 --- a/unittests/ADT/ArrayRefTest.cpp +++ b/unittests/ADT/ArrayRefTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/ArrayRefTest.cpp - ArrayRef unit tests -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArrayRefTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/ArrayRef.h" #include "llvm/Support/Allocator.h" diff --git a/unittests/ADT/BitVectorTest.cpp b/unittests/ADT/BitVectorTest.cpp index 4d2bf56d99..26f103b3c1 100644 --- a/unittests/ADT/BitVectorTest.cpp +++ b/unittests/ADT/BitVectorTest.cpp @@ -1,13 +1,11 @@ //===- llvm/unittest/ADT/BitVectorTest.cpp - BitVector tests --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// Some of these tests fail on PowerPC for unknown reasons. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef __ppc__ diff --git a/unittests/ADT/CMakeLists.txt b/unittests/ADT/CMakeLists.txt index 7b955550af..cbcb084855 100644 --- a/unittests/ADT/CMakeLists.txt +++ b/unittests/ADT/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support ) diff --git a/unittests/ADT/DAGDeltaAlgorithmTest.cpp b/unittests/ADT/DAGDeltaAlgorithmTest.cpp index b704efc63b..190df7f574 100644 --- a/unittests/ADT/DAGDeltaAlgorithmTest.cpp +++ b/unittests/ADT/DAGDeltaAlgorithmTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/DAGDeltaAlgorithmTest.cpp ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGDeltaAlgorithmTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/DAGDeltaAlgorithm.h" diff --git a/unittests/ADT/DeltaAlgorithmTest.cpp b/unittests/ADT/DeltaAlgorithmTest.cpp index 93b1f8c4c9..bed57b1a17 100644 --- a/unittests/ADT/DeltaAlgorithmTest.cpp +++ b/unittests/ADT/DeltaAlgorithmTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/DeltaAlgorithmTest.cpp ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DeltaAlgorithmTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/DeltaAlgorithm.h" diff --git a/unittests/ADT/DenseMapTest.cpp b/unittests/ADT/DenseMapTest.cpp index 04b3bfa00f..2c6fe35883 100644 --- a/unittests/ADT/DenseMapTest.cpp +++ b/unittests/ADT/DenseMapTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/DenseMapMap.cpp - DenseMap unit tests --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DenseMapTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/DenseMap.h" diff --git a/unittests/ADT/DenseSetTest.cpp b/unittests/ADT/DenseSetTest.cpp index b588f7b87b..5952353034 100644 --- a/unittests/ADT/DenseSetTest.cpp +++ b/unittests/ADT/DenseSetTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/DenseSetTest.cpp - DenseSet unit tests --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DenseSetTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/DenseSet.h" diff --git a/unittests/ADT/FoldingSet.cpp b/unittests/ADT/FoldingSet.cpp index 0144dbf367..a18a0df957 100644 --- a/unittests/ADT/FoldingSet.cpp +++ b/unittests/ADT/FoldingSet.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/ADT/FoldingSetTest.cpp -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FoldingSet.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// FoldingSet unit tests. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// FoldingSet unit tests. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/FoldingSet.h" diff --git a/unittests/ADT/FunctionRefTest.cpp b/unittests/ADT/FunctionRefTest.cpp index 6af169b237..075d9a070d 100644 --- a/unittests/ADT/FunctionRefTest.cpp +++ b/unittests/ADT/FunctionRefTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/MakeUniqueTest.cpp - make_unique unit tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FunctionRefTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/HashingTest.cpp b/unittests/ADT/HashingTest.cpp index 8cc9b738c1..b28561bd01 100644 --- a/unittests/ADT/HashingTest.cpp +++ b/unittests/ADT/HashingTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/ADT/HashingTest.cpp ----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// HashingTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Hashing.h unit tests. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Hashing.h unit tests. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/Hashing.h" diff --git a/unittests/ADT/ImmutableMapTest.cpp b/unittests/ADT/ImmutableMapTest.cpp index b74f1a9f0c..6a99884bfb 100644 --- a/unittests/ADT/ImmutableMapTest.cpp +++ b/unittests/ADT/ImmutableMapTest.cpp @@ -1,12 +1,11 @@ //===----------- ImmutableMapTest.cpp - ImmutableMap unit tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ImmutableMapTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/ImmutableMap.h" diff --git a/unittests/ADT/ImmutableSetTest.cpp b/unittests/ADT/ImmutableSetTest.cpp index 59924ded74..febd441db1 100644 --- a/unittests/ADT/ImmutableSetTest.cpp +++ b/unittests/ADT/ImmutableSetTest.cpp @@ -1,12 +1,11 @@ //===----------- ImmutableSetTest.cpp - ImmutableSet unit tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ImmutableSetTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/ImmutableSet.h" diff --git a/unittests/ADT/IntEqClassesTest.cpp b/unittests/ADT/IntEqClassesTest.cpp index c927af31b0..fc908c1e8b 100644 --- a/unittests/ADT/IntEqClassesTest.cpp +++ b/unittests/ADT/IntEqClassesTest.cpp @@ -1,12 +1,11 @@ //===---- ADT/IntEqClassesTest.cpp - IntEqClasses unit tests ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntEqClassesTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IntEqClasses.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/IntervalMapTest.cpp b/unittests/ADT/IntervalMapTest.cpp index 416a6d8035..b5556d265a 100644 --- a/unittests/ADT/IntervalMapTest.cpp +++ b/unittests/ADT/IntervalMapTest.cpp @@ -1,12 +1,11 @@ //===---- ADT/IntervalMapTest.cpp - IntervalMap unit tests ------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntervalMapTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IntervalMap.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/IntrusiveRefCntPtrTest.cpp b/unittests/ADT/IntrusiveRefCntPtrTest.cpp index 6e56166c47..c67ec13091 100644 --- a/unittests/ADT/IntrusiveRefCntPtrTest.cpp +++ b/unittests/ADT/IntrusiveRefCntPtrTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ADT/IntrusiveRefCntPtrTest.cpp ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrusiveRefCntPtrTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/MakeUniqueTest.cpp b/unittests/ADT/MakeUniqueTest.cpp index 4eaf47153b..3b4938a2ef 100644 --- a/unittests/ADT/MakeUniqueTest.cpp +++ b/unittests/ADT/MakeUniqueTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/MakeUniqueTest.cpp - make_unique unit tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MakeUniqueTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/MapVectorTest.cpp b/unittests/ADT/MapVectorTest.cpp index 059ebf04e9..ff8464293c 100644 --- a/unittests/ADT/MapVectorTest.cpp +++ b/unittests/ADT/MapVectorTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ADT/MapVectorTest.cpp - MapVector unit tests ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MapVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/MapVector.h" diff --git a/unittests/ADT/OptionalTest.cpp b/unittests/ADT/OptionalTest.cpp index 42ce902b03..92c4eec487 100644 --- a/unittests/ADT/OptionalTest.cpp +++ b/unittests/ADT/OptionalTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/OptionalTest.cpp - Optional unit tests -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptionalTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/Optional.h" diff --git a/unittests/ADT/PackedVectorTest.cpp b/unittests/ADT/PackedVectorTest.cpp index 06563592f9..09ac9955ad 100644 --- a/unittests/ADT/PackedVectorTest.cpp +++ b/unittests/ADT/PackedVectorTest.cpp @@ -1,14 +1,11 @@ //===- llvm/unittest/ADT/PackedVectorTest.cpp - PackedVector tests --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PackedVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// BitVectorTest tests fail on PowerPC for unknown reasons, so disable this // -// as well since it depends on a BitVector. // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef __ppc__ diff --git a/unittests/ADT/PointerIntPairTest.cpp b/unittests/ADT/PointerIntPairTest.cpp index d41afaf591..0bbcd9f869 100644 --- a/unittests/ADT/PointerIntPairTest.cpp +++ b/unittests/ADT/PointerIntPairTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/PointerIntPairTest.cpp - Unit tests --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerIntPairTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/PointerIntPair.h" diff --git a/unittests/ADT/PointerUnionTest.cpp b/unittests/ADT/PointerUnionTest.cpp index 3f81e62137..a592784ae0 100644 --- a/unittests/ADT/PointerUnionTest.cpp +++ b/unittests/ADT/PointerUnionTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/PointerUnionTest.cpp - Optional unit tests -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PointerUnionTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/PointerUnion.h" diff --git a/unittests/ADT/PostOrderIteratorTest.cpp b/unittests/ADT/PostOrderIteratorTest.cpp index d7ca424210..2ca98b9b9c 100644 --- a/unittests/ADT/PostOrderIteratorTest.cpp +++ b/unittests/ADT/PostOrderIteratorTest.cpp @@ -1,11 +1,11 @@ //===- PostOrderIteratorTest.cpp - PostOrderIterator unit tests -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PostOrderIteratorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/PostOrderIterator.h" diff --git a/unittests/ADT/SCCIteratorTest.cpp b/unittests/ADT/SCCIteratorTest.cpp index bec91b11d9..da8c04483f 100644 --- a/unittests/ADT/SCCIteratorTest.cpp +++ b/unittests/ADT/SCCIteratorTest.cpp @@ -1,12 +1,11 @@ //===----- llvm/unittest/ADT/SCCIteratorTest.cpp - SCCIterator tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SCCIteratorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SCCIterator.h" #include "llvm/ADT/GraphTraits.h" diff --git a/unittests/ADT/SmallPtrSetTest.cpp b/unittests/ADT/SmallPtrSetTest.cpp index 5c7ac7c50d..fdd1cbb600 100644 --- a/unittests/ADT/SmallPtrSetTest.cpp +++ b/unittests/ADT/SmallPtrSetTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/ADT/SmallPtrSetTest.cpp ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallPtrSetTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// SmallPtrSet unit tests. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// SmallPtrSet unit tests. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/unittests/ADT/SmallStringTest.cpp b/unittests/ADT/SmallStringTest.cpp index 0fdd167f48..9398e99c91 100644 --- a/unittests/ADT/SmallStringTest.cpp +++ b/unittests/ADT/SmallStringTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/ADT/SmallStringTest.cpp ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallStringTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// SmallString unit tests. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// SmallString unit tests. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/SmallVectorTest.cpp b/unittests/ADT/SmallVectorTest.cpp index 6653702c11..46f7021ac1 100644 --- a/unittests/ADT/SmallVectorTest.cpp +++ b/unittests/ADT/SmallVectorTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/ADT/SmallVectorTest.cpp ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SmallVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// SmallVector unit tests. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// SmallVector unit tests. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" diff --git a/unittests/ADT/SparseBitVectorTest.cpp b/unittests/ADT/SparseBitVectorTest.cpp index 8d36e8e915..d8fc5ce25d 100644 --- a/unittests/ADT/SparseBitVectorTest.cpp +++ b/unittests/ADT/SparseBitVectorTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/SparseBitVectorTest.cpp - SparseBitVector tests --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparseBitVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SparseBitVector.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/SparseMultiSetTest.cpp b/unittests/ADT/SparseMultiSetTest.cpp index 2e06040232..032990e4bc 100644 --- a/unittests/ADT/SparseMultiSetTest.cpp +++ b/unittests/ADT/SparseMultiSetTest.cpp @@ -1,12 +1,11 @@ //===------ ADT/SparseSetTest.cpp - SparseSet unit tests - -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparseMultiSetTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SparseMultiSet.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/SparseSetTest.cpp b/unittests/ADT/SparseSetTest.cpp index 3cef8fd4f4..eb0e0db283 100644 --- a/unittests/ADT/SparseSetTest.cpp +++ b/unittests/ADT/SparseSetTest.cpp @@ -1,12 +1,11 @@ //===------ ADT/SparseSetTest.cpp - SparseSet unit tests - -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SparseSetTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SparseSet.h" #include "gtest/gtest.h" diff --git a/unittests/ADT/StringMapTest.cpp b/unittests/ADT/StringMapTest.cpp index 75895a98d0..4ed0b76f0f 100644 --- a/unittests/ADT/StringMapTest.cpp +++ b/unittests/ADT/StringMapTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/StringMapMap.cpp - StringMap unit tests ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringMapTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/StringMap.h" diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp index 485ed29c86..d80179bd78 100644 --- a/unittests/ADT/StringRefTest.cpp +++ b/unittests/ADT/StringRefTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/StringRefTest.cpp - StringRef unit tests ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringRefTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Hashing.h" diff --git a/unittests/ADT/TinyPtrVectorTest.cpp b/unittests/ADT/TinyPtrVectorTest.cpp index b41714bb95..294dfac0c6 100644 --- a/unittests/ADT/TinyPtrVectorTest.cpp +++ b/unittests/ADT/TinyPtrVectorTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/ADT/TinyPtrVectorTest.cpp ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TinyPtrVectorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// TinyPtrVector unit tests. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// TinyPtrVector unit tests. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/TinyPtrVector.h" #include "llvm/ADT/ArrayRef.h" diff --git a/unittests/ADT/TripleTest.cpp b/unittests/ADT/TripleTest.cpp index 6f9e729c9b..2b1e871b94 100644 --- a/unittests/ADT/TripleTest.cpp +++ b/unittests/ADT/TripleTest.cpp @@ -1,12 +1,11 @@ //===----------- Triple.cpp - Triple unit tests ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TripleTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/Triple.h" diff --git a/unittests/ADT/TwineTest.cpp b/unittests/ADT/TwineTest.cpp index 776afc2886..9683e97511 100644 --- a/unittests/ADT/TwineTest.cpp +++ b/unittests/ADT/TwineTest.cpp @@ -1,12 +1,11 @@ //===- TwineTest.cpp - Twine unit tests -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TwineTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/Twine.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/ADT/VariadicFunctionTest.cpp b/unittests/ADT/VariadicFunctionTest.cpp index 0cace46767..cde3120596 100644 --- a/unittests/ADT/VariadicFunctionTest.cpp +++ b/unittests/ADT/VariadicFunctionTest.cpp @@ -1,12 +1,11 @@ //===----------- VariadicFunctionTest.cpp - VariadicFunction unit tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VariadicFunctionTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/ArrayRef.h" diff --git a/unittests/ADT/ilistTest.cpp b/unittests/ADT/ilistTest.cpp index d88bf53532..9127b05b4b 100644 --- a/unittests/ADT/ilistTest.cpp +++ b/unittests/ADT/ilistTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/APInt.cpp - APInt unit tests ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ilistTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/ilist.h" #include "llvm/ADT/STLExtras.h" diff --git a/unittests/Analysis/AliasAnalysisTest.cpp b/unittests/Analysis/AliasAnalysisTest.cpp index 3d4165262e..62bfaa1251 100644 --- a/unittests/Analysis/AliasAnalysisTest.cpp +++ b/unittests/Analysis/AliasAnalysisTest.cpp @@ -1,12 +1,11 @@ //===--- AliasAnalysisTest.cpp - Mixed TBAA unit tests --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AliasAnalysisTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/Passes.h" diff --git a/unittests/Analysis/CFGTest.cpp b/unittests/Analysis/CFGTest.cpp index c303ca7afa..b29c168ce0 100644 --- a/unittests/Analysis/CFGTest.cpp +++ b/unittests/Analysis/CFGTest.cpp @@ -1,12 +1,11 @@ //===- CFGTest.cpp - CFG tests --------------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CFGTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CFG.h" #include "llvm/Analysis/LoopInfo.h" diff --git a/unittests/Analysis/CMakeLists.txt b/unittests/Analysis/CMakeLists.txt index f849666173..35a6d92ce1 100644 --- a/unittests/Analysis/CMakeLists.txt +++ b/unittests/Analysis/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS IPA Analysis diff --git a/unittests/Analysis/CallGraphTest.cpp b/unittests/Analysis/CallGraphTest.cpp index efdc094a0f..777907a55b 100644 --- a/unittests/Analysis/CallGraphTest.cpp +++ b/unittests/Analysis/CallGraphTest.cpp @@ -1,12 +1,11 @@ //=======- CallGraphTest.cpp - Unit tests for the CG analysis -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallGraphTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/CallGraph.h" #include "llvm/IR/LLVMContext.h" diff --git a/unittests/Analysis/LazyCallGraphTest.cpp b/unittests/Analysis/LazyCallGraphTest.cpp index 9dddd8014f..6caccb8923 100644 --- a/unittests/Analysis/LazyCallGraphTest.cpp +++ b/unittests/Analysis/LazyCallGraphTest.cpp @@ -1,12 +1,11 @@ //===- LazyCallGraphTest.cpp - Unit tests for the lazy CG analysis --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LazyCallGraphTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/LazyCallGraph.h" #include "llvm/AsmParser/Parser.h" diff --git a/unittests/Analysis/MixedTBAATest.cpp b/unittests/Analysis/MixedTBAATest.cpp index 320b4ced8b..7b8a25c443 100644 --- a/unittests/Analysis/MixedTBAATest.cpp +++ b/unittests/Analysis/MixedTBAATest.cpp @@ -1,12 +1,11 @@ //===--- MixedTBAATest.cpp - Mixed TBAA unit tests ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MixedTBAATest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/Passes.h" #include "llvm/IR/Constants.h" diff --git a/unittests/Analysis/ScalarEvolutionTest.cpp b/unittests/Analysis/ScalarEvolutionTest.cpp index e8ffcb50c0..6ce7ff43a3 100644 --- a/unittests/Analysis/ScalarEvolutionTest.cpp +++ b/unittests/Analysis/ScalarEvolutionTest.cpp @@ -1,12 +1,11 @@ //===- ScalarEvolutionsTest.cpp - ScalarEvolution unit tests --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScalarEvolutionTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Analysis/ScalarEvolutionExpressions.h" #include "llvm/ADT/SmallVector.h" diff --git a/unittests/AsmParser/AsmParserTest.cpp b/unittests/AsmParser/AsmParserTest.cpp index 460be7c245..9c2081fa2f 100644 --- a/unittests/AsmParser/AsmParserTest.cpp +++ b/unittests/AsmParser/AsmParserTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/AsmParser/AsmParserTest.cpp - asm parser unittests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmParserTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/AsmParser/Parser.h" diff --git a/unittests/AsmParser/CMakeLists.txt b/unittests/AsmParser/CMakeLists.txt index 92e673237d..1920bfaa3a 100644 --- a/unittests/AsmParser/CMakeLists.txt +++ b/unittests/AsmParser/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AsmParser Core diff --git a/unittests/Bitcode/BitReaderTest.cpp b/unittests/Bitcode/BitReaderTest.cpp index 0202dd8c00..3c56ea04c7 100644 --- a/unittests/Bitcode/BitReaderTest.cpp +++ b/unittests/Bitcode/BitReaderTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Bitcode/BitReaderTest.cpp - Tests for BitReader ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitReaderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/ADT/STLExtras.h" diff --git a/unittests/Bitcode/BitstreamReaderTest.cpp b/unittests/Bitcode/BitstreamReaderTest.cpp index cda704fab2..b11d7fde77 100644 --- a/unittests/Bitcode/BitstreamReaderTest.cpp +++ b/unittests/Bitcode/BitstreamReaderTest.cpp @@ -1,12 +1,11 @@ //===- BitstreamReaderTest.cpp - Tests for BitstreamReader ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BitstreamReaderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Bitcode/BitstreamReader.h" #include "gtest/gtest.h" diff --git a/unittests/Bitcode/CMakeLists.txt b/unittests/Bitcode/CMakeLists.txt index f3e7b0cc63..09cbcdc728 100644 --- a/unittests/Bitcode/CMakeLists.txt +++ b/unittests/Bitcode/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AsmParser BitReader diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index e4be3600b9..c1612e0d11 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_custom_target(UnitTests) set_target_properties(UnitTests PROPERTIES FOLDER "Tests") diff --git a/unittests/CodeGen/CMakeLists.txt b/unittests/CodeGen/CMakeLists.txt index 42c87374e4..65c0ac3f20 100644 --- a/unittests/CodeGen/CMakeLists.txt +++ b/unittests/CodeGen/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AsmPrinter Support diff --git a/unittests/CodeGen/DIEHashTest.cpp b/unittests/CodeGen/DIEHashTest.cpp index d7cb467aa4..e3a9e56282 100644 --- a/unittests/CodeGen/DIEHashTest.cpp +++ b/unittests/CodeGen/DIEHashTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/DebugInfo/DWARFFormValueTest.cpp ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DIEHashTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/CodeGen/DIE.h" #include "../lib/CodeGen/AsmPrinter/DIEHash.h" diff --git a/unittests/DebugInfo/CMakeLists.txt b/unittests/DebugInfo/CMakeLists.txt index 2e7776be1d..dae472bafd 100644 --- a/unittests/DebugInfo/CMakeLists.txt +++ b/unittests/DebugInfo/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(DWARF) add_subdirectory(PDB) diff --git a/unittests/DebugInfo/DWARF/CMakeLists.txt b/unittests/DebugInfo/DWARF/CMakeLists.txt index e057f634a8..4bec17cbb5 100644 --- a/unittests/DebugInfo/DWARF/CMakeLists.txt +++ b/unittests/DebugInfo/DWARF/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS DebugInfoDWARF ) diff --git a/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp b/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp index b68eae7340..371e2af95d 100644 --- a/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp +++ b/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/DebugInfo/DWARFFormValueTest.cpp ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DWARFFormValueTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/DebugInfo/DWARF/DWARFFormValue.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/DebugInfo/PDB/CMakeLists.txt b/unittests/DebugInfo/PDB/CMakeLists.txt index d5b2b92eb6..91924a5a87 100644 --- a/unittests/DebugInfo/PDB/CMakeLists.txt +++ b/unittests/DebugInfo/PDB/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS DebugInfoPDB ) diff --git a/unittests/DebugInfo/PDB/PDBApiTest.cpp b/unittests/DebugInfo/PDB/PDBApiTest.cpp index 039f347eaa..ebd3d7bb6b 100644 --- a/unittests/DebugInfo/PDB/PDBApiTest.cpp +++ b/unittests/DebugInfo/PDB/PDBApiTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/DebugInfo/PDB/PDBApiTest.cpp -------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PDBApiTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include diff --git a/unittests/IR/AttributesTest.cpp b/unittests/IR/AttributesTest.cpp index b5385cfe3a..ebcb772bc3 100644 --- a/unittests/IR/AttributesTest.cpp +++ b/unittests/IR/AttributesTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/AttributesTest.cpp - Attributes unit tests --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AttributesTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Attributes.h" #include "llvm/IR/LLVMContext.h" diff --git a/unittests/IR/CMakeLists.txt b/unittests/IR/CMakeLists.txt index 5c40e0c3ba..0c2979632e 100644 --- a/unittests/IR/CMakeLists.txt +++ b/unittests/IR/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Analysis AsmParser diff --git a/unittests/IR/ConstantRangeTest.cpp b/unittests/IR/ConstantRangeTest.cpp index 0355249546..de4eec4abf 100644 --- a/unittests/IR/ConstantRangeTest.cpp +++ b/unittests/IR/ConstantRangeTest.cpp @@ -1,12 +1,11 @@ //===- ConstantRangeTest.cpp - ConstantRange tests ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantRangeTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/ConstantRange.h" #include "llvm/IR/Instructions.h" diff --git a/unittests/IR/ConstantsTest.cpp b/unittests/IR/ConstantsTest.cpp index b792046db0..2df008a78c 100644 --- a/unittests/IR/ConstantsTest.cpp +++ b/unittests/IR/ConstantsTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/ConstantsTest.cpp - Constants unit tests ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConstantsTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Constants.h" diff --git a/unittests/IR/DebugInfoTest.cpp b/unittests/IR/DebugInfoTest.cpp index 8efeddb221..f633782b37 100644 --- a/unittests/IR/DebugInfoTest.cpp +++ b/unittests/IR/DebugInfoTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/DebugInfo.cpp - DebugInfo tests -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DebugInfoTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DebugInfoMetadata.h" #include "gtest/gtest.h" diff --git a/unittests/IR/DominatorTreeTest.cpp b/unittests/IR/DominatorTreeTest.cpp index 9d5d9beb06..146ec576db 100644 --- a/unittests/IR/DominatorTreeTest.cpp +++ b/unittests/IR/DominatorTreeTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittests/IR/DominatorTreeTest.cpp - Constants unit tests -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DominatorTreeTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Dominators.h" #include "llvm/Analysis/PostDominators.h" diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp index 62c1c38908..093cbbfc77 100644 --- a/unittests/IR/IRBuilderTest.cpp +++ b/unittests/IR/IRBuilderTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/IRBuilderTest.cpp - IRBuilder tests ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IRBuilderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/IRBuilder.h" #include "llvm/IR/BasicBlock.h" diff --git a/unittests/IR/InstructionsTest.cpp b/unittests/IR/InstructionsTest.cpp index d2a17373e3..3ca3ad2b6e 100644 --- a/unittests/IR/InstructionsTest.cpp +++ b/unittests/IR/InstructionsTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/InstructionsTest.cpp - Instructions unit tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstructionsTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Instructions.h" #include "llvm/ADT/STLExtras.h" diff --git a/unittests/IR/LegacyPassManagerTest.cpp b/unittests/IR/LegacyPassManagerTest.cpp index 535ce2ce4c..66fd1ccd7f 100644 --- a/unittests/IR/LegacyPassManagerTest.cpp +++ b/unittests/IR/LegacyPassManagerTest.cpp @@ -1,16 +1,17 @@ //===- llvm/unittest/IR/LegacyPassManager.cpp - Legacy PassManager tests --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LegacyPassManagerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This unit test exercises the legacy pass manager infrastructure. We use the// -// old names as well to ensure that the source-level compatibility is preserved// -// where possible. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This unit test exercises the legacy pass manager infrastructure. We use the +// old names as well to ensure that the source-level compatibility is preserved +// where possible. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LegacyPassManager.h" #include "llvm/ADT/SmallVector.h" diff --git a/unittests/IR/MDBuilderTest.cpp b/unittests/IR/MDBuilderTest.cpp index db6c085516..ab2d34e89d 100644 --- a/unittests/IR/MDBuilderTest.cpp +++ b/unittests/IR/MDBuilderTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittests/MDBuilderTest.cpp - MDBuilder unit tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MDBuilderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/MDBuilder.h" #include "llvm/IR/IRBuilder.h" diff --git a/unittests/IR/MetadataTest.cpp b/unittests/IR/MetadataTest.cpp index 91587e90fc..b58615ce65 100644 --- a/unittests/IR/MetadataTest.cpp +++ b/unittests/IR/MetadataTest.cpp @@ -1,12 +1,11 @@ //===- unittests/IR/MetadataTest.cpp - Metadata unit tests ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MetadataTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/IR/Constants.h" diff --git a/unittests/IR/PassManagerTest.cpp b/unittests/IR/PassManagerTest.cpp index 0759d1e0be..41af0b0bd2 100644 --- a/unittests/IR/PassManagerTest.cpp +++ b/unittests/IR/PassManagerTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/PassManager.cpp - PassManager tests ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PassManagerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Function.h" diff --git a/unittests/IR/PatternMatch.cpp b/unittests/IR/PatternMatch.cpp index 265b0ed90a..f3a27b8d25 100644 --- a/unittests/IR/PatternMatch.cpp +++ b/unittests/IR/PatternMatch.cpp @@ -1,12 +1,11 @@ //===---- llvm/unittest/IR/PatternMatch.cpp - PatternMatch unit tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PatternMatch.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Analysis/ValueTracking.h" diff --git a/unittests/IR/TypeBuilderTest.cpp b/unittests/IR/TypeBuilderTest.cpp index 375281761b..b7b3e45e35 100644 --- a/unittests/IR/TypeBuilderTest.cpp +++ b/unittests/IR/TypeBuilderTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/TypeBuilderTest.cpp - TypeBuilder tests --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypeBuilderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/TypeBuilder.h" #include "llvm/ADT/ArrayRef.h" diff --git a/unittests/IR/TypesTest.cpp b/unittests/IR/TypesTest.cpp index 2958f8bc6b..2cee640a13 100644 --- a/unittests/IR/TypesTest.cpp +++ b/unittests/IR/TypesTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/TypesTest.cpp - Type unit tests -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TypesTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/LLVMContext.h" diff --git a/unittests/IR/UseTest.cpp b/unittests/IR/UseTest.cpp index 6e09efa7f2..d9d20af941 100644 --- a/unittests/IR/UseTest.cpp +++ b/unittests/IR/UseTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/UseTest.cpp - Use unit tests ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UseTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Function.h" diff --git a/unittests/IR/UserTest.cpp b/unittests/IR/UserTest.cpp index 8d9d9e493f..56b054b683 100644 --- a/unittests/IR/UserTest.cpp +++ b/unittests/IR/UserTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/UserTest.cpp - User unit tests --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UserTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Function.h" diff --git a/unittests/IR/ValueHandleTest.cpp b/unittests/IR/ValueHandleTest.cpp index d6f6c48047..e6eb7cbedc 100644 --- a/unittests/IR/ValueHandleTest.cpp +++ b/unittests/IR/ValueHandleTest.cpp @@ -1,12 +1,11 @@ //===- ValueHandleTest.cpp - ValueHandle tests ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueHandleTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/ValueHandle.h" #include "llvm/IR/Constants.h" diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp index f375eae2be..1431a8d87d 100644 --- a/unittests/IR/ValueMapTest.cpp +++ b/unittests/IR/ValueMapTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/ADT/ValueMapTest.cpp - ValueMap unit tests -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueMapTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/ValueMap.h" #include "llvm/Config/llvm-config.h" diff --git a/unittests/IR/ValueTest.cpp b/unittests/IR/ValueTest.cpp index 00ae3a34ca..32d66a1b47 100644 --- a/unittests/IR/ValueTest.cpp +++ b/unittests/IR/ValueTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/ValueTest.cpp - Value unit tests ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "llvm/IR/Function.h" diff --git a/unittests/IR/VerifierTest.cpp b/unittests/IR/VerifierTest.cpp index 9c9e51f8c5..71e3168b68 100644 --- a/unittests/IR/VerifierTest.cpp +++ b/unittests/IR/VerifierTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/IR/VerifierTest.cpp - Verifier unit tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// VerifierTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Verifier.h" #include "llvm/IR/Constants.h" diff --git a/unittests/IR/WaymarkTest.cpp b/unittests/IR/WaymarkTest.cpp index a313748e43..dc5cdb8136 100644 --- a/unittests/IR/WaymarkTest.cpp +++ b/unittests/IR/WaymarkTest.cpp @@ -1,14 +1,11 @@ //===- llvm/unittest/IR/WaymarkTest.cpp - getUser() unit tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// WaymarkTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// -// we perform white-box tests // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/Constants.h" #include "llvm/IR/Function.h" diff --git a/unittests/Linker/CMakeLists.txt b/unittests/Linker/CMakeLists.txt index 95d4d445cb..05f45c0a8c 100644 --- a/unittests/Linker/CMakeLists.txt +++ b/unittests/Linker/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS AsmParser core diff --git a/unittests/Linker/LinkModulesTest.cpp b/unittests/Linker/LinkModulesTest.cpp index a62d73cb92..45f1308d3b 100644 --- a/unittests/Linker/LinkModulesTest.cpp +++ b/unittests/Linker/LinkModulesTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Linker/LinkModulesTest.cpp - IRBuilder tests ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LinkModulesTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/AsmParser/Parser.h" #include "llvm/IR/BasicBlock.h" diff --git a/unittests/MC/CMakeLists.txt b/unittests/MC/CMakeLists.txt index deba93b221..f83eaf4779 100644 --- a/unittests/MC/CMakeLists.txt +++ b/unittests/MC/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} MC diff --git a/unittests/MC/Disassembler.cpp b/unittests/MC/Disassembler.cpp index a43826ad70..dd0f1ef9ac 100644 --- a/unittests/MC/Disassembler.cpp +++ b/unittests/MC/Disassembler.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Object/Disassembler.cpp ------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Disassembler.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm-c/Disassembler.h" #include "llvm/Support/TargetSelect.h" diff --git a/unittests/MC/StringTableBuilderTest.cpp b/unittests/MC/StringTableBuilderTest.cpp index 323730f79c..716b9c7ae8 100644 --- a/unittests/MC/StringTableBuilderTest.cpp +++ b/unittests/MC/StringTableBuilderTest.cpp @@ -1,12 +1,11 @@ //===----------- StringTableBuilderTest.cpp -------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringTableBuilderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/StringTableBuilder.h" #include "llvm/Support/Endian.h" diff --git a/unittests/MC/YAMLTest.cpp b/unittests/MC/YAMLTest.cpp index b635a16523..09709ad73f 100644 --- a/unittests/MC/YAMLTest.cpp +++ b/unittests/MC/YAMLTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Object/YAMLTest.cpp - Tests for Object YAML ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/MC/YAML.h" #include "llvm/Support/YAMLTraits.h" diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest index 3ee7314310..a39edc6756 100644 --- a/unittests/Makefile.unittest +++ b/unittests/Makefile.unittest @@ -1,7 +1,9 @@ ##===- unittests/Makefile.unittest -------------------------*- Makefile -*-===## # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## # diff --git a/unittests/Option/CMakeLists.txt b/unittests/Option/CMakeLists.txt index c35571d94d..07f7b91d5f 100644 --- a/unittests/Option/CMakeLists.txt +++ b/unittests/Option/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Option Support diff --git a/unittests/Option/OptionParsingTest.cpp b/unittests/Option/OptionParsingTest.cpp index d2bbf2641d..55cf8a95f3 100644 --- a/unittests/Option/OptionParsingTest.cpp +++ b/unittests/Option/OptionParsingTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/OptionParsingTest.cpp - OptTable tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptionParsingTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Option/Arg.h" diff --git a/unittests/Option/Opts.td b/unittests/Option/Opts.td index f65798234c..fc3818a12f 100644 --- a/unittests/Option/Opts.td +++ b/unittests/Option/Opts.td @@ -1,11 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////// -// // -// Opts.td // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// include "llvm/Option/OptParser.td" diff --git a/unittests/ProfileData/CMakeLists.txt b/unittests/ProfileData/CMakeLists.txt index feb0297f54..79137c9510 100644 --- a/unittests/ProfileData/CMakeLists.txt +++ b/unittests/ProfileData/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core ProfileData diff --git a/unittests/ProfileData/CoverageMappingTest.cpp b/unittests/ProfileData/CoverageMappingTest.cpp index c3d00c0560..a0995fbbc0 100644 --- a/unittests/ProfileData/CoverageMappingTest.cpp +++ b/unittests/ProfileData/CoverageMappingTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ProfileData/CoverageMappingTest.cpp -------------------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// CoverageMappingTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/CoverageMapping.h" #include "llvm/ProfileData/CoverageMappingReader.h" diff --git a/unittests/ProfileData/InstrProfTest.cpp b/unittests/ProfileData/InstrProfTest.cpp index 03d236c931..2cedd593eb 100644 --- a/unittests/ProfileData/InstrProfTest.cpp +++ b/unittests/ProfileData/InstrProfTest.cpp @@ -1,12 +1,11 @@ //===- unittest/ProfileData/InstrProfTest.cpp -------------------------------=// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrProfTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ProfileData/InstrProfReader.h" #include "llvm/ProfileData/InstrProfWriter.h" diff --git a/unittests/Support/AlignOfTest.cpp b/unittests/Support/AlignOfTest.cpp index 885b6d6c2e..e0859fc747 100644 --- a/unittests/Support/AlignOfTest.cpp +++ b/unittests/Support/AlignOfTest.cpp @@ -1,12 +1,11 @@ //=== - llvm/unittest/Support/AlignOfTest.cpp - Alignment utility tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AlignOfTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifdef _MSC_VER // Disable warnings about alignment-based structure padding. diff --git a/unittests/Support/AllocatorTest.cpp b/unittests/Support/AllocatorTest.cpp index c88fe05567..4b544641e9 100644 --- a/unittests/Support/AllocatorTest.cpp +++ b/unittests/Support/AllocatorTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/AllocatorTest.cpp - BumpPtrAllocator tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AllocatorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Allocator.h" #include "gtest/gtest.h" diff --git a/unittests/Support/ArrayRecyclerTest.cpp b/unittests/Support/ArrayRecyclerTest.cpp index e83855d0b1..1ff97ba9e2 100644 --- a/unittests/Support/ArrayRecyclerTest.cpp +++ b/unittests/Support/ArrayRecyclerTest.cpp @@ -1,12 +1,11 @@ //===--- unittest/Support/ArrayRecyclerTest.cpp ---------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ArrayRecyclerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ArrayRecycler.h" #include "llvm/Support/Allocator.h" diff --git a/unittests/Support/BlockFrequencyTest.cpp b/unittests/Support/BlockFrequencyTest.cpp index 0aad8f6e66..0eac8bb881 100644 --- a/unittests/Support/BlockFrequencyTest.cpp +++ b/unittests/Support/BlockFrequencyTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/BlockFrequencyTest.cpp - BlockFrequency tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// BlockFrequencyTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/BlockFrequency.h" #include "llvm/Support/BranchProbability.h" diff --git a/unittests/Support/BranchProbabilityTest.cpp b/unittests/Support/BranchProbabilityTest.cpp index 7aac810159..bbd4d4eba1 100644 --- a/unittests/Support/BranchProbabilityTest.cpp +++ b/unittests/Support/BranchProbabilityTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/BranchProbabilityTest.cpp - BranchProbability tests -=// -/////////////////////////////////////////////////////////////////////////////// -// // -// BranchProbabilityTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/BranchProbability.h" #include "llvm/Support/raw_ostream.h" diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt index 103e800e9c..564d189d49 100644 --- a/unittests/Support/CMakeLists.txt +++ b/unittests/Support/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Support diff --git a/unittests/Support/Casting.cpp b/unittests/Support/Casting.cpp index 5642415549..e6c35fc21e 100644 --- a/unittests/Support/Casting.cpp +++ b/unittests/Support/Casting.cpp @@ -1,12 +1,11 @@ //===---------- llvm/unittest/Support/Casting.cpp - Casting tests ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Casting.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Casting.h" #include "llvm/IR/User.h" diff --git a/unittests/Support/CommandLineTest.cpp b/unittests/Support/CommandLineTest.cpp index 3fe01b9dd3..e0fbf5b09e 100644 --- a/unittests/Support/CommandLineTest.cpp +++ b/unittests/Support/CommandLineTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/CommandLineTest.cpp - CommandLine tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CommandLineTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Config/config.h" diff --git a/unittests/Support/CompressionTest.cpp b/unittests/Support/CompressionTest.cpp index a0823f8140..36b84d85f2 100644 --- a/unittests/Support/CompressionTest.cpp +++ b/unittests/Support/CompressionTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/Support/CompressionTest.cpp - Compression tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CompressionTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements unit tests for the Compression functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements unit tests for the Compression functions. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Compression.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/Support/ConvertUTFTest.cpp b/unittests/Support/ConvertUTFTest.cpp index 7bef421e6e..d436fc0228 100644 --- a/unittests/Support/ConvertUTFTest.cpp +++ b/unittests/Support/ConvertUTFTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/ConvertUTFTest.cpp - ConvertUTF tests --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ConvertUTFTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/Format.h" diff --git a/unittests/Support/DataExtractorTest.cpp b/unittests/Support/DataExtractorTest.cpp index bcd5f76677..81de983d22 100644 --- a/unittests/Support/DataExtractorTest.cpp +++ b/unittests/Support/DataExtractorTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/DataExtractorTest.cpp - DataExtractor tests --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DataExtractorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/Support/DataExtractor.h" diff --git a/unittests/Support/DwarfTest.cpp b/unittests/Support/DwarfTest.cpp index 1e6194de5a..74fcc989b4 100644 --- a/unittests/Support/DwarfTest.cpp +++ b/unittests/Support/DwarfTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/DwarfTest.cpp - Dwarf support tests ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DwarfTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Dwarf.h" #include "gtest/gtest.h" diff --git a/unittests/Support/EndianStreamTest.cpp b/unittests/Support/EndianStreamTest.cpp index aed5f30b73..6a69be55f9 100644 --- a/unittests/Support/EndianStreamTest.cpp +++ b/unittests/Support/EndianStreamTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/EndianStreamTest.cpp - EndianStream.h tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EndianStreamTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/Support/EndianStream.h" diff --git a/unittests/Support/EndianTest.cpp b/unittests/Support/EndianTest.cpp index 3e87b0d9a5..8f93553063 100644 --- a/unittests/Support/EndianTest.cpp +++ b/unittests/Support/EndianTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/EndianTest.cpp - Endian.h tests ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// EndianTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Endian.h" #include "llvm/Support/DataTypes.h" diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp index f4b87a9816..73d0e3f2bb 100644 --- a/unittests/Support/ErrorOrTest.cpp +++ b/unittests/Support/ErrorOrTest.cpp @@ -1,12 +1,11 @@ //===- unittests/ErrorOrTest.cpp - ErrorOr.h tests ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ErrorOrTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ErrorOr.h" #include "llvm/Support/Errc.h" diff --git a/unittests/Support/FileOutputBufferTest.cpp b/unittests/Support/FileOutputBufferTest.cpp index 3ca777ae7d..c7e10066b4 100644 --- a/unittests/Support/FileOutputBufferTest.cpp +++ b/unittests/Support/FileOutputBufferTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/FileOutputBuffer.cpp - unit tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileOutputBufferTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Errc.h" #include "llvm/Support/ErrorHandling.h" diff --git a/unittests/Support/IteratorTest.cpp b/unittests/Support/IteratorTest.cpp index 597c4f4727..83848328c0 100644 --- a/unittests/Support/IteratorTest.cpp +++ b/unittests/Support/IteratorTest.cpp @@ -1,12 +1,11 @@ //===- IteratorTest.cpp - Unit tests for iterator utilities ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IteratorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/iterator.h" #include "llvm/ADT/STLExtras.h" diff --git a/unittests/Support/LEB128Test.cpp b/unittests/Support/LEB128Test.cpp index e8bfac9929..76b63e5a83 100644 --- a/unittests/Support/LEB128Test.cpp +++ b/unittests/Support/LEB128Test.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/LEB128Test.cpp - LEB128 function tests -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LEB128Test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/Support/DataTypes.h" diff --git a/unittests/Support/LineIteratorTest.cpp b/unittests/Support/LineIteratorTest.cpp index 3830ae3883..67f9d97773 100644 --- a/unittests/Support/LineIteratorTest.cpp +++ b/unittests/Support/LineIteratorTest.cpp @@ -1,12 +1,11 @@ //===- LineIterator.cpp - Unit tests --------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LineIteratorTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/LineIterator.h" #include "llvm/Support/MemoryBuffer.h" diff --git a/unittests/Support/LockFileManagerTest.cpp b/unittests/Support/LockFileManagerTest.cpp index 112e32d755..efe3c3088b 100644 --- a/unittests/Support/LockFileManagerTest.cpp +++ b/unittests/Support/LockFileManagerTest.cpp @@ -1,12 +1,11 @@ //===- unittests/LockFileManagerTest.cpp - LockFileManager tests ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LockFileManagerTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/LockFileManager.h" #include "llvm/Support/FileSystem.h" diff --git a/unittests/Support/MD5Test.cpp b/unittests/Support/MD5Test.cpp index 0ff809328a..c4fa5cd92c 100644 --- a/unittests/Support/MD5Test.cpp +++ b/unittests/Support/MD5Test.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/Support/MD5Test.cpp - MD5 tests ----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MD5Test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements unit tests for the MD5 functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements unit tests for the MD5 functions. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/Support/ManagedStatic.cpp b/unittests/Support/ManagedStatic.cpp index f69da2f745..0c5eb21fad 100644 --- a/unittests/Support/ManagedStatic.cpp +++ b/unittests/Support/ManagedStatic.cpp @@ -1,11 +1,11 @@ //===- llvm/unittest/Support/ManagedStatic.cpp - ManagedStatic tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ManagedStatic.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ManagedStatic.h" #include "llvm/Config/config.h" diff --git a/unittests/Support/MathExtrasTest.cpp b/unittests/Support/MathExtrasTest.cpp index f101190c48..5c95b500dd 100644 --- a/unittests/Support/MathExtrasTest.cpp +++ b/unittests/Support/MathExtrasTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/MathExtrasTest.cpp - math utils tests ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MathExtrasTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/Support/MathExtras.h" diff --git a/unittests/Support/MemoryBufferTest.cpp b/unittests/Support/MemoryBufferTest.cpp index e89b2b2e52..ffb809aa20 100644 --- a/unittests/Support/MemoryBufferTest.cpp +++ b/unittests/Support/MemoryBufferTest.cpp @@ -1,14 +1,15 @@ //===- llvm/unittest/Support/MemoryBufferTest.cpp - MemoryBuffer tests ----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryBufferTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements unit tests for the MemoryBuffer support class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements unit tests for the MemoryBuffer support class. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" diff --git a/unittests/Support/MemoryTest.cpp b/unittests/Support/MemoryTest.cpp index b02d785903..f439cb2af9 100644 --- a/unittests/Support/MemoryTest.cpp +++ b/unittests/Support/MemoryTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/AllocatorTest.cpp - BumpPtrAllocator tests ---===// -/////////////////////////////////////////////////////////////////////////////// -// // -// MemoryTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Memory.h" #include "llvm/Support/Process.h" diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index ce2b403cb2..210b3a04cb 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/Path.cpp - Path tests ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Path.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Path.h" #include "llvm/Support/Errc.h" diff --git a/unittests/Support/ProcessTest.cpp b/unittests/Support/ProcessTest.cpp index c02306fbbf..298a0a3732 100644 --- a/unittests/Support/ProcessTest.cpp +++ b/unittests/Support/ProcessTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/ProcessTest.cpp -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProcessTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Process.h" #include "gtest/gtest.h" diff --git a/unittests/Support/ProgramTest.cpp b/unittests/Support/ProgramTest.cpp index aae858b0e2..0feed47b59 100644 --- a/unittests/Support/ProgramTest.cpp +++ b/unittests/Support/ProgramTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/ProgramTest.cpp -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ProgramTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileSystem.h" diff --git a/unittests/Support/RegexTest.cpp b/unittests/Support/RegexTest.cpp index cfc50b54d0..c045c49bc3 100644 --- a/unittests/Support/RegexTest.cpp +++ b/unittests/Support/RegexTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/RegexTest.cpp - Regex tests --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegexTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Regex.h" #include "llvm/ADT/SmallVector.h" diff --git a/unittests/Support/ScaledNumberTest.cpp b/unittests/Support/ScaledNumberTest.cpp index eb964e3b05..2f38b2a40f 100644 --- a/unittests/Support/ScaledNumberTest.cpp +++ b/unittests/Support/ScaledNumberTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/ScaledNumberTest.cpp - ScaledPair tests -----==// -/////////////////////////////////////////////////////////////////////////////// -// // -// ScaledNumberTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ScaledNumber.h" #include "llvm/Support/DataTypes.h" diff --git a/unittests/Support/SourceMgrTest.cpp b/unittests/Support/SourceMgrTest.cpp index 2f1443fbb1..79c2d7278f 100644 --- a/unittests/Support/SourceMgrTest.cpp +++ b/unittests/Support/SourceMgrTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/SourceMgrTest.cpp - SourceMgr tests --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SourceMgrTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/SourceMgr.h" #include "llvm/Support/MemoryBuffer.h" diff --git a/unittests/Support/SpecialCaseListTest.cpp b/unittests/Support/SpecialCaseListTest.cpp index 4121b4aff8..0657f8003e 100644 --- a/unittests/Support/SpecialCaseListTest.cpp +++ b/unittests/Support/SpecialCaseListTest.cpp @@ -1,12 +1,11 @@ //===- SpecialCaseListTest.cpp - Unit tests for SpecialCaseList -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SpecialCaseListTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" diff --git a/unittests/Support/StreamingMemoryObject.cpp b/unittests/Support/StreamingMemoryObject.cpp index 94bc88f875..e86aa9cae5 100644 --- a/unittests/Support/StreamingMemoryObject.cpp +++ b/unittests/Support/StreamingMemoryObject.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/StreamingMemoryObject.cpp - unit tests -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StreamingMemoryObject.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/Support/StreamingMemoryObject.h" diff --git a/unittests/Support/StringPool.cpp b/unittests/Support/StringPool.cpp index 9f06b1a560..ac39fec059 100644 --- a/unittests/Support/StringPool.cpp +++ b/unittests/Support/StringPool.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/StringPoiil.cpp - StringPool tests -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// StringPool.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/StringPool.h" #include "gtest/gtest.h" diff --git a/unittests/Support/SwapByteOrderTest.cpp b/unittests/Support/SwapByteOrderTest.cpp index e59f84d5ff..4f2537c4d5 100644 --- a/unittests/Support/SwapByteOrderTest.cpp +++ b/unittests/Support/SwapByteOrderTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/SwapByteOrderTest.cpp - swap byte order test -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SwapByteOrderTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/Support/SwapByteOrder.h" diff --git a/unittests/Support/TargetRegistry.cpp b/unittests/Support/TargetRegistry.cpp index 2a3004c52a..ae89c8b649 100644 --- a/unittests/Support/TargetRegistry.cpp +++ b/unittests/Support/TargetRegistry.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/TargetRegistry.cpp - -----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TargetRegistry.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetSelect.h" diff --git a/unittests/Support/ThreadLocalTest.cpp b/unittests/Support/ThreadLocalTest.cpp index f227dc815b..e71c7dba22 100644 --- a/unittests/Support/ThreadLocalTest.cpp +++ b/unittests/Support/ThreadLocalTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/ThreadLocalTest.cpp - ThreadLocal tests ------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ThreadLocalTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/ThreadLocal.h" #include "gtest/gtest.h" diff --git a/unittests/Support/TimeValueTest.cpp b/unittests/Support/TimeValueTest.cpp index a603402bd0..3d2b9780c0 100644 --- a/unittests/Support/TimeValueTest.cpp +++ b/unittests/Support/TimeValueTest.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/TimeValueTest.cpp - Time Value tests ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TimeValueTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/Support/TimeValue.h" diff --git a/unittests/Support/UnicodeTest.cpp b/unittests/Support/UnicodeTest.cpp index 3488fb802d..0733397d45 100644 --- a/unittests/Support/UnicodeTest.cpp +++ b/unittests/Support/UnicodeTest.cpp @@ -1,12 +1,11 @@ //===- unittests/Support/UnicodeTest.cpp - Unicode.h tests ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// UnicodeTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/Unicode.h" #include "gtest/gtest.h" diff --git a/unittests/Support/YAMLIOTest.cpp b/unittests/Support/YAMLIOTest.cpp index da3dd8a67a..e7affa1698 100644 --- a/unittests/Support/YAMLIOTest.cpp +++ b/unittests/Support/YAMLIOTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/YAMLIOTest.cpp ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLIOTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/ADT/Twine.h" diff --git a/unittests/Support/YAMLParserTest.cpp b/unittests/Support/YAMLParserTest.cpp index 22d54cc388..69b354a91d 100644 --- a/unittests/Support/YAMLParserTest.cpp +++ b/unittests/Support/YAMLParserTest.cpp @@ -1,12 +1,11 @@ //===- unittest/Support/YAMLParserTest ------------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLParserTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/ADT/Twine.h" diff --git a/unittests/Support/formatted_raw_ostream_test.cpp b/unittests/Support/formatted_raw_ostream_test.cpp index 33892f6278..9bb8046913 100644 --- a/unittests/Support/formatted_raw_ostream_test.cpp +++ b/unittests/Support/formatted_raw_ostream_test.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/formatted_raw_ostream_test.cpp ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// formatted_raw_ostream_test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/FormattedStream.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/Support/raw_ostream_test.cpp b/unittests/Support/raw_ostream_test.cpp index 65d6b1339b..ff986025b2 100644 --- a/unittests/Support/raw_ostream_test.cpp +++ b/unittests/Support/raw_ostream_test.cpp @@ -1,12 +1,11 @@ //===- llvm/unittest/Support/raw_ostream_test.cpp - raw_ostream tests -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// raw_ostream_test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/Support/raw_pwrite_stream_test.cpp b/unittests/Support/raw_pwrite_stream_test.cpp index eb8954f321..a62f6bacb0 100644 --- a/unittests/Support/raw_pwrite_stream_test.cpp +++ b/unittests/Support/raw_pwrite_stream_test.cpp @@ -1,12 +1,11 @@ //===- raw_pwrite_stream_test.cpp - raw_pwrite_stream tests ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// raw_pwrite_stream_test.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "gtest/gtest.h" #include "llvm/ADT/SmallString.h" diff --git a/unittests/Transforms/CMakeLists.txt b/unittests/Transforms/CMakeLists.txt index 1fddd20a71..5d3b29c94d 100644 --- a/unittests/Transforms/CMakeLists.txt +++ b/unittests/Transforms/CMakeLists.txt @@ -1,4 +1,2 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_subdirectory(IPO) add_subdirectory(Utils) diff --git a/unittests/Transforms/IPO/CMakeLists.txt b/unittests/Transforms/IPO/CMakeLists.txt index ca7d2fe113..58b71b2bce 100644 --- a/unittests/Transforms/IPO/CMakeLists.txt +++ b/unittests/Transforms/IPO/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core Support diff --git a/unittests/Transforms/IPO/LowerBitSets.cpp b/unittests/Transforms/IPO/LowerBitSets.cpp index c77bf0f88f..49a42cd20d 100644 --- a/unittests/Transforms/IPO/LowerBitSets.cpp +++ b/unittests/Transforms/IPO/LowerBitSets.cpp @@ -1,12 +1,11 @@ //===- LowerBitSets.cpp - Unit tests for bitset lowering ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// LowerBitSets.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/IPO/LowerBitSets.h" #include "gtest/gtest.h" diff --git a/unittests/Transforms/Utils/ASanStackFrameLayoutTest.cpp b/unittests/Transforms/Utils/ASanStackFrameLayoutTest.cpp index 12f82788d4..ca242e65d2 100644 --- a/unittests/Transforms/Utils/ASanStackFrameLayoutTest.cpp +++ b/unittests/Transforms/Utils/ASanStackFrameLayoutTest.cpp @@ -1,11 +1,11 @@ //===- ASanStackFrameLayoutTest.cpp - Tests for ComputeASanStackFrameLayout===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ASanStackFrameLayoutTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/ASanStackFrameLayout.h" #include "llvm/ADT/ArrayRef.h" diff --git a/unittests/Transforms/Utils/CMakeLists.txt b/unittests/Transforms/Utils/CMakeLists.txt index fad825d773..517ff99ea4 100644 --- a/unittests/Transforms/Utils/CMakeLists.txt +++ b/unittests/Transforms/Utils/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Core Support diff --git a/unittests/Transforms/Utils/Cloning.cpp b/unittests/Transforms/Utils/Cloning.cpp index 8978f57554..e2671499e8 100644 --- a/unittests/Transforms/Utils/Cloning.cpp +++ b/unittests/Transforms/Utils/Cloning.cpp @@ -1,12 +1,11 @@ //===- Cloning.cpp - Unit tests for the Cloner ----------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Cloning.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/ADT/ArrayRef.h" diff --git a/unittests/Transforms/Utils/IntegerDivision.cpp b/unittests/Transforms/Utils/IntegerDivision.cpp index 01619d5e17..f7318a2e78 100644 --- a/unittests/Transforms/Utils/IntegerDivision.cpp +++ b/unittests/Transforms/Utils/IntegerDivision.cpp @@ -1,12 +1,11 @@ //===- IntegerDivision.cpp - Unit tests for the integer division code -----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntegerDivision.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/IntegerDivision.h" #include "llvm/IR/BasicBlock.h" diff --git a/unittests/Transforms/Utils/Local.cpp b/unittests/Transforms/Utils/Local.cpp index 13fe2994ab..f0c3ecfbb9 100644 --- a/unittests/Transforms/Utils/Local.cpp +++ b/unittests/Transforms/Utils/Local.cpp @@ -1,12 +1,11 @@ //===- Local.cpp - Unit tests for Local -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// Local.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/Transforms/Utils/Local.h" #include "llvm/IR/BasicBlock.h" diff --git a/unittests/Transforms/Utils/ValueMapperTest.cpp b/unittests/Transforms/Utils/ValueMapperTest.cpp index c43cd03113..137a2607c8 100644 --- a/unittests/Transforms/Utils/ValueMapperTest.cpp +++ b/unittests/Transforms/Utils/ValueMapperTest.cpp @@ -1,12 +1,11 @@ //===- ValueMapper.cpp - Unit tests for ValueMapper -----------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// ValueMapperTest.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Metadata.h" diff --git a/utils/DSAclean.py b/utils/DSAclean.py index 28b7af615b..6c43357019 100644 --- a/utils/DSAclean.py +++ b/utils/DSAclean.py @@ -1,6 +1,4 @@ #! /usr/bin/python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. #changelog: #10/13/2005b: replaced the # in tmp(.#*)* with alphanumeric and _, this will then remove diff --git a/utils/DSAextract.py b/utils/DSAextract.py index f63edbd262..89dece1f33 100644 --- a/utils/DSAextract.py +++ b/utils/DSAextract.py @@ -1,6 +1,4 @@ #! /usr/bin/python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. #this is a script to extract given named nodes from a dot file, with #the associated edges. An edge is kept iff for edge x -> y diff --git a/utils/FileCheck/CMakeLists.txt b/utils/FileCheck/CMakeLists.txt index 002ad43a9e..8c78ff154d 100644 --- a/utils/FileCheck/CMakeLists.txt +++ b/utils/FileCheck/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_utility(FileCheck FileCheck.cpp ) diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index 07b778fb5d..e428e2f8f9 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -1,19 +1,20 @@ //===- FileCheck.cpp - Check that File's Contents match what is expected --===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FileCheck.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// FileCheck does a line-by line check of a file that validates whether it // -// contains the expected content. This is useful for regression tests etc. // -// // -// This program exits with an error status of 2 on error, exit status of 0 if// -// the file matched the expected contents, and exit status of 1 if it did not// -// contain the expected contents. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// FileCheck does a line-by line check of a file that validates whether it +// contains the expected content. This is useful for regression tests etc. +// +// This program exits with an error status of 2 on error, exit status of 0 if +// the file matched the expected contents, and exit status of 1 if it did not +// contain the expected contents. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" diff --git a/utils/KillTheDoctor/CMakeLists.txt b/utils/KillTheDoctor/CMakeLists.txt index ea25cc88e6..37c2b7ceb4 100644 --- a/utils/KillTheDoctor/CMakeLists.txt +++ b/utils/KillTheDoctor/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_utility(KillTheDoctor KillTheDoctor.cpp ) diff --git a/utils/KillTheDoctor/KillTheDoctor.cpp b/utils/KillTheDoctor/KillTheDoctor.cpp index 9b2df551df..fae3b1a8b9 100644 --- a/utils/KillTheDoctor/KillTheDoctor.cpp +++ b/utils/KillTheDoctor/KillTheDoctor.cpp @@ -1,33 +1,34 @@ //===- KillTheDoctor - Prevent Dr. Watson from stopping tests ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// KillTheDoctor.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program provides an extremely hacky way to stop Dr. Watson from starting// -// due to unhandled exceptions in child processes. // -// // -// This simply starts the program named in the first positional argument with// -// the arguments following it under a debugger. All this debugger does is catch// -// any unhandled exceptions thrown in the child process and close the program// -// (and hopefully tells someone about it). // -// // -// This also provides another really hacky method to prevent assert dialog boxes// -// from popping up. When --no-user32 is passed, if any process loads user32.dll,// -// we assume it is trying to call MessageBoxEx and terminate it. The proper way// -// to do this would be to actually set a break point, but there's quite a bit// -// of code involved to get the address of MessageBoxEx in the remote process's// -// address space due to Address space layout randomization (ASLR). This can be// -// added if it's ever actually needed. // -// // -// If the subprocess exits for any reason other than successful termination, -1// -// is returned. If the process exits normally the value it returned is returned.// -// // -// I hate Windows. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program provides an extremely hacky way to stop Dr. Watson from starting +// due to unhandled exceptions in child processes. +// +// This simply starts the program named in the first positional argument with +// the arguments following it under a debugger. All this debugger does is catch +// any unhandled exceptions thrown in the child process and close the program +// (and hopefully tells someone about it). +// +// This also provides another really hacky method to prevent assert dialog boxes +// from popping up. When --no-user32 is passed, if any process loads user32.dll, +// we assume it is trying to call MessageBoxEx and terminate it. The proper way +// to do this would be to actually set a break point, but there's quite a bit +// of code involved to get the address of MessageBoxEx in the remote process's +// address space due to Address space layout randomization (ASLR). This can be +// added if it's ever actually needed. +// +// If the subprocess exits for any reason other than successful termination, -1 +// is returned. If the process exits normally the value it returned is returned. +// +// I hate Windows. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallString.h" diff --git a/utils/LLVMBuild.txt b/utils/LLVMBuild.txt index e0093a77fa..7b7777d7b6 100644 --- a/utils/LLVMBuild.txt +++ b/utils/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./utils/LLVMBuild.txt ------------------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/utils/PerfectShuffle/CMakeLists.txt b/utils/PerfectShuffle/CMakeLists.txt index 594ec95e66..ed70760a43 100644 --- a/utils/PerfectShuffle/CMakeLists.txt +++ b/utils/PerfectShuffle/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_utility(llvm-PerfectShuffle PerfectShuffle.cpp ) diff --git a/utils/PerfectShuffle/PerfectShuffle.cpp b/utils/PerfectShuffle/PerfectShuffle.cpp index 1f189d8d95..f80d885631 100644 --- a/utils/PerfectShuffle/PerfectShuffle.cpp +++ b/utils/PerfectShuffle/PerfectShuffle.cpp @@ -1,17 +1,18 @@ //===-- PerfectShuffle.cpp - Perfect Shuffle Generator --------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PerfectShuffle.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file computes an optimal sequence of instructions for doing all shuffles// -// of two 4-element vectors. With a release build and when configured to emit// -// an altivec instruction table, this takes about 30s to run on a 2.7Ghz // -// PowerPC G5. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file computes an optimal sequence of instructions for doing all shuffles +// of two 4-element vectors. With a release build and when configured to emit +// an altivec instruction table, this takes about 30s to run on a 2.7Ghz +// PowerPC G5. +// +//===----------------------------------------------------------------------===// #include #include diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index d47e642d6f..0d7c5ffbea 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -1,99 +1,100 @@ //===- AsmMatcherEmitter.cpp - Generate an assembly matcher ---------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmMatcherEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits a target specifier matcher for converting parsed// -// assembly operands in the MCInst structures. It also emits a matcher for // -// custom operand parsing. // -// // -// Converting assembly operands into MCInst structures // -// --------------------------------------------------- // -// // -// The input to the target specific matcher is a list of literal tokens and // -// operands. The target specific parser should generally eliminate any syntax// -// which is not relevant for matching; for example, comma tokens should have // -// already been consumed and eliminated by the parser. Most instructions will// -// end up with a single literal token (the instruction name) and some number of// -// operands. // -// // -// Some example inputs, for X86: // -// 'addl' (immediate ...) (register ...) // -// 'add' (immediate ...) (memory ...) // -// 'call' '*' %epc // -// // -// The assembly matcher is responsible for converting this input into a precise// -// machine instruction (i.e., an instruction with a well defined encoding). This// -// mapping has several properties which complicate matching: // -// // -// - It may be ambiguous; many architectures can legally encode particular // -// variants of an instruction in different ways (for example, using a smaller// -// encoding for small immediates). Such ambiguities should never be // -// arbitrarily resolved by the assembler, the assembler is always responsible// -// for choosing the "best" available instruction. // -// // -// - It may depend on the subtarget or the assembler context. Instructions // -// which are invalid for the current mode, but otherwise unambiguous (e.g.,// -// an SSE instruction in a file being assembled for i486) should be accepted// -// and rejected by the assembler front end. However, if the proper encoding// -// for an instruction is dependent on the assembler context then the matcher// -// is responsible for selecting the correct machine instruction for the // -// current mode. // -// // -// The core matching algorithm attempts to exploit the regularity in most // -// instruction sets to quickly determine the set of possibly matching // -// instructions, and the simplify the generated code. Additionally, this helps// -// to ensure that the ambiguities are intentionally resolved by the user. // -// // -// The matching is divided into two distinct phases: // -// // -// 1. Classification: Each operand is mapped to the unique set which (a) // -// contains it, and (b) is the largest such subset for which a single // -// instruction could match all members. // -// // -// For register classes, we can generate these subgroups automatically. For// -// arbitrary operands, we expect the user to define the classes and their// -// relations to one another (for example, 8-bit signed immediates as a // -// subset of 32-bit immediates). // -// // -// By partitioning the operands in this way, we guarantee that for any // -// tuple of classes, any single instruction must match either all or none// -// of the sets of operands which could classify to that tuple. // -// // -// In addition, the subset relation amongst classes induces a partial order// -// on such tuples, which we use to resolve ambiguities. // -// // -// 2. The input can now be treated as a tuple of classes (static tokens are// -// simple singleton sets). Each such tuple should generally map to a single// -// instruction (we currently ignore cases where this isn't true, whee!!!),// -// which we can emit a simple matcher for. // -// // -// Custom Operand Parsing // -// ---------------------- // -// // -// Some targets need a custom way to parse operands, some specific instructions// -// can contain arguments that can represent processor flags and other kinds of// -// identifiers that need to be mapped to specific values in the final encoded// -// instructions. The target specific custom operand parsing works in the // -// following way: // -// // -// 1. A operand match table is built, each entry contains a mnemonic, an // -// operand class, a mask for all operand positions for that same // -// class/mnemonic and target features to be checked while trying to match.// -// // -// 2. The operand matcher will try every possible entry with the same // -// mnemonic and will check if the target feature for this mnemonic also // -// matches. After that, if the operand to be matched has its index // -// present in the mask, a successful match occurs. Otherwise, fallback // -// to the regular operand parsing. // -// // -// 3. For a match success, each operand class that has a 'ParserMethod' // -// becomes part of a switch from where the custom method is called. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits a target specifier matcher for converting parsed +// assembly operands in the MCInst structures. It also emits a matcher for +// custom operand parsing. +// +// Converting assembly operands into MCInst structures +// --------------------------------------------------- +// +// The input to the target specific matcher is a list of literal tokens and +// operands. The target specific parser should generally eliminate any syntax +// which is not relevant for matching; for example, comma tokens should have +// already been consumed and eliminated by the parser. Most instructions will +// end up with a single literal token (the instruction name) and some number of +// operands. +// +// Some example inputs, for X86: +// 'addl' (immediate ...) (register ...) +// 'add' (immediate ...) (memory ...) +// 'call' '*' %epc +// +// The assembly matcher is responsible for converting this input into a precise +// machine instruction (i.e., an instruction with a well defined encoding). This +// mapping has several properties which complicate matching: +// +// - It may be ambiguous; many architectures can legally encode particular +// variants of an instruction in different ways (for example, using a smaller +// encoding for small immediates). Such ambiguities should never be +// arbitrarily resolved by the assembler, the assembler is always responsible +// for choosing the "best" available instruction. +// +// - It may depend on the subtarget or the assembler context. Instructions +// which are invalid for the current mode, but otherwise unambiguous (e.g., +// an SSE instruction in a file being assembled for i486) should be accepted +// and rejected by the assembler front end. However, if the proper encoding +// for an instruction is dependent on the assembler context then the matcher +// is responsible for selecting the correct machine instruction for the +// current mode. +// +// The core matching algorithm attempts to exploit the regularity in most +// instruction sets to quickly determine the set of possibly matching +// instructions, and the simplify the generated code. Additionally, this helps +// to ensure that the ambiguities are intentionally resolved by the user. +// +// The matching is divided into two distinct phases: +// +// 1. Classification: Each operand is mapped to the unique set which (a) +// contains it, and (b) is the largest such subset for which a single +// instruction could match all members. +// +// For register classes, we can generate these subgroups automatically. For +// arbitrary operands, we expect the user to define the classes and their +// relations to one another (for example, 8-bit signed immediates as a +// subset of 32-bit immediates). +// +// By partitioning the operands in this way, we guarantee that for any +// tuple of classes, any single instruction must match either all or none +// of the sets of operands which could classify to that tuple. +// +// In addition, the subset relation amongst classes induces a partial order +// on such tuples, which we use to resolve ambiguities. +// +// 2. The input can now be treated as a tuple of classes (static tokens are +// simple singleton sets). Each such tuple should generally map to a single +// instruction (we currently ignore cases where this isn't true, whee!!!), +// which we can emit a simple matcher for. +// +// Custom Operand Parsing +// ---------------------- +// +// Some targets need a custom way to parse operands, some specific instructions +// can contain arguments that can represent processor flags and other kinds of +// identifiers that need to be mapped to specific values in the final encoded +// instructions. The target specific custom operand parsing works in the +// following way: +// +// 1. A operand match table is built, each entry contains a mnemonic, an +// operand class, a mask for all operand positions for that same +// class/mnemonic and target features to be checked while trying to match. +// +// 2. The operand matcher will try every possible entry with the same +// mnemonic and will check if the target feature for this mnemonic also +// matches. After that, if the operand to be matched has its index +// present in the mask, a successful match occurs. Otherwise, fallback +// to the regular operand parsing. +// +// 3. For a match success, each operand class that has a 'ParserMethod' +// becomes part of a switch from where the custom method is called. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "llvm/ADT/PointerUnion.h" diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index df5696c993..8163f681d8 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -1,15 +1,16 @@ //===- AsmWriterEmitter.cpp - Generate an assembly writer -----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmWriterEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend is emits an assembly printer for the current target.// -// Note that this is currently fairly skeletal, but will grow over time. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend is emits an assembly printer for the current target. +// Note that this is currently fairly skeletal, but will grow over time. +// +//===----------------------------------------------------------------------===// #include "AsmWriterInst.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/AsmWriterInst.cpp b/utils/TableGen/AsmWriterInst.cpp index 84fac1c639..9541887540 100644 --- a/utils/TableGen/AsmWriterInst.cpp +++ b/utils/TableGen/AsmWriterInst.cpp @@ -1,14 +1,15 @@ //===- AsmWriterInst.h - Classes encapsulating a printable inst -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmWriterInst.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes implement a parser for assembly strings. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes implement a parser for assembly strings. +// +//===----------------------------------------------------------------------===// #include "AsmWriterInst.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/AsmWriterInst.h b/utils/TableGen/AsmWriterInst.h index 68243c24fb..a597e6ba1a 100644 --- a/utils/TableGen/AsmWriterInst.h +++ b/utils/TableGen/AsmWriterInst.h @@ -1,17 +1,18 @@ //===- AsmWriterInst.h - Classes encapsulating a printable inst -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// AsmWriterInst.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// These classes implement a parser for assembly strings. The parser splits // -// the string into operands, which can be literal strings (the constant bits of// -// the string), actual operands (i.e., operands from the MachineInstr), and // -// dynamically-generated text, specified by raw C++ code. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// These classes implement a parser for assembly strings. The parser splits +// the string into operands, which can be literal strings (the constant bits of +// the string), actual operands (i.e., operands from the MachineInstr), and +// dynamically-generated text, specified by raw C++ code. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_ASMWRITERINST_H #define LLVM_UTILS_TABLEGEN_ASMWRITERINST_H diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt index 79e8010406..6b9168c000 100644 --- a/utils/TableGen/CMakeLists.txt +++ b/utils/TableGen/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. set(LLVM_LINK_COMPONENTS Support MSSupport) set (HLSL_IGNORE_SOURCES diff --git a/utils/TableGen/CTagsEmitter.cpp b/utils/TableGen/CTagsEmitter.cpp index e3fee427f6..35f4ad6dd5 100644 --- a/utils/TableGen/CTagsEmitter.cpp +++ b/utils/TableGen/CTagsEmitter.cpp @@ -1,16 +1,17 @@ //===- CTagsEmitter.cpp - Generate ctags-compatible index ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CTagsEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits an index of definitions in ctags(1) format. // -// A helper script, utils/TableGen/tdtags, provides an easier-to-use // -// interface; run 'tdtags -H' for documentation. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits an index of definitions in ctags(1) format. +// A helper script, utils/TableGen/tdtags, provides an easier-to-use +// interface; run 'tdtags -H' for documentation. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/SourceMgr.h" #include "llvm/Support/MemoryBuffer.h" diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp index 88e0daf013..c7519b3e15 100644 --- a/utils/TableGen/CallingConvEmitter.cpp +++ b/utils/TableGen/CallingConvEmitter.cpp @@ -1,15 +1,16 @@ //===- CallingConvEmitter.cpp - Generate calling conventions --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CallingConvEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend is responsible for emitting descriptions of the calling// -// conventions supported by this target. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend is responsible for emitting descriptions of the calling +// conventions supported by this target. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "llvm/TableGen/Error.h" diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index d4cd14bd10..46fcdf5e96 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -1,16 +1,17 @@ //===- CodeEmitterGen.cpp - Code Emitter Generator ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeEmitterGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// CodeEmitterGen uses the descriptions of instructions and their fields to // -// construct an automated code emitter: a function that, given a MachineInstr,// -// returns the (currently, 32-bit unsigned) value of the instruction. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// CodeEmitterGen uses the descriptions of instructions and their fields to +// construct an automated code emitter: a function that, given a MachineInstr, +// returns the (currently, 32-bit unsigned) value of the instruction. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "llvm/ADT/StringExtras.h" diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 510a7fb107..ae1cc0cfb5 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1,15 +1,16 @@ //===- CodeGenDAGPatterns.cpp - Read DAG patterns from .td file -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenDAGPatterns.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CodeGenDAGPatterns class, which is used to read and// -// represent the patterns present in a .td file for instructions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CodeGenDAGPatterns class, which is used to read and +// represent the patterns present in a .td file for instructions. +// +//===----------------------------------------------------------------------===// #include "CodeGenDAGPatterns.h" #include "llvm/ADT/STLExtras.h" diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index f0d05abce1..9ce3cdfd7b 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -1,15 +1,16 @@ //===- CodeGenDAGPatterns.h - Read DAG patterns from .td file ---*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenDAGPatterns.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file declares the CodeGenDAGPatterns class, which is used to read and// -// represent the patterns present in a .td file for instructions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the CodeGenDAGPatterns class, which is used to read and +// represent the patterns present in a .td file for instructions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_CODEGENDAGPATTERNS_H #define LLVM_UTILS_TABLEGEN_CODEGENDAGPATTERNS_H diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp index 5512ed6519..e83d5033b1 100644 --- a/utils/TableGen/CodeGenInstruction.cpp +++ b/utils/TableGen/CodeGenInstruction.cpp @@ -1,14 +1,15 @@ //===- CodeGenInstruction.cpp - CodeGen Instruction Class Wrapper ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenInstruction.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the CodeGenInstruction class. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the CodeGenInstruction class. +// +//===----------------------------------------------------------------------===// #include "CodeGenInstruction.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/CodeGenInstruction.h b/utils/TableGen/CodeGenInstruction.h index cb63814641..8f01abd540 100644 --- a/utils/TableGen/CodeGenInstruction.h +++ b/utils/TableGen/CodeGenInstruction.h @@ -1,14 +1,15 @@ //===- CodeGenInstruction.h - Instruction Class Wrapper ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenInstruction.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a wrapper class for the 'Instruction' TableGen class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a wrapper class for the 'Instruction' TableGen class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_CODEGENINSTRUCTION_H #define LLVM_UTILS_TABLEGEN_CODEGENINSTRUCTION_H diff --git a/utils/TableGen/CodeGenIntrinsics.h b/utils/TableGen/CodeGenIntrinsics.h index 4823cf5cf5..f4055571b1 100644 --- a/utils/TableGen/CodeGenIntrinsics.h +++ b/utils/TableGen/CodeGenIntrinsics.h @@ -1,14 +1,15 @@ //===- CodeGenIntrinsic.h - Intrinsic Class Wrapper ------------*- C++ -*--===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenIntrinsics.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines a wrapper class for the 'Intrinsic' TableGen class. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines a wrapper class for the 'Intrinsic' TableGen class. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H #define LLVM_UTILS_TABLEGEN_CODEGENINTRINSICS_H diff --git a/utils/TableGen/CodeGenMapTable.cpp b/utils/TableGen/CodeGenMapTable.cpp index ab3535829d..48df4391fe 100644 --- a/utils/TableGen/CodeGenMapTable.cpp +++ b/utils/TableGen/CodeGenMapTable.cpp @@ -1,80 +1,80 @@ //===- CodeGenMapTable.cpp - Instruction Mapping Table Generator ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenMapTable.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// CodeGenMapTable provides functionality for the TabelGen to create // -// relation mapping between instructions. Relation models are defined using // -// InstrMapping as a base class. This file implements the functionality which// -// parses these definitions and generates relation maps using the information// -// specified there. These maps are emitted as tables in the XXXGenInstrInfo.inc// -// file along with the functions to query them. // -// // -// A relationship model to relate non-predicate instructions with their // -// predicated true/false forms can be defined as follows: // -// // -// def getPredOpcode : InstrMapping { // -// let FilterClass = "PredRel"; // -// let RowFields = ["BaseOpcode"]; // -// let ColFields = ["PredSense"]; // -// let KeyCol = ["none"]; // -// let ValueCols = [["true"], ["false"]]; } // -// // -// CodeGenMapTable parses this map and generates a table in XXXGenInstrInfo.inc// -// file that contains the instructions modeling this relationship. This table// -// is defined in the function // -// "int getPredOpcode(uint16_t Opcode, enum PredSense inPredSense)" // -// that can be used to retrieve the predicated form of the instruction by // -// passing its opcode value and the predicate sense (true/false) of the desired// -// instruction as arguments. // -// // -// Short description of the algorithm: // -// // -// 1) Iterate through all the records that derive from "InstrMapping" class. // -// 2) For each record, filter out instructions based on the FilterClass value.// -// 3) Iterate through this set of instructions and insert them into // -// RowInstrMap map based on their RowFields values. RowInstrMap is keyed by the// -// vector of RowFields values and contains vectors of Records (instructions) as// -// values. RowFields is a list of fields that are required to have the same // -// values for all the instructions appearing in the same row of the relation // -// table. All the instructions in a given row of the relation table have some// -// sort of relationship with the key instruction defined by the corresponding// -// relationship model. // -// // -// Ex: RowInstrMap(RowVal1, RowVal2, ...) -> [Instr1, Instr2, Instr3, ... ] // -// Here Instr1, Instr2, Instr3 have same values (RowVal1, RowVal2) for // -// RowFields. These groups of instructions are later matched against ValueCols// -// to determine the column they belong to, if any. // -// // -// While building the RowInstrMap map, collect all the key instructions in // -// KeyInstrVec. These are the instructions having the same values as KeyCol // -// for all the fields listed in ColFields. // -// // -// For Example: // -// // -// Relate non-predicate instructions with their predicated true/false forms. // -// // -// def getPredOpcode : InstrMapping { // -// let FilterClass = "PredRel"; // -// let RowFields = ["BaseOpcode"]; // -// let ColFields = ["PredSense"]; // -// let KeyCol = ["none"]; // -// let ValueCols = [["true"], ["false"]]; } // -// // -// Here, only instructions that have "none" as PredSense will be selected as key// -// instructions. // -// // -// 4) For each key instruction, get the group of instructions that share the // -// same key-value as the key instruction from RowInstrMap. Iterate over the list// -// of columns in ValueCols (it is defined as a list >. Therefore,// -// it can specify multi-column relationships). For each column, find the // -// instruction from the group that matches all the values for the column. // -// Multiple matches are not allowed. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// CodeGenMapTable provides functionality for the TabelGen to create +// relation mapping between instructions. Relation models are defined using +// InstrMapping as a base class. This file implements the functionality which +// parses these definitions and generates relation maps using the information +// specified there. These maps are emitted as tables in the XXXGenInstrInfo.inc +// file along with the functions to query them. +// +// A relationship model to relate non-predicate instructions with their +// predicated true/false forms can be defined as follows: +// +// def getPredOpcode : InstrMapping { +// let FilterClass = "PredRel"; +// let RowFields = ["BaseOpcode"]; +// let ColFields = ["PredSense"]; +// let KeyCol = ["none"]; +// let ValueCols = [["true"], ["false"]]; } +// +// CodeGenMapTable parses this map and generates a table in XXXGenInstrInfo.inc +// file that contains the instructions modeling this relationship. This table +// is defined in the function +// "int getPredOpcode(uint16_t Opcode, enum PredSense inPredSense)" +// that can be used to retrieve the predicated form of the instruction by +// passing its opcode value and the predicate sense (true/false) of the desired +// instruction as arguments. +// +// Short description of the algorithm: +// +// 1) Iterate through all the records that derive from "InstrMapping" class. +// 2) For each record, filter out instructions based on the FilterClass value. +// 3) Iterate through this set of instructions and insert them into +// RowInstrMap map based on their RowFields values. RowInstrMap is keyed by the +// vector of RowFields values and contains vectors of Records (instructions) as +// values. RowFields is a list of fields that are required to have the same +// values for all the instructions appearing in the same row of the relation +// table. All the instructions in a given row of the relation table have some +// sort of relationship with the key instruction defined by the corresponding +// relationship model. +// +// Ex: RowInstrMap(RowVal1, RowVal2, ...) -> [Instr1, Instr2, Instr3, ... ] +// Here Instr1, Instr2, Instr3 have same values (RowVal1, RowVal2) for +// RowFields. These groups of instructions are later matched against ValueCols +// to determine the column they belong to, if any. +// +// While building the RowInstrMap map, collect all the key instructions in +// KeyInstrVec. These are the instructions having the same values as KeyCol +// for all the fields listed in ColFields. +// +// For Example: +// +// Relate non-predicate instructions with their predicated true/false forms. +// +// def getPredOpcode : InstrMapping { +// let FilterClass = "PredRel"; +// let RowFields = ["BaseOpcode"]; +// let ColFields = ["PredSense"]; +// let KeyCol = ["none"]; +// let ValueCols = [["true"], ["false"]]; } +// +// Here, only instructions that have "none" as PredSense will be selected as key +// instructions. +// +// 4) For each key instruction, get the group of instructions that share the +// same key-value as the key instruction from RowInstrMap. Iterate over the list +// of columns in ValueCols (it is defined as a list >. Therefore, +// it can specify multi-column relationships). For each column, find the +// instruction from the group that matches all the values for the column. +// Multiple matches are not allowed. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "llvm/Support/Format.h" diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp index 9d9c94c63c..02cbeeef80 100644 --- a/utils/TableGen/CodeGenRegisters.cpp +++ b/utils/TableGen/CodeGenRegisters.cpp @@ -1,15 +1,16 @@ //===- CodeGenRegisters.cpp - Register and RegisterClass Info -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenRegisters.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines structures to encapsulate information gleaned from the // -// target register and register class definitions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines structures to encapsulate information gleaned from the +// target register and register class definitions. +// +//===----------------------------------------------------------------------===// #include "CodeGenRegisters.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h index 8ea0f82a5d..dc44143653 100644 --- a/utils/TableGen/CodeGenRegisters.h +++ b/utils/TableGen/CodeGenRegisters.h @@ -1,15 +1,16 @@ //===- CodeGenRegisters.h - Register and RegisterClass Info -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenRegisters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines structures to encapsulate information gleaned from the // -// target register and register class definitions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines structures to encapsulate information gleaned from the +// target register and register class definitions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H #define LLVM_UTILS_TABLEGEN_CODEGENREGISTERS_H diff --git a/utils/TableGen/CodeGenSchedule.cpp b/utils/TableGen/CodeGenSchedule.cpp index 2a4d7d2125..bc27481869 100644 --- a/utils/TableGen/CodeGenSchedule.cpp +++ b/utils/TableGen/CodeGenSchedule.cpp @@ -1,15 +1,16 @@ //===- CodeGenSchedule.cpp - Scheduling MachineModels ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenSchedule.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines structures to encapsulate the machine model as described in// -// the target description. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines structures to encapsulate the machine model as described in +// the target description. +// +//===----------------------------------------------------------------------===// #include "CodeGenSchedule.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/CodeGenSchedule.h b/utils/TableGen/CodeGenSchedule.h index 508708f916..e5241b9d5f 100644 --- a/utils/TableGen/CodeGenSchedule.h +++ b/utils/TableGen/CodeGenSchedule.h @@ -1,15 +1,16 @@ //===- CodeGenSchedule.h - Scheduling Machine Models ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenSchedule.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines structures to encapsulate the machine model as described in// -// the target description. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines structures to encapsulate the machine model as described in +// the target description. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_CODEGENSCHEDULE_H #define LLVM_UTILS_TABLEGEN_CODEGENSCHEDULE_H diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 594a57a2d5..661975ecb2 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -1,17 +1,18 @@ //===- CodeGenTarget.cpp - CodeGen Target Class Wrapper -------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenTarget.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class wraps target description classes used by the various code // -// generation TableGen backends. This makes it easier to access the data and// -// provides a single place that needs to check it for validity. All of these// -// classes abort on error conditions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class wraps target description classes used by the various code +// generation TableGen backends. This makes it easier to access the data and +// provides a single place that needs to check it for validity. All of these +// classes abort on error conditions. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "CodeGenIntrinsics.h" diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index b1bdd22b08..24b3851426 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -1,17 +1,18 @@ //===- CodeGenTarget.h - Target Class Wrapper -------------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// CodeGenTarget.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file defines wrappers for the Target class and related global // -// functionality. This makes it easier to access the data and provides a single// -// place that needs to check it for validity. All of these classes abort // -// on error conditions. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines wrappers for the Target class and related global +// functionality. This makes it easier to access the data and provides a single +// place that needs to check it for validity. All of these classes abort +// on error conditions. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_CODEGENTARGET_H #define LLVM_UTILS_TABLEGEN_CODEGENTARGET_H diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 3e7490fcff..0fe3bbd8d7 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1,14 +1,15 @@ //===- DAGISelEmitter.cpp - Generate an instruction selector --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGISelEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits a DAG instruction selector. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits a DAG instruction selector. +// +//===----------------------------------------------------------------------===// #include "CodeGenDAGPatterns.h" #include "DAGISelMatcher.h" diff --git a/utils/TableGen/DAGISelMatcher.cpp b/utils/TableGen/DAGISelMatcher.cpp index 1e46c519c2..9c4079906a 100644 --- a/utils/TableGen/DAGISelMatcher.cpp +++ b/utils/TableGen/DAGISelMatcher.cpp @@ -1,12 +1,11 @@ //===- DAGISelMatcher.cpp - Representation of DAG pattern matcher ---------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGISelMatcher.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DAGISelMatcher.h" #include "CodeGenDAGPatterns.h" diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h index 6d8dbfcc85..a8a6ba5c32 100644 --- a/utils/TableGen/DAGISelMatcher.h +++ b/utils/TableGen/DAGISelMatcher.h @@ -1,12 +1,11 @@ //===- DAGISelMatcher.h - Representation of DAG pattern matcher -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGISelMatcher.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_DAGISELMATCHER_H #define LLVM_UTILS_TABLEGEN_DAGISELMATCHER_H diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index 61e92a7cf0..4659dc1573 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -1,14 +1,15 @@ //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGISelMatcherEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains code to generate C++ code for a matcher. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains code to generate C++ code for a matcher. +// +//===----------------------------------------------------------------------===// #include "DAGISelMatcher.h" #include "CodeGenDAGPatterns.h" diff --git a/utils/TableGen/DAGISelMatcherGen.cpp b/utils/TableGen/DAGISelMatcherGen.cpp index 3e3005f0a9..9663b71d66 100644 --- a/utils/TableGen/DAGISelMatcherGen.cpp +++ b/utils/TableGen/DAGISelMatcherGen.cpp @@ -1,12 +1,11 @@ //===- DAGISelMatcherGen.cpp - Matcher generator --------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGISelMatcherGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "DAGISelMatcher.h" #include "CodeGenDAGPatterns.h" diff --git a/utils/TableGen/DAGISelMatcherOpt.cpp b/utils/TableGen/DAGISelMatcherOpt.cpp index f9b3994553..c9ee371e3e 100644 --- a/utils/TableGen/DAGISelMatcherOpt.cpp +++ b/utils/TableGen/DAGISelMatcherOpt.cpp @@ -1,14 +1,15 @@ //===- DAGISelMatcherOpt.cpp - Optimize a DAG Matcher ---------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DAGISelMatcherOpt.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file implements the DAG Matcher optimizer. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DAG Matcher optimizer. +// +//===----------------------------------------------------------------------===// #include "DAGISelMatcher.h" #include "CodeGenDAGPatterns.h" diff --git a/utils/TableGen/DFAPacketizerEmitter.cpp b/utils/TableGen/DFAPacketizerEmitter.cpp index 3657178d41..5060b6e9ce 100644 --- a/utils/TableGen/DFAPacketizerEmitter.cpp +++ b/utils/TableGen/DFAPacketizerEmitter.cpp @@ -1,18 +1,19 @@ //===- DFAPacketizerEmitter.cpp - Packetization DFA for a VLIW machine-----===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DFAPacketizerEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This class parses the Schedule.td file and produces an API that can be used// -// to reason about whether an instruction can be added to a packet on a VLIW // -// architecture. The class internally generates a deterministic finite // -// automaton (DFA) that models all possible mappings of machine instructions // -// to functional units as instructions are added to a packet. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class parses the Schedule.td file and produces an API that can be used +// to reason about whether an instruction can be added to a packet on a VLIW +// architecture. The class internally generates a deterministic finite +// automaton (DFA) that models all possible mappings of machine instructions +// to functional units as instructions are added to a packet. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "llvm/ADT/DenseSet.h" diff --git a/utils/TableGen/DisassemblerEmitter.cpp b/utils/TableGen/DisassemblerEmitter.cpp index df8e592a52..cf94afe30a 100644 --- a/utils/TableGen/DisassemblerEmitter.cpp +++ b/utils/TableGen/DisassemblerEmitter.cpp @@ -1,12 +1,11 @@ //===- DisassemblerEmitter.cpp - Generate a disassembler ------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// DisassemblerEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" // #include "X86DisassemblerTables.h" // HLSL Change diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index ade531db5b..748c923477 100644 --- a/utils/TableGen/FastISelEmitter.cpp +++ b/utils/TableGen/FastISelEmitter.cpp @@ -1,20 +1,21 @@ //===- FastISelEmitter.cpp - Generate an instruction selector -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FastISelEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits code for use by the "fast" instruction // -// selection algorithm. See the comments at the top of // -// lib/CodeGen/SelectionDAG/FastISel.cpp for background. // -// // -// This file scans through the target's tablegen instruction-info files // -// and extracts instructions with obvious-looking patterns, and it emits // -// code to look up these instructions by type and operator. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits code for use by the "fast" instruction +// selection algorithm. See the comments at the top of +// lib/CodeGen/SelectionDAG/FastISel.cpp for background. +// +// This file scans through the target's tablegen instruction-info files +// and extracts instructions with obvious-looking patterns, and it emits +// code to look up these instructions by type and operator. +// +//===----------------------------------------------------------------------===// #include "CodeGenDAGPatterns.h" #include "llvm/ADT/SmallString.h" diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index c1c1b2d9cf..c4df283388 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -1,15 +1,16 @@ //===------------ FixedLenDecoderEmitter.cpp - Decoder Generator ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// FixedLenDecoderEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// It contains the tablegen backend that emits the decoder functions for // -// targets with fixed length instruction set. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// It contains the tablegen backend that emits the decoder functions for +// targets with fixed length instruction set. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "llvm/ADT/APInt.h" diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 848be9ca50..bb376349f9 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -1,15 +1,16 @@ //===- InstrInfoEmitter.cpp - Generate a Instruction Set Desc. ------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// InstrInfoEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend is responsible for emitting a description of the target// -// instruction set for the code generator. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend is responsible for emitting a description of the target +// instruction set for the code generator. +// +//===----------------------------------------------------------------------===// #include "CodeGenDAGPatterns.h" #include "CodeGenSchedule.h" diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp index cb1f85983d..db39ff3347 100644 --- a/utils/TableGen/IntrinsicEmitter.cpp +++ b/utils/TableGen/IntrinsicEmitter.cpp @@ -1,14 +1,15 @@ //===- IntrinsicEmitter.cpp - Generate intrinsic information --------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// IntrinsicEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits information about intrinsic functions. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits information about intrinsic functions. +// +//===----------------------------------------------------------------------===// #include "CodeGenIntrinsics.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/LLVMBuild.txt b/utils/TableGen/LLVMBuild.txt index 71a677bd8e..b0081eb588 100644 --- a/utils/TableGen/LLVMBuild.txt +++ b/utils/TableGen/LLVMBuild.txt @@ -1,5 +1,11 @@ -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +;===- ./utils/TableGen/LLVMBuild.txt ---------------------------*- Conf -*--===; +; +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. +; +;===------------------------------------------------------------------------===; ; ; This is an LLVMBuild description file for the components in this subdirectory. ; diff --git a/utils/TableGen/OptParserEmitter.cpp b/utils/TableGen/OptParserEmitter.cpp index 57bf37fca3..4dc69e5067 100644 --- a/utils/TableGen/OptParserEmitter.cpp +++ b/utils/TableGen/OptParserEmitter.cpp @@ -1,12 +1,11 @@ //===- OptParserEmitter.cpp - Table Driven Command Line Parsing -----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// OptParserEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "llvm/TableGen/Error.h" #include "llvm/ADT/STLExtras.h" diff --git a/utils/TableGen/PseudoLoweringEmitter.cpp b/utils/TableGen/PseudoLoweringEmitter.cpp index 605e4500c8..01e41d1060 100644 --- a/utils/TableGen/PseudoLoweringEmitter.cpp +++ b/utils/TableGen/PseudoLoweringEmitter.cpp @@ -1,12 +1,11 @@ //===- PseudoLoweringEmitter.cpp - PseudoLowering Generator -----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// PseudoLoweringEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "CodeGenInstruction.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index f4174d0e34..9619fb9e35 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -1,16 +1,17 @@ //===- RegisterInfoEmitter.cpp - Generate a Register File Desc. -*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// RegisterInfoEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend is responsible for emitting a description of a target// -// register file for a code generator. It uses instances of the Register, // -// RegisterAliases, and RegisterClass classes to gather this information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend is responsible for emitting a description of a target +// register file for a code generator. It uses instances of the Register, +// RegisterAliases, and RegisterClass classes to gather this information. +// +//===----------------------------------------------------------------------===// #include "CodeGenRegisters.h" #include "CodeGenTarget.h" diff --git a/utils/TableGen/SequenceToOffsetTable.h b/utils/TableGen/SequenceToOffsetTable.h index 3452a6da1d..66506ea063 100644 --- a/utils/TableGen/SequenceToOffsetTable.h +++ b/utils/TableGen/SequenceToOffsetTable.h @@ -1,16 +1,17 @@ //===-- SequenceToOffsetTable.h - Compress similar sequences ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SequenceToOffsetTable.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// SequenceToOffsetTable can be used to emit a number of null-terminated // -// sequences as one big array. Use the same memory when a sequence is a suffix// -// of another. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// SequenceToOffsetTable can be used to emit a number of null-terminated +// sequences as one big array. Use the same memory when a sequence is a suffix +// of another. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSETTABLE_H #define LLVM_UTILS_TABLEGEN_SEQUENCETOOFFSETTABLE_H diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 1d31ba40d3..03d7f4e868 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -1,14 +1,15 @@ //===- SubtargetEmitter.cpp - Generate subtarget enumerations -------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// SubtargetEmitter.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This tablegen backend emits subtarget enumerations. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This tablegen backend emits subtarget enumerations. +// +//===----------------------------------------------------------------------===// #include "CodeGenTarget.h" #include "CodeGenSchedule.h" diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index 70131653ca..fbfc9103ef 100644 --- a/utils/TableGen/TableGen.cpp +++ b/utils/TableGen/TableGen.cpp @@ -1,14 +1,15 @@ //===- TableGen.cpp - Top-Level TableGen implementation for LLVM ----------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TableGen.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the main function for LLVM's TableGen. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the main function for LLVM's TableGen. +// +//===----------------------------------------------------------------------===// #include "TableGenBackends.h" // Declares all backends. #include "llvm/Support/CommandLine.h" diff --git a/utils/TableGen/TableGenBackends.h b/utils/TableGen/TableGenBackends.h index ee27494291..2dc03ce1e7 100644 --- a/utils/TableGen/TableGenBackends.h +++ b/utils/TableGen/TableGenBackends.h @@ -1,16 +1,17 @@ //===- TableGenBackends.h - Declarations for LLVM TableGen Backends -------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// TableGenBackends.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file contains the declarations for all of the LLVM TableGen // -// backends. A "TableGen backend" is just a function. See below for a // -// precise description. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file contains the declarations for all of the LLVM TableGen +// backends. A "TableGen backend" is just a function. See below for a +// precise description. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_TABLEGENBACKENDS_H #define LLVM_UTILS_TABLEGEN_TABLEGENBACKENDS_H diff --git a/utils/TableGen/X86DisassemblerShared.h b/utils/TableGen/X86DisassemblerShared.h index 34c14d395d..e5889e9241 100644 --- a/utils/TableGen/X86DisassemblerShared.h +++ b/utils/TableGen/X86DisassemblerShared.h @@ -1,12 +1,11 @@ //===- X86DisassemblerShared.h - Emitter shared header ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86DisassemblerShared.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_X86DISASSEMBLERSHARED_H #define LLVM_UTILS_TABLEGEN_X86DISASSEMBLERSHARED_H diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index 248b768bd9..ad36dc427a 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp @@ -1,17 +1,18 @@ //===- X86DisassemblerTables.cpp - Disassembler tables ----------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86DisassemblerTables.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is part of the X86 Disassembler Emitter. // -// It contains the implementation of the disassembler tables. // -// Documentation for the disassembler emitter in general can be found in // -// X86DisasemblerEmitter.h. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is part of the X86 Disassembler Emitter. +// It contains the implementation of the disassembler tables. +// Documentation for the disassembler emitter in general can be found in +// X86DisasemblerEmitter.h. +// +//===----------------------------------------------------------------------===// #include "X86DisassemblerTables.h" #include "X86DisassemblerShared.h" diff --git a/utils/TableGen/X86DisassemblerTables.h b/utils/TableGen/X86DisassemblerTables.h index 6a773662cc..5a8688be08 100644 --- a/utils/TableGen/X86DisassemblerTables.h +++ b/utils/TableGen/X86DisassemblerTables.h @@ -1,17 +1,18 @@ //===- X86DisassemblerTables.h - Disassembler tables ------------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86DisassemblerTables.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is part of the X86 Disassembler Emitter. // -// It contains the interface of the disassembler tables. // -// Documentation for the disassembler emitter in general can be found in // -// X86DisasemblerEmitter.h. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is part of the X86 Disassembler Emitter. +// It contains the interface of the disassembler tables. +// Documentation for the disassembler emitter in general can be found in +// X86DisasemblerEmitter.h. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_X86DISASSEMBLERTABLES_H #define LLVM_UTILS_TABLEGEN_X86DISASSEMBLERTABLES_H diff --git a/utils/TableGen/X86ModRMFilters.cpp b/utils/TableGen/X86ModRMFilters.cpp index e0f7aa7c13..1641613aa3 100644 --- a/utils/TableGen/X86ModRMFilters.cpp +++ b/utils/TableGen/X86ModRMFilters.cpp @@ -1,12 +1,11 @@ //===- X86ModRMFilters.cpp - Disassembler ModR/M filterss -------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86ModRMFilters.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// #include "X86ModRMFilters.h" diff --git a/utils/TableGen/X86ModRMFilters.h b/utils/TableGen/X86ModRMFilters.h index 77458acb77..d919c588c6 100644 --- a/utils/TableGen/X86ModRMFilters.h +++ b/utils/TableGen/X86ModRMFilters.h @@ -1,18 +1,19 @@ //===- X86ModRMFilters.h - Disassembler ModR/M filterss ---------*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86ModRMFilters.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is part of the X86 Disassembler Emitter. // -// It contains ModR/M filters that determine which values of the ModR/M byte // -// are valid for a partiuclar instruction. // -// Documentation for the disassembler emitter in general can be found in // -// X86DisasemblerEmitter.h. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is part of the X86 Disassembler Emitter. +// It contains ModR/M filters that determine which values of the ModR/M byte +// are valid for a partiuclar instruction. +// Documentation for the disassembler emitter in general can be found in +// X86DisasemblerEmitter.h. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_X86MODRMFILTERS_H #define LLVM_UTILS_TABLEGEN_X86MODRMFILTERS_H diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp index 5fac69c4d8..efcb0c81e1 100644 --- a/utils/TableGen/X86RecognizableInstr.cpp +++ b/utils/TableGen/X86RecognizableInstr.cpp @@ -1,17 +1,18 @@ //===- X86RecognizableInstr.cpp - Disassembler instruction spec --*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86RecognizableInstr.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is part of the X86 Disassembler Emitter. // -// It contains the implementation of a single recognizable instruction. // -// Documentation for the disassembler emitter in general can be found in // -// X86DisasemblerEmitter.h. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is part of the X86 Disassembler Emitter. +// It contains the implementation of a single recognizable instruction. +// Documentation for the disassembler emitter in general can be found in +// X86DisasemblerEmitter.h. +// +//===----------------------------------------------------------------------===// #include "X86RecognizableInstr.h" #include "X86DisassemblerShared.h" diff --git a/utils/TableGen/X86RecognizableInstr.h b/utils/TableGen/X86RecognizableInstr.h index d16aa29b69..28e1053550 100644 --- a/utils/TableGen/X86RecognizableInstr.h +++ b/utils/TableGen/X86RecognizableInstr.h @@ -1,17 +1,18 @@ //===- X86RecognizableInstr.h - Disassembler instruction spec ----*- C++ -*-===// -/////////////////////////////////////////////////////////////////////////////// -// // -// X86RecognizableInstr.h // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This file is part of the X86 Disassembler Emitter. // -// It contains the interface of a single recognizable instruction. // -// Documentation for the disassembler emitter in general can be found in // -// X86DisasemblerEmitter.h. // // -/////////////////////////////////////////////////////////////////////////////// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is part of the X86 Disassembler Emitter. +// It contains the interface of a single recognizable instruction. +// Documentation for the disassembler emitter in general can be found in +// X86DisasemblerEmitter.h. +// +//===----------------------------------------------------------------------===// #ifndef LLVM_UTILS_TABLEGEN_X86RECOGNIZABLEINSTR_H #define LLVM_UTILS_TABLEGEN_X86RECOGNIZABLEINSTR_H diff --git a/utils/TableGen/tdtags b/utils/TableGen/tdtags index 6d55a46d21..5214485f4e 100644 --- a/utils/TableGen/tdtags +++ b/utils/TableGen/tdtags @@ -3,8 +3,10 @@ # vim:set sts=2 sw=2 et: #===----------------------------------------------------------------------===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===----------------------------------------------------------------------===# # diff --git a/utils/count/CMakeLists.txt b/utils/count/CMakeLists.txt index 684f7d42f4..4e0d371334 100644 --- a/utils/count/CMakeLists.txt +++ b/utils/count/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_utility(count count.c ) diff --git a/utils/count/count.c b/utils/count/count.c index dc58554823..6433151dc4 100644 --- a/utils/count/count.c +++ b/utils/count/count.c @@ -1,12 +1,11 @@ /*===- count.c - The 'count' testing tool ---------------------------------===*\ -/////////////////////////////////////////////////////////////////////////////// -// // -// count.c // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -/////////////////////////////////////////////////////////////////////////////// + * + * The LLVM Compiler Infrastructure + * + * This file is distributed under the University of Illinois Open Source + * License. See LICENSE.TXT for details. + * +\*===----------------------------------------------------------------------===*/ #include #include diff --git a/utils/countloc.sh b/utils/countloc.sh index 88569d5271..4d1b775d74 100644 --- a/utils/countloc.sh +++ b/utils/countloc.sh @@ -1,8 +1,10 @@ #!/bin/sh ##===- utils/countloc.sh - Counts Lines Of Code --------------*- Script -*-===## # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## # diff --git a/utils/create_ladder_graph.py b/utils/create_ladder_graph.py index 3682f50d2d..d29e3ad3a1 100644 --- a/utils/create_ladder_graph.py +++ b/utils/create_ladder_graph.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """A ladder graph creation program. This is a python program that creates c source code that will generate diff --git a/utils/fpcmp/fpcmp.cpp b/utils/fpcmp/fpcmp.cpp index 41c4e8eb2f..bbe7276e13 100644 --- a/utils/fpcmp/fpcmp.cpp +++ b/utils/fpcmp/fpcmp.cpp @@ -1,15 +1,16 @@ //===- fpcmp.cpp - A fuzzy "cmp" that permits floating point noise --------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// fpcmp.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// fpcmp is a tool that basically works like the 'cmp' tool, except that it can// -// tolerate errors due to floating point noise, with the -r and -a options. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// fpcmp is a tool that basically works like the 'cmp' tool, except that it can +// tolerate errors due to floating point noise, with the -r and -a options. +// +//===----------------------------------------------------------------------===// #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileUtilities.h" diff --git a/utils/getsrcs.sh b/utils/getsrcs.sh index 33d4007b13..c8bff8cf83 100644 --- a/utils/getsrcs.sh +++ b/utils/getsrcs.sh @@ -1,8 +1,11 @@ #!/bin/sh ##===- utils/getsrcs.sh - Counts Lines Of Code ---------------*- Script -*-===## # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# details. # ##===----------------------------------------------------------------------===## # diff --git a/utils/lint/common_lint.py b/utils/lint/common_lint.py index 61d0e03fea..e982680c05 100644 --- a/utils/lint/common_lint.py +++ b/utils/lint/common_lint.py @@ -1,6 +1,4 @@ #!/usr/bin/python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # # Common lint functions applicable to multiple types of files. diff --git a/utils/lint/cpp_lint.py b/utils/lint/cpp_lint.py index 30d08f4e1d..07fad5840f 100644 --- a/utils/lint/cpp_lint.py +++ b/utils/lint/cpp_lint.py @@ -1,6 +1,4 @@ #!/usr/bin/python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # # Checks C++ files to make sure they conform to LLVM standards, as specified in # http://llvm.org/docs/CodingStandards.html . diff --git a/utils/lint/generic_lint.py b/utils/lint/generic_lint.py index ac6a002b57..c8f4835bb6 100644 --- a/utils/lint/generic_lint.py +++ b/utils/lint/generic_lint.py @@ -1,6 +1,4 @@ #!/usr/bin/python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. # # Checks files to make sure they conform to LLVM standards which can be applied # to any programming language: at present, line length and trailing whitespace. diff --git a/utils/lldbDataFormatters.py b/utils/lldbDataFormatters.py index 3635844802..687729f61e 100644 --- a/utils/lldbDataFormatters.py +++ b/utils/lldbDataFormatters.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ LLDB Formatters for LLVM data types. diff --git a/utils/llvm-build/README.txt b/utils/llvm-build/README.txt index f9814d81e2..b6bcaae0f1 100644 --- a/utils/llvm-build/README.txt +++ b/utils/llvm-build/README.txt @@ -1,5 +1,3 @@ -Copyright (C) Microsoft Corporation. All rights reserved. -Licensed under the MIT license. See COPYRIGHT in the project root for full licence information. ============================== llvm-build - LLVM Build Tool ============================== diff --git a/utils/llvm-build/llvmbuild/__init__.py b/utils/llvm-build/llvmbuild/__init__.py index d575858baf..eb20d09898 100644 --- a/utils/llvm-build/llvmbuild/__init__.py +++ b/utils/llvm-build/llvmbuild/__init__.py @@ -1,3 +1 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. from llvmbuild.main import main diff --git a/utils/llvm-build/llvmbuild/componentinfo.py b/utils/llvm-build/llvmbuild/componentinfo.py index 43de1b515c..b384acd190 100644 --- a/utils/llvm-build/llvmbuild/componentinfo.py +++ b/utils/llvm-build/llvmbuild/componentinfo.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ Descriptor objects for entities that are part of the LLVM project. """ diff --git a/utils/llvm-build/llvmbuild/configutil.py b/utils/llvm-build/llvmbuild/configutil.py index 531ff3d62c..b5582c34de 100644 --- a/utils/llvm-build/llvmbuild/configutil.py +++ b/utils/llvm-build/llvmbuild/configutil.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ Defines utilities useful for performing standard "configuration" style tasks. """ diff --git a/utils/llvm-build/llvmbuild/main.py b/utils/llvm-build/llvmbuild/main.py index 53378be54f..207fd6248f 100644 --- a/utils/llvm-build/llvmbuild/main.py +++ b/utils/llvm-build/llvmbuild/main.py @@ -1,6 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. - from __future__ import absolute_import import filecmp import os @@ -290,8 +287,10 @@ def write_components(self, output_path): f.write("""\ %s ; -; Copyright (C) Microsoft Corporation. All rights reserved. -; Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +; The LLVM Compiler Infrastructure +; +; This file is distributed under the University of Illinois Open Source +; License. See LICENSE.TXT for details. ; ;===------------------------------------------------------------------------===; ; @@ -527,8 +526,10 @@ def write_cmake_fragment(self, output_path, enabled_optional_components): f.write("""\ %s # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# # @@ -655,8 +656,10 @@ def write_make_fragment(self, output_path): f.write("""\ %s # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # #===------------------------------------------------------------------------===# # diff --git a/utils/llvm-build/llvmbuild/util.py b/utils/llvm-build/llvmbuild/util.py index b8b2b9b3c3..ca021c4d57 100644 --- a/utils/llvm-build/llvmbuild/util.py +++ b/utils/llvm-build/llvmbuild/util.py @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. import os import sys diff --git a/utils/llvm-compilers-check b/utils/llvm-compilers-check index b5c166b344..4db8426ace 100644 --- a/utils/llvm-compilers-check +++ b/utils/llvm-compilers-check @@ -1,8 +1,10 @@ #!/usr/bin/python3 ##===- utils/llvmbuild - Build the LLVM project ----------------*-python-*-===## # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## # diff --git a/utils/llvmdo b/utils/llvmdo index 26444fb95d..bcfc221c2b 100644 --- a/utils/llvmdo +++ b/utils/llvmdo @@ -1,8 +1,10 @@ #!/bin/sh ##===- utils/llvmdo - Counts Lines Of Code -------------------*- Script -*-===## # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## # diff --git a/utils/llvmgrep b/utils/llvmgrep index 5aecba2f8a..dc15da4961 100644 --- a/utils/llvmgrep +++ b/utils/llvmgrep @@ -1,8 +1,10 @@ #!/bin/sh ##===- utils/llvmgrep - Counts Lines Of Code -----------------*- Script -*-===## # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. # ##===----------------------------------------------------------------------===## # diff --git a/utils/not/CMakeLists.txt b/utils/not/CMakeLists.txt index c56e72a8af..48eb9761e5 100644 --- a/utils/not/CMakeLists.txt +++ b/utils/not/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_utility(not not.cpp ) diff --git a/utils/not/not.cpp b/utils/not/not.cpp index 0e0fa81f31..23062fb323 100644 --- a/utils/not/not.cpp +++ b/utils/not/not.cpp @@ -1,18 +1,16 @@ //===- not.cpp - The 'not' testing tool -----------------------------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// not.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// Usage: // -// not cmd // -// Will return true if cmd doesn't crash and returns false. // -// not --crash cmd // -// Will return true if cmd crashes (e.g. for testing crash reporting). // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// Usage: +// not cmd +// Will return true if cmd doesn't crash and returns false. +// not --crash cmd +// Will return true if cmd crashes (e.g. for testing crash reporting). #include "llvm/Support/Path.h" #include "llvm/Support/Program.h" diff --git a/utils/release/export.sh b/utils/release/export.sh index 271851aee3..2fd4206b74 100644 --- a/utils/release/export.sh +++ b/utils/release/export.sh @@ -1,8 +1,10 @@ #!/bin/sh #===-- tag.sh - Tag the LLVM release candidates ----------------------------===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. # #===------------------------------------------------------------------------===# # diff --git a/utils/release/findRegressions-nightly.py b/utils/release/findRegressions-nightly.py index da9b7b5616..ddf89835e2 100644 --- a/utils/release/findRegressions-nightly.py +++ b/utils/release/findRegressions-nightly.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. import re, string, sys, os, time DEBUG = 0 diff --git a/utils/release/findRegressions-simple.py b/utils/release/findRegressions-simple.py index e79b8418cd..8d3b4cfca2 100644 --- a/utils/release/findRegressions-simple.py +++ b/utils/release/findRegressions-simple.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. import re, string, sys, os, time, math DEBUG = 0 diff --git a/utils/release/merge.sh b/utils/release/merge.sh index 1e233264b9..949c298378 100644 --- a/utils/release/merge.sh +++ b/utils/release/merge.sh @@ -1,8 +1,10 @@ #!/bin/sh #===-- merge.sh - Test the LLVM release candidates -------------------------===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. # #===------------------------------------------------------------------------===# # diff --git a/utils/release/tag.sh b/utils/release/tag.sh index 92b1e29a5b..caefc7f7b7 100644 --- a/utils/release/tag.sh +++ b/utils/release/tag.sh @@ -1,8 +1,10 @@ #!/bin/sh #===-- tag.sh - Tag the LLVM release candidates ----------------------------===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. # #===------------------------------------------------------------------------===# # diff --git a/utils/release/test-release.sh b/utils/release/test-release.sh index 074232987c..568c097bad 100644 --- a/utils/release/test-release.sh +++ b/utils/release/test-release.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash #===-- test-release.sh - Test the LLVM release candidates ------------------===# # -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. # #===------------------------------------------------------------------------===# # diff --git a/utils/shuffle_fuzz.py b/utils/shuffle_fuzz.py index 33cf764afe..985d1dab9e 100644 --- a/utils/shuffle_fuzz.py +++ b/utils/shuffle_fuzz.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """A shuffle vector fuzz tester. diff --git a/utils/sort_includes.py b/utils/sort_includes.py index 33df016bed..70bfdedfc6 100644 --- a/utils/sort_includes.py +++ b/utils/sort_includes.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """Script to sort the top-most block of #include lines. diff --git a/utils/testgen/mc-bundling-x86-gen.py b/utils/testgen/mc-bundling-x86-gen.py index c7c04deb08..b8054631ed 100644 --- a/utils/testgen/mc-bundling-x86-gen.py +++ b/utils/testgen/mc-bundling-x86-gen.py @@ -1,5 +1,4 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. +#!/usr/bin/python #!/usr/bin/python diff --git a/utils/update_llc_test_checks.py b/utils/update_llc_test_checks.py index bd545b4a91..df01d8973c 100644 --- a/utils/update_llc_test_checks.py +++ b/utils/update_llc_test_checks.py @@ -1,6 +1,4 @@ #!/usr/bin/env python2.7 -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """A test case update script. diff --git a/utils/wciia.py b/utils/wciia.py index c5e9d81013..eaa232f84a 100644 --- a/utils/wciia.py +++ b/utils/wciia.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. """ wciia - Whose Code Is It Anyway diff --git a/utils/yaml-bench/CMakeLists.txt b/utils/yaml-bench/CMakeLists.txt index 2726566cfc..403182ceee 100644 --- a/utils/yaml-bench/CMakeLists.txt +++ b/utils/yaml-bench/CMakeLists.txt @@ -1,5 +1,3 @@ -# Copyright (C) Microsoft Corporation. All rights reserved. -# Licensed under the MIT license. See COPYRIGHT in the project root for full license information. add_llvm_utility(yaml-bench YAMLBench.cpp ) diff --git a/utils/yaml-bench/YAMLBench.cpp b/utils/yaml-bench/YAMLBench.cpp index 4d9c5dff10..7fab14cb48 100644 --- a/utils/yaml-bench/YAMLBench.cpp +++ b/utils/yaml-bench/YAMLBench.cpp @@ -1,15 +1,16 @@ //===- YAMLBench - Benchmark the YAMLParser implementation ----------------===// -/////////////////////////////////////////////////////////////////////////////// -// // -// YAMLBench.cpp // -// Copyright (C) Microsoft Corporation. All rights reserved. // -// Licensed under the MIT license. See COPYRIGHT in the project root for // -// full license information. // -// // -// This program executes the YAMLParser on differently sized YAML texts and // -// outputs the run time. // -// // -/////////////////////////////////////////////////////////////////////////////// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This program executes the YAMLParser on differently sized YAML texts and +// outputs the run time. +// +//===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" #include "llvm/Support/Casting.h"