History log of /llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp (Results 676 – 700 of 1023)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 6b4ebcc6 15-Oct-2012 Richard Smith <richard-llvm@metafoo.co.uk>

At -O0, emit an @llvm.trap() call at the end of a value-returning function which
fails to return a value, to make debugging this issue easier.

llvm-svn: 165914


# 73e465e1 10-Oct-2012 Bill Wendling <isanbard@gmail.com>

Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.

llvm-svn: 165596


# 8772bd85 10-Oct-2012 Richard Smith <richard-llvm@metafoo.co.uk>

Tidy up formatting.

llvm-svn: 165584


# 481652b3 10-Oct-2012 Richard Smith <richard-llvm@metafoo.co.uk>

-fcatch-undefined-behavior: catch a VLA bound which evalutes to a non-positive value.

llvm-svn: 165583


# e30752c9 09-Oct-2012 Richard Smith <richard-llvm@metafoo.co.uk>

-fcatch-undefined-behavior: emit calls to the runtime library whenever one of the checks fails.

llvm-svn: 165536


# dd31ca10 08-Oct-2012 Micah Villmow <villmow@gmail.com>

Move TargetData to DataLayout.

llvm-svn: 165395


# 9f9e5826 04-Oct-2012 Richard Smith <richard-llvm@metafoo.co.uk>

If we flow off the end of a value-returning function:
- outside C++, return undef (behavior is not undefined unless the value is used)
- in C++, with -fcatch-undefined-behavior, perform an appropri

If we flow off the end of a value-returning function:
- outside C++, return undef (behavior is not undefined unless the value is used)
- in C++, with -fcatch-undefined-behavior, perform an appropriate trap
- in C++, produce an 'unreachable' (behavior is undefined immediately)

llvm-svn: 165273

show more ...


# c320c745 23-Jul-2012 Richard Trieu <rtrieu@google.com>

Change APInt to APSInt in one instance. Also change a call to operator==() to
APSInt::isSameValue() when comparing different sized APSInt's.

llvm-svn: 160641


# cc8f2a6a 15-Jul-2012 Chandler Carruth <chandlerc@gmail.com>

Update Clang to reflect the move of MDBuilder in r160237.

llvm-svn: 160238


# 7445ada9 11-Jul-2012 Tanya Lattner <tonic@nondot.org>

Add OpenCL metadata for kernel arg names. This output is controlled via a flag as noted in the OpenCL Spec.
Includes a test case.

llvm-svn: 160092


# bcffcdfd 09-Jul-2012 Tanya Lattner <tonic@nondot.org>

Patch by Anton Lokhmotov to add OpenCL work group size attributes.

llvm-svn: 159965


# 6362803c 26-Jun-2012 Fariborz Jahanian <fjahanian@apple.com>

block literal irgen: several improvements on naming block
literal helper functions. All helper functions (global
and locals) use block_invoke as their prefix. Local literal
helper names are prefixed

block literal irgen: several improvements on naming block
literal helper functions. All helper functions (global
and locals) use block_invoke as their prefix. Local literal
helper names are prefixed by their enclosing mangled function
names. Blocks in non-local initializers (e.g. a global variable
or a C++11 field) are prefixed by their mangled variable name.
The descriminator number added to end of the name starts off
with blank (for first block) and _<N> (for the N+2-th block).

llvm-svn: 159206

show more ...


# be302454 15-Jun-2012 James Dennett <jdennett@google.com>

Documentation cleanup:
* Escaped Objective-C @keywords in Doxygen comments;
* Documented more accurate \params;
* Exposed some more summaries using \brief.

llvm-svn: 158559


# a425589f 22-May-2012 Nuno Lopes <nunoplopes@sapo.pt>

wire -fbounds-checking to the new LLVM bounds checking pass

llvm-svn: 157262


Revision tags: llvmorg-3.1.0
# 3d6311d5 08-May-2012 Nuno Lopes <nunoplopes@sapo.pt>

add -fbounds-checking option.
When enabled, clang generates bounds checks for array and pointers dereferences. Work to follow in LLVM's backend.

OK'ed by Chad; thanks for the review.

llvm-svn: 1564

add -fbounds-checking option.
When enabled, clang generates bounds checks for array and pointers dereferences. Work to follow in LLVM's backend.

OK'ed by Chad; thanks for the review.

llvm-svn: 156431

show more ...


