Skip to content

[cpullvm] Add basic information about multilib#255

Merged
jonathonpenix merged 2 commits intoqualcomm:qualcomm-softwarefrom
jonathonpenix:pr/multilib
Mar 11, 2026
Merged

[cpullvm] Add basic information about multilib#255
jonathonpenix merged 2 commits intoqualcomm:qualcomm-softwarefrom
jonathonpenix:pr/multilib

Conversation

@jonathonpenix
Copy link
Copy Markdown
Contributor

While here, also update our main README to point to new docs we've added or updated.

## Multilib
CPULLVM automatically selects a set of headers and runtimes libraries to use when compiling and linking based on
the set of arguments passed on the command line. A warning will be emitted if no appropriate set of headers/libraries
can be found.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the warning be suppressed if build has to be clean of warnings, please indicate how

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works the same as any other warning.

I'm hesitant to put it here--people should not be disabling this unless they know what they're up to, at which point they should be able to figure out how to turn the warning off.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be information useful in the migration guide - please if you do not want to add it here, share it with CE team

While here, also update our main README to point to new docs we've
added or updated.

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
Fixups per reviewer feedback

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
@jonathonpenix jonathonpenix merged commit be45ff1 into qualcomm:qualcomm-software Mar 11, 2026
8 checks passed
@jonathonpenix jonathonpenix deleted the pr/multilib branch March 11, 2026 07:04
@jonathonpenix
Copy link
Copy Markdown
Contributor Author

/cherry-pick be45ff1

@jonathonpenix jonathonpenix added this to the Release 22.x milestone Mar 11, 2026
@navaneethshan
Copy link
Copy Markdown
Contributor

/pull-request #261

jonathonpenix added a commit that referenced this pull request Mar 11, 2026
While here, also update our main README to point to new docs we've added or updated.

(cherry picked from commit be45ff1)

Signed-off-by: Jonathon Penix <jpenix@qti.qualcomm.com>
Co-authored-by: Jonathon Penix <jpenix@qti.qualcomm.com>
sriyalamar pushed a commit to sriyalamar/cpullvm-toolchain that referenced this pull request Apr 7, 2026
Fixes llvm/llvm-project#169270

Changes the implementation of `is_finite` to emit fewer instructions,
e.g.

X86_64

```asm
old: # 18 bytes
        movd    %xmm0, %eax
        andl    $2147483647, %eax
        cmpl    $2139095040, %eax
        setl    %al
        retq
new: # 15 bytes
        movd    %xmm0, %eax
        addl    %eax, %eax
        cmpl    $-16777216, %eax
        setb    %al
        retq
```

Aarch64

```asm
old:
        fmov    w9, s0
        mov     w8, #2139095040
        and     w9, w9, #0x7fffffff
        cmp     w9, w8
        cset    w0, lt
        ret
new:
        fmov    w8, s0
        ubfx    w8, w8, qualcomm#23, qualcomm#8
        cmp     w8, qualcomm#255
        cset    w0, lo
        ret
```

See the issue for more information.

(cherry picked from commit 73cddef)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants