This is an archive of the discontinued LLVM Phabricator instance.

[llvm-stress] Enhance scalar type selection from command line.
ClosedPublic

Authored by chfast on Jun 23 2015, 11:25 AM.

Details

Summary

I replaced command line options like -generate-x86-fp80 with one list-like option -types.
E.g. -types=x86_fp80,i100,i256,half.

Concerns:
You can repeat the type on the list and the order is make the difference. Should I stabilize it?

Diff Detail

Repository
rL LLVM

Event Timeline

chfast updated this revision to Diff 28272.Jun 23 2015, 11:25 AM
chfast retitled this revision from to [llvm-stress] Enhance scalar type selection from command line..
chfast updated this object.
chfast edited the test plan for this revision. (Show Details)
chfast added a subscriber: Unknown Object (MLST).
chfast updated this object.Jun 30 2015, 5:04 AM
chfast added a reviewer: nadav.
hfinkel accepted this revision.Jul 9 2015, 5:51 PM
hfinkel edited edge metadata.

LGTM, thanks!

You can repeat the type on the list and the order is make the difference. Should I stabilize it?

I don't think this is worth worrying about. This is an internal testing tool.

tools/llvm-stress/llvm-stress.cpp
702 ↗(On Diff #28272)

Not clear why you're removing the llvm:: here in favor of adding 'using namespace llvm;'. I don't have a problem with it, but if it is an independent change, please split it into a separate commit.

This revision is now accepted and ready to land.Jul 9 2015, 5:51 PM
chfast added inline comments.Jul 10 2015, 1:27 AM
tools/llvm-stress/llvm-stress.cpp
702 ↗(On Diff #28272)

It's not like that. I moved the using namespace llvm from the top of the file because I had to specialize the template inside the llvm namespace up there.

Removing the llvm prefix was only for consistency as all other functions inside the main() skip the prefix. I will send that part in a separate commit.

This revision was automatically updated to reflect the committed changes.