[llvm] 69e0f79 - [Orc] Fix name of LLVMOrcIRTransformLayerSetTransform
Valentin Churavy via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 30 12:43:57 PDT 2021
Author: Valentin Churavy
Date: 2021-06-30T21:43:34+02:00
New Revision: 69e0f790e03221b65fbf9f9fb340a7bb916bb12c
URL: https://github.com/llvm/llvm-project/commit/69e0f790e03221b65fbf9f9fb340a7bb916bb12c
DIFF: https://github.com/llvm/llvm-project/commit/69e0f790e03221b65fbf9f9fb340a7bb916bb12c.diff
LOG: [Orc] Fix name of LLVMOrcIRTransformLayerSetTransform
In https://reviews.llvm.org/D103855 we added access to IRTransformLayer, but I
just noticed that the function name is following the wrong pattern.
Differential Revision: https://reviews.llvm.org/D104840
Added:
Modified:
llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
Removed:
################################################################################
diff --git a/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c b/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
index f549f1c462b9c..6335327b6baf7 100644
--- a/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
+++ b/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c
@@ -91,7 +91,7 @@ int main(int argc, char *argv[]) {
// Use TransformLayer to set IR transform.
{
LLVMOrcIRTransformLayerRef TL = LLVMOrcLLJITGetIRTransformLayer(J);
- LLVMOrcLLJITIRTransformLayerSetTransform(TL, *transform, NULL);
+ LLVMOrcIRTransformLayerSetTransform(TL, *transform, NULL);
}
// Create our demo module.
diff --git a/llvm/include/llvm-c/Orc.h b/llvm/include/llvm-c/Orc.h
index 9656c00075ec7..75af7320ce253 100644
--- a/llvm/include/llvm-c/Orc.h
+++ b/llvm/include/llvm-c/Orc.h
@@ -338,7 +338,7 @@ typedef struct LLVMOrcOpaqueIRTransformLayer *LLVMOrcIRTransformLayerRef;
* 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.
*/
@@ -783,7 +783,7 @@ void LLVMOrcDisposeObjectLayer(LLVMOrcObjectLayerRef ObjLayer);
* 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);
diff --git a/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp b/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
index c6c0152cc9e45..ed45ec6f836be 100644
--- a/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
@@ -526,7 +526,7 @@ void LLVMOrcDisposeObjectLayer(LLVMOrcObjectLayerRef ObjLayer) {
delete unwrap(ObjLayer);
}
-void LLVMOrcLLJITIRTransformLayerSetTransform(
+void LLVMOrcIRTransformLayerSetTransform(
LLVMOrcIRTransformLayerRef IRTransformLayer,
LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx) {
unwrap(IRTransformLayer)
More information about the llvm-commits
mailing list