summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
* Prevent assert when using '"' in names (via hexadecimal).Daniel Dunbar2008-10-141-2/+1
| | | | | | Update LangRef to mention \xx quoting in names. llvm-svn: 57538
* Change getLLVMName to use raw_ostream & PrintLLVMName.Daniel Dunbar2008-10-141-59/+15
| | | | | | | | - Avoids duplicated quotification code. - Remove QuoteNameIfNeeded. - No functionality change. llvm-svn: 57537
* Unbreak DbgStopPointInst::getFileName().Daniel Dunbar2008-10-111-1/+1
| | | | llvm-svn: 57373
* Add a "loses information" return value to APFloat::convertDale Johannesen2008-10-093-13/+23
| | | | | | | and APFloat::convertToInteger. Restore return value to IEEE754. Adjust all users accordingly. llvm-svn: 57329
* Rename APFloat::convertToAPInt to bitcastToAPInt toDale Johannesen2008-10-092-3/+3
| | | | | | | make it clearer what the function does. No functional change. llvm-svn: 57325
* Add <cstdio> include where needed by gcc-4.4.Duncan Sands2008-10-081-0/+1
| | | | | | Patch by Samuel Tardieu. llvm-svn: 57291
* Remove interfaces implemented by dead pass from the list of available passes.Devang Patel2008-10-061-7/+17
| | | | | | Patch By Matthijs Kooijman. llvm-svn: 57202
* fix an incorrect and extremely confusing error messageChris Lattner2008-10-051-1/+1
| | | | llvm-svn: 57123
* Fix function attribute verification check.Devang Patel2008-10-031-6/+5
| | | | | | Thanks Duncan! llvm-svn: 57029
* Verify function attributes.Devang Patel2008-10-031-1/+5
| | | | llvm-svn: 57020
* Remove redundant check.Devang Patel2008-10-021-9/+0
| | | | llvm-svn: 56960
* Attributes noinline alwaysinline are incompatibleDevang Patel2008-10-011-0/+17
| | | | llvm-svn: 56939
* add a new form of Type::dump that takes a module for type names,Chris Lattner2008-10-011-0/+8
| | | | | | patch provided by Tomas Lindquist Olsen! llvm-svn: 56929
* Make some implicit conversions explicit, to avoid compiler warnings.Dan Gohman2008-10-011-2/+2
| | | | llvm-svn: 56927
* Factorize code: remove variants of "strip offDuncan Sands2008-10-011-8/+21
| | | | | | | | | | | pointer bitcasts and GEP's", and centralize the logic in Value::getUnderlyingObject. The difference with stripPointerCasts is that stripPointerCasts only strips GEPs if all indices are zero, while getUnderlyingObject strips GEPs no matter what the indices are. llvm-svn: 56922
* Don't prepend a space character for constants in Value::print.Dan Gohman2008-10-011-1/+1
| | | | llvm-svn: 56920
* Support inreg, zext and sext as return value attributes.Devang Patel2008-09-291-7/+9
| | | | llvm-svn: 56801
* Implement function notes as function attributes. Devang Patel2008-09-261-28/+0
| | | | llvm-svn: 56716
* Now Attributes are divided in three groupsDevang Patel2008-09-264-12/+26
| | | | | | | | | | | | | - return attributes - inreg, zext and sext - parameter attributes - function attributes - nounwind, readonly, readnone, noreturn Return attributes use 0 as the index. Function attributes use ~0U as the index. This patch requires corresponding changes in llvm-gcc and clang. llvm-svn: 56704
* Fix missing whitespace in the printing of function notes.Dan Gohman2008-09-261-3/+3
| | | | llvm-svn: 56702
* Another file I forgot.Dale Johannesen2008-09-261-1/+0
| | | | llvm-svn: 56678
* Add "inreg" field to CallSDNode (doesn't increaseDale Johannesen2008-09-261-3/+0
| | | | | | | | | its size). Adjust various lowering functions to pass this info through from CallInst. Use it to implement sseregparm returns on X86. Remove X86_ssecall calling convention. llvm-svn: 56677
* Make pointer parameter const for isUsedInBasicBlock.Bill Wendling2008-09-251-1/+1
| | | | llvm-svn: 56625
* Large mechanical patch.Devang Patel2008-09-257-186/+186
| | | | | | | | | | | | | | | s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. This requires corresponding changes in llvm-gcc and clang. llvm-svn: 56622
* Avoid a spurious extra space character when printing empty structs.Dan Gohman2008-09-251-3/+4
| | | | llvm-svn: 56616
* CMake: Lists of source files updated. Removed bogus dependency fromOscar Fuentes2008-09-241-3/+1
| | | | | | lib/VMCore/CMakeLists.txt llvm-svn: 56541
* s/ParamAttrsWithIndex/FnAttributeWithIndex/gDevang Patel2008-09-243-18/+18
| | | | llvm-svn: 56535
* s/ParamAttributeListImpl/AttributeListImpl/gDevang Patel2008-09-241-12/+12
| | | | llvm-svn: 56532
* Put FN_NOTE_AlwaysInline and others in FnAttr namespace.Devang Patel2008-09-241-3/+3
| | | | llvm-svn: 56527
* Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.Devang Patel2008-09-231-3/+3
| | | | | | Do not check isDeclaration() in hasNote(). It is clients' responsibility. llvm-svn: 56524
* 80 colsDevang Patel2008-09-231-1/+1
| | | | llvm-svn: 56521
* s/ParameterAttributes/Attributes/gDevang Patel2008-09-235-42/+42
| | | | llvm-svn: 56513
* Use parameter attribute store (soon to be renamed) forDevang Patel2008-09-234-8/+19
| | | | | | Function Notes also. Function notes are stored at index ~0. llvm-svn: 56511
* Rationalize the names of passes that print information:Duncan Sands2008-09-231-2/+2
| | | | | | | | | | | | | | | | | -callgraph => print-callgraph -callscc => print-callgraph-sccs -cfgscc => print-cfg-sccs -externalfnconstants => print-externalfnconstants -print => print-function -print-alias-sets (no change) -print-callgraph => dot-callgraph -print-cfg => dot-cfg -print-cfg-only => dot-cfg-only -print-dom-info (no change) -printm => print-module -printusedtypes => print-used-types llvm-svn: 56487
* Add hasNote() to check note associated with a function.Devang Patel2008-09-221-15/+24
| | | | llvm-svn: 56477
* Initial support for the CMake build system.Oscar Fuentes2008-09-221-0/+32
| | | | llvm-svn: 56419
* backing out my last commit, it was not intended to go on the trunkGabor Greif2008-09-193-510/+11
| | | | llvm-svn: 56349
* first shot at removing Use::ValGabor Greif2008-09-193-11/+510
| | | | | | untested, Use::swap() is definitely not done yet llvm-svn: 56348
* Fix WriteAsOperand to not emit a leading space character. AdjustDan Gohman2008-09-141-30/+56
| | | | | | | | | | | | | | | | | | its callers to emit a space character before calling it when a space is needed. This fixes several spurious whitespace issues in ScalarEvolution's debug dumps. See the test changes for examples. This also fixes odd space-after-tab indentation in the output for switch statements, and changes calls from being printed like this: call void @foo( i32 %x ) to this: call void @foo(i32 %x) llvm-svn: 56196
* Add assertion check.Devang Patel2008-09-091-1/+1
| | | | llvm-svn: 56016
* Make safer variant of alias resolution routine to be defaultAnton Korobeynikov2008-09-092-4/+4
| | | | llvm-svn: 56005
* Fix typoAnton Korobeynikov2008-09-091-1/+1
| | | | llvm-svn: 55998
* Fix incorrect linker behaviour: we shouldn't resolve weak aliases.Anton Korobeynikov2008-09-091-1/+9
| | | | llvm-svn: 55997
* Simplify.Devang Patel2008-09-091-8/+2
| | | | | | Fix outdated comment. llvm-svn: 55993
* Extend the vcmp/fcmp LLVM IR instructions to take vectors as argumentsDan Gohman2008-09-091-4/+17
| | | | | | | | | | | | | | and, if so, to return a vector of boolean as a result; Extend the select LLVM IR instruction to allow you to specify a result type which is a vector of boolean, in which case the result will be an element-wise selection instead of choosing one vector or the other; and Update LangRef.html to describe these changes. This patch was contributed by Preston Gurd! llvm-svn: 55969
* Bitcasting two or from aggregate types is not permitted. UpdateDan Gohman2008-09-081-0/+6
| | | | | | LangRef.html, and teach the verifier to check bitcast instructions. llvm-svn: 55921
* Tidy up several unbeseeming casts from pointer to intptr_t.Dan Gohman2008-09-042-10/+9
| | | | llvm-svn: 55779
* Avoid extra comma.Devang Patel2008-09-031-3/+4
| | | | llvm-svn: 55742
* Parse and print opt_size note.Devang Patel2008-09-031-2/+11
| | | | llvm-svn: 55740
* Try to fold each element of a vector. This is needed to maintain structuralNick Lewycky2008-09-031-12/+4
| | | | | | equivalence. llvm-svn: 55694
OpenPOWER on IntegriCloud