hanchenye-llvm-project/clang
Alexey Bataev 62b63b197d [OPENMP] Initial codegen for 'omp task' directive.
The task region is emmitted in several steps:

Emit a call to kmp_task_t *__kmpc_omp_task_alloc(ident_t *, kmp_int32 gtid, kmp_int32 flags, size_t sizeof_kmp_task_t, size_t sizeof_shareds, kmp_routine_entry_t *task_entry).
Here task_entry is a pointer to the function:
kmp_int32 .omp_task_entry.(kmp_int32 gtid, kmp_task_t *tt) {
    TaskFunction(gtid, tt->part_id, tt->shareds);
      return 0;
}
Copy a list of shared variables to field shareds of the resulting structure kmp_task_t returned by the previous call (if any).
Copy a pointer to destructions function to field destructions of the resulting structure kmp_task_t.
Emit a call to kmp_int32 __kmpc_omp_task(ident_t *, kmp_int32 gtid, kmp_task_t *new_task), where new_task is a resulting structure from previous items.
Differential Revision: http://reviews.llvm.org/D7560

llvm-svn: 231762
2015-03-10 07:28:44 +00:00
..
INPUTS
bindings This reverts commit r227432, r227438 and r227448. 2015-01-29 17:22:53 +00:00
cmake/modules Make it easier to build against a pre-built Clang package with CMake 2014-11-05 23:14:59 +00:00
docs [UBSan] Split -fsanitize=shift into -fsanitize=shift-base and -fsanitize=shift-exponent. 2015-03-09 21:50:19 +00:00
examples Replace size() calls on containers with empty() calls where appropriate. NFC 2015-01-23 15:36:10 +00:00
include [modules] Don't clobber a destructor's operator delete when adding another one; 2015-03-10 01:41:22 +00:00
lib [OPENMP] Initial codegen for 'omp task' directive. 2015-03-10 07:28:44 +00:00
runtime Remove support for building sanitizers from Makefile/autoconf build on Linux. 2015-02-18 22:26:22 +00:00
test [OPENMP] Initial codegen for 'omp task' directive. 2015-03-10 07:28:44 +00:00
tools Replace Sema's map of locally-scoped extern "C" declarations with a DeclContext 2015-03-07 00:04:49 +00:00
unittests clang-format: Don't remove newline if macro ends in access specifier. 2015-03-09 08:13:55 +00:00
utils Replace size() calls on containers with empty() calls where appropriate. NFC 2015-01-23 15:36:10 +00:00
www Fix a menu issue. patch by Vassil Vassilev 2015-03-09 09:09:55 +00:00
.arcconfig
.clang-format
.clang-tidy Enable display of compiler diagnostics in clang-tidy. 2014-10-29 17:28:51 +00:00
.gitignore
CMakeLists.txt clang/CMakeLists.txt: Introduce LLVM_SHLIB_OUTPUT_INTDIR also here, or plugins tests might fail. 2015-01-05 14:06:14 +00:00
CODE_OWNERS.TXT Add myself as a code owner for Microsoft C++ ABI code and general Windows support 2015-02-26 20:37:49 +00:00
INSTALL.txt
LICENSE.TXT
Makefile
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.cs.uiuc.edu/mailman/listinfo/cfe-dev

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