aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorRahul Kayaith <rkayaith@gmail.com>2023-01-22 23:31:18 -0500
committerRahul Kayaith <rkayaith@gmail.com>2023-03-01 18:17:14 -0500
commita7f8b7cd8e49bb8680c34c1cc290a121ae37b4ac (patch)
tree78d5ad808fcb94a1e95e89bd18c8421ed3323429 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentc00f81cc46bd88b001110e9c6564c4848f82900c (diff)
downloadllvm-a7f8b7cd8e49bb8680c34c1cc290a121ae37b4ac.zip
llvm-a7f8b7cd8e49bb8680c34c1cc290a121ae37b4ac.tar.gz
llvm-a7f8b7cd8e49bb8680c34c1cc290a121ae37b4ac.tar.bz2
[mlir][python] Remove "Raw" OpView classes
The raw `OpView` classes are used to bypass the constructors of `OpView` subclasses, but having a separate class can create some confusing behaviour, e.g.: ``` op = MyOp(...) # fails, lhs is 'MyOp', rhs is '_MyOp' assert type(op) == type(op.operation.opview) ``` Instead we can use `__new__` to achieve the same thing without a separate class: ``` my_op = MyOp.__new__(MyOp) OpView.__init__(my_op, op) ``` Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D143830
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions