History log of /llvm-project/llvm/lib/Support/CommandLine.cpp (Results 301 – 325 of 443)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 56efff07 20-Sep-2009 Chris Lattner <sabre@nondot.org>

smallvectorize getExtraOptionNames

llvm-svn: 82377


# 131dca9c 20-Sep-2009 Chris Lattner <sabre@nondot.org>

minor cleanups.

llvm-svn: 82375


# 00f53807 20-Sep-2009 Chris Lattner <sabre@nondot.org>

strength reduce further StringRef-> const char*, saving another 620 bytes.

llvm-svn: 82372


# b1f2e101 20-Sep-2009 Chris Lattner <sabre@nondot.org>

switch an std::string to StringRef, shaving 400 bytes off CommandLine.o

llvm-svn: 82370


# 6ec8caf0 20-Sep-2009 Chris Lattner <sabre@nondot.org>

the switch from std::map -> StringMap caused --help output to be in
non-sorted order, restore the sort.

llvm-svn: 82368


# 8d0309da 20-Sep-2009 Chris Lattner <sabre@nondot.org>

eliminate the duplicate detection loop, moving it into the loop that populates the Opts vector in the first place.

llvm-svn: 82367


# 64dbb5ca 20-Sep-2009 Chris Lattner <sabre@nondot.org>

Eliminate a masochistic "algorithm" loop, shrinking CommandLine.o from 71524->70700 bytes.

llvm-svn: 82366


# 28610b98 20-Sep-2009 Chris Lattner <sabre@nondot.org>

don't use count + insert, just do insert + failure. Also, instead of deleting from
the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :)

llvm-svn: 82365


# 41f8b0b7 20-Sep-2009 Chris Lattner <sabre@nondot.org>

switch to SmallPtrSet instead of std::set, saving 1K from the
release-asserts .o file (72900->71856).

llvm-svn: 82364


# f74e28ab 20-Sep-2009 Chris Lattner <sabre@nondot.org>

change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.

llvm-svn: 82363


# e7c1e210 20-Sep-2009 Chris Lattner <sabre@nondot.org>

Several changes together in a murky mess:
1. Change some "\n" -> '\n'.
2. eliminte some std::string's by using raw_ostream::indent.
3. move a bunch of code out of the main arg parser routine into

Several changes together in a murky mess:
1. Change some "\n" -> '\n'.
2. eliminte some std::string's by using raw_ostream::indent.
3. move a bunch of code out of the main arg parser routine into
a new static HandlePrefixedOrGroupedOption function.
4. Greatly simplify the implementation of getOptionPred, and make
it avoid splitting prefix options at = when that doesn't match
a non-prefix option.

llvm-svn: 82362

show more ...


# ecbb126e 20-Sep-2009 Daniel Dunbar <daniel@zuster.org>

Fix refacto, this code was expecting to stride past the argument prefix.

llvm-svn: 82360


# 5a3fa4ef 20-Sep-2009 Chris Lattner <sabre@nondot.org>

convert argname to StringRef, simplifying LookupOption.

llvm-svn: 82352


# 0a40a975 20-Sep-2009 Chris Lattner <sabre@nondot.org>

convert 'Value' to StringRef which makes it easier to
maintain the "null is unspecified, empty is empty" semantics.

llvm-svn: 82351


# 40fef803 20-Sep-2009 Chris Lattner <sabre@nondot.org>

Change CommaSeparated processing to do it with StringRef instead of temporary std::strings.
This requires StringRef'izing ProvideOption which I also did.

llvm-svn: 82350


# 77c27243 20-Sep-2009 Chris Lattner <sabre@nondot.org>

rewrite ParseCStringVector in terms of stringref.

llvm-svn: 82348


# 1b88fbda 20-Sep-2009 Chris Lattner <sabre@nondot.org>

coding style cleanup

llvm-svn: 82346


# 3b8adaf4 20-Sep-2009 Chris Lattner <sabre@nondot.org>

convert a bunch more stuff to use StringRef. The ArgName arguments are now
stringref because they may not be nul terminated. For options like -Lfoo
this now avoids a O(n) temporary std::strings wh

convert a bunch more stuff to use StringRef. The ArgName arguments are now
stringref because they may not be nul terminated. For options like -Lfoo
this now avoids a O(n) temporary std::strings where N is the length of
the string after -L.

llvm-svn: 82345

show more ...


# ca2552d9 20-Sep-2009 Chris Lattner <sabre@nondot.org>

avoid a bunch of malloc thrashing for PositinoalVals by eliminating
a std::vector and a bunch of std::string temporaries.

llvm-svn: 82341


# fa9c6f43 19-Sep-2009 Chris Lattner <sabre@nondot.org>

Avoid some temporary strings.

llvm-svn: 82339


# aecd74d8 19-Sep-2009 Chris Lattner <sabre@nondot.org>

convert a bunch of std::strings to use StringRef. This should eliminate
a massive number of temporary strings created when parsing a command line.
More still left to eliminate.

llvm-svn: 82318


# 543d9b2f 19-Sep-2009 Benjamin Kramer <benny.kra@googlemail.com>

Try to speed up the slowest parts of the CommandLine library

- Replace std::map<std::string with StringMap
- Eliminate unnecessary std::string copies
- ~10% speed-up for clang's testsuite on my mach

Try to speed up the slowest parts of the CommandLine library

- Replace std::map<std::string with StringMap
- Eliminate unnecessary std::string copies
- ~10% speed-up for clang's testsuite on my machine (debug build)

llvm-svn: 82312

show more ...


# fc39586b 02-Sep-2009 Daniel Dunbar <daniel@zuster.org>

Show derived host triple in --version.

llvm-svn: 80855


# 36b3caf9 23-Aug-2009 Chris Lattner <sabre@nondot.org>

clean up #includes.

llvm-svn: 79857


# c9aa4808 23-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com>

Remove uses of Streams.h from CommandLine.cpp, fix some whitespace and other minor tweaks.

llvm-svn: 79847


1...<<1112131415161718