Home
last modified time | relevance | path

Searched refs:vectorcall (Results 1 – 25 of 27) sorted by relevance

12

/third_party/python/Doc/c-api/
Dcall.rst9 *tp_call* and vectorcall.
40 The vectorcall protocol was introduced in :pep:`590` as an additional protocol
43 As rule of thumb, CPython will prefer the vectorcall for internal calls
47 Therefore, a class supporting vectorcall must also implement
57 A class supporting vectorcall **must** also implement
60 A class should not implement vectorcall if that would be slower
63 in implementing vectorcall.
65 Classes can implement the vectorcall protocol by enabling the
89 If this flag is set in a vectorcall *nargsf* argument, the callee is allowed
102 To call an object that implements vectorcall, use a :ref:`call API <capi-call>`
[all …]
Dtypeobj.rst706 the object using the :ref:`vectorcall protocol <vectorcall>`,
726 the vectorcall protocol.
728 likely making it inconsistent with the vectorcall function.
734 If you use vectorcall, plan for updating your code for Python 3.9.
747 :ref:`vectorcall <vectorcall>`, except when
1181 the :ref:`vectorcall protocol <vectorcall>`.
2015 :ref:`vectorcall <vectorcall>` for ``type.__call__``.
Dstructures.rst305 :ref:`vectorcall protocol <vectorcall>`:
/third_party/python/Objects/
Dmethodobject.c47 vectorcallfunc vectorcall; in PyCMethod_New() local
55 vectorcall = NULL; in PyCMethod_New()
58 vectorcall = cfunction_vectorcall_FASTCALL; in PyCMethod_New()
61 vectorcall = cfunction_vectorcall_FASTCALL_KEYWORDS; in PyCMethod_New()
64 vectorcall = cfunction_vectorcall_NOARGS; in PyCMethod_New()
67 vectorcall = cfunction_vectorcall_O; in PyCMethod_New()
70 vectorcall = cfunction_vectorcall_FASTCALL_KEYWORDS_METHOD; in PyCMethod_New()
113 op->vectorcall = vectorcall; in PyCMethod_New()
343 offsetof(PyCFunctionObject, vectorcall), /* tp_vectorcall_offset */
Ddescrobject.c696 offsetof(PyMethodDescrObject, vectorcall), /* tp_vectorcall_offset */
904 vectorcallfunc vectorcall; in PyDescr_NewMethod() local
909 vectorcall = method_vectorcall_VARARGS; in PyDescr_NewMethod()
912 vectorcall = method_vectorcall_VARARGS_KEYWORDS; in PyDescr_NewMethod()
915 vectorcall = method_vectorcall_FASTCALL; in PyDescr_NewMethod()
918 vectorcall = method_vectorcall_FASTCALL_KEYWORDS; in PyDescr_NewMethod()
921 vectorcall = method_vectorcall_NOARGS; in PyDescr_NewMethod()
924 vectorcall = method_vectorcall_O; in PyDescr_NewMethod()
927 vectorcall = method_vectorcall_FASTCALL_KEYWORDS_METHOD; in PyDescr_NewMethod()
941 descr->vectorcall = vectorcall; in PyDescr_NewMethod()
Dclassobject.c114 im->vectorcall = method_vectorcall; in PyMethod_New()
337 offsetof(PyMethodObject, vectorcall), /* tp_vectorcall_offset */
Dfuncobject.c79 op->vectorcall = _PyFunction_Vectorcall; in PyFunction_NewWithQualName()
691 offsetof(PyFunctionObject, vectorcall), /* tp_vectorcall_offset */
/third_party/python/Include/cpython/
Dmethodobject.h29 vectorcallfunc vectorcall; member
/third_party/python/Include/
Dclassobject.h17 vectorcallfunc vectorcall; member
Ddescrobject.h56 vectorcallfunc vectorcall; member
Dfuncobject.h44 vectorcallfunc vectorcall; member
/third_party/python/Modules/
D_functoolsmodule.c42 vectorcallfunc vectorcall; member
194 pto->vectorcall = NULL; in partial_vectorcall_fallback()
273 pto->vectorcall = NULL; in partial_setvectorcall()
279 pto->vectorcall = (vectorcallfunc)partial_vectorcall; in partial_setvectorcall()
346 offsetof(partialobject, vectorcall), READONLY},
D_testcapimodule.c6468 vectorcallfunc vectorcall; member
6478 return PyBool_FromLong(md->vectorcall != NULL); in MethodDescriptor_vectorcall()
6485 op->vectorcall = MethodDescriptor_vectorcall; in MethodDescriptor_new()
6519 .tp_vectorcall_offset = offsetof(MethodDescriptorObject, vectorcall),
6541 vectorcallfunc vectorcall; member
6548 op->base.vectorcall = NULL; in MethodDescriptor2_new()
6549 op->vectorcall = MethodDescriptor_vectorcall; in MethodDescriptor2_new()
6559 .tp_vectorcall_offset = offsetof(MethodDescriptor2Object, vectorcall),
/third_party/python/Lib/test/
Dtest_call.py616 def vectorcall(func, args, kwargs): function
664 self.assertEqual(expected, vectorcall(func, args, kwargs))
/third_party/python/Misc/NEWS.d/
D3.9.0a5.rst98 Speed up calls to ``frozenset()`` by using the :pep:`590` ``vectorcall``
119 Speed up calls to ``set()`` by using the :pep:`590` ``vectorcall`` calling
168 Speed up calls to ``tuple()`` by using the :pep:`590` ``vectorcall`` calling
D3.10.0a7.rst115 Speed up calls to ``map()`` by using the :pep:`590` ``vectorcall`` calling
242 Speed up calls to ``filter()`` by using the :pep:`590` ``vectorcall``
D3.9.0a6.rst124 Speed up calls to ``dict()`` by using the :pep:`590` ``vectorcall`` calling
281 Speed up calls to ``list()`` by using the :pep:`590` ``vectorcall`` calling
D3.10.0a6.rst109 Simple calls to ``type(object)`` are now faster due to the ``vectorcall``
D3.9.0a1.rst924 Implemented separate vectorcall functions for every calling convention of
975 ``super().__call__()`` when the base class uses vectorcall.
2870 Optimized ``functools.partial`` by using vectorcall.
5649 The vectorcall protocol now requires that the caller passes only strings as
5659 The vectorcall protocol is now enabled for ``type`` objects: set
5660 ``tp_vectorcall`` to a vectorcall function to be used instead of ``tp_new``
D3.9.0a4.rst232 ``vectorcall`` calling convention. Patch by Mark Shannon.
D3.10.0a1.rst70 Speed up calls to ``reversed()`` by using the :pep:`590` ``vectorcall``
80 Calls to ``float()`` are now faster due to the ``vectorcall`` calling
90 Speed up calls to ``bool()`` by using the :pep:`590` ``vectorcall`` calling
/third_party/python/Doc/whatsnew/
D3.9.rst85 now sped up using :pep:`590` vectorcall;
764 :pep:`590` vectorcall protocol.
1369 * The vectorcall protocol now requires that the caller passes only strings as
D3.8.rst352 :ref:`vectorcall` is added to the Python/C API.
D3.10.rst1560 * The following built-in functions now support the faster :pep:`590` vectorcall calling convention:
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86CallingConv.td357 // X86-64 vectorcall return-value convention.

12