Giter VIP home page Giter VIP logo

upmem / llvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llvm-mirror/llvm

1.0 1.0 0.0 397.34 MB

Mirror of official llvm git repository located at http://llvm.org/git/llvm.

Home Page: http://llvm.org

License: Other

CMake 0.20% C++ 32.14% Shell 0.04% Go 0.06% OCaml 0.12% Python 0.38% C 0.34% LLVM 49.44% Assembly 17.24% Objective-C 0.01% Roff 0.01% Logos 0.01% HTML 0.01% Swift 0.01% CSS 0.01% Batchfile 0.01% Perl 0.01% Dockerfile 0.01% Emacs Lisp 0.01% Vim Script 0.01%

llvm's People

Contributors

ahatanak avatar arsenm avatar asl avatar atrick avatar bob-wilson avatar chandlerc avatar chapuni avatar cunningbaldrick avatar d0k avatar ddunbar avatar dexonsmith avatar dsandersllvm avatar dwblaikie avatar echristo avatar espindola avatar isanbard avatar lattner avatar lhames avatar majnemer avatar matzeb avatar mbrukman avatar nlewycky avatar resistor avatar rksimon avatar rnk avatar rotateright avatar stoklund avatar tnorthover avatar topperc avatar tstellaramd avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

llvm's Issues

[Tuleap 1317] LLVM: [BUG] issue with asm inline (% vs %%)

@@ From Tuleap issue 1317, submitted by rjodin

When having register argument in an asm inline, we need a double % to specify a register ("move %%r18, saved_ktrace_args_in_registers")
But when not having register arguments, if we have a double %%, the asm inline is ignore. Is that case we need a single % to specify a register...

@@ Comments:
** @dfurodet ça marche?

Crash when using a casted mram pointer

The following code crashes clang:

#include <stdlib.h>
 #include <mram.h>

 #define TASKLETS_INITIALIZER TASKLET(main, 1024, 0)
 #include <rt.h>

 char __mram_keep toto[255];

 int main(void) {
     *((char *) toto) = 0x2a;

     return EXIT_SUCCESS;
 }

Because of the line *((char *) toto) = 0x2a;.

Clash report:

fatal error: error in backend: Cannot select: 0x563c48a23810: i32 = addrspacecast[255 -> 0] 0x563c48a23948
0x563c48a23948: i32 = DPUISD::Wrapper TargetGlobalAddress:i32<[255 x i8] addrspace(255)* @toto> 0
0x563c48a23740: i32 = TargetGlobalAddress<[255 x i8] addrspace(255)* @toto> 0
In function: main
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 7.1.0 ([email protected]:upmem/clang.git 8e2c3063c7ce02f2b04eb24723e66f6d2d1dcf9f) ([email protected]:upmem/llvm.git 9dce7c1)
Target: dpu-upmem-dpurte
Thread model: posix
InstalledDir: /home/jchauzi/package-sdk-current/upmem-internal/usr/bin

optimize generated instructions with lsl_add

When compiling the following code :

#include <stdint.h>

uint32_t dup(uint8_t c) {
    return c + (c << 8);
}

I'm getting the following sequence:

lsl r1, r0, 8
or r0, r0, r1

which could be optimized in a single lsl_add

At the end of the day, I'm interested in getting a more optimized sequence for :

uint32_t memset32(int c) {
    uint8_t v = c;
    return v | (v << 8) | (v << 16) | (v << 24) ;
}

[Tuleap 1317] LLVM: [BUG] issue with asm inline (% vs %%)

@@ From Tuleap issue 1317, submitted by rjodin

When having register argument in an asm inline, we need a double % to specify a register ("move %%r18, saved_ktrace_args_in_registers")
But when not having register arguments, if we have a double %%, the asm inline is ignore. Is that case we need a single % to specify a register...

@@ Comments:
** @dfurodet ça marche?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.