From e4a4122eb6768b69640173b4c32fd88de4547227 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 3 Nov 2023 10:46:07 +0100 Subject: [IR] Remove zext and sext constant expressions (#71040) Remove support for zext and sext constant expressions. All places creating them have been removed beforehand, so this just removes the APIs and uses of these constant expressions in tests. There is some additional cleanup that can be done on top of this, e.g. we can remove the ZExtInst vs ZExtOperator footgun. This is part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179. --- llvm/docs/LangRef.rst | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/docs/LangRef.rst') diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 9c8e264..6fd4832 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -4657,10 +4657,6 @@ The following is the syntax for constant expressions: ``trunc (CST to TYPE)`` Perform the :ref:`trunc operation ` on constants. -``zext (CST to TYPE)`` - Perform the :ref:`zext operation ` on constants. -``sext (CST to TYPE)`` - Perform the :ref:`sext operation ` on constants. ``fptrunc (CST to TYPE)`` Truncate a floating-point constant to another floating-point type. The size of CST must be larger than the size of TYPE. Both types -- cgit v1.1