aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Support/FileUtilities.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-12-16[Support] llvm::Optional => std::optionalFangrui Song1-1/+1
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2022-12-03[mlir] Use std::nullopt instead of None (NFC)Kazu Hirata1-1/+1
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2022-11-23Apply clang-tidy fixes for llvm-include-order in FileUtilities.cpp (NFC)Mehdi Amini1-2/+2
2022-11-14Add missing include.Johannes Reifferscheid1-2/+3
2022-11-12[mlir] Add openInputFile overload that accepts the expected alignmentRiver Riddle1-3/+16
This just forwards to the alignment parameter on `MemoryBuffer::getFileOrSTDIN`.
2021-04-30Support: Stop using F_{None,Text,Append} compatibility synonyms, NFCDuncan P. N. Exon Smith1-1/+1
Stop using the compatibility spellings of `OF_{None,Text,Append}` left behind by 1f67a3cba9b09636c56e2109d8a35ae96dc15782. A follow-up will remove them. Differential Revision: https://reviews.llvm.org/D101650
2020-01-26Mass update the MLIR license header to mention "Part of the LLVM project"Mehdi Amini1-1/+1
This is an artifact from merging MLIR into LLVM, the file headers are now aligned with the rest of the project.
2019-12-23Adjust License.txt file to use the LLVM licenseMehdi Amini1-13/+4
PiperOrigin-RevId: 286906740
2019-08-17Change from llvm::make_unique to std::make_uniqueJacques Pienaar1-2/+2
Switch to C++14 standard method as llvm::make_unique has been removed ( https://reviews.llvm.org/D66259). Also mark some targets as c++14 to ease next integrates. PiperOrigin-RevId: 263953918
2019-05-20 Remove unnecessary C++ specifier in CPP files. NFC.Jacques Pienaar1-1/+1
These are only required in .h files to disambiguate between C and C++ header files. -- PiperOrigin-RevId: 248219135
2019-03-29Extract openInputFile() into Support/FileUtilitiesLei Zhang1-2/+19
Multiple binaries have the needs to open input files. Use this function to de-duplicate the code. Also changed openOutputFile() to return errors using std::string since it is a library call and accessing I/O in library call is not friendly. PiperOrigin-RevId: 228878221
2019-03-29Create the Support library.Alex Zinenko1-0/+39
This has been a long-standing TODO in the build system. Now that we need to share the non-inlined implementation of file utilities for translators, create a separate library for support functionality. Move Support/* headers to the new library in the build system. PiperOrigin-RevId: 222398880