Displaying 3 results from an estimated 3 matches for "integralcast".
2015 Apr 23
2
[LLVMdev] Get precise line/column debug info from LLVM IR
...<col:19> 'unsigned int'
<LValueToRValue>
| | | `-DeclRefExpr 0x7ffec382d700 <col:19> 'unsigned int' lvalue
ParmVar 0x7ffec382d3d0 'n' 'unsigned int'
| | `-ImplicitCastExpr 0x7ffec382d760 <col:23> 'unsigned int'
<IntegralCast>
| | `-IntegerLiteral 0x7ffec382d728 <col:23> 'int' 1
| `-CallExpr 0x7ffec3869ef0 <col:28, col:37> 'unsigned int'
| |-ImplicitCastExpr 0x7ffec3869ed8 <col:28> 'unsigned int
(*)(unsigned int)' <FunctionToPointerDecay>...
2016 Apr 14
2
Little explanation of this behaviour
I tried to emit IR for a function that returns the sum between an signed char and a double in C++, just to see how Clang handles type implicit casting.
Can you explain me why Clang converted the char type into a 32-bit integer type before casting it to a floating point? Can a sitofp i8 %3 to double be done or is it wrong?
define i32 @_Z5sumad(i8 signext %x, double %y) #0 {
%1 = alloca i8,
2019 Jun 09
2
Strange local variable cv::VideoCapture allocated
...'cv::VideoCapture' <ConstructorConversion>
| | | `-CXXConstructExpr 0x7ff1131531a8 <col:30,
col:69> 'cv::VideoCapture' 'void (int)'
| | | `-ImplicitCastExpr 0x7ff113153190 <col:30,
col:69> 'int' <IntegralCast>
| | | `-ParenExpr 0x7ff113148a80 <col:30, col:69>
'bool'
| | | `-CXXMemberCallExpr 0x7ff113148a50
<col:31, col:68> 'bool'
| | | |-MemberExpr 0x7ff1131489f0 <col:31,
col:53>...