- Feb 25, 2010
-
-
Daniel Dunbar authored
- Demonstrates how to build a standalone tool which loads source code using the Driver and Frontend libraries, and then uses CodeGen and the JIT to actually execute the code. - Still more complicated than it should be, but hey its only 153 lines. :) -- ddunbar@ozzy:tmp$ cat hello.c #include <stdio.h> int main() { printf("hello world\n"); return 0; } ddunbar@ozzy:tmp$ clang-interpreter hello.c hello world -- llvm-svn: 97133
-
Nick Lewycky authored
keep track of instructions that return void) per-function. This fixes PR5278. This breaks backwards compatibility with the metadata format. That's okay because we haven't released the metadata bitcode yet. llvm-svn: 97132
-
Zhongxing Xu authored
llvm-svn: 97131
-
Chris Lattner authored
splitting all the patterns under scope nodes into equality sets based on their first node. The second step is to rewrite the graph info a form that exposes the sharing. Before I do this, I want to redesign the Scope node. llvm-svn: 97130
-
Zhongxing Xu authored
llvm-svn: 97129
-
Chandler Carruth authored
types. Rank these conversions below other conversions. This allows overload resolution when the only distinction is between a complex and scalar type. It also brings the complex overload resolutin in line with GCC's. llvm-svn: 97128
-
Zhongxing Xu authored
llvm-svn: 97127
-
Dan Gohman authored
which branch on undef to branch on a boolean constant for the edge exiting the loop. This helps ScalarEvolution compute trip counts for loops. Teach ScalarEvolution to recognize single-value PHIs, when safe, and ForgetSymbolicName to forget such single-value PHI nodes as apprpriate in ForgetSymbolicName. llvm-svn: 97126
-
Chris Lattner authored
llvm-svn: 97125
-
Nick Lewycky authored
format is not parsable, even if the module is legal. To get parsable output, dump the module instead of the function or smaller, since metadata kind are attached to the module (not the context). llvm-svn: 97124
-
Chris Lattner authored
llvm-svn: 97123
-
Zhongxing Xu authored
This patch implements the CallEnter/CallExit idea of Ted. Add two interfaces to GRSubEngine: ProcessCallEnter, ProcessCallExit. The CallEnter program point uses caller's location context. The CallExit program point uses callee's location context. CallEnter is built by GRStmtNodeBuilder. CallExit is built by GREndPathNodeBuilder. llvm-svn: 97122
-
Nick Lewycky authored
llvm-svn: 97121
-
Nick Lewycky authored
llvm-svn: 97120
-
Jeffrey Yasskin authored
--enable-shared is passed to configure. llvm-svn: 97119
-
Ted Kremenek authored
to various MacOS X functions. The checks in BasicObjCFoundationChecks.cpp will gradually be migrated here. As a first check, check that when 'dispatch_once()' is passed a predicate value that has non-local storage. llvm-svn: 97116
-
Ted Kremenek authored
llvm-svn: 97115
-
Sanjiv Gupta authored
so get the name from Var rather than the original decl. llvm-svn: 97114
-
Douglas Gregor authored
llvm-svn: 97113
-
Douglas Gregor authored
class types, dependent types, and namespaces. I had previously weakened this invariant while working on parsing pseudo-destructor expressions, but recent work in that area has made these changes unnecessary. llvm-svn: 97112
-
Daniel Dunbar authored
llvm-svn: 97111
-
Daniel Dunbar authored
This is the way I would like to move the frontend function towards -- distinct pieces of functionality should be exposed only via FrontendAction implementations which have clean and relatively-stable APIs. This also isolates the surface area in clang which depends on LLVM CodeGen. llvm-svn: 97110
-
Anders Carlsson authored
llvm-svn: 97109
-
Sanjiv Gupta authored
llvm-svn: 97108
-
Anders Carlsson authored
llvm-svn: 97107
-
Daniel Dunbar authored
llvm-svn: 97106
-
Johnny Chen authored
llvm-svn: 97105
-
Ted Kremenek authored
when it is explicitly marked as unused via __attribute__((unused)). llvm-svn: 97104
-
Ted Kremenek authored
llvm-svn: 97103
-
Daniel Dunbar authored
llvm-svn: 97102
-
Daniel Dunbar authored
messages with. llvm-svn: 97101
-
Dan Gohman authored
just discarding one of the registers. llvm-svn: 97100
-
Scott Michel authored
llvm-svn: 97099
-
Johnny Chen authored
llvm-svn: 97098
-
Chris Lattner authored
llvm-svn: 97097
-
Chris Lattner authored
llvm-svn: 97096
-
Douglas Gregor authored
instantiation changes. llvm-svn: 97095
-
Chris Lattner authored
llvm-svn: 97094
-
Chris Lattner authored
reflect what it does. Switch the sense of the Next and the Check arms to be more logical. No functionality change. llvm-svn: 97093
-
Douglas Gregor authored
expressions that look like pseudo-destructors, e.g., p->T::~T() where p has dependent type. At template instantiate time, we determine whether we actually have a pseudo-destructor or a member access, and funnel down to the appropriate routine in Sema. Fixes PR6380. llvm-svn: 97092
-