Changeset 4666
- Timestamp:
- Jul 13, 2015, 10:18:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
icGREP/icgrep-devel/icgrep/generate_predefined_ucd_functions.cpp
r4665 r4666 33 33 #include <llvm/Target/TargetSubtargetInfo.h> 34 34 #include <llvm/Support/FormattedStream.h> 35 36 35 #include "llvm/Support/FileSystem.h" 36 #include <llvm/Transforms/Scalar.h> 37 37 38 38 39 #include <boost/algorithm/string/case_conv.hpp> … … 118 119 Triple TheTriple; 119 120 120 if (TheTriple.getTriple().empty()) { 121 TheTriple.setTriple(sys::getDefaultTargetTriple()); 122 } 121 // Initialize targets first, so that --version shows registered targets. 122 InitializeAllTargets(); 123 InitializeAllTargetMCs(); 124 InitializeAllAsmPrinters(); 125 InitializeAllAsmParsers(); 126 127 128 TheTriple.setTriple(sys::getDefaultTargetTriple()); 123 129 124 130 // Get the target specific parser. … … 140 146 if (Target == nullptr) { 141 147 throw std::runtime_error("Could not allocate target machine!"); 148 } 149 150 if (OutputFilename.empty()) { 151 OutputFilename = "ucd.o"; 142 152 } 143 153 … … 174 184 } 175 185 PM.add(new DataLayoutPass()); 186 PM.add(createReassociatePass()); 187 PM.add(createInstructionCombiningPass()); 188 PM.add(createSinkingPass()); 176 189 177 190 formatted_raw_ostream FOS(Out->os());
Note: See TracChangeset
for help on using the changeset viewer.