summaryrefslogtreecommitdiffstats
path: root/llvm/include
Commit message (Collapse)AuthorAgeFilesLines
* Change the argument to getIntegerSCEV to be an int64_t, ratherDan Gohman2010-02-041-1/+1
| | | | | | | than int. This will make it more convenient for LSR, which does a lot of things with int64_t offsets. llvm-svn: 95281
* Filled in a few new APIs for the enhancedSean Callanan2010-02-041-1/+1
| | | | | | | | disassembly library that provide access to instruction information, and fixed ambiguous wording in the comments for the header. llvm-svn: 95274
* Provide interface to identifiy artificial methods.Devang Patel2010-02-031-1/+3
| | | | llvm-svn: 95240
* r94686 changed all ModuleProvider parameters to Modules, which made theJeffrey Yasskin2010-02-031-5/+0
| | | | | | | | 1-argument ExecutionEngine::create(Module*) ambiguous with the signature that used to be ExecutionEngine::create(ModuleProvider*, defaulted_params). Fixed by removing the 1-argument create(). Fixes PR6221. llvm-svn: 95236
* llvm-mc: Add --show-inst option, for showing the MCInst inline with the assemblyDaniel Dunbar2010-02-031-1/+11
| | | | | | output. llvm-svn: 95227
* Remove redundant declaration.Zhongxing Xu2010-02-031-2/+0
| | | | llvm-svn: 95213
* Add constructors.Zhongxing Xu2010-02-031-0/+5
| | | | llvm-svn: 95212
* make MachineModuleInfoMachO hold non-const MCSymbol*'s insteadChris Lattner2010-02-031-9/+8
| | | | | | | of const ones. non-const ones aren't very useful, because you can't even, say, emit them. llvm-svn: 95205
* change addPassesToEmitFile to return true on failure instead of its input,Chris Lattner2010-02-031-23/+13
| | | | | | | add -filetype=null for performance testing and remove -filetype=dynlib, which isn't planned to be implemented. llvm-svn: 95202
* Reconfigure with autoconf-2.60, and fix autoconf.ac to work with that version.Jeffrey Yasskin2010-02-031-18/+0
| | | | llvm-svn: 95191
* privatize a bunch of methods and move \n printing into them.Chris Lattner2010-02-031-5/+7
| | | | llvm-svn: 95186
* Hook up -filetype=obj through the MachO streamer. Here's a demo:Chris Lattner2010-02-021-1/+1
| | | | | | | | | | | | | $ cat t.ll @g = global i32 42 $ llc t.ll -o t.o -filetype=obj $ nm t.o 00000000 D _g There is still a ton of work left. Instructions are not being encoded yet apparently. llvm-svn: 95162
* Revert 95130.Evan Cheng2010-02-021-1/+1
| | | | llvm-svn: 95160
* refactor code so that LLVMTargetMachine creates the asmstreamer and Chris Lattner2010-02-023-10/+21
| | | | | | | mccontext instead of having AsmPrinter do it. This allows other types of MCStreamer's to be passed in. llvm-svn: 95155
* Remove a bunch of stuff around the edges of the ELF writer.Chris Lattner2010-02-022-32/+2
| | | | | | | Now the only use of the ELF writer is the JIT, which won't be easy to fix in the short term. :( :( llvm-svn: 95148
* MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections.Daniel Dunbar2010-02-021-1/+8
| | | | llvm-svn: 95135
* eliminate all the dead addSimpleCodeEmitter implementations.Chris Lattner2010-02-021-32/+0
| | | | | | | eliminate random "code emitter" stuff in Alpha, except for the JIT path. Next up, remove the template cruft. llvm-svn: 95131
* Pass callsite return type to TargetLowering::LowerCall and use that to check ↵Evan Cheng2010-02-021-1/+1
| | | | | | sibcall eligibility. llvm-svn: 95130
* Make DenseSet's erase pass on the return value rather than swallowing it.Dan Gohman2010-02-021-2/+2
| | | | llvm-svn: 95127
* Fix function names in comments. Thanks Duncan!Dan Gohman2010-02-021-3/+3
| | | | llvm-svn: 95126
* eliminate FileModel::Model, just use CodeGenFileType. The clientChris Lattner2010-02-021-26/+20
| | | | | | | of the code generator shouldn't care what object format a target uses. llvm-svn: 95124
* remove the remnants of TargetMachOWriterInfo.Chris Lattner2010-02-022-118/+0
| | | | llvm-svn: 95114
* Add a new top-level MachO.h file for manifest constants, fixing Chris Lattner2010-02-021-0/+56
| | | | | | a layering violation from MC -> Target. llvm-svn: 95113
* eliminate all forms of addPassesToEmitMachineCode exceptChris Lattner2010-02-021-79/+0
| | | | | | | | | the one used by the JIT. Remove all forms of addPassesToEmitFileFinish except the one used by the static code generator. Inline the remaining version of addPassesToEmitFileFinish into its only caller. llvm-svn: 95109
* Inline addAssemblyEmitter into its one real caller and deleteChris Lattner2010-02-021-8/+0
| | | | | | | the -print-emitted-asm option. The JIT shouldn't have to pull in the asmprinter. llvm-svn: 95100
* Adding missing methods for creating Add, Mul, Neg and Sub with NUW.Duncan Sands2010-02-026-1/+88
| | | | llvm-svn: 95086
* Return value on every path.Zhongxing Xu2010-02-021-3/+2
| | | | llvm-svn: 95075
* simplify code.Zhongxing Xu2010-02-021-9/+6
| | | | llvm-svn: 95074
* More logic correction: RemoveOverlap should always create new tree. Add aZhongxing Xu2010-02-021-10/+10
| | | | | | parameter to record whether changes actually happened. llvm-svn: 95073
* Add a lookup method to the IntervalMap. The difference from the original Zhongxing Xu2010-02-021-1/+36
| | | | | | lookup is that if the lookup key is contained in the key, we return the data. llvm-svn: 95070
* Fix a bunch of errors in the old logic.Zhongxing Xu2010-02-021-7/+12
| | | | llvm-svn: 95056
* 11.8p1: A nested class is a member and as such has the same access rights asZhongxing Xu2010-02-021-3/+0
| | | | | | any other member. llvm-svn: 95047
* Kill the Mach-O writer, and temporarily make filetype=obj an error.Nate Begeman2010-02-012-17/+0
| | | | | | The MCStreamer based assemblers will take over for this functionality. llvm-svn: 95033
* Add "dump" method to IVUsersOneStride.Bill Wendling2010-02-011-0/+5
| | | | llvm-svn: 95022
* Do an early exit when the result is known cheaply.Duncan Sands2010-02-011-0/+5
| | | | llvm-svn: 95002
* eliminate a bunch of pointless LLVMContext arguments.Chris Lattner2010-02-011-2/+1
| | | | llvm-svn: 95001
* Generalize target-independent folding rules for sizeof to handle moreDan Gohman2010-02-012-3/+17
| | | | | | | | | | | | | | | | | | | cases, and implement target-independent folding rules for alignof and offsetof. Also, reassociate reassociative operators when it leads to more folding. Generalize ScalarEvolution's isOffsetOf to recognize offsetof on arrays. Rename getAllocSizeExpr to getSizeOfExpr, and getFieldOffsetExpr to getOffsetOfExpr, for consistency with analagous ConstantExpr routines. Make the target-dependent folder promote GEP array indices to pointer-sized integers, to make implicit casting explicit and exposed to subsequent folding. And add a bunch of testcases for this new functionality, and a bunch of related existing functionality. llvm-svn: 94987
* Add a getNUWMul function.Dan Gohman2010-02-011-0/+1
| | | | llvm-svn: 94982
* Add a generalized form of ConstantExpr::getOffsetOf which works forDan Gohman2010-02-011-3/+8
| | | | | | | array types as well as struct types, and which accepts arbitrary Constant indicies. llvm-svn: 94981
* Add an immutable interval map, prepared to be used by flat memory model Zhongxing Xu2010-02-013-2/+203
| | | | | | in the analyzer. WIP. llvm-svn: 94976
* Simplify code. We can compare TNew with T in one batch.Zhongxing Xu2010-02-011-14/+3
| | | | llvm-svn: 94973
* Moved InstallLexer() from the X86-specific AsmLexerSean Callanan2010-01-311-0/+10
| | | | | | | | to the TargetAsmLexer class so that clients can actually use the TargetAsmLexer they get from a Target. llvm-svn: 94940
* Check alignment of loads when deciding whether it is safe to execute themBob Wilson2010-01-301-1/+1
| | | | | | | unconditionally. Besides checking the offset, also check that the underlying object is aligned as much as the load itself. llvm-svn: 94875
* Make sure the size is doubled (not 4x).Junjie Gu2010-01-291-1/+1
| | | | llvm-svn: 94845
* Rename two IRReader.h functions to indicate that they return a ModuleJeffrey Yasskin2010-01-291-7/+7
| | | | | | | that loads its contents lazily from bitcode. I think these are the only remaining mis-named functions. llvm-svn: 94840
* Improve isSafeToLoadUnconditionally to recognize that GEPs with constantBob Wilson2010-01-291-1/+2
| | | | | | | indices are safe if the result is known to be within the bounds of the underlying object. llvm-svn: 94829
* Assign the ordering of SDNodes in a much less intrusive fashion. After theBill Wendling2010-01-281-1/+1
| | | | | | | "visit*" method is called, take the newly created nodes, walk them in a DFS fashion, and if they don't have an ordering set, then give it one. llvm-svn: 94757
* Add llvm::Program::ChangeStderrToBinary().Douglas Gregor2010-01-281-2/+4
| | | | llvm-svn: 94743
* Make getAlignOf return an i64, for consistency with getSizeOf andDan Gohman2010-01-281-2/+1
| | | | | | | getOffsetOf, and remove the comment about assuming i8 is byte-aligned, which is no longer applicable. llvm-svn: 94738
* Remove SCEVAllocSizeExpr and SCEVFieldOffsetExpr, and in their placeDan Gohman2010-01-282-98/+11
| | | | | | | | | | | | | | | | use plain SCEVUnknowns with ConstantExpr::getSizeOf and ConstantExpr::getOffsetOf constants. This eliminates a bunch of special-case code. Also add code for pattern-matching these expressions, for clients that want to recognize them. Move ScalarEvolution's logic for expanding array and vector sizeof expressions into an element count times the element size, to expose the multiplication to subsequent folding, into the regular constant folder. llvm-svn: 94737
OpenPOWER on IntegriCloud