[PATCH] D104840: [Orc] Fix name of LLVMOrcIRTransformLayerSetTransform
Valentin Churavy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 23 22:51:09 PDT 2021
vchuravy created this revision.
vchuravy added a reviewer: lhames.
Herald added a reviewer: deadalnix.
Herald added a subscriber: hiraditya.
vchuravy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In https://reviews.llvm.org/D103855 we added access to IRTransformLayer, but I
just noticed that the function name is following the wrong pattern.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104840
Files:
llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
Index: llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
+++ llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
@@ -636,7 +636,7 @@
delete unwrap(ObjLayer);
}
-void LLVMOrcLLJITIRTransformLayerSetTransform(
+void LLVMOrcIRTransformLayerSetTransform(
LLVMOrcIRTransformLayerRef IRTransformLayer,
LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx) {
unwrap(IRTransformLayer)
Index: llvm/include/llvm-c/Orc.h
===================================================================
--- llvm/include/llvm-c/Orc.h
+++ llvm/include/llvm-c/Orc.h
@@ -360,7 +360,7 @@
* management.
*
* Clients can call LLVMOrcLLJITGetIRTransformLayer to obtain the transform
- * layer of a LLJIT instance, and use LLVMOrcLLJITIRTransformLayerSetTransform
+ * layer of a LLJIT instance, and use LLVMOrcIRTransformLayerSetTransform
* to set the function. This can be used to override the default transform
* layer.
*/
@@ -871,7 +871,7 @@
* Set the transform function of the provided transform layer, passing through a
* pointer to user provided context.
*/
-void LLVMOrcLLJITIRTransformLayerSetTransform(
+void LLVMOrcIRTransformLayerSetTransform(
LLVMOrcIRTransformLayerRef IRTransformLayer,
LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx);
Index: llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
===================================================================
--- llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
+++ llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
@@ -91,7 +91,7 @@
// Use TransformLayer to set IR transform.
{
LLVMOrcIRTransformLayerRef TL = LLVMOrcLLJITGetIRTransformLayer(J);
- LLVMOrcLLJITIRTransformLayerSetTransform(TL, *transform, NULL);
+ LLVMOrcIRTransformLayerSetTransform(TL, *transform, NULL);
}
// Create our demo module.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104840.354158.patch
Type: text/x-patch
Size: 2064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210624/83db0332/attachment.bin>
More information about the llvm-commits
mailing list