Skip to content

Instantly share code, notes, and snippets.

View tru's full-sized avatar

Tobias Hieta tru

View GitHub Profile
import requests
import sys
import json
from pprint import pprint
from typing import Optional, Dict, Union, Tuple, Any, List
import argparse
PROJECT_FIELDS = """
query($org: String!, $number: Int!) {
organization(login: $org) {
import requests
from pprint import pprint
from typing import Optional, Dict, Union, Tuple
PROJECT_FIELDS = """
query($org: String!, $number: Int!) {
organization(login: $org) {
projectNext(number: $number) {
id
fields(first:20) {
Symbols
============================================================
Mod 0000 | `C:\code\llvm\llvm-msvc-debug-diff-samples\out\build\x64-Release\CMakeFiles\simple-lambda.dir\samples\simple-lambda\simple-lambda.cpp.obj`:
4 | S_OBJNAME [size = 148] sig=0, `C:\code\llvm\llvm-msvc-debug-diff-samples\out\build\x64-Release\CMakeFiles\simple-lambda.dir\samples\simple-lambda\simple-lambda.cpp.obj`
152 | S_COMPILE3 [size = 60]
machine = intel x86-x64, Ver = Microsoft (R) Optimizing Compiler, language = c++
frontend = 19.32.31329.0, backend = 19.32.31329.0
flags = security checks | hot patchable
@tru
tru / gist:9b618a8987c31b4c0b1fe5715df92fa0
Created June 9, 2022 13:46
llvm-pdbutil dump --symbols
Symbols
============================================================
Mod 0000 | `C:\code\llvm\llvm-msvc-debug-diff-samples\out\build\x64-Clang-Release\CMakeFiles\simple-lambda.dir\samples\simple-lambda\simple-lambda.cpp.obj`:
4 | S_COMPILE3 [size = 48]
machine = intel x86-x64, Ver = clang version 13.0.1, language = c++
frontend = 13.0.1.0, backend = 13001.0.0.0
flags = none
52 | S_BUILDINFO [size = 8] BuildId = `0x1006`
# This is the CMakeCache file.
# For build in directory: /Users/tobias/code/llvm-releases/13.0.1/rc2/Phase3/Release/llvmCore-13.0.1-rc2.obj
# It was generated by CMake: /usr/local/Cellar/cmake/3.21.2/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
@echo off
setlocal
REM Script for building the LLVM installer on Windows,
REM used for the the weekly snapshots at http://www.llvm.org/builds.
REM
REM Usage: build_llvm_package.bat <revision>
REM Prerequisites:
REM
diff --git a/lld/docs/ReleaseNotes.rst b/lld/docs/ReleaseNotes.rst
index f0482c2428c..513ad37e278 100644
--- a/lld/docs/ReleaseNotes.rst
+++ b/lld/docs/ReleaseNotes.rst
@@ -28,6 +28,10 @@ ELF Improvements
chrome://tracing. The file can be specified with ``--time-trace-file``.
Trace granularity can be specified with ``--time-trace-granularity``.
(`D71060 <https://reviews.llvm.org/D71060>`_)
+* For ARM architectures the default max page size was increased to 64k.
+ This increases compatibility with systems where a non standard page
define dso_local i32 @func(double %0) #0 !dbg !7 {
%2 = alloca float, align 4
%3 = fptrunc double %0 to float
store float %3, float* %2, align 4
call void @llvm.dbg.declare(metadata float* %2, metadata !13, metadata !DIExpression()), !dbg !14
ret i32 0, !dbg !15
}
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
@tru
tru / faster_compiles.md
Created January 28, 2020 08:24
Link collection for the Compile C++ faster talk

This is a link collection for the talk I held at stockholm c++ meetup where I talked about how to compile c++ faster.

The slides can be found here: https://docs.google.com/presentation/d/e/2PACX-1vQnImhVyHCiZka4wRmnhISq7O8wl6wvf0zmja2HNsiBDF4l6xBL6fXwFXHjdEpIsvZkiRhNNQBXmNuP/pub?start=false&loop=false&delayms=3000

Our environment

Easy methods

import shlex
import os
from pathlib import Path
from conans.model import Generator
from conans import ConanFile
class CMakeToolchain(Generator):
def __init__(self, conanfile):
self.conanfile = conanfile