summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
* Add comment that MDNode::getFunction() is not to be used by ↵Victor Hernandez2010-01-181-1/+2
| | | | | | performance-critical code (currently only used by AsmWriter) llvm-svn: 93802
* Simplify MDNode::getFunction() and assertLocalFunction() by avoiding extra ↵Victor Hernandez2010-01-181-46/+39
| | | | | | Function* variable and smallptrset since function-local metadata cannot be cyclic llvm-svn: 93762
* reject some invalid IR. We already assert and reject this from theChris Lattner2010-01-181-0/+2
| | | | | | .ll parser, but PR6070 wants it in the verifier too. llvm-svn: 93756
* Make printing of metadata more robust when function is not found (which is ↵Victor Hernandez2010-01-181-1/+1
| | | | | | the normal situation for non function-local metadata) llvm-svn: 93748
* Update CMake files for Mangler move.Benjamin Kramer2010-01-161-1/+0
| | | | llvm-svn: 93665
* move the mangler into libtarget from vmcore.Chris Lattner2010-01-161-104/+0
| | | | llvm-svn: 93664
* reapply the mangler gutting patch.Chris Lattner2010-01-161-183/+4
| | | | llvm-svn: 93656
* Revert 93648.Rafael Espindola2010-01-161-4/+183
| | | | | | | | Mangler::getMangledName is used from lto Mangler::setUseQuotes is used in the AsmPrinter Mangler::setSymbolsCanStartWithDigit is used in the AsmPrinter llvm-svn: 93652
* Mangler::getMangledName is now dead, remove it and all the other stuff in ↵Chris Lattner2010-01-161-183/+4
| | | | | | Mangler that is now transitively dead. woo. llvm-svn: 93648
* add an inefficient version of getNameWithPrefix that returns an std::string.Chris Lattner2010-01-161-0/+10
| | | | llvm-svn: 93641
* Remove the InlineHint attribute. There are no current or plannedEric Christopher2010-01-151-2/+0
| | | | | | users. llvm-svn: 93558
* Improve llvm.dbg.declare intrinsic by referring directly to the storage in ↵Victor Hernandez2010-01-153-4/+16
| | | | | | | | | its first argument, via function-local metadata (instead of via a bitcast). This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare. It also strips old llvm.dbg.declare intrinsics that did not pass metadata as the first argument. llvm-svn: 93531
* Revert r93504 because older uses of llvm.dbg.declare intrinsics need to be ↵Victor Hernandez2010-01-151-4/+3
| | | | | | auto-upgraded llvm-svn: 93515
* Improve llvm.dbg.declare intrinsic by referring directly to the storage in ↵Victor Hernandez2010-01-151-3/+4
| | | | | | | | its first argument, via function-local metadata (instead of via a bitcast). This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare. llvm-svn: 93504
* In debug builds, assert that function-local metadata has only 1 parent functionVictor Hernandez2010-01-141-1/+30
| | | | llvm-svn: 93449
* Fix printing of function-local metadata in AsmWriterVictor Hernandez2010-01-141-2/+3
| | | | llvm-svn: 93402
* Add MDNode::getFunction(), which figures out the metadata's function, if it ↵Victor Hernandez2010-01-141-0/+34
| | | | | | has function that it is local to. llvm-svn: 93400
* Introduce Twine::toStringRef, a variant of toVector which avoids the copy if theBenjamin Kramer2010-01-133-23/+9
| | | | | | | twine can be represented as a single StringRef. Use the new methode to simplify some twine users. llvm-svn: 93317
* don't add the \1 to the name.Chris Lattner2010-01-131-1/+1
| | | | llvm-svn: 93304
* add new isSingleStringRef()/getSingleStringRef() methods to twine, Chris Lattner2010-01-131-2/+7
| | | | | | | | and use them to avoid a copy of a string in getNameWithPrefix in the common case. It seems like Value::setName and other places should use this as well? llvm-svn: 93301
* ugh, my last patch just sped up a method and changed all the clientsChris Lattner2010-01-131-19/+51
| | | | | | | | that I want to completely eliminate. Add fixme's so I remember this in the future, and add the missing helper that they should be upgraded to use instead. llvm-svn: 93300
* change Mangler::makeNameProper to return its result in a SmallVectorChris Lattner2010-01-131-53/+66
| | | | | | | | | | | | instead of returning it in an std::string. Based on this change: 1. Change TargetLoweringObjectFileCOFF::getCOFFSection to take a StringRef 2. Change a bunch of targets to call makeNameProper with a smallstring, making several of them *much* more efficient. 3. Rewrite Mangler::makeNameProper to not build names and then prepend prefixes, not use temporary std::strings, and to avoid other crimes. llvm-svn: 93298
* my mistake, Mangler::makeNameProper wants to take a twine, not a stringref!Chris Lattner2010-01-131-2/+5
| | | | llvm-svn: 93296
* change makeNameProper to take a stringref instead of std::string.Chris Lattner2010-01-131-8/+8
| | | | llvm-svn: 93295
* Further progration of metadata operands. TheDale Johannesen2010-01-131-0/+5
| | | | | | | dumper doesn't really do what I want yet, but at least it doesn't crash now. llvm-svn: 93272
* Use Twine, instead of StringRef, for consistency.Devang Patel2010-01-121-5/+18
| | | | llvm-svn: 93249
* Use ilist_tratis to autoinsert and remove NamedMDNode from MDSymbolTable.Devang Patel2010-01-122-12/+25
| | | | llvm-svn: 93247
* Reimplement getToken and SplitString as "StringRef helper functions"Benjamin Kramer2010-01-111-7/+10
| | | | | | | | | - getToken is modeled after StringRef::split but it can split on multiple separator chars and skips leading seperators. - SplitString is a StringRef::split variant for more than 2 elements with the same behaviour as getToken. llvm-svn: 93161
* Respond to Chris' review:Victor Hernandez2010-01-111-1/+5
| | | | | | | Make InsertDbgValueIntrinsic() and get Offset take and recieve a uint64_t. Get constness correct for getVariable() and getValue(). llvm-svn: 93149
* fix a buggy assertion, CreateIntegerCast should allow Chris Lattner2010-01-101-1/+2
| | | | | | integer vectors as well as just integers. llvm-svn: 93126
* Suppress a warning on gcc 4.4.Mikhail Glushenkov2010-01-101-26/+26
| | | | | warning: suggest parentheses around ‘&&’ within ‘||’. llvm-svn: 93121
* Compute isFunctionLocal in MDNode ctor or via argument in new function ↵Victor Hernandez2010-01-101-3/+32
| | | | | | | | getWhenValsUnresolved(). Document PFS argument to ParseValID() and ConvertGlobalOrMetadataValIDToValue(). llvm-svn: 93108
* "In order to ease automatic bindings generation, it would be helpful if ↵Chris Lattner2010-01-092-36/+40
| | | | | | | | boolean values were distinguishable from integers. The attached patch introduces "typedef int LLVMBool;", and uses LLVMBool instead of int throughout the C API, wherever a boolean value is called for." Patch by James Y Knight! llvm-svn: 93079
* Delete NamedMDSymTable while destrucing Module.Devang Patel2010-01-092-0/+3
| | | | | | Disable copy ctor and operator= for NamedMDSymTable. Hide typedef that should be public. llvm-svn: 93041
* Derive NamedMDNode from Value.Devang Patel2010-01-091-1/+1
| | | | llvm-svn: 93032
* Use separate namespace for named metadata.Devang Patel2010-01-072-6/+24
| | | | llvm-svn: 92931
* Allow null to be an element of NamedMDNode. e.g. !llvm.stuff = !{!0, !1, null}Devang Patel2010-01-051-6/+5
| | | | llvm-svn: 92783
* Fix comment for CheckDebugInfoIntrinsicsVictor Hernandez2010-01-051-2/+3
| | | | llvm-svn: 92774
* Move remaining stuff to the isInteger predicate.Benjamin Kramer2010-01-053-10/+9
| | | | llvm-svn: 92771
* NamedMDNode is a collection MDNodes.Devang Patel2010-01-051-11/+11
| | | | llvm-svn: 92761
* Convert a ton of simple integer type equality tests to the new predicate.Benjamin Kramer2010-01-055-8/+8
| | | | llvm-svn: 92760
* Add a new predicate for integer type equality tests.Benjamin Kramer2010-01-051-0/+5
| | | | llvm-svn: 92759
* Avoid going through the LLVMContext for type equality where it's safe to ↵Benjamin Kramer2010-01-054-17/+13
| | | | | | dereference the type pointer. llvm-svn: 92726
* Fix a build error and change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92669
* Change errs() to dbgs().David Greene2010-01-051-2/+3
| | | | llvm-svn: 92665
* Change errs() to dbgs().David Greene2010-01-051-10/+11
| | | | llvm-svn: 92664
* Change errs() to dbgs().David Greene2010-01-051-3/+3
| | | | llvm-svn: 92663
* Change errs() to dbgs().David Greene2010-01-051-9/+9
| | | | llvm-svn: 92662
* Change errs() to dbgs().David Greene2010-01-051-2/+3
| | | | llvm-svn: 92661
* Change errs() to dbgs().David Greene2010-01-051-29/+30
| | | | llvm-svn: 92660
OpenPOWER on IntegriCloud