[compiler-rt] 0fd017c - [nfc][ctx_profile] Move `CtxInstrContextNode.h` in `include`

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 17:33:06 PDT 2024


Author: Mircea Trofin
Date: 2024-05-09T17:30:46-07:00
New Revision: 0fd017ce43875283ecce55f18f721f47ba37a920

URL: https://github.com/llvm/llvm-project/commit/0fd017ce43875283ecce55f18f721f47ba37a920
DIFF: https://github.com/llvm/llvm-project/commit/0fd017ce43875283ecce55f18f721f47ba37a920.diff

LOG: [nfc][ctx_profile] Move `CtxInstrContextNode.h` in `include`

Follow-up from PR #91669.

Added: 
    llvm/include/llvm/ProfileData/CtxInstrContextNode.h

Modified: 
    compiler-rt/lib/ctx_profile/CtxInstrContextNode.h
    compiler-rt/test/ctx_profile/TestCases/check-same-ctx-node.test

Removed: 
    llvm/lib/ProfileData/CtxInstrContextNode.h


################################################################################
diff  --git a/compiler-rt/lib/ctx_profile/CtxInstrContextNode.h b/compiler-rt/lib/ctx_profile/CtxInstrContextNode.h
index 1627bdfffd089..a916f197aa148 100644
--- a/compiler-rt/lib/ctx_profile/CtxInstrContextNode.h
+++ b/compiler-rt/lib/ctx_profile/CtxInstrContextNode.h
@@ -55,8 +55,8 @@
 /// to be concerned with memory safety. Their subcontexts never get populated,
 /// though. The runtime code here produces and recognizes them.
 
-#ifndef LLVM_LIB_PROFILEDATA_CTXINSTRCONTEXTNODE_H
-#define LLVM_LIB_PROFILEDATA_CTXINSTRCONTEXTNODE_H
+#ifndef LLVM_PROFILEDATA_CTXINSTRCONTEXTNODE_H
+#define LLVM_PROFILEDATA_CTXINSTRCONTEXTNODE_H
 
 #include <stdint.h>
 #include <stdlib.h>

diff  --git a/compiler-rt/test/ctx_profile/TestCases/check-same-ctx-node.test b/compiler-rt/test/ctx_profile/TestCases/check-same-ctx-node.test
index 37d36dbb93791..4ad7b23d458f0 100644
--- a/compiler-rt/test/ctx_profile/TestCases/check-same-ctx-node.test
+++ b/compiler-rt/test/ctx_profile/TestCases/check-same-ctx-node.test
@@ -2,4 +2,4 @@
 ; NOTE: if this test fails, please make sure the two files are identical copies
 ; of eachother.
 ;
-; RUN: 
diff  %crt_src/lib/ctx_profile/CtxInstrContextNode.h %llvm_src/lib/ProfileData/CtxInstrContextNode.h
+; RUN: 
diff  %crt_src/lib/ctx_profile/CtxInstrContextNode.h %llvm_src/include/llvm/ProfileData/CtxInstrContextNode.h

diff  --git a/llvm/lib/ProfileData/CtxInstrContextNode.h b/llvm/include/llvm/ProfileData/CtxInstrContextNode.h
similarity index 97%
rename from llvm/lib/ProfileData/CtxInstrContextNode.h
rename to llvm/include/llvm/ProfileData/CtxInstrContextNode.h
index 1627bdfffd089..a916f197aa148 100644
--- a/llvm/lib/ProfileData/CtxInstrContextNode.h
+++ b/llvm/include/llvm/ProfileData/CtxInstrContextNode.h
@@ -55,8 +55,8 @@
 /// to be concerned with memory safety. Their subcontexts never get populated,
 /// though. The runtime code here produces and recognizes them.
 
-#ifndef LLVM_LIB_PROFILEDATA_CTXINSTRCONTEXTNODE_H
-#define LLVM_LIB_PROFILEDATA_CTXINSTRCONTEXTNODE_H
+#ifndef LLVM_PROFILEDATA_CTXINSTRCONTEXTNODE_H
+#define LLVM_PROFILEDATA_CTXINSTRCONTEXTNODE_H
 
 #include <stdint.h>
 #include <stdlib.h>


        


More information about the llvm-commits mailing list