1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/lib
Manuel Jacob 6c0fc2f192 Re-add ConstantFoldInstOperands form taking opcode and return type.
Summary:
This form was replaced by a form taking an instruction instead of opcode and
return type in r258391.  After committing this change (and some depending,
follow-up changes) it turned out in the review thread to be controversial.  The
discussion didn't come to a conclusion yet.  I'm re-adding the old form to fix
the API regression and to provide a better base for discussion, possibly on
llvm-dev.

A difference to the original function is that it can't be called with GEPs
(similarly to how it was already the case for compares).  In order to support
opaque pointers in the future, folding GEPs needs to be passed the source
element type, which is not possible with the current API.

Reviewers: dberlin, reames

Subscribers: dblaikie, eddyb

Differential Revision: http://reviews.llvm.org/D17901

llvm-svn: 263501
2016-03-14 22:34:17 +00:00
..
Analysis Re-add ConstantFoldInstOperands form taking opcode and return type. 2016-03-14 22:34:17 +00:00
AsmParser Add a flag to the LLVMContext to disable name for Value other than GlobalValue 2016-03-10 01:28:54 +00:00
Bitcode Revert "[ThinLTO] Renaming of function index to module summary index (NFC)" 2016-03-14 21:18:10 +00:00
CodeGen Factor out MachineBlockPlacement::fillWorkLists. NFC 2016-03-14 21:24:11 +00:00
DebugInfo [DebugInfo] Dump CIE augmentation data as a list of hex bytes 2016-03-01 18:38:05 +00:00
ExecutionEngine ExecutionEngine: tweak debug log 2016-03-05 20:00:41 +00:00
Fuzzer [libFuzzer] try to use max_len based on the items of the corpus instead of blindly defaulting to 64 bytes. 2016-03-12 01:57:04 +00:00
IR Revert "[ThinLTO] Renaming of function index to module summary index (NFC)" 2016-03-14 21:18:10 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LibDriver Remove autoconf support 2016-01-26 21:29:08 +00:00
LineEditor Remove autoconf support 2016-01-26 21:29:08 +00:00
Linker Revert "[ThinLTO] Renaming of function index to module summary index (NFC)" 2016-03-14 21:18:10 +00:00
LTO Revert "[ThinLTO] Renaming of function index to module summary index (NFC)" 2016-03-14 21:18:10 +00:00
MC Don't crash when compiling inline assembler containing .file directives. 2016-03-09 17:32:56 +00:00
Object Revert "[ThinLTO] Renaming of function index to module summary index (NFC)" 2016-03-14 21:18:10 +00:00
ObjectYAML [AMDGPU] add AMDGPU target support to ELFObjectFile.h header 2016-03-09 17:08:19 +00:00
Option Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
Passes [PM] Rename the CRTP mixin base classes for the new pass manager to 2016-03-11 10:33:22 +00:00
ProfileData Use LineLocation instead of CallsiteLocation to index callsite profile. 2016-03-03 18:09:32 +00:00
Support APFloat: Fix ilogb for denormals 2016-03-13 05:12:32 +00:00
TableGen [TableGen] Fix typos in comments. NFC 2016-02-26 06:50:27 +00:00
Target [SystemZ] Add missing isBranch flags to certain instruction 2016-03-14 20:16:30 +00:00
Transforms Revert "[ThinLTO] Renaming of function index to module summary index (NFC)" 2016-03-14 21:18:10 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00