[llvm] [C API] Add blockaddress getters to C API (PR #77390)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 01:15:14 PST 2024


================
@@ -2328,6 +2328,16 @@ LLVMValueRef LLVMConstShuffleVector(LLVMValueRef VectorAConstant,
                                     LLVMValueRef MaskConstant);
 LLVMValueRef LLVMBlockAddress(LLVMValueRef F, LLVMBasicBlockRef BB);
 
+/**
+ * Gets the function associated with a given BlockAddress constant value
+ */
+LLVMValueRef LLVMGetBlockAddressFunction(LLVMValueRef BlockAddr);
+
+/**
+ * Gets the basic block associated with a given BlockAddress constant value
----------------
nikic wrote:

```suggestion
 * Gets the basic block associated with a given BlockAddress constant value.
```

https://github.com/llvm/llvm-project/pull/77390


More information about the llvm-commits mailing list