Displaying 5 results from an estimated 5 matches for "nscalefactors".
2012 Apr 19
2
[LLVMdev] Issue with GetElementPtrInst in Instruction Combining pass
...I get is
--------------------------------------------------------------------------------------------
Type | struct elements | Size in bytes | Correct size in bytes
--------------------------------------------------------------------------------------------
short nScaleFactors 4 2
FRAME_INFO frameInfo 36 36
short domain_vec[MAX_ENVELOPES] 10 10
short domain_vec_noise[MAX_NOISE_ENVELOPES] 6 4
INVF_MODE sbr_invf_mode[MAX...
2012 Apr 19
0
[LLVMdev] Issue with GetElementPtrInst in Instruction Combining pass
...elements size, I get is
> --------------------------------------------------------------------------------------------
> Type | struct elements | Size in bytes | Correct size in bytes
> --------------------------------------------------------------------------------------------
> short nScaleFactors *4 2
> *FRAME_INFO frameInfo 36 36
> short domain_vec[MAX_ENVELOPES] 10 10
> short domain_vec_noise[MAX_NOISE_ENVELOPES] 6 4
> INVF_MODE sbr_invf_mode[MAX_INVF_BANDS] 20 20
> COUPLING_MODE coupling 4 4
> short ampResolutionCurrentFrame 2 2
> Flag addHarmonics[MAX_FREQ_COEFFS] 1...
2012 Apr 18
0
[LLVMdev] Issue with GetElementPtrInst in Instruction Combining pass
...code in instruction combining.
Below is table which shows address offset calculation for the struct elements (described earlier).
Type Variable Actual Size(in bytes) pass fail llvm2.9
Address(pass) Size-pass (in bytes) Address (fail) Size -fail (in bytes) with llvm2.9 Size (with llvm2.9)
short nScaleFactors; 2 40ac0198 4 40ac0198 2 40ac0190 2
FRAME_INFO frameInfo; //struct described below 34 40ac019c 36 40ac019a 36 40ac0192 36
short domain_vec[MAX_ENVELOPES]; 10 40ac01c0 10 40ac01be 10 40ac01b6 10
short domain_vec_noise[MAX_NOISE_ENVELOPES]; 4 40ac01ca 6 40ac01c8 4 40ac01c0 4
INVF_MODE sbr_...
2012 Apr 17
2
[LLVMdev] Issue with GetElementPtrInst in Instruction Combining pass
With reference to the previous query,
I think, i miscalculated the offset, just recalculating.
1. without instruction combining
coupling member variable, is at:
%struct._FRAME_DATA* %2, i32 0, i32 5
where "%2" is defined as:
%arrayidx3 = getelementptr inbounds i16* %Data, i32 1024, !dbg !446
%2 = bitcast i16* %arrayidx3 to %struct._FRAME_DATA*, !dbg !446
i.e. at 5 offset in
2012 Apr 17
2
[LLVMdev] Issue with GetElementPtrInst in Instruction Combining pass
...the code generated "with instruction combining" is:
%coupling = getelementptr inbounds i16* %timeData, i32 1060, !dbg !575
%24 = bitcast i16* %coupling to i32*, !dbg !575
store i32 0, i32* %24, align 4, !dbg !575
The FRAME_DATA, is defined as:
typedef struct _FRAME_DATA
{
Word16 nScaleFactors; /*!< total number of scalefactors in frame */
FRAME_INFO frameInfo; /*!< time grid for current frame */
Word16 domain_vec[MAX_ENVELOPES]; /*!< Bitfield containing direction of delta-coding for each envelope */
Word16 domain_vec_noise[MAX_NOISE_ENV...