summaryrefslogtreecommitdiff
path: root/mlir/lib/Transforms/StripDebugInfo.cpp
AgeCommit message (Collapse)Author
2025-06-29[mlir] Remove unused includes (NFC) (#146278)Kazu Hirata
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
2022-08-31[MLIR] Update pass declarations to new autogenerated filesMichele Scuttari
The patch introduces the required changes to update the pass declarations and definitions to use the new autogenerated files and allow dropping the old infrastructure. Reviewed By: mehdi_amini, rriddle Differential Review: https://reviews.llvm.org/D132838
2022-08-30Revert "[MLIR] Update pass declarations to new autogenerated files"Michele Scuttari
This reverts commit 2be8af8f0e0780901213b6fd3013a5268ddc3359.
2022-08-30[MLIR] Update pass declarations to new autogenerated filesMichele Scuttari
The patch introduces the required changes to update the pass declarations and definitions to use the new autogenerated files and allow dropping the old infrastructure. Reviewed By: mehdi_amini, rriddle Differential Review: https://reviews.llvm.org/D132838
2021-12-08Adjust "end namespace" comment in MLIR to match new agree'd coding styleMehdi Amini
See D115115 and this mailing list discussion: https://lists.llvm.org/pipermail/llvm-dev/2021-December/154199.html Differential Revision: https://reviews.llvm.org/D115309
2021-05-26[mlir] Make StripDebugInfo strip out block arguments locsthomasraoux
Differential Revision: https://reviews.llvm.org/D103187
2020-11-19[mlir][BuiltinDialect] Resolve comments from D91571River Riddle
* Move ops to a BuiltinOps.h * Add file comments
2020-11-17[mlir][NFC] Remove references to Module.h and Function.hRiver Riddle
These includes have been deprecated in favor of BuiltinDialect.h, which contains the definitions of ModuleOp and FuncOp. Differential Revision: https://reviews.llvm.org/D91572
2020-04-07[mlir][Pass] Update the PassGen to generate base classes instead of utilitiesRiver Riddle
Summary: This is much cleaner, and fits the same structure as many other tablegen backends. This was not done originally as the CRTP in the pass classes made it overly verbose/complex. Differential Revision: https://reviews.llvm.org/D77367
2020-04-07[mlir][Pass] Remove the use of CRTP from the Pass classesRiver Riddle
This revision removes all of the CRTP from the pass hierarchy in preparation for using the tablegen backend instead. This creates a much cleaner interface in the C++ code, and naturally fits with the rest of the infrastructure. A new utility class, PassWrapper, is added to replicate the existing behavior for passes not suitable for using the tablegen backend. Differential Revision: https://reviews.llvm.org/D77350
2020-04-01[mlir][Pass] Add support for generating pass utilities via tablegenRiver Riddle
This revision adds support for generating utilities for passes such as options/statistics/etc. that can be inferred from the tablegen definition. This removes additional boilerplate from the pass, and also makes it easier to remove the reliance on the pass registry to provide certain things(e.g. the pass argument). Differential Revision: https://reviews.llvm.org/D76659
2020-04-01[mlir][Pass] Add a tablegen backend for defining Pass informationRiver Riddle
This will greatly simplify a number of things related to passes: * Enables generation of pass registration * Enables generation of boiler plate pass utilities * Enables generation of pass documentation This revision focuses on adding the basic structure and adds support for generating the registration for passes in the Transforms/ directory. Future revisions will add more support and move more passes over. Differential Revision: https://reviews.llvm.org/D76656
2020-02-05[mlir] Add support for basic location translation to LLVM.River Riddle
Summary: This revision adds basic support for emitting line table information when exporting to LLVMIR. We don't yet have a story for supporting all of the LLVM debug metadata, so this revision stubs some features(like subprograms) to enable emitting line tables. Differential Revision: https://reviews.llvm.org/D73934
2020-01-26Mass update the MLIR license header to mention "Part of the LLVM project"Mehdi Amini
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 Amini
PiperOrigin-RevId: 286906740
2019-09-13NFC: Finish replacing FunctionPassBase/ModulePassBase with OpPassBase.River Riddle
These directives were temporary during the generalization of FunctionPass/ModulePass to OpPass. PiperOrigin-RevId: 268970259
2019-08-17Change from llvm::make_unique to std::make_uniqueJacques Pienaar
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-08-12Express ownership transfer in PassManager API through std::unique_ptr (NFC)Mehdi Amini
Since raw pointers are always passed around for IR construct without implying any ownership transfer, it can be error prone to have implicit ownership transferred the same way. For example this code can seem harmless: Pass *pass = .... pm.addPass(pass); pm.addPass(pass); pm.run(module); PiperOrigin-RevId: 263053082
2019-07-10NFC: Rename Function to FuncOp.River Riddle
PiperOrigin-RevId: 257293379
2019-07-01NFC: Refactor Function to be value typed.River Riddle
Move the data members out of Function and into a new impl storage class 'FunctionStorage'. This allows for Function to become value typed, which will greatly simplify the transition of Function to FuncOp(given that FuncOp is also value typed). PiperOrigin-RevId: 255983022
2019-06-25NFC: Uniformize the return of the LocationAttr 'get' methods to 'Location'.River Riddle
PiperOrigin-RevId: 255078768
2019-03-29Replace usages of Instruction with Operation in the Transforms/ directory.River Riddle
PiperOrigin-RevId: 240636130
2019-03-29Simplify API uses of `getContext()` (NFC)Mehdi Amini
The Pass base class is providing a convenience getContext() accessor. PiperOrigin-RevId: 240634961
2019-03-29Rename the Instruction class to Operation. This just renames the class, ↵River Riddle
usages of Instruction will still refer to a typedef in the interim. This is step 1/N to renaming Instruction to Operation. PiperOrigin-RevId: 240431520
2019-03-29Make FunctionPass::getFunction() return a reference to the function, instead ofChris Lattner
a pointer. This makes it consistent with all the other methods in FunctionPass, as well as with ModulePass::getModule(). NFC. PiperOrigin-RevId: 240257910
2019-03-29Change Pass:getFunction() to return pointer instead of ref - NFCUday Bondhugula
- change this for consistency - everything else similar takes/returns a Function pointer - the FuncBuilder ctor, Block/Value/Instruction::getFunction(), etc. - saves a whole bunch of &s everywhere PiperOrigin-RevId: 236928761
2019-03-29Remove PassResult and have the runOnFunction/runOnModule functions return ↵River Riddle
void instead. To signal a pass failure, passes should now invoke the 'signalPassFailure' method. This provides the equivalent functionality when needed, but isn't an intrusive part of the API like PassResult. PiperOrigin-RevId: 236202029
2019-03-29Port all of the existing passes over to the new pass manager infrastructure. ↵River Riddle
This is largely NFC. PiperOrigin-RevId: 235952357
2019-03-29Define a PassID class to use when defining a pass. This allows for the type ↵River Riddle
used for the ID field to be self documenting. It also allows for the compiler to know the set alignment of the ID object, which is useful for storing pointer identifiers within llvm data structures. PiperOrigin-RevId: 235107957
2019-03-29NFC: Refactor the files related to passes.River Riddle
* PassRegistry is split into its own source file. * Pass related files are moved to a new library 'Pass'. PiperOrigin-RevId: 234705771
2019-03-29Replace the walkOps/visitOperationInst variants from the InstWalkers with ↵River Riddle
the Instruction variants. PiperOrigin-RevId: 232322030
2019-03-29Fold the functionality of OperationInst into Instruction. OperationInst ↵River Riddle
still exists as a forward declaration and will be removed incrementally in a set of followup cleanup patches. PiperOrigin-RevId: 232198540
2019-03-29Standardize the spelling of debug info to "debuginfo" in opt flags.River Riddle
PiperOrigin-RevId: 231610337
2019-03-29Add a function pass to strip debug info from functions and instructions.River Riddle
PiperOrigin-RevId: 230654315