Displaying 20 results from an estimated 107 matches for "compilerinst".
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...;, clang::TargetOptions&)'
tutorial1.cpp:(.text+0x211): undefined reference to `clang::HeaderSearch::HeaderSearch(clang::FileManager&, clang::DiagnosticsEngine&, clang::LangOptions const&, clang::TargetInfo const*)'
tutorial1.cpp:(.text+0x225): undefined reference to `clang::CompilerInstance::CompilerInstance()'
tutorial1.cpp:(.text+0x288): undefined reference to `clang::Preprocessor::Preprocessor(clang::DiagnosticsEngine&, clang::LangOptions&, clang::TargetInfo const*, clang::SourceManager&, clang::HeaderSearch&, clang::ModuleLoader&, clang::IdentifierInfoL...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...#39;
> tutorial1.cpp:(.text+0x211): undefined reference to
> `clang::HeaderSearch::HeaderSearch(clang::FileManager&,
> clang::DiagnosticsEngine&, clang::LangOptions const&, clang::TargetInfo
> const*)'
> tutorial1.cpp:(.text+0x225): undefined reference to
> `clang::CompilerInstance::CompilerInstance()'
> tutorial1.cpp:(.text+0x288): undefined reference to
> `clang::Preprocessor::Preprocessor(clang::DiagnosticsEngine&,
> clang::LangOptions&, clang::TargetInfo const*, clang::SourceManager&,
> clang::HeaderSearch&, clang::ModuleLoader&,
&g...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...#39;
> tutorial1.cpp:(.text+0x211): undefined reference to
> `clang::HeaderSearch::HeaderSearch(clang::FileManager&,
> clang::DiagnosticsEngine&, clang::LangOptions const&, clang::TargetInfo
> const*)'
> tutorial1.cpp:(.text+0x225): undefined reference to
> `clang::CompilerInstance::CompilerInstance()'
> tutorial1.cpp:(.text+0x288): undefined reference to
> `clang::Preprocessor::Preprocessor(clang::DiagnosticsEngine&,
> clang::LangOptions&, clang::TargetInfo const*, clang::SourceManager&,
> clang::HeaderSearch&, clang::ModuleLoader&,
&g...
2016 Jan 22
2
Clang 3.8 fails with asan enabled
...g::CodeGenAction::ExecuteAction()
/export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:791:3
#15 0x311b56b in clang::FrontendAction::Execute()
/export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:439:8
#16 0x306eae4 in
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:840:7
#17 0x32caf7c in
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/FrontendTool/Execu...
2016 Oct 19
3
IntrusiveRefCntPtr vs std::shared_ptr
...f using only std::shared_ptr? IntrusiveRefCntPtr widely used in llvm and clang source code.
Due to better performance?
for example in main func of clang frontend:
int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
ensureSufficientStack();
std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
--
Best wishes,
Ivan Kush
2015 Jun 02
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
...s const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
3491
19 clang 0x00000000008594ac clang::CodeGenAction::ExecuteAction()
+ 1676
20 clang 0x0000000000692e66 clang::FrontendAction::Execute() + 118
21 clang 0x000000000066d299
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 345
22 clang 0x000000000065467a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1690
23 clang 0x000000000064c538 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 1192
24 clang 0x000000000063...
2020 Nov 17
2
JIT compiling CUDA source code
...de as well, for GPU
programming. But I am having a hard time figuring out how to do it.
To JIT compile C++ code, we do basically as follows:
1. call Driver::BuildCompilation(), which returns a clang Command to execute
2. create a CompilerInvocation using the arguments from the Command
3. create a CompilerInstance around the CompilerInvocation
4. use the CompilerInstance to execute an EmitLLVMOnlyAction
5. retrieve the resulting Module from the action and add it to the JIT
But to compile C++ requires only a single clang command. When you add CUDA
to the equation, you add several other steps. If you use...
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...;, clang::TargetOptions&)'
tutorial1.cpp:(.text+0x211): undefined reference to `clang::HeaderSearch::HeaderSearch(clang::FileManager&, clang::DiagnosticsEngine&, clang::LangOptions const&, clang::TargetInfo const*)'
tutorial1.cpp:(.text+0x225): undefined reference to `clang::CompilerInstance::CompilerInstance()'
tutorial1.cpp:(.text+0x288): undefined reference to `clang::Preprocessor::Preprocessor(clang::DiagnosticsEngine&, clang::LangOptions&, clang::TargetInfo const*, clang::SourceManager&, clang::HeaderSearch&, clang::ModuleLoader&, clang::IdentifierInfoL...
2015 May 19
2
[LLVMdev] Module crash when adding CallInst
...clang::BackendAction, llvm::raw_ostream*) +
1629
12 clang 0x000000000182a47f
13 clang 0x0000000001bdf043 clang::ParseAST(clang::Sema&, bool,
bool) + 483
14 clang 0x0000000001603ba6 clang::FrontendAction::Execute() + 118
15 clang 0x00000000015e47b8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 280
16 clang 0x0000000001673b41
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1921
17 clang 0x0000000000820358 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 1320
18 clang 0x00000000007f...
2015 Jun 04
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
...ion, llvm::raw_ostream*) +
>> 3491
>> 19 clang 0x00000000008594ac
>> clang::CodeGenAction::ExecuteAction() + 1676
>> 20 clang 0x0000000000692e66 clang::FrontendAction::Execute() +
>> 118
>> 21 clang 0x000000000066d299
>> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 345
>> 22 clang 0x000000000065467a
>> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1690
>> 23 clang 0x000000000064c538 cc1_main(llvm::ArrayRef<char
>> const*>, char const*, void*) + 11...
2017 Feb 01
2
Strange opt error in Value ("replaceAllUses of value with new value of different type!" assertion failure)
...home/asusu/L
#21 0x00007fd93c08253e clang::CodeGenAction::ExecuteAction()
/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:846:0
#22 0x00007fd93b43c2f0 clang::FrontendAction::Execute()
/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:461:0
#23 0x00007fd93b3d83cb
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:877:0
#24 0x00007fd93af41f67 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:241:0
#25 0x000000000044880...
2015 Jun 04
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
...;>> 19 clang 0x00000000008594ac
>>>> clang::CodeGenAction::ExecuteAction() + 1676
>>>> 20 clang 0x0000000000692e66 clang::FrontendAction::Execute() +
>>>> 118
>>>> 21 clang 0x000000000066d299
>>>> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 345
>>>> 22 clang 0x000000000065467a
>>>> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1690
>>>> 23 clang 0x000000000064c538 cc1_main(llvm::ArrayRef<char
>>>> cons...
2013 Dec 04
2
[LLVMdev] DwarfDebug problems
...4 clang::ParseAST(clang::Sema&, bool, bool) + 516
> 17 clang-3.4 0x000000010431aab8 clang::CodeGenAction::ExecuteAction() + 584
> 18 clang-3.4 0x000000010441c0b6 clang::FrontendAction::Execute() + 134
> 19 clang-3.4 0x00000001043f802d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
> 20 clang-3.4 0x0000000103ff6ab4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4276
> 21 clang-3.4 0x000000010330306d cc1_main(char const**, char const**, char const*, void*) + 925
> 22 clang...
2012 Jul 10
3
[LLVMdev] Unable to do even basic Clang tutorial
Add -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS to your compilation flag.
On 7/10/2012 11:23 AM, NY Knicks Fan wrote:
> Hi Ashok,
>
> I created a new Ubuntu 12.04 virtual machine and followed directions
> except that I know use your cmake command instead of configure, and I
> got the error below.
>
> Any help is very much appreciated.
>
>
> $
2016 Apr 27
2
Assertion in MachineScheduler.cpp
...l) + 780
29 clang-3.5 0x00000000019992b0
clang::ASTFrontendAction::ExecuteAction() + 322
30 clang-3.5 0x0000000001ef4fb8 clang::CodeGenAction::ExecuteAction()
+ 1362
31 clang-3.5 0x0000000001998de3 clang::FrontendAction::Execute() + 205
32 clang-3.5 0x000000000196c770
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 720
33 clang-3.5 0x0000000001a8b277
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1029
34 clang-3.5 0x0000000000e36a09 cc1_main(char const**, char const**,
char const*, void*) + 717
35 clang-3.5 0x0000000000e312f4 mai...
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...0000000838f61
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) +
353
11 clang 0x0000000000986caf clang::ParseAST(clang::Sema&, bool) + 511
12 clang 0x0000000000837b34 clang::CodeGenAction::ExecuteAction() + 68
13 clang 0x00000000006eb6b5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 373
14 clang 0x00000000006d3d59
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1401
15 clang 0x00000000006c9fc7 cc1_main(char const**, char
const**, char const*, void*) + 791
16 clang 0x00000000006d2b27 mai...
2016 Jul 31
2
[Release-testers] [3.9 Release] Release Candidate 1 has been tagged
...endAction::ExecuteAction()
(/usr/lib/libclangCodeGen.so.3.8+0x199d85)
#22 0xfffffffff3b2b294 clang::CodeGenAction::ExecuteAction()
(/usr/lib/libclangParse.so.3.8+0x24294)
#23 0xfffffffff582583e clang::FrontendAction::Execute()
(/usr/lib/libclangFrontend.so.3.8+0x8783e)
#24 0xfffffffff5b2d3e1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/libclangCodeGen.so.3.8+0x19a3e1)
#25 0xfffffffff5826660
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/libclangFrontend.so.3.8+0x88660)
#26 0xfffffffff58029e1 cc1_main(llvm::ArrayRef<char const*>, char
const*, void...
2010 Sep 22
2
[LLVMdev] r114523 (convert the last 4 X86ISD...) breaks clang
...s namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 270
26 clang 0x000000010022a4de clang::ParseAST(clang::Sema&, bool) + 750
27 clang 0x00000001001f7df7 clang::CodeGenAction::ExecuteAction() + 823
28 clang 0x000000010003f9d9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 857
29 clang 0x00000001000209c4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2724
30 clang 0x000000010001a131 cc1_main(char const**, char const**, char const*, void*) + 5313
31 clang 0x000000010001d...
2018 Apr 03
2
trivial input provokes failed assertion in Parser.h:322
...odeGenAction::ExecuteAction()
/data/users/meyering/fbsource/fbcode/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:1044:1
#18 0x0000000003dff1d2 clang::FrontendAction::Execute()
/data/users/meyering/fbsource/fbcode/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:908:10
#19 0x0000000003d69d87
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/data/users/meyering/fbsource/fbcode/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:990:11
#20 0x0000000003f83d38
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/data/users/meyering/fbsource/fbcode/llvm/tools/clang/lib/FrontendTool/Exec...
2020 Nov 19
1
JIT compiling CUDA source code
...figuring out how to do it.
>>
>> To JIT compile C++ code, we do basically as follows:
>>
>> 1. call Driver::BuildCompilation(), which returns a clang Command to
>> execute
>> 2. create a CompilerInvocation using the arguments from the Command
>> 3. create a CompilerInstance around the CompilerInvocation
>> 4. use the CompilerInstance to execute an EmitLLVMOnlyAction
>> 5. retrieve the resulting Module from the action and add it to the JIT
>>
>> But to compile C++ requires only a single clang command. When you add
>> CUDA to the equati...