Revision tags: llvmorg-3.1.0-rc3
# 74a3868d 04-May-2012 Alexey Samsonov <samsonov@google.com>

This patch adds a new Clang compiler flag "-gline-tables-only".
It reduces the amount of emitted debug information:
1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram,
DW_TAG_in

This patch adds a new Clang compiler flag "-gline-tables-only".
It reduces the amount of emitted debug information:
1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram,
DW_TAG_inlined_subroutine (for opt builds) and DW_TAG_lexical_block only.
2) .debug_str contains only function names.
3) No debug data for types/namespaces/variables is emitted.
4) The data in .debug_line is enough to produce valid stack traces with
function names and line numbers.

Reviewed by Eric Christopher.

llvm-svn: 156160

show more ...


Revision tags: llvmorg-3.1.0-rc2
# f3c37e89 22-Apr-2012 Richard Smith <richard-llvm@metafoo.co.uk>

PR12571: Objects of type clang::ConstantArrayType aren't always emitted with
type llvm::ArrayType -- sometimes we emit them as packed structs. Don't assert
if such a global array has an element type

PR12571: Objects of type clang::ConstantArrayType aren't always emitted with
type llvm::ArrayType -- sometimes we emit them as packed structs. Don't assert
if such a global array has an element type with a non-trivial destructor.

llvm-svn: 155305

show more ...


Revision tags: llvmorg-3.1.0-rc1
# 54c05faa 16-Apr-2012 Duncan Sands <baldrick@free.fr>

Remove support for -fast-math metadata for the moment.

llvm-svn: 154851


# 8030b810 16-Apr-2012 Duncan Sands <baldrick@free.fr>

Generate fpmath metadata when -ffast-math. Note that no optimizations are hooked
up to this yet.

llvm-svn: 154835


# 7f1ff600 16-Apr-2012 Eli Friedman <eli.friedman@gmail.com>

Propagate alignment on lvalues through EmitLValueForField. PR12395.

llvm-svn: 154789


# 883b2579 14-Mar-2012 Chad Rosier <mcrosier@apple.com>

[frontend] Add support for disabling the "inline" keyword using
-fno-inline-functions.

This behaves much like -fno-inline in gcc, but based on a discussion with
Daniel it was decided that -fno-inl

[frontend] Add support for disabling the "inline" keyword using
-fno-inline-functions.

This behaves much like -fno-inline in gcc, but based on a discussion with
Daniel it was decided that -fno-inline-functions should subsume -fno-inline.
Please speak up if you object. The -fno-inline flag remains ignored.
Final part of rdar://10972766

llvm-svn: 152754

show more ...


# bbafb8a7 11-Mar-2012 David Blaikie <dblaikie@gmail.com>

Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST).

The member variable is always "LangOpts" and the member function is always "getLangOpts".

Reviewed by Chris La

Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST).

The member variable is always "LangOpts" and the member function is always "getLangOpts".

Reviewed by Chris Lattner

llvm-svn: 152536

show more ...


# 98b01edc 01-Mar-2012 Eli Friedman <eli.friedman@gmail.com>

Implement "optimization" for lambda-to-block conversion which inlines the generated block literal for lambdas which are immediately converted to block pointer type. This simplifies the AST, avoids a

Implement "optimization" for lambda-to-block conversion which inlines the generated block literal for lambdas which are immediately converted to block pointer type. This simplifies the AST, avoids an unnecessary copy of the lambda and makes it much easier to avoid copying the result onto the heap.

Note that this transformation has a substantial semantic effect outside of ARC: it gives the converted lambda lifetime semantics similar to a block literal. With ARC, the effect is much less obvious because the lifetime of blocks is already managed.

llvm-svn: 151797

show more ...


# 2495ab08 25-Feb-2012 Eli Friedman <eli.friedman@gmail.com>

Work-in-progress for lambda conversion-to-block operator. Still need to implement the retain+autorelease outside of ARC, and there's a bug that causes the generated code to crash in ARC (which I thi

Work-in-progress for lambda conversion-to-block operator. Still need to implement the retain+autorelease outside of ARC, and there's a bug that causes the generated code to crash in ARC (which I think is unrelated to my code, although I'm not completely sure).

llvm-svn: 151428

show more ...


# f0cccf5b 18-Feb-2012 Chad Rosier <mcrosier@apple.com>

Remove redundant check.

llvm-svn: 150855


1...<<21222324252627282930>>...41