Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] Clang passes"
2012 Apr 21
4
[LLVMdev] Remove function from module
Thanks, but I replaceAllUsesWith() - works well, but I still get bug in eraseFromParent():
While deleting: i32 (%class.B*, i32)* %_ZN1B1xEi
An asserting value handle still pointed to this value!
UNREACHABLE executed at /Users/neonomaly/LLVM/LLVM/lib/VMCore/Value.cpp:561!
Yours sincerely,
Kadysev Mikhail
21.04.2012, в 23:45, Nick Lewycky написал(а):
> Михаил wrote:
>> How correctly
2019 Mar 26
4
GSoC19: Improve LLVM binary utilities
(Adding just a bit to Jake's response)
On Tue, Mar 26, 2019 at 11:31 AM Jake Ehrlich via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi Seiya,
>
> What should I prioritize? I suppose that improving llvm-objcopy is the
>> most crucial work in this summer.
>
>
> This is an opinion that will vary a lot from person to person.
>
+1! And don't forget that
2012 Apr 22
2
[LLVMdev] Remove function from module
It is ModulePass with AnalysisUsage of CallGraph
Yours sincerely,
Kadysev Mikhail
22.04.2012, в 5:20, Nick Lewycky написал(а):
> Михаил wrote:
>> Thanks, but I replaceAllUsesWith() - works well, but I still get bug in
>> eraseFromParent():
>>
>> While deleting: i32 (%class.B*, i32)* %_ZN1B1xEi
>> An asserting value handle still pointed to this value!
>>
2012 Apr 21
3
[LLVMdev] Remove function from module
How correctly remove function from module?
For example:
int f1(int x) {
...
a = f2(smth);
...
}
int f2 (int y) {
...
b = f1(smth);
...
}
I need delete from module both f1 and f2. They haven't uses in other part of module, but I can't delete them with eraseFromParent, because they are use each other.
Yours sincerely,
Kadysev Mikhail
-------------- next part
2011 Jul 21
2
[LLVMdev] share between AST and IR?
I wrote a plugin using ASTConsumer and RecursiveASTVisitor to find
"interesting" variables and functions. I'm wonder if there is a way to
save/flag/metadata these so later on at the IR level I can use this
information in a Pass.
As far as I can tell nothing currently would allow me todo this and I'm
wondering what exactly it would take to do something like this. After
stairing
2012 Apr 22
0
[LLVMdev] Remove function from module
Михаил wrote:
> It is ModulePass with AnalysisUsage of CallGraph
Ah, then you'll need to update the CallGraph first. Use
"CG.removeFunctionFromModule(F);" before deleting it.
Nick
> Yours sincerely,
> Kadysev Mikhail
>
> 22.04.2012, в 5:20, Nick Lewycky написал(а):
>
>> Михаил wrote:
>>> Thanks, but I replaceAllUsesWith() - works well, but I still
2012 Apr 22
0
[LLVMdev] Remove function from module
Михаил wrote:
> Thanks, but I replaceAllUsesWith() - works well, but I still get bug in
> eraseFromParent():
>
> While deleting: i32 (%class.B*, i32)* %_ZN1B1xEi
> An asserting value handle still pointed to this value!
> UNREACHABLE executed at /Users/neonomaly/LLVM/LLVM/lib/VMCore/Value.cpp:561!
The replaceAllUsesWith + eraseFromParent pattern remains correct, but
there's
2011 Jul 21
0
[LLVMdev] share between AST and IR?
Hi,
Isn't clang::CodeGenOptions::EmitDeclMetadata what you need?
Vassil
On 07/21/2011 04:32 AM, ret val wrote:
> I wrote a plugin using ASTConsumer and RecursiveASTVisitor to find
> "interesting" variables and functions. I'm wonder if there is a way to
> save/flag/metadata these so later on at the IR level I can use this
> information in a Pass.
>
> As far
2014 Dec 09
3
[LLVMdev] [cfe-dev][Openmp-dev] Clang Plugin to analyze OpenMP AST
Hi,
I am writing a plugin to get information about the OpenMP constructs from the AST.
I am basically writing a “RecursiveASTVisitor” and I am trying to find the OpenMP statement and get information like filename and line of code.
When I am visiting recursively each statement I have my own switch on the “StmtClass” and for now I am focusing on “OMPParallelForDirectiveClass”.
In my understanding,
2012 Apr 21
0
[LLVMdev] Remove function from module
Михаил wrote:
> How correctly remove function from module?
> For example:
>
> int f1(int x) {
> ...
> a = f2(smth);
> ...
> }
> int f2 (int y) {
> ...
> b = f1(smth);
> ...
> }
>
> I need delete from module both f1 and f2. They haven't uses in other
> part of module, but I can't delete them with eraseFromParent, because
> they are use each
2017 Mar 20
5
[GSoC 2017] Clang-based diff tool project
Hello,
I am currently studying Computer Science at TU Eindhoven. I am doing a
course that involves programming assignments on parts of LLVM such as
lowering, scheduling and optimization. For this year's Google Summer of
Code I plan to submit a proposal to implement a clang-based diff tool
[1].
I think it really pays off to have decent developer tools available, as
they can save tons of time.
2012 May 04
2
[LLVMdev] StructTypes into one
Is it possible to merge StructTypes with different names like:
%"class.std::allocator.4" = type { i8 }
%"class.__gnu_cxx::new_allocator.5" = type { i8 }
%"class.std::allocator.0" = type { i8 }
%"class.__gnu_cxx::new_allocator.1" = type { i8 }
%"class.std::allocator.0.6" = type { i8 }
merge into
%"class.__gnu_cxx::new_allocator" = type
2016 Dec 08
6
cross-checking external declarations / debug info for declarations
I am interested in putting together a tool which can verify that an external declaration conforms with the actual definition.
A.c:
extern int32_t foo();
Int bar() { return foo(); }
B.c:
int64_t foo() { ... }
I had thought that I could use the debug information but the debug information in A.o does not include the type of the declaration "foo", just the type of bar.
Is there a way to
2012 Feb 09
1
[LLVMdev] Need Help with StructType inheritance
Hi.
I have such task: to get information about classes of work program (module) form Module (LLVM class), for example in ModulePass. I tried to analyze source code of LLVM architecture related with Module class, but I have not founded any useful information. Thanks!
Yours sincerely,
Kadysev Mikhail
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Mar 02
1
[LLVMdev] IR + Module Pass
Hi.
Can I know that in Module *M Function* F is a method of StructType *st? Also can I know that in this StructType the F has mark "virtual"?
Thanks!
Yours sincerely,
Kadysev Mikhail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120302/5c77c3ee/attachment.html>
2012 Apr 01
1
[LLVMdev] Create Instruction
Hi!
I've have Instruction in my code:
...
%call6 = call i32 %9(%class.A* %call3, i32 2)
...
And I want to get something like this:
...
%11 = icmp eq i32 (%class.D*, i32)* %10, @_ZThn4_N1D1xEi
br i1 %11, label %12, label %14
; <label>:12 ; preds = %7
%13 = bitcast %class.A* %call3 to %class.D*
%call64 = call i32
2012 Apr 19
1
[LLVMdev] Switch + Addresses of functions
Is it possible to use address of function in case block of switch instruction? I understand that it should be constants only, but in llvm reference i founded that: "The addresses of global variables and functions are always implicitly valid (link-time) constants. "
Yours sincerely,
Kadysev Mikhail
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Apr 19
1
[LLVMdev] VTable Method Index
Virtual call translates into IR like this:
%0 = bitcast %class.A* %call to i32 (%class.A*, i32)***
%vtable = load i32 (%class.A*, i32)*** %0
%vfn = getelementptr inbounds i32 (%class.A*, i32)** %vtable, i64 0
%1 = load i32 (%class.A*, i32)** %vfn
Is it possible to map pair [StructType, methodIndex(i64 0 in example)] into Function?
Yours sincerely,
Kadysev Mikhail
-------------- next
2014 Jan 06
5
[LLVMdev] LLVM Weekly - #1, Jan 6th 2014
LLVM Weekly - #1, Jan 6th 2014
==============================
Welcome to the inaugural issue of LLVM Weekly, a weekly newsletter (published
every Monday) covering developments in LLVM, Clang, and related projects. I've
been a long time lurker on the LLVM and Clang mailing lists and have been
using LLVM extensively in my PhD research for the past 4 years. I thought it
might be worthwhile to
2010 Dec 15
1
[LLVMdev] tblgen internals
On Dec 12, 2010, at 8:12 PM, Garrison Venn wrote:
>> I believe I caught most of the syntax style issues with the attached patch. It only contains
>> these style changes.
Thanks! I applied your followup patch in r121837.
> Concerning the RecordKeeper reference in Record. Would you prefer to partially go
> back to a more limited constrained version of a global. Since we are not