@@ -317,12 +317,12 @@ class PyLocation : public BaseContextObject {
317
317
void contextExit (pybind11::object excType, pybind11::object excVal,
318
318
pybind11::object excTb);
319
319
320
- // / Gets a capsule wrapping the void* within the MlirContext .
320
+ // / Gets a capsule wrapping the void* within the MlirLocation .
321
321
pybind11::object getCapsule ();
322
322
323
- // / Creates a PyMlirContext from the MlirContext wrapped by a capsule.
324
- // / Note that PyMlirContext instances are uniqued, so the returned object
325
- // / may be a pre-existing object. Ownership of the underlying MlirContext
323
+ // / Creates a PyLocation from the MlirLocation wrapped by a capsule.
324
+ // / Note that PyLocation instances are uniqued, so the returned object
325
+ // / may be a pre-existing object. Ownership of the underlying MlirLocation
326
326
// / is taken by calling this function.
327
327
static PyLocation createFromCapsule (pybind11::object capsule);
328
328
@@ -597,12 +597,12 @@ class PyAttribute : public BaseContextObject {
597
597
operator MlirAttribute () const { return attr; }
598
598
MlirAttribute get () const { return attr; }
599
599
600
- // / Gets a capsule wrapping the void* within the MlirContext .
600
+ // / Gets a capsule wrapping the void* within the MlirAttribute .
601
601
pybind11::object getCapsule ();
602
602
603
- // / Creates a PyMlirContext from the MlirContext wrapped by a capsule.
604
- // / Note that PyMlirContext instances are uniqued, so the returned object
605
- // / may be a pre-existing object. Ownership of the underlying MlirContext
603
+ // / Creates a PyAttribute from the MlirAttribute wrapped by a capsule.
604
+ // / Note that PyAttribute instances are uniqued, so the returned object
605
+ // / may be a pre-existing object. Ownership of the underlying MlirAttribute
606
606
// / is taken by calling this function.
607
607
static PyAttribute createFromCapsule (pybind11::object capsule);
608
608
@@ -643,12 +643,12 @@ class PyType : public BaseContextObject {
643
643
operator MlirType () const { return type; }
644
644
MlirType get () const { return type; }
645
645
646
- // / Gets a capsule wrapping the void* within the MlirContext .
646
+ // / Gets a capsule wrapping the void* within the MlirType .
647
647
pybind11::object getCapsule ();
648
648
649
- // / Creates a PyMlirContext from the MlirContext wrapped by a capsule.
650
- // / Note that PyMlirContext instances are uniqued, so the returned object
651
- // / may be a pre-existing object. Ownership of the underlying MlirContext
649
+ // / Creates a PyType from the MlirType wrapped by a capsule.
650
+ // / Note that PyType instances are uniqued, so the returned object
651
+ // / may be a pre-existing object. Ownership of the underlying MlirType
652
652
// / is taken by calling this function.
653
653
static PyType createFromCapsule (pybind11::object capsule);
654
654
0 commit comments