hanchenye-llvm-project/clang
Saleem Abdulrasool 94bb1a06fb CodeGen: correct arguments for NSFastEnumeration
When performing a NSFastEnumeration, the compiler synthesizes a call to
`countByEnumeratingWithState:objects:count:` where the `count` parameter
is of type `NSUInteger` and the return type is a `NSUInteger`.  We would
previously always use a `UnsignedLongTy` for the `NSUInteger` type.  On
32-bit targets, `long` is 32-bits which is the same as `unsigned int`.
Most 64-bit targets are LP64, where `long` is 64-bits.  However, on
LLP64 targets, such as Windows, `long` is 32-bits.  Introduce new
`getNSUIntegerType` and `getNSIntegerType` helpers to allow us to
determine the correct type for the `NSUInteger` type.  Wire those
through into the generation of the message dispatch to the selector.

llvm-svn: 312835
2017-09-08 23:41:17 +00:00
..
INPUTS
bindings Fix __repr__ for Diagnostic in clang.cindex 2017-09-06 07:33:32 +00:00
cmake Remove LLVMFuzzer from list of bundled libraries for Fuchsia 2017-08-23 00:09:33 +00:00
docs COFF: Implement ThinLTO cache and cache pruning support. 2017-09-08 00:50:50 +00:00
examples
include CodeGen: correct arguments for NSFastEnumeration 2017-09-08 23:41:17 +00:00
lib CodeGen: correct arguments for NSFastEnumeration 2017-09-08 23:41:17 +00:00
runtime Enable check-ubsan-minimal in standalone compiler-rt build. 2017-09-01 20:37:20 +00:00
test CodeGen: correct arguments for NSFastEnumeration 2017-09-08 23:41:17 +00:00
tools Recommit "Add _Float16 as a C/C++ source language type" 2017-09-08 15:15:00 +00:00
unittests [clang-format] Add support for C++17 structured bindings. 2017-09-07 14:28:32 +00:00
utils Add '\n' in ClangDataCollectorsEmitter 2017-09-08 16:17:16 +00:00
www P0702R1: in class template argument deduction from a list of one element, if 2017-09-07 07:22:36 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt Don't search libxml2 if using msan. LLVM already has similar check. 2017-09-02 03:53:42 +00:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt Test commit access in clang. 2017-09-03 15:29:38 +00:00

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/