llvm-clang

    1熱度

    1回答

    我使用在windows 10(32位操作系統,x86處理器)上從源編譯的clang 4.0.0。我試圖將我的cpp代碼編譯爲llvm格式爲ll的代碼。 下面是其無法使用鐺編譯示例代碼: #include <windows.h> #include <tlhelp32.h> #include <fstream> #include <mapi.h> #include <memory> #inc

    0熱度

    1回答

    我一直在使用Tool.run(ToolAction)運行一個鐺工具。如果我想在同一個輸入源上運行多個工具,是否只需創建不同的ToolAction,並且一個接一個地調用Tool.run?或者我以某種方式將ASTFrontendAction連在一起?

    0熱度

    1回答

    考慮以下的簡單函數: int foo() { return 42; } 經由clang -emit-llvm -S foo.cpp編譯此以LLVM產生以下模塊: ; ModuleID = 'foo.cpp' source_filename = "foo.cpp" target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" tar

    3熱度

    1回答

    我在Ubuntu 16.04上從源碼構建了clang 4.0,並試圖編譯一個簡單的OpenMP程序,但收到以下錯誤。 /tmp/test-7f2c7c.o: In function `main': /home/me/sf_shared/test.c:(.text+0x52): undefined reference to `__kmpc_fork_call' /tmp/test-7f2c7c.

    1熱度

    1回答

    我才發現這是由一個偶然的方法重寫引發了我們的iOS應用程序中的錯誤。 在這種情況下,子類中的屬性將覆蓋在父類「私人」的方法。 @interface MyClass : NSObject - (void)doSomething; @end @implementation MyClass - (void)doSomething { [self hideView]; } - (v

    0熱度

    1回答

    我想使用LLVM/Clang在我的Nvidia GPU上運行OpenMP4 +代碼。我按照這裏找到的說明下載並編譯了從trunk中編譯的llvm/clang/omp庫:https://clang.llvm.org/get_started.html和here:https://openmp.llvm.org/。我沒有編譯Compiler-RT和libcxx,但我認爲這沒有什麼區別。 我的CMake命令

    2熱度

    1回答

    這是我在lldb命令行模式下的第一次體驗。不成功。 安裝最小試劑盒與鐺,LLD,LLDB V5(Ubuntu的16.04) 示例應用程序建立與鐺。 試圖啓動: lldb applcation >run error: process launch failed: unable to locate lldb-server-5.0.0 所以現在的問題: 爲什麼LLDB嘗試運行一臺服務器?這不是遠程調試。

    1熱度

    1回答

    我想學習LLVM所以我在我的Ubuntu 14.04安裝鐺鐺安裝,但我遇到一些problems.Here是: 當我執行命令:sudo apt-get install clang-3.5我只是得到喜歡跟隨一些錯誤消息: Reading package lists... Done Building dependency tree Reading state information... Done

    4熱度

    1回答

    我剛剛在Redhat 6機器上創建了鏗鏘5.0.0,並試圖運行鐺格式。我無法獲取樣式文件中的樣式選項。下面是我認爲應該工作的一組命令的例子: ./clang-format -style=llvm -dump-config > .llvm-format ./clang-format -style=.llvm-format ~/myFile.cc 當我運行這個命令,我得到以下錯誤: Invali

    2熱度

    1回答

    我是LLVM的新手,理解LLVM的指令生成。作爲其中的一部分,我試圖轉換一個基本的布爾指令來直接使用內存寄存器作爲操作數。例如,在下面的IR中,我希望and操作使用%a和%b而不是%11和%12。 %11 = load i32, i32* %a, align 4 \n %12 = load i32, i32* %b, align 4 \n %13 = and i32 %11, %12\ st