Displaying 20 results from an estimated 20 matches for "initializecore".
2010 Nov 02
1
[LLVMdev] Forcing the Interpreter segfaults
...::create(&nM);
typedef int (*REFunc)(const char *);
union { void * obj; REFunc func; } u;
u.obj = EJ->getPointerToFunction(func);
REFunc jit = u.func;
int ret = jit("aaa");
std::cout << std::endl << ret << std::endl;
// This code interprets the function
llvm::initializeCore();
llvm::ExecutionEngine * EI =
llvm::EngineBuilder(&M).setEngineKind(llvm::EngineKind::Interpreter).create();
EI->runStaticConstructorsDestructors(false);
std::vector<llvm::GenericValue> args;
llvm::GenericValue arg1((void*)"aaabc");
args.push_back(arg1);
llvm::APInt res...
2010 Nov 02
2
[LLVMdev] Forcing the Interpreter segfaults
...t;> union { void * obj; REFunc func; } u;
>> u.obj = EJ->getPointerToFunction(func);
>> REFunc jit = u.func;
>> int ret = jit("aaa");
>> std::cout << std::endl << ret << std::endl;
>> // This code interprets the function
>> llvm::initializeCore();
>> llvm::ExecutionEngine * EI =
>> llvm::EngineBuilder(&M).setEngineKind(llvm::EngineKind::Interpreter).create();
>> EI->runStaticConstructorsDestructors(false);
>> std::vector<llvm::GenericValue> args;
>> llvm::GenericValue arg1((void*)"aaabc&quo...
2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...mae/rpmbuild/BUILD/llvm/lib/VMCore/PassManager.cpp:635:
void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI
&& "Expected required passes to be initialized"' failed.
The solution was to add:
PassRegistry &Registry = *PassRegistry::getPassRegistry();
initializeCore(Registry);
initializeScalarOpts(Registry);
initializeIPO(Registry);
initializeAnalysis(Registry);
initializeIPA(Registry);
initializeTransformUtils(Registry);
initializeInstCombine(Registry);
initializeInstrumentation(Registry);
initializeTarget(Registry);
before creating passes. M...
2020 Nov 10
0
unusual use of getenv
...ory of the file, I have no idea how one
would have concluded this whas a Windows thing. It first occurred in
1c5b428ff8234cef705bf57bc1418deb4db25c83 (SVN r23921) when Windows
support was not yet a thing.
LLVM tools themselves, like opt, call some function for each LLVM
component directly (such as initializeCore()) to achieve the same
thing. Howwer clang does include LinkAllPasses.h (in cc1_main.cpp).
All that matters is that there is a strong reference to at least one
symbol to each object file, otherwise the linker will not include it
when.
Michael
2016 Mar 24
2
Help with pass manager
...InitializeAllTargets();
InitializeAllTargetMCs();
InitializeAllAsmPrinters();
InitializeAllAsmParsers();
// Initialize codegen and IR passes used by llc so that the -print-after,
// -print-before, and -stop-after options work.
PassRegistry *Registry = PassRegistry::getPassRegistry();
initializeCore(*Registry);
initializeCodeGen(*Registry);
initializeLoopStrengthReducePass(*Registry);
initializeLowerIntrinsicsPass(*Registry);
initializeUnreachableBlockElimPass(*Registry);
--
Mehdi
> On Mar 24, 2016, at 9:59 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote:
>
> Up...
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Dear lazydev,
I'm writing an instrumentation pass that depends on AliasAnalysis. My
getAnalysisUsage() looks as follows:
2453 void ThreadSanitizer::getAnalysisUsage(AnalysisUsage &AU) const {
2454 AU.addRequired<TargetData>();
2455 AU.addRequired<AliasAnalysis>();
2456 }
and the pass initialization:
2668 char ThreadSanitizer::ID = 0;
2669
2016 Mar 24
0
Help with pass manager
...eAllTargetMCs();
> InitializeAllAsmPrinters();
> InitializeAllAsmParsers();
>
> // Initialize codegen and IR passes used by llc so that the -print-after,
> // -print-before, and -stop-after options work.
> PassRegistry *Registry = PassRegistry::getPassRegistry();
> initializeCore(*Registry);
> initializeCodeGen(*Registry);
> initializeLoopStrengthReducePass(*Registry);
> initializeLowerIntrinsicsPass(*Registry);
> initializeUnreachableBlockElimPass(*Registry);
>
>
> --
> Mehdi
>
>
>
>> On Mar 24, 2016, at 9:59 AM, Lorenzo...
2016 Mar 24
2
Help with pass manager
...InitializeAllAsmPrinters();
>> InitializeAllAsmParsers();
>>
>> // Initialize codegen and IR passes used by llc so that the -print-after,
>> // -print-before, and -stop-after options work.
>> PassRegistry *Registry = PassRegistry::getPassRegistry();
>> initializeCore(*Registry);
>> initializeCodeGen(*Registry);
>> initializeLoopStrengthReducePass(*Registry);
>> initializeLowerIntrinsicsPass(*Registry);
>> initializeUnreachableBlockElimPass(*Registry);
>>
>>
>> --
>> Mehdi
>>
>>
>>
&g...
2020 Nov 10
1
unusual use of getenv
Hi Michael
On Tue Nov 10, 2020 at 1:29 AM GMT, Michael Kruse wrote:
> Am Mo., 2. Nov. 2020 um 14:01 Uhr schrieb David Blaikie
> <dblaikie at gmail.com>:
> > Hmm, not sure why the whole file was added only when MSVC support was added - if it is a "static library object file selection" issue. Wouldn't that have turned up on other platforms before that moment?
>
2010 Nov 02
0
[LLVMdev] Forcing the Interpreter segfaults
...unc func; } u;
> >> u.obj = EJ->getPointerToFunction(func);
> >> REFunc jit = u.func;
> >> int ret = jit("aaa");
> >> std::cout << std::endl << ret << std::endl;
> >> // This code interprets the function
> >> llvm::initializeCore();
> >> llvm::ExecutionEngine * EI =
> >>
> llvm::EngineBuilder(&M).setEngineKind(llvm::EngineKind::Interpreter).create();
> >> EI->runStaticConstructorsDestructors(false);
> >> std::vector<llvm::GenericValue> args;
> >> llvm::GenericVal...
2016 Mar 24
0
Help with pass manager
...();
>>> InitializeAllAsmParsers();
>>>
>>> // Initialize codegen and IR passes used by llc so that the -print-after,
>>> // -print-before, and -stop-after options work.
>>> PassRegistry *Registry = PassRegistry::getPassRegistry();
>>> initializeCore(*Registry);
>>> initializeCodeGen(*Registry);
>>> initializeLoopStrengthReducePass(*Registry);
>>> initializeLowerIntrinsicsPass(*Registry);
>>> initializeUnreachableBlockElimPass(*Registry);
>>>
>>>
>>> --
>>> Mehdi...
2016 Mar 30
1
Help with pass manager
...nitializeAllAsmParsers();
>>>>
>>>> // Initialize codegen and IR passes used by llc so that the -print-after,
>>>> // -print-before, and -stop-after options work.
>>>> PassRegistry *Registry = PassRegistry::getPassRegistry();
>>>> initializeCore(*Registry);
>>>> initializeCodeGen(*Registry);
>>>> initializeLoopStrengthReducePass(*Registry);
>>>> initializeLowerIntrinsicsPass(*Registry);
>>>> initializeUnreachableBlockElimPass(*Registry);
>>>>
>>>>
>>>...
2016 Dec 13
0
Enabling statistics in release builds / static constructors
That is as easy or hard to track like pass registration. All of that mostly happens when llvm starts up and the user calls all these functions like
initializeCore(), intiaizlieCodeGen(), initializeAllTargets(), and all the other existing init functions. Also noticing missing init errors is obvious and fixing them trivial.
- Matthias
> On Dec 13, 2016, at 3:51 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> It is difficult to evaluate...
2015 Apr 01
2
[LLVMdev] unsupported GC: shadow-stack when using MCJIT
This is also happening when using the C++ APIs. It looks like an MCJIT and
SetGC interaction.
I'm lost on how to proceed further.
On Tue, Mar 31, 2015 at 10:42 PM, Hayden Livingston <halivingston at gmail.com>
wrote:
> The erlang was a typo, I was trying things out.
>
> I've updated the bug with a C program, which exhibits the problem.
>
> To answer your question,
2016 Mar 24
0
Help with pass manager
Update:
Sorry my bad. I built llvm and tried it with debugging version.
It was an assertion (IR/LegacyPassManager.cpp:764) saying that it expects all immutable passes to be initialized.
> On Mar 24, 2016, at 2:00 AM, Lorenzo Laneve <lore97drk at icloud.com> wrote:
>
> I’m using LLVM 3.8.0, and no, it’s the precompiled version
> That’s why it doesn’t give me enough info for
2020 Nov 02
4
unusual use of getenv
Oh, right, this stuff. I guess the non-windows solution might've been a
volatile read, for instance? So maybe not so much that the general
machinery isn't needed, but that perhaps MSVC does something interesting
with a volatile read or whatever other solution might've been used.
Hmm, not sure why the whole file was added only when MSVC support was added
- if it is a "static
2016 Dec 13
2
Enabling statistics in release builds / static constructors
As I wrote the trick here is sneak the initGlobals() into the places where we do pass registration which should get you a big part of the way. For the remaining cases you have to add a few functions and call them from init() like functions which we have all over llvm anyway because of pass registration.
- Matthias
> On Dec 13, 2016, at 3:46 PM, Mehdi Amini <mehdi.amini at apple.com>
2016 Mar 24
2
Help with pass manager
I’m using LLVM 3.8.0, and no, it’s the precompiled version
That’s why it doesn’t give me enough info for debug
> On 24 Mar 2016, at 1:53 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> This code path is not likely to crash usually. Did you build LLVM yourself? Which version are you using and can you reduce the test case to be "minimal" so that someone can
2017 Aug 22
5
[RFC] mir-canon: A new tool for canonicalizing MIR for cleaner diffing.
Patch for review.
On Mon, Aug 21, 2017 at 11:45 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com>
wrote:
> Ping.
>
> Still working on preparing code for review. Will have a patch for review
> ready in the coming days.
>
> PL
>
> On Tue, Aug 15, 2017 at 12:06 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com>
> wrote:
>
>> Hi,
>>
>>
>>
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...:basic_string<char, std::char_traits<char>,
std::allocator<char> >
const&)/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
vtable for llvm::IntervalPartition
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::initializeCore(llvm::PassRegistry&)
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::createPostDomTree()
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::FunctionPass::doInitialization(llvm::Module&)
/n/fs/scratch/tpondich/Parall...