Displaying 10 results from an estimated 10 matches for "implicitcastexpr".
2015 Apr 23
2
[LLVMdev] Get precise line/column debug info from LLVM IR
...ol:38>
| `-VarDecl 0x7ffec382d680 <col:2, col:37> col:11 used f 'unsigned int'
cinit
| `-BinaryOperator 0x7ffec3869f20 <col:15, col:37> 'unsigned int' '+'
| |-CallExpr 0x7ffec382d7e0 <col:15, col:24> 'unsigned int'
| | |-ImplicitCastExpr 0x7ffec382d7c8 <col:15> 'unsigned int
(*)(unsigned int)' <FunctionToPointerDecay>
| | | `-DeclRefExpr 0x7ffec382d6d8 <col:15> 'unsigned int (unsigned
int)' Function 0x7ffec382d490 'fib' 'unsigned int (unsigned int)'
| | `-BinaryOpera...
2013 Jul 22
0
[LLVMdev] Libclang get class name from DeclRefExpr
...| |-ObjCPropertyRefExpr 0x112791ad0 <col:6, col:11>
'<pseudo-object type>' lvalue objcproperty Kind=PropertyRef
Property="dataModels" Messaging=Getter
| | | `-OpaqueValueExpr 0x112791ab0 <col:6>
'DFDataModelContainer *'
| | | `-ImplicitCastExpr 0x112791a40 <col:6>
'DFDataModelContainer *' <LValueToRValue>
| | | `-DeclRefExpr 0x112791a18 <col:6>
'DFDataModelContainer *const __strong' lvalue ImplicitParam 0x112791960
'self' 'DFDataModelContainer *const __strong'
| |...
2016 Nov 28
2
Looking for help with an ast matcher
...the clang page. So I wouldn't know how it works or what it does.
Best regards,
Mads Ravn
On Mon, Nov 28, 2016 at 10:50 PM Piotr Padlewski <piotr.padlewski at gmail.com>
wrote:
> Hi Mads,
> I formatted your matcher a little bit just to understand it:
>
> ifStmt(hasCondition(implicitCastExpr(hasImplicitDestinationType(
> isInteger()),
> has(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("
> compare"))),
> hasArgument(0,
> declRefExpr().bind("str2")),
>...
2016 Nov 28
2
Looking for help with an ast matcher
Hi Piotr,
I think I found a working matcher: match
ifStmt(hasCondition(implicitCastExpr(hasImplicitDestinationType(isInteger()),
has(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("compare"))),
hasArgument(0, declRefExpr().bind("str2")),
callee(memberExpr(has(declRefExpr().bind("str1"))))))))).bind("case1")
This one bind to both str1 and str2 i...
2019 Jun 09
2
Strange local variable cv::VideoCapture allocated
...; 'int' lvalue ParmVar
0x7ff113148780 'frame_id' 'int &'
| |-ExprWithCleanups 0x7ff1131536e8 <line:483:5, line:484:32>
'cv::VideoCapture'
| | `-ConditionalOperator 0x7ff1131536b8 <line:483:5, line:484:32>
'cv::VideoCapture'
| | |-ImplicitCastExpr 0x7ff113153178 <line:483:5> 'bool'
<LValueToRValue>
| | | `-MemberExpr 0x7ff113148968 <col:5> 'bool' lvalue
->enable_ffmpeg_decoder_ 0x7ff114221ef0
| | | `-CXXThisExpr 0x7ff113148950 <col:5> 'xyz::StreamData *' this
| | |-CXXBin...
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,
2016 Mar 15
2
[cfe-dev] GSoC AST->XML project still open?
2007 Dec 22
0
[LLVMdev] random warnings
On Dec 20, 2007, at 3:56 PM, Mike Stump wrote:
> They looked real enough to me:
Fixed, thanks.
-Chris
>
>
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In
> function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*,
> short int&)’:
> /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp:
> 148: warning:
2007 Dec 20
2
[LLVMdev] random warnings
They looked real enough to me:
/Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In
function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*,
short int&)’:
/Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp:
148: warning: dereferencing type-punned pointer will break strict-
aliasing rules
2016 Nov 27
2
Looking for help with an ast matcher
Adding cfe-dev, because it is related to clang, not LLVM.
2016-11-27 22:34 GMT+01:00 Piotr Padlewski <piotr.padlewski at gmail.com>:
> Hi Mads,
> Can you provide the code that you run clang-query on, or at least AST for
> the fragment you want to match?
>
> Piotr
>
> 2016-11-26 22:27 GMT+01:00 Mads Ravn via llvm-dev <llvm-dev at lists.llvm.org
> >:
>