Fast-math flags for LLVM IR parsing and printing
authorMichael Ilseman <milseman@apple.com>
Tue, 27 Nov 2012 00:42:44 +0000 (00:42 +0000)
committerMichael Ilseman <milseman@apple.com>
Tue, 27 Nov 2012 00:42:44 +0000 (00:42 +0000)
commit15c13d3e63d7745bccad74d547af4e3482193eaa
tree7f27560aaf6fc5c3698d8a3a574545745350b98d
parent4d265332341360a7cb5b15e2c2f0c675a7fed766
Fast-math flags for LLVM IR parsing and printing

Added in the ability to read LLVM IR text that contains fast-math flags as a sequence of capital letters separated by spaces in any order. Added in the printing of the fast-math flags in a canonical order, and don't print the other flags when 'fast' is specified, as 'fast' implies all the others.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/AsmParser/LLToken.h
lib/VMCore/AsmWriter.cpp