diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-12-09 18:31:01 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-12-09 18:31:01 +0000 |
commit | 0e1fb7afcccb3ade0f159172e32292349f65011e (patch) | |
tree | 73d7c8689e8cbf5f42127dc889f44b2356451784 /utils/TableGen/NeonEmitter.cpp | |
parent | b853e6c3702149cdbbd6fa404334e3ba0055641a (diff) | |
download | external_llvm-0e1fb7afcccb3ade0f159172e32292349f65011e.zip external_llvm-0e1fb7afcccb3ade0f159172e32292349f65011e.tar.gz external_llvm-0e1fb7afcccb3ade0f159172e32292349f65011e.tar.bz2 |
Add a license comment to the generated arm_neon.h header.
Remove the previous header. I don't think we need to expose to end users
that we use TableGen to produce our version of arm_neon.h, and that header
was also using doubleslash comments which could be a problem when using it
in strict C89 compilations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/NeonEmitter.cpp')
-rw-r--r-- | utils/TableGen/NeonEmitter.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp index 0b3fdaf..ebdc970 100644 --- a/utils/TableGen/NeonEmitter.cpp +++ b/utils/TableGen/NeonEmitter.cpp @@ -1057,9 +1057,29 @@ static std::string GenIntrinsic(const std::string &name, /// run - Read the records in arm_neon.td and output arm_neon.h. arm_neon.h /// is comprised of type definitions and function declarations. void NeonEmitter::run(raw_ostream &OS) { - EmitSourceFileHeader("ARM NEON Header", OS); - - // FIXME: emit license into file? + OS << + "/*===---- arm_neon.h - ARM Neon intrinsics ---------------------------------===\n" + " *\n" + " * Permission is hereby granted, free of charge, to any person obtaining a copy\n" + " * of this software and associated documentation files (the \"Software\"), to deal\n" + " * in the Software without restriction, including without limitation the rights\n" + " * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n" + " * copies of the Software, and to permit persons to whom the Software is\n" + " * furnished to do so, subject to the following conditions:\n" + " *\n" + " * The above copyright notice and this permission notice shall be included in\n" + " * all copies or substantial portions of the Software.\n" + " *\n" + " * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n" + " * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" + " * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n" + " * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n" + " * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n" + " * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n" + " * THE SOFTWARE.\n" + " *\n" + " *===-----------------------------------------------------------------------===\n" + " */\n\n"; OS << "#ifndef __ARM_NEON_H\n"; OS << "#define __ARM_NEON_H\n\n"; |