search for: ivalu

Displaying 2 results from an estimated 2 matches for "ivalu".

Did you mean: ival
2014 Sep 01
2
[LLVMdev] Instrumenting Various Types Using Single Instrumentation Function
...is sent to instrumenting function say void recordVarInputValues(int num, ...) . So, I have created a Union type in Tracing.cpp, which I link with my benchmark module at compile time. These steps are similar to giri instrumentation https://github.com/liuml07/giri union NumericType { int iValue; long lValue; double dValue; ... }; Now, I would like to convert all the llvm Values, required by recordVarInputValues function, to be of NumericType. So that a variable length list of NumerricType values can be passed to my instrumentation function. This way I will not h...
2024 Oct 08
0
Question: Is CAREFUL_ALIGNMENT=1 needed for rsync on RISC-V
...d __i386__ || defined __i486__ || defined __i586__ || defined __i686__ || __amd64 #define CAREFUL_ALIGNMENT 0 #endif #ifndef CAREFUL_ALIGNMENT #define CAREFUL_ALIGNMENT 1 #endif ``` Thus, when copying 4-bit integers (just an example), rsync uses direct copies on x86: ```c static inline uint32 IVALu(const uchar *buf, int pos) { ?? ?union { ?? ???? const uchar *b; ?? ???? const uint32 *num; ?? ?} u; ?? ?u.b = buf + pos; ?? ?return *u.num; } ``` On RISC-V (and any other architectures), it copies bytes one by one: ```c static inline uint32 IVALu(const uchar *buf, int pos) { ?? ?return UV...