summaryrefslogtreecommitdiffstats
path: root/llvm/include
Commit message (Collapse)AuthorAgeFilesLines
* Convert ConstantExpr::getGetElementPtr andJay Foad2011-07-214-30/+38
| | | | | | ConstantExpr::getInBoundsGetElementPtr to use ArrayRef. llvm-svn: 135673
* Update llvm-gcc-4.2 and dragonegg after converting ConstantFolder APIsJay Foad2011-07-211-0/+6
| | | | | | to use ArrayRef. llvm-svn: 135672
* Convert ConstantFolder APIs to use ArrayRef.Jay Foad2011-07-214-59/+84
| | | | llvm-svn: 135671
* move tier out of an anonymous namespace, it doesn't make senseChris Lattner2011-07-211-19/+15
| | | | | | | | to for it to be an an anon namespace and be in a header. Eliminate some extraenous uses of tie. llvm-svn: 135669
* Remove the now defunct getCompactUnwindEncoding method from the frame ↵Bill Wendling2011-07-201-8/+0
| | | | | | lowering code. llvm-svn: 135634
* There are two ways to map a variable to its lexical scope. Lexical scope ↵Devang Patel2011-07-201-0/+2
| | | | | | information is embedded in MDNode describing the variable. It is also available as a part of DebugLoc attached with DBG_VALUE instruction. DebugLoc attached with an instruction is less reliable in optimized code so use information embedded in the MDNode. llvm-svn: 135629
* Goodbye TargetAsmInfo. This eliminate last bit of CodeGen and Target in llvm-mc.Evan Cheng2011-07-206-54/+19
| | | | | | | There is still a bit more refactoring left to do in Targets. But we are now very close to fixing all the layering issues in MC. llvm-svn: 135611
* Regenerate configure and friends for Chad.Eric Christopher2011-07-201-1/+4
| | | | llvm-svn: 135592
* - Move CodeModel from a TargetMachine global option to MCCodeGenInfo.Evan Cheng2011-07-204-34/+38
| | | | | | | | - Introduce JITDefault code model. This tells targets to set different default code model for JIT. This eliminates the ugly hack in TargetMachine where code model is changed after construction. llvm-svn: 135580
* Add MCObjectFileInfo and sink the MCSections initialization code fromEvan Cheng2011-07-206-254/+294
| | | | | | | | TargetLoweringObjectFileImpl down to MCObjectFileInfo. TargetAsmInfo is done to one last method. It's *almost* gone! llvm-svn: 135569
* Distinguish between two copies of one inlined variable.Devang Patel2011-07-191-0/+3
| | | | llvm-svn: 135528
* Enhance the FixedLengthDecoder to be able to generate plausible-looking ↵Owen Anderson2011-07-191-0/+4
| | | | | | decoders for ARM. llvm-svn: 135524
* Reapply r135457. This needs llvm-gcc change, that I forgot to check-in ↵Devang Patel2011-07-192-3/+13
| | | | | | yesterday. llvm-svn: 135504
* Revert "Make a provision to encode inline location in a variable. This will ↵Bob Wilson2011-07-192-13/+3
| | | | | | | | enable dwarf writer to easily distinguish between two instances of a inlined variable in one basic block." This reverts commit 9fec5e346efdf744b151ae6604f912908315fa7a. llvm-svn: 135486
* Convert SimplifyGEPInst to use ArrayRef.Jay Foad2011-07-191-1/+3
| | | | llvm-svn: 135482
* Convert gep_type_begin and gep_type_end to use ArrayRef.Jay Foad2011-07-191-8/+8
| | | | llvm-svn: 135481
* Convert TargetData::getIndexedOffset to use ArrayRef.Jay Foad2011-07-191-2/+3
| | | | llvm-svn: 135478
* Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.Jay Foad2011-07-191-2/+4
| | | | llvm-svn: 135477
* Add intrinsics for the zext / sext instructions.Richard Osborne2011-07-191-0/+4
| | | | llvm-svn: 135476
* Add intrinsics for the testct, testwct instructions.Richard Osborne2011-07-191-0/+4
| | | | llvm-svn: 135475
* Add intrinsics for the peek and endin instructions.Richard Osborne2011-07-191-0/+4
| | | | llvm-svn: 135474
* Introduce MCCodeGenInfo, which keeps information that can affect codegenEvan Cheng2011-07-1910-27/+165
| | | | | | | (including compilation, assembly). Move relocation model Reloc::Model from TargetMachine to MCCodeGenInfo so it's accessible even without TargetMachine. llvm-svn: 135468
* Make isLoadExtLegal and isTruncStoreLegal check what the name says. :) This ↵Eli Friedman2011-07-191-5/+2
| | | | | | might have some minor effect on CellSPU, but all other targets should be unaffected. Fixing per report from Damien Vincent on llvmdev. llvm-svn: 135462
* Make a provision to encode inline location in a variable. This will enable ↵Devang Patel2011-07-192-3/+13
| | | | | | dwarf writer to easily distinguish between two instances of a inlined variable in one basic block. llvm-svn: 135457
* Revert r135423.Devang Patel2011-07-191-4/+0
| | | | llvm-svn: 135454
* Add a method to set compact unwind encoding information in a frame.Bill Wendling2011-07-191-0/+1
| | | | llvm-svn: 135449
* Rename CompactEncoding to CompactUnwindEncoding.Bill Wendling2011-07-191-7/+7
| | | | llvm-svn: 135448
* Add a field for the compact unwind encoding.Bill Wendling2011-07-191-1/+2
| | | | llvm-svn: 135446
* Move the compact encoding from the target-specific library to the code-genBill Wendling2011-07-181-0/+9
| | | | | | library. llvm-svn: 135443
* Eliminate TargetAsmInfo::getCompactUnwindEncoding. This get rid of theEvan Cheng2011-07-181-8/+0
| | | | | | use of TargetFrameLowering in TargetAsmInfo. llvm-svn: 135439
* Move getInitialFrameState from TargetFrameInfo to MCAsmInfo (suggestions forEvan Cheng2011-07-186-23/+22
| | | | | | better location welcome). llvm-svn: 135438
* Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future ↵Jeffrey Yasskin2011-07-181-4/+16
| | | | | | | | | ambiguity errors like the one corrected by r135261. Migrate all LLVM callers of the old constructor to the new one. llvm-svn: 135431
* Sink getDwarfRegNum, getLLVMRegNum, getSEHRegNum from TargetRegisterInfo downEvan Cheng2011-07-187-48/+106
| | | | | | | | | to MCRegisterInfo. Also initialize the mapping at construction time. This patch eliminate TargetRegisterInfo from TargetAsmInfo. It's another step towards fixing the layering violation. llvm-svn: 135424
* During bottom up fast-isel, instructions emitted to materalize registers are ↵Devang Patel2011-07-181-0/+4
| | | | | | | | at top of basic block and do not have debug location. This may misguide debugger while entering the basic block and sometimes debugger provides semi useful view of current location to developer by picking up previous known location as current location. Assign a sensible location to the first instruction in a basic block, if it does not have one location derived from source file, so that debugger can provide meaningful user experience to developers in edge cases. [take 2] llvm-svn: 135423
* various cleanups noticed by FritsChris Lattner2011-07-181-7/+7
| | | | llvm-svn: 135396
* remove pastoChris Lattner2011-07-181-4/+0
| | | | llvm-svn: 135394
* Hopefully fix some GCC-based buildbots. GCC apparently decays the array to a ↵Frits van Bommel2011-07-181-1/+1
| | | | | | pointer here before overload resolution, so construct with an explicit length instead. llvm-svn: 135391
* Migrate LLVM and Clang to use the new makeArrayRef(...) functions where ↵Frits van Bommel2011-07-181-1/+1
| | | | | | | | previously explicit non-default constructors were used. Mostly mechanical with some manual reformatting. llvm-svn: 135390
* Introduce the 'makeArrayRef(...)' family of functions, which fills a similar ↵Frits van Bommel2011-07-181-1/+47
| | | | | | | | | | role for ArrayRef<> as std::make_pair() fills for std::pair<>: they return the right instantiation of ArrayRef<T> based on the types of the parameters. They mostly mirror the ArrayRef constructors, with two exceptions: * There's no function mirroring the default constructor because it wouldn't have any parameters to deduce the right ArrayRef<T> from. * There's an explicit SmallVector<T> overload in addition to the SmallVectorImpl<T> overload. Without it, the single-element overload would try to create an ArrayRef<Smallvector<T> > because it's a better match according to the overloading rules. (And both overloads are used in the current tree, so neither is redundant) llvm-svn: 135389
* land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner2011-07-1845-374/+374
| | | | llvm-svn: 135375
* add iteration support to TinyPtrVector for clang's use.Chris Lattner2011-07-181-0/+22
| | | | llvm-svn: 135367
* fix a warning in TinyPtrVector, adopt it in SSAUpdater, saving someChris Lattner2011-07-181-1/+1
| | | | | | mallocs. llvm-svn: 135366
* introduce a new TinyPtrVector class.Chris Lattner2011-07-181-0/+115
| | | | llvm-svn: 135365
* Remove "LoopInfo.h" include from BranchProbabilityInfo.h.Jakub Staszak2011-07-161-5/+3
| | | | llvm-svn: 135353
* Add MachineBlockFrequency analysis.Jakub Staszak2011-07-163-2/+60
| | | | llvm-svn: 135352
* Fix SCEVEXpander to handle arbitrary phi expansion. Includes twoAndrew Trick2011-07-161-2/+2
| | | | | | | related bug fixes and corresponding assertions for uninitialized data and missing NULL check. Test cases will be included with the new LFTR. llvm-svn: 135333
* deconstify getType()'s.Chris Lattner2011-07-151-3/+3
| | | | llvm-svn: 135323
* Extract parts of RAGreedy::splitAroundRegion as SplitKit methods.Jakob Stoklund Olesen2011-07-151-0/+3
| | | | | | | | | | | This gets rid of some of the gory splitting details in RAGreedy and makes them available to future SplitKit clients. Slightly generalize the functionality to support multi-way splitting. Specifically, SplitEditor::splitLiveThroughBlock() supports switching between different register intervals in a block. llvm-svn: 135307
* Teach llvm-objdump to disassemble sections symbol by symbol.Benjamin Kramer2011-07-151-0/+4
| | | | llvm-svn: 135289
* ObjectFile: Add a method to check whether a section contains a symbol.Benjamin Kramer2011-07-152-0/+13
| | | | | | | - No ELF or COFF implementation yet, I don't have a way to test that. Should be straightforward to add though. llvm-svn: 135288
OpenPOWER on IntegriCloud