Make OpOperand constructor private (NFC)

This is intended to avoid programming mistake where a temporary OpOperand is
created, for example:

        for (OpOperand user : result.getUsers()) {

It can be confusing for the user, in particular since in MLIR most classes are intended to
be copied around by value while they have reference semantics.

Differential Revision: https://reviews.llvm.org/D81815

GitOrigin-RevId: 13331477c0d1aeb8f3c9f24b3d0487bc6fcaa225
1 file changed
tree: 76c951dfcdcbe67a18f934a875c4156d3a83b061
  1. cmake/
  2. docs/
  3. examples/
  4. include/
  5. integration_test/
  6. lib/
  7. test/
  8. tools/
  9. unittests/
  10. utils/
  11. .clang-format
  12. .clang-tidy
  13. CMakeLists.txt
  14. LICENSE.TXT
  15. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.