search for: fixup

Displaying 20 results from an estimated 1714 matches for "fixup".

2012 Sep 13
2
[LLVMdev] llvm-mc fixups
When I use llvm-mc’s ‘-show-encoding’, it only goes as far as printing “fixups”: $ echo -e "adr r0, lbl\nnop\nlbl:" | llvm-mc -triple=thumbv7 -show-encoding Outputs: @ encoding: [A,0xa0] @ fixup A – offset: 0, value: lbl, kind: fixup_thumb_adr_pcrel_10 To find out that it is encoded as 0xa001, I can do: $ echo -e "adr r0, lbl\nnop\nlbl:&quot...
2020 Jun 09
2
LoopStrengthReduction generates false code
...cmp eq i32 %i.010, 0) IV={0,+,1}<nuw><nsw><%while.body> IV Chain#1 Inc: ( %i.010 = phi i32 [ 0, %entry ], [ %inc, %while.body ]) IV+1 Chain: %cmp11 = icmp eq i32 %i.010, 0 Cost: 0 LSR has identified the following interesting factors and types: *8 LSR is examining the following fixup sites: UserInst=%cmp11, OperandValToReplace=%i.010 UserInst=%0, OperandValToReplace=%arrayidx LSR found 2 uses: LSR is examining the following uses: LSR Use: Kind=ICmpZero, Offsets={0}, widest fixup type: i32 reg({0,+,-1}<nw><%while.body>) LSR Use: Kind=Address of i32 in add...
2012 Sep 13
0
[LLVMdev] llvm-mc fixups
Showing the value for the fixup requires full object code layout and relaxation, which isn't done is the text-to-text path. --Owen On Sep 12, 2012, at 5:54 PM, Greg Fitzgerald <garious at gmail.com> wrote: > When I use llvm-mc’s ‘-show-encoding’, it only goes as far as printing “fixups”: > > > $ echo -...
2012 Sep 17
1
[LLVMdev] llvm-mc fixups
> Showing the value for the fixup requires full object > code layout and relaxation, which isn't done is the text-to-text path. Their are 2 problems I'm looking to solve: 1) How do we unit-test the integrated assembler when there are fixups? 2) Can we avoid the duplication in encoding a fixup versus encoding an imm...
2011 Jan 19
1
[LLVMdev] Possible issue with ARM/MC/MachO fixup
Hi everyone. In ARMAsmBackend.cpp, in routine DarwinARMAsmBackend::ApplyFixup() there is a curious call to getFixupKindNumBytes() - which can return 1,2, 3, or 4 depending upon the FixupKind The code in ApplyFixup() seems to be lifted from the X86. AFAIK, the initial Fixup.Offset() is always divisible by 4, at least for ARM mode - i.e. it is always at the instruction bound...
2020 Jun 09
2
LoopStrengthReduction generates false code
...nuw><nsw><%while.body> >> IV Chain#1 Inc: ( %i.010 = phi i32 [ 0, %entry ], [ %inc, %while.body ]) IV+1 >> Chain: %cmp11 = icmp eq i32 %i.010, 0 Cost: 0 >> LSR has identified the following interesting factors and types: *8 >> LSR is examining the following fixup sites: >> UserInst=%cmp11, OperandValToReplace=%i.010 >> UserInst=%0, OperandValToReplace=%arrayidx >> LSR found 2 uses: >> LSR is examining the following uses: >> LSR Use: Kind=ICmpZero, Offsets={0}, widest fixup type: i32 >> reg({0,+,-1}<nw><%whi...
2011 Nov 15
2
[LLVMdev] MCELFStreamer subclassing
Jim, Ok, you are where I am in the understanding. This is exactly what I do for relocations applied to code. Now I want to apply fixup information to relocations applied to data. The issue I was having was the difficulty of subclassing MCELFStreamer. Or are you saying that I should be messing with the base MCELFStreamer for a specific fixup. One of the issues I hit initially with llvm is that in terms of relocation and fixups th...
2011 Nov 15
2
[LLVMdev] MCELFStreamer subclassing
...e, Nov 15, 2011 at 11:06 AM, Jim Grosbach <grosbach at apple.com> wrote: > > On Nov 15, 2011, at 10:36 AM, Carter, Jack wrote: > >> Jim, >> >> Ok, you are where I am in the understanding. This is exactly what I do for relocations applied to code. Now I want to apply fixup information to relocations applied to data. >> >> The issue I was having was the difficulty of subclassing MCELFStreamer. Or are you saying that I should be messing with the base MCELFStreamer for a specific fixup. >> > > No subclassing needed. Are you sure the fixup needs t...
2011 Nov 15
0
[LLVMdev] MCELFStreamer subclassing
On Nov 15, 2011, at 10:36 AM, Carter, Jack wrote: > Jim, > > Ok, you are where I am in the understanding. This is exactly what I do for relocations applied to code. Now I want to apply fixup information to relocations applied to data. > > The issue I was having was the difficulty of subclassing MCELFStreamer. Or are you saying that I should be messing with the base MCELFStreamer for a specific fixup. > No subclassing needed. Are you sure the fixup needs to be Mips specific?...
2009 Dec 23
1
[LLVMdev] MinGW llvm-gcc --enable-stdcall-fixup error
...s simple testing tool http://github.com/oneclick/rubyinstaller/blob/fake/resources/tools/fakeruby.c I get the following: C:\Users\Jon\Documents\CDev\sandbox>llvm-gcc -Wall -o fakeruby.exe fakeruby.c Warning: resolving _GetModuleHandleA by linking to _GetModuleHandleA at 4 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _GetProcAddress by linking to _GetProcAddress at 8 Warning: resolving _GetEnvironmentVariableA by linking to _GetEnvironmentVariableA at 12 Warning: resolving _GetCurrentProcessId by linking to _GetCurr...
2020 Jun 10
2
LoopStrengthReduction generates false code
...y> >>>> IV Chain#1 Inc: ( %i.010 = phi i32 [ 0, %entry ], [ %inc, %while.body ]) IV+1 >>>> Chain: %cmp11 = icmp eq i32 %i.010, 0 Cost: 0 >>>> LSR has identified the following interesting factors and types: *8 >>>> LSR is examining the following fixup sites: >>>> UserInst=%cmp11, OperandValToReplace=%i.010 >>>> UserInst=%0, OperandValToReplace=%arrayidx >>>> LSR found 2 uses: >>>> LSR is examining the following uses: >>>> LSR Use: Kind=ICmpZero, Offsets={0}, widest fixup type: i32 >&...
2011 Nov 02
2
what does "scrub" mean?
Hallo, I''d like to get some explanations ... # btrfs filesystem show Label: ''MMedia'' uuid: 120b036a-883f-46aa-bd9a-cb6a1897c8d2 Total devices 3 FS bytes used 3.80TB devid 1 size 1.82TB used 1.29TB path /dev/sdg1 devid 3 size 1.81TB used 1.29TB path /dev/sdc1 devid 2 size 1.81TB used 1.28TB path /dev/sdb1 Btrfs Btrfs v0.19 # btrfs filesystem df /srv/MM
2018 Jul 14
2
Lowering a reasonably complex struct seems to create over complex and invalid assembly fixups on some targets
...s to i64), i64 20) ) to i32) }>, section "__TEXT,__swift3_fieldmd, regular, no_dead_strip", align 4 …on a couple of targets, it seems to produce invalid MC graphs that then fail to compile. My chosen platform is AVR but it looks like it probably produces strange fixups on MIPS too. I was initially chatting to the AVR rust team about this but I’m not sure it’s an AVR only problem. I’d like some help with understanding why these fixups are being created. When compiled on AVR, I get the error "LLVM ERROR: expected relocatable expression”. If I compile to asm,...
2008 Oct 13
3
console output
...         ID Mem(MiB) VCPUs State   Time(s) Domain-0                                   0     3202     8 r-----   5220.1 vm1                                  3     4095     2 -b----   3529.2 vm2                                  5     8191     4 -b----    399.0 [root@serverxen ~]# xm console 3 4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1 4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1 4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1 4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1 4gb seg fixup, process prelink (pid 10142), cs:ip 73:08083da1 4gb...
2013 Dec 03
2
[LLVMdev] Reporting errors when applying fixups
For a target that hasn't implemented branch relaxation (yet), does anyone know what is the preferred way to report an error if a fixup cannot be applied because, for example, the destination of a branch is out of range? I suppose I could use asserts just like AArch64 is doing but that won't stop the assembler of emitting a branch to an undesired location in release builds. Does anyone see any problem in using report_fatal_erro...
2013 Dec 03
0
[LLVMdev] Reporting errors when applying fixups
Matheus, The ARM backend reports these kinds of errors using FatalError method of MCContext. You can see some examples in ARMAsmBackend.cpp (search for "out of range pc-relative fixup value"). -David From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Matheus Almeida Sent: Tuesday, December 03, 2013 5:37 AM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] Reporting errors when applying fixups For a target that hasn't implem...
2016 Feb 16
2
Who patches the fixups?
Hi, I am trying to undertand which code in LLVM patches the fixups generated by assembler. Here is what I am doing: I use "llvm-mc" to compile X86 assembly code, like below: $ echo "jmp 5000" | ./bin/llvm-mc -assemble -triple=i386 -show-encoding -x86-asm-syntax=att -output-asm-variant=1 .text jmp 5000 # encoding...
2017 Sep 23
0
Potential infinite loop in MemorySSAUpdater
...AM, Godala, Bhargav-reddy via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi, >> >> Can some one explain the intended behaviour of following loop in void >> MemorySSAUpdater::insertDef(MemoryDef *MD, bool RenameUses) function. >> >> while (!FixupList.empty()) { >> unsigned StartingPHISize = InsertedPHIs.size(); >> fixupDefs(FixupList); >> FixupList.clear(); >> // Put any new phis on the fixup list, and process them >> FixupList.append(InsertedPHIs.end() - StartingPHISize, >> InsertedPH...
2017 Sep 23
2
Potential infinite loop in MemorySSAUpdater
...Sep 23, 2017 at 8:38 AM, Godala, Bhargav-reddy via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote: Hi, Can some one explain the intended behaviour of following loop in void MemorySSAUpdater::insertDef(MemoryDef *MD, bool RenameUses) function. while (!FixupList.empty()) { unsigned StartingPHISize = InsertedPHIs.size(); fixupDefs(FixupList); FixupList.clear(); // Put any new phis on the fixup list, and process them FixupList.append(InsertedPHIs.end() - StartingPHISize, InsertedPHIs.end()); } With the latest code on trunk compilat...
2019 Oct 02
2
fixup_aarch64_movw support for COFF AArch64
Hi Everyone, I'm working Chromium targeting Windows on ARM64 platform. As a part of this work I ran into an issue related to llvm in Swiftshader. Currently fixup_aarch64_movw relocation type is not supported for COFF ARM64 (AArch64WinCOFFObjectWriter). As far as I see, Microsoft hasn't defined indicator for this relocation type. I haven't seen documented anywhere. For AArch32 mova/movt indicators were implemented, I'm not sure but maybe we...