[PATCH] D32840: [XRay] convert FDR arg1 log entries

Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 14:47:49 PDT 2017


kpw added inline comments.


================
Comment at: include/llvm/XRay/XRayRecord.h:56
 /// of loading).
-enum class RecordTypes { ENTER, EXIT };
+enum class RecordTypes { ENTER, EXIT, ENTER_ARG };
 
----------------
kpw wrote:
> I just realized that doing this definition would be unfortunate, because we'll drift out of sync with XRayEntryType defined in compiler-rt/include/xray/xray_interface.h
> 
>   enum XRayEntryType {
>     ENTRY = 0,
>     EXIT = 1,
>     TAIL = 2,
>     LOG_ARGS_ENTRY = 3,
>     CUSTOM_EVENT = 4,
>   };
> 
> Could you either define TAIL or assign 3 to ENTER_ARG. Defining TAIL is likely better done in a separate patch that updates the llvm-xray subcommands to handle it.
> 
Ugh. These are also defined in AsmPrinter::SledKind.


https://reviews.llvm.org/D32840





More information about the llvm-commits mailing list