llvm-project/clang
Melanie Blower 320af6b138 Create SPIRABIInfo to enable SPIR_FUNC calling convention.
Background: Call to library arithmetic functions for div is emitted by the
compiler and it set wrong “C” calling convention for calls to these functions,
whereas library functions are declared with `spir_function` calling convention.
InstCombine optimization replaces such calls with “unreachable” instruction.
It looks like clang lacks SPIRABIInfo class which should specify default
calling conventions for “system” function calls. SPIR supports only
SPIR_FUNC and SPIR_KERNEL calling convention.

Reviewers: Erich Keane, Anastasia

Differential Revision: https://reviews.llvm.org/D92721
2020-12-12 05:48:20 -08:00
..
INPUTS
bindings [NFC] Don't run python binding tests with sanitizers 2020-10-29 23:48:08 -07:00
cmake [CMake][Fuchsia] Install llvm-elfabi 2020-12-02 11:59:14 -08:00
docs [clang-format] NFC Add release note for IndentPragmas 2020-12-10 11:24:12 +00:00
examples Add a call super attribute plugin example 2020-11-20 08:51:12 -05:00
include [clang][cli] Revert accidental access-control flag rename 2020-12-12 11:26:53 +01:00
lib Create SPIRABIInfo to enable SPIR_FUNC calling convention. 2020-12-12 05:48:20 -08:00
runtime [CMake][compiler-rt][libunwind] Compile assembly files as ASM not C, unify workarounds 2020-08-27 15:40:15 +03:00
test Create SPIRABIInfo to enable SPIR_FUNC calling convention. 2020-12-12 05:48:20 -08:00
tools Fixup for 8c86197de3 to avoid making it platform-dependent 2020-12-11 17:34:00 -08:00
unittests [clang][cli] Add flexible TableGen multiclass for boolean options 2020-12-12 10:53:28 +01:00
utils Add new 'preferred_name' attribute. 2020-12-09 12:22:35 -08:00
www P0857R0: Parse a requires-clause after an explicit 2020-12-03 15:54:16 -08:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt Reland [CMake][NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/ 2020-12-01 14:00:32 -08:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